From 583c52a7a42ee99bfa7e6968c903aefa9abe1dd0 Mon Sep 17 00:00:00 2001 From: Chad Retz Date: Mon, 8 Jul 2024 12:47:07 -0500 Subject: [PATCH] Experimental cloud operations client Fixes #244 --- .github/workflows/ci.yml | 9 + src/Temporalio.Api.Generator/Program.cs | 12 + .../Cloud/CloudService/V1/RequestResponse.cs | 16022 ++++++++++++++++ .../Api/Cloud/CloudService/V1/Service.cs | 178 + .../Api/Cloud/Identity/V1/Message.cs | 4045 ++++ .../Api/Cloud/Namespace/V1/Message.cs | 3416 ++++ .../Api/Cloud/Operation/V1/Message.cs | 567 + src/Temporalio/Api/Cloud/Region/V1/Message.cs | 362 + src/Temporalio/Bridge/Interop/Interop.cs | 7 +- .../Bridge/include/temporal-sdk-bridge.h | 1 + src/Temporalio/Bridge/sdk-core | 2 +- src/Temporalio/Bridge/src/client.rs | 66 +- src/Temporalio/Bridge/src/worker.rs | 7 +- src/Temporalio/Client/CloudService.Rpc.cs | 375 + src/Temporalio/Client/CloudService.cs | 41 + src/Temporalio/Client/ITemporalClient.cs | 10 + .../Client/ITemporalCloudOperationsClient.cs | 26 + src/Temporalio/Client/ITemporalConnection.cs | 8 + src/Temporalio/Client/TemporalClient.cs | 6 + .../Client/TemporalCloudOperationsClient.cs | 86 + ...oralCloudOperationsClientConnectOptions.cs | 49 + src/Temporalio/Client/TemporalConnection.cs | 4 + tests/Temporalio.SmokeTest/Program.cs | 2 +- .../Program.cs | 2 +- .../Client/TemporalClientTests.cs | 11 +- .../TemporalCloudOperationsClientTests.cs | 27 + .../Runtime/TemporalRuntimeTests.cs | 4 +- .../Worker/WorkflowWorkerTests.cs | 4 +- .../WorkflowEnvironmentTestBase.cs | 6 +- 29 files changed, 25328 insertions(+), 27 deletions(-) create mode 100644 src/Temporalio/Api/Cloud/CloudService/V1/RequestResponse.cs create mode 100644 src/Temporalio/Api/Cloud/CloudService/V1/Service.cs create mode 100644 src/Temporalio/Api/Cloud/Identity/V1/Message.cs create mode 100644 src/Temporalio/Api/Cloud/Namespace/V1/Message.cs create mode 100644 src/Temporalio/Api/Cloud/Operation/V1/Message.cs create mode 100644 src/Temporalio/Api/Cloud/Region/V1/Message.cs create mode 100644 src/Temporalio/Client/CloudService.Rpc.cs create mode 100644 src/Temporalio/Client/CloudService.cs create mode 100644 src/Temporalio/Client/ITemporalCloudOperationsClient.cs create mode 100644 src/Temporalio/Client/TemporalCloudOperationsClient.cs create mode 100644 src/Temporalio/Client/TemporalCloudOperationsClientConnectOptions.cs create mode 100644 tests/Temporalio.Tests/Client/TemporalCloudOperationsClientTests.cs diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c48c5445..f0610fab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,6 +104,15 @@ jobs: TEMPORAL_CLIENT_KEY: ${{ secrets.TEMPORAL_CLIENT_KEY }} run: dotnet run --project tests/Temporalio.Tests -- -verbose -method "*.ExecuteWorkflowAsync_Simple_Succeeds" + - name: Test cloud operations client + # Only supported in non-fork runs, since secrets are not available in forks + if: ${{ matrix.cloudTestTarget && (github.event.pull_request.head.repo.full_name == '' || github.event.pull_request.head.repo.full_name == 'temporalio/sdk-dotnet') }} + env: + TEMPORAL_CLIENT_CLOUD_NAMESPACE: sdk-ci.a2dd6 + TEMPORAL_CLIENT_CLOUD_API_KEY: ${{ secrets.TEMPORAL_CLIENT_CLOUD_API_KEY }} + TEMPORAL_CLIENT_CLOUD_API_VERSION: 2024-05-13-00 + run: dotnet run --project tests/Temporalio.Tests -- -verbose -method "*.TemporalCloudOperationsClientTests.*" + - name: Build docs if: ${{ matrix.docsTarget }} run: | diff --git a/src/Temporalio.Api.Generator/Program.cs b/src/Temporalio.Api.Generator/Program.cs index 199304e7..b98f7719 100644 --- a/src/Temporalio.Api.Generator/Program.cs +++ b/src/Temporalio.Api.Generator/Program.cs @@ -6,6 +6,7 @@ var projectDir = Path.GetFullPath(Path.Join(currFile, "../../../")); var protoDir = Path.Join(projectDir, "src/Temporalio/Bridge/sdk-core/sdk-core-protos/protos"); var apiProtoDir = Path.Join(protoDir, "api_upstream"); +var apiCloudProtoDir = Path.Join(protoDir, "api_cloud_upstream"); var testSrvProtoDir = Path.Join(protoDir, "testsrv_upstream"); var bridgeProtoDir = Path.Join(protoDir, "local"); @@ -44,6 +45,10 @@ Protoc(fi.FullName, Path.Join(projectDir, "src/Temporalio"), "Temporalio", apiProtoDir); } } +foreach (var fi in new DirectoryInfo(apiCloudProtoDir).GetFiles("*.proto", SearchOption.AllDirectories)) +{ + Protoc(fi.FullName, Path.Join(projectDir, "src/Temporalio"), "Temporalio", apiCloudProtoDir, apiProtoDir); +} foreach ( var fi in new DirectoryInfo(testSrvProtoDir).GetFiles("*.proto", SearchOption.AllDirectories)) { @@ -94,6 +99,13 @@ "Temporalio.Client", "OperatorService", "Temporalio.Api.OperatorService.V1")); +File.WriteAllText( + Path.Join(projectDir, "src/Temporalio/Client/CloudService.Rpc.cs"), + GenerateServiceRPCSource( + Path.Join(apiCloudProtoDir, "temporal/api/cloud/cloudservice/v1/service.proto"), + "Temporalio.Client", + "CloudService", + "Temporalio.Api.Cloud.CloudService.V1")); File.WriteAllText( Path.Join(projectDir, "src/Temporalio/Client/TestService.Rpc.cs"), GenerateServiceRPCSource( diff --git a/src/Temporalio/Api/Cloud/CloudService/V1/RequestResponse.cs b/src/Temporalio/Api/Cloud/CloudService/V1/RequestResponse.cs new file mode 100644 index 00000000..e242b7e8 --- /dev/null +++ b/src/Temporalio/Api/Cloud/CloudService/V1/RequestResponse.cs @@ -0,0 +1,16022 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: temporal/api/cloud/cloudservice/v1/request_response.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.Cloud.CloudService.V1 { + + /// Holder for reflection information generated from temporal/api/cloud/cloudservice/v1/request_response.proto + public static partial class RequestResponseReflection { + + #region Descriptor + /// File descriptor for temporal/api/cloud/cloudservice/v1/request_response.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static RequestResponseReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cjl0ZW1wb3JhbC9hcGkvY2xvdWQvY2xvdWRzZXJ2aWNlL3YxL3JlcXVlc3Rf", + "cmVzcG9uc2UucHJvdG8SInRlbXBvcmFsLmFwaS5jbG91ZC5jbG91ZHNlcnZp", + "Y2UudjEaLXRlbXBvcmFsL2FwaS9jbG91ZC9vcGVyYXRpb24vdjEvbWVzc2Fn", + "ZS5wcm90bxosdGVtcG9yYWwvYXBpL2Nsb3VkL2lkZW50aXR5L3YxL21lc3Nh", + "Z2UucHJvdG8aLXRlbXBvcmFsL2FwaS9jbG91ZC9uYW1lc3BhY2UvdjEvbWVz", + "c2FnZS5wcm90bxoqdGVtcG9yYWwvYXBpL2Nsb3VkL3JlZ2lvbi92MS9tZXNz", + "YWdlLnByb3RvIloKD0dldFVzZXJzUmVxdWVzdBIRCglwYWdlX3NpemUYASAB", + "KAUSEgoKcGFnZV90b2tlbhgCIAEoCRINCgVlbWFpbBgDIAEoCRIRCgluYW1l", + "c3BhY2UYBCABKAkiYAoQR2V0VXNlcnNSZXNwb25zZRIzCgV1c2VycxgBIAMo", + "CzIkLnRlbXBvcmFsLmFwaS5jbG91ZC5pZGVudGl0eS52MS5Vc2VyEhcKD25l", + "eHRfcGFnZV90b2tlbhgCIAEoCSIhCg5HZXRVc2VyUmVxdWVzdBIPCgd1c2Vy", + "X2lkGAEgASgJIkUKD0dldFVzZXJSZXNwb25zZRIyCgR1c2VyGAEgASgLMiQu", + "dGVtcG9yYWwuYXBpLmNsb3VkLmlkZW50aXR5LnYxLlVzZXIiZwoRQ3JlYXRl", + "VXNlclJlcXVlc3QSNgoEc3BlYxgBIAEoCzIoLnRlbXBvcmFsLmFwaS5jbG91", + "ZC5pZGVudGl0eS52MS5Vc2VyU3BlYxIaChJhc3luY19vcGVyYXRpb25faWQY", + "AiABKAkibwoSQ3JlYXRlVXNlclJlc3BvbnNlEg8KB3VzZXJfaWQYASABKAkS", + "SAoPYXN5bmNfb3BlcmF0aW9uGAIgASgLMi8udGVtcG9yYWwuYXBpLmNsb3Vk", + "Lm9wZXJhdGlvbi52MS5Bc3luY09wZXJhdGlvbiKSAQoRVXBkYXRlVXNlclJl", + "cXVlc3QSDwoHdXNlcl9pZBgBIAEoCRI2CgRzcGVjGAIgASgLMigudGVtcG9y", + "YWwuYXBpLmNsb3VkLmlkZW50aXR5LnYxLlVzZXJTcGVjEhgKEHJlc291cmNl", + "X3ZlcnNpb24YAyABKAkSGgoSYXN5bmNfb3BlcmF0aW9uX2lkGAQgASgJIl4K", + "ElVwZGF0ZVVzZXJSZXNwb25zZRJICg9hc3luY19vcGVyYXRpb24YASABKAsy", + "Ly50ZW1wb3JhbC5hcGkuY2xvdWQub3BlcmF0aW9uLnYxLkFzeW5jT3BlcmF0", + "aW9uIloKEURlbGV0ZVVzZXJSZXF1ZXN0Eg8KB3VzZXJfaWQYASABKAkSGAoQ", + "cmVzb3VyY2VfdmVyc2lvbhgCIAEoCRIaChJhc3luY19vcGVyYXRpb25faWQY", + "AyABKAkiXgoSRGVsZXRlVXNlclJlc3BvbnNlEkgKD2FzeW5jX29wZXJhdGlv", + "bhgBIAEoCzIvLnRlbXBvcmFsLmFwaS5jbG91ZC5vcGVyYXRpb24udjEuQXN5", + "bmNPcGVyYXRpb24iugEKHVNldFVzZXJOYW1lc3BhY2VBY2Nlc3NSZXF1ZXN0", + "EhEKCW5hbWVzcGFjZRgBIAEoCRIPCgd1c2VyX2lkGAIgASgJEj8KBmFjY2Vz", + "cxgDIAEoCzIvLnRlbXBvcmFsLmFwaS5jbG91ZC5pZGVudGl0eS52MS5OYW1l", + "c3BhY2VBY2Nlc3MSGAoQcmVzb3VyY2VfdmVyc2lvbhgEIAEoCRIaChJhc3lu", + "Y19vcGVyYXRpb25faWQYBSABKAkiagoeU2V0VXNlck5hbWVzcGFjZUFjY2Vz", + "c1Jlc3BvbnNlEkgKD2FzeW5jX29wZXJhdGlvbhgBIAEoCzIvLnRlbXBvcmFs", + "LmFwaS5jbG91ZC5vcGVyYXRpb24udjEuQXN5bmNPcGVyYXRpb24iNgoYR2V0", + "QXN5bmNPcGVyYXRpb25SZXF1ZXN0EhoKEmFzeW5jX29wZXJhdGlvbl9pZBgB", + "IAEoCSJlChlHZXRBc3luY09wZXJhdGlvblJlc3BvbnNlEkgKD2FzeW5jX29w", + "ZXJhdGlvbhgBIAEoCzIvLnRlbXBvcmFsLmFwaS5jbG91ZC5vcGVyYXRpb24u", + "djEuQXN5bmNPcGVyYXRpb24icgoWQ3JlYXRlTmFtZXNwYWNlUmVxdWVzdBI8", + "CgRzcGVjGAIgASgLMi4udGVtcG9yYWwuYXBpLmNsb3VkLm5hbWVzcGFjZS52", + "MS5OYW1lc3BhY2VTcGVjEhoKEmFzeW5jX29wZXJhdGlvbl9pZBgDIAEoCSJ2", + "ChdDcmVhdGVOYW1lc3BhY2VSZXNwb25zZRIRCgluYW1lc3BhY2UYASABKAkS", + "SAoPYXN5bmNfb3BlcmF0aW9uGAIgASgLMi8udGVtcG9yYWwuYXBpLmNsb3Vk", + "Lm9wZXJhdGlvbi52MS5Bc3luY09wZXJhdGlvbiJLChRHZXROYW1lc3BhY2Vz", + "UmVxdWVzdBIRCglwYWdlX3NpemUYASABKAUSEgoKcGFnZV90b2tlbhgCIAEo", + "CRIMCgRuYW1lGAMgASgJInAKFUdldE5hbWVzcGFjZXNSZXNwb25zZRI+Cgpu", + "YW1lc3BhY2VzGAEgAygLMioudGVtcG9yYWwuYXBpLmNsb3VkLm5hbWVzcGFj", + "ZS52MS5OYW1lc3BhY2USFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJIigKE0dl", + "dE5hbWVzcGFjZVJlcXVlc3QSEQoJbmFtZXNwYWNlGAEgASgJIlUKFEdldE5h", + "bWVzcGFjZVJlc3BvbnNlEj0KCW5hbWVzcGFjZRgBIAEoCzIqLnRlbXBvcmFs", + "LmFwaS5jbG91ZC5uYW1lc3BhY2UudjEuTmFtZXNwYWNlIp8BChZVcGRhdGVO", + "YW1lc3BhY2VSZXF1ZXN0EhEKCW5hbWVzcGFjZRgBIAEoCRI8CgRzcGVjGAIg", + "ASgLMi4udGVtcG9yYWwuYXBpLmNsb3VkLm5hbWVzcGFjZS52MS5OYW1lc3Bh", + "Y2VTcGVjEhgKEHJlc291cmNlX3ZlcnNpb24YAyABKAkSGgoSYXN5bmNfb3Bl", + "cmF0aW9uX2lkGAQgASgJImMKF1VwZGF0ZU5hbWVzcGFjZVJlc3BvbnNlEkgK", + "D2FzeW5jX29wZXJhdGlvbhgBIAEoCzIvLnRlbXBvcmFsLmFwaS5jbG91ZC5v", + "cGVyYXRpb24udjEuQXN5bmNPcGVyYXRpb24ixgEKIlJlbmFtZUN1c3RvbVNl", + "YXJjaEF0dHJpYnV0ZVJlcXVlc3QSEQoJbmFtZXNwYWNlGAEgASgJEi0KJWV4", + "aXN0aW5nX2N1c3RvbV9zZWFyY2hfYXR0cmlidXRlX25hbWUYAiABKAkSKAog", + "bmV3X2N1c3RvbV9zZWFyY2hfYXR0cmlidXRlX25hbWUYAyABKAkSGAoQcmVz", + "b3VyY2VfdmVyc2lvbhgEIAEoCRIaChJhc3luY19vcGVyYXRpb25faWQYBSAB", + "KAkibwojUmVuYW1lQ3VzdG9tU2VhcmNoQXR0cmlidXRlUmVzcG9uc2USSAoP", + "YXN5bmNfb3BlcmF0aW9uGAEgASgLMi8udGVtcG9yYWwuYXBpLmNsb3VkLm9w", + "ZXJhdGlvbi52MS5Bc3luY09wZXJhdGlvbiJhChZEZWxldGVOYW1lc3BhY2VS", + "ZXF1ZXN0EhEKCW5hbWVzcGFjZRgBIAEoCRIYChByZXNvdXJjZV92ZXJzaW9u", + "GAIgASgJEhoKEmFzeW5jX29wZXJhdGlvbl9pZBgDIAEoCSJjChdEZWxldGVO", + "YW1lc3BhY2VSZXNwb25zZRJICg9hc3luY19vcGVyYXRpb24YASABKAsyLy50", + "ZW1wb3JhbC5hcGkuY2xvdWQub3BlcmF0aW9uLnYxLkFzeW5jT3BlcmF0aW9u", + "Il8KHkZhaWxvdmVyTmFtZXNwYWNlUmVnaW9uUmVxdWVzdBIRCgluYW1lc3Bh", + "Y2UYASABKAkSDgoGcmVnaW9uGAIgASgJEhoKEmFzeW5jX29wZXJhdGlvbl9p", + "ZBgDIAEoCSJrCh9GYWlsb3Zlck5hbWVzcGFjZVJlZ2lvblJlc3BvbnNlEkgK", + "D2FzeW5jX29wZXJhdGlvbhgBIAEoCzIvLnRlbXBvcmFsLmFwaS5jbG91ZC5v", + "cGVyYXRpb24udjEuQXN5bmNPcGVyYXRpb24idAoZQWRkTmFtZXNwYWNlUmVn", + "aW9uUmVxdWVzdBIRCgluYW1lc3BhY2UYASABKAkSDgoGcmVnaW9uGAIgASgJ", + "EhgKEHJlc291cmNlX3ZlcnNpb24YAyABKAkSGgoSYXN5bmNfb3BlcmF0aW9u", + "X2lkGAQgASgJImYKGkFkZE5hbWVzcGFjZVJlZ2lvblJlc3BvbnNlEkgKD2Fz", + "eW5jX29wZXJhdGlvbhgBIAEoCzIvLnRlbXBvcmFsLmFwaS5jbG91ZC5vcGVy", + "YXRpb24udjEuQXN5bmNPcGVyYXRpb24iEwoRR2V0UmVnaW9uc1JlcXVlc3Qi", + "SwoSR2V0UmVnaW9uc1Jlc3BvbnNlEjUKB3JlZ2lvbnMYASADKAsyJC50ZW1w", + "b3JhbC5hcGkuY2xvdWQucmVnaW9uLnYxLlJlZ2lvbiIiChBHZXRSZWdpb25S", + "ZXF1ZXN0Eg4KBnJlZ2lvbhgBIAEoCSJJChFHZXRSZWdpb25SZXNwb25zZRI0", + "CgZyZWdpb24YASABKAsyJC50ZW1wb3JhbC5hcGkuY2xvdWQucmVnaW9uLnYx", + "LlJlZ2lvbiJgChFHZXRBcGlLZXlzUmVxdWVzdBIRCglwYWdlX3NpemUYASAB", + "KAUSEgoKcGFnZV90b2tlbhgCIAEoCRIQCghvd25lcl9pZBgDIAEoCRISCgpv", + "d25lcl90eXBlGAQgASgJImcKEkdldEFwaUtleXNSZXNwb25zZRI4CghhcGlf", + "a2V5cxgBIAMoCzImLnRlbXBvcmFsLmFwaS5jbG91ZC5pZGVudGl0eS52MS5B", + "cGlLZXkSFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJIiIKEEdldEFwaUtleVJl", + "cXVlc3QSDgoGa2V5X2lkGAEgASgJIkwKEUdldEFwaUtleVJlc3BvbnNlEjcK", + "B2FwaV9rZXkYASABKAsyJi50ZW1wb3JhbC5hcGkuY2xvdWQuaWRlbnRpdHku", + "djEuQXBpS2V5ImsKE0NyZWF0ZUFwaUtleVJlcXVlc3QSOAoEc3BlYxgBIAEo", + "CzIqLnRlbXBvcmFsLmFwaS5jbG91ZC5pZGVudGl0eS52MS5BcGlLZXlTcGVj", + "EhoKEmFzeW5jX29wZXJhdGlvbl9pZBgCIAEoCSJ/ChRDcmVhdGVBcGlLZXlS", + "ZXNwb25zZRIOCgZrZXlfaWQYASABKAkSDQoFdG9rZW4YAiABKAkSSAoPYXN5", + "bmNfb3BlcmF0aW9uGAMgASgLMi8udGVtcG9yYWwuYXBpLmNsb3VkLm9wZXJh", + "dGlvbi52MS5Bc3luY09wZXJhdGlvbiKVAQoTVXBkYXRlQXBpS2V5UmVxdWVz", + "dBIOCgZrZXlfaWQYASABKAkSOAoEc3BlYxgCIAEoCzIqLnRlbXBvcmFsLmFw", + "aS5jbG91ZC5pZGVudGl0eS52MS5BcGlLZXlTcGVjEhgKEHJlc291cmNlX3Zl", + "cnNpb24YAyABKAkSGgoSYXN5bmNfb3BlcmF0aW9uX2lkGAQgASgJImAKFFVw", + "ZGF0ZUFwaUtleVJlc3BvbnNlEkgKD2FzeW5jX29wZXJhdGlvbhgBIAEoCzIv", + "LnRlbXBvcmFsLmFwaS5jbG91ZC5vcGVyYXRpb24udjEuQXN5bmNPcGVyYXRp", + "b24iWwoTRGVsZXRlQXBpS2V5UmVxdWVzdBIOCgZrZXlfaWQYASABKAkSGAoQ", + "cmVzb3VyY2VfdmVyc2lvbhgCIAEoCRIaChJhc3luY19vcGVyYXRpb25faWQY", + "AyABKAkiYAoURGVsZXRlQXBpS2V5UmVzcG9uc2USSAoPYXN5bmNfb3BlcmF0", + "aW9uGAEgASgLMi8udGVtcG9yYWwuYXBpLmNsb3VkLm9wZXJhdGlvbi52MS5B", + "c3luY09wZXJhdGlvbiJkChRHZXRVc2VyR3JvdXBzUmVxdWVzdBIRCglwYWdl", + "X3NpemUYASABKAUSEgoKcGFnZV90b2tlbhgCIAEoCRIRCgluYW1lc3BhY2UY", + "AyABKAkSEgoKZ3JvdXBfbmFtZRgEIAEoCSJrChVHZXRVc2VyR3JvdXBzUmVz", + "cG9uc2USOQoGZ3JvdXBzGAEgAygLMikudGVtcG9yYWwuYXBpLmNsb3VkLmlk", + "ZW50aXR5LnYxLlVzZXJHcm91cBIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAki", + "JwoTR2V0VXNlckdyb3VwUmVxdWVzdBIQCghncm91cF9pZBgBIAEoCSJQChRH", + "ZXRVc2VyR3JvdXBSZXNwb25zZRI4CgVncm91cBgBIAEoCzIpLnRlbXBvcmFs", + "LmFwaS5jbG91ZC5pZGVudGl0eS52MS5Vc2VyR3JvdXAicQoWQ3JlYXRlVXNl", + "ckdyb3VwUmVxdWVzdBI7CgRzcGVjGAEgASgLMi0udGVtcG9yYWwuYXBpLmNs", + "b3VkLmlkZW50aXR5LnYxLlVzZXJHcm91cFNwZWMSGgoSYXN5bmNfb3BlcmF0", + "aW9uX2lkGAIgASgJInUKF0NyZWF0ZVVzZXJHcm91cFJlc3BvbnNlEhAKCGdy", + "b3VwX2lkGAEgASgJEkgKD2FzeW5jX29wZXJhdGlvbhgCIAEoCzIvLnRlbXBv", + "cmFsLmFwaS5jbG91ZC5vcGVyYXRpb24udjEuQXN5bmNPcGVyYXRpb24inQEK", + "FlVwZGF0ZVVzZXJHcm91cFJlcXVlc3QSEAoIZ3JvdXBfaWQYASABKAkSOwoE", + "c3BlYxgCIAEoCzItLnRlbXBvcmFsLmFwaS5jbG91ZC5pZGVudGl0eS52MS5V", + "c2VyR3JvdXBTcGVjEhgKEHJlc291cmNlX3ZlcnNpb24YAyABKAkSGgoSYXN5", + "bmNfb3BlcmF0aW9uX2lkGAQgASgJImMKF1VwZGF0ZVVzZXJHcm91cFJlc3Bv", + "bnNlEkgKD2FzeW5jX29wZXJhdGlvbhgBIAEoCzIvLnRlbXBvcmFsLmFwaS5j", + "bG91ZC5vcGVyYXRpb24udjEuQXN5bmNPcGVyYXRpb24iYAoWRGVsZXRlVXNl", + "ckdyb3VwUmVxdWVzdBIQCghncm91cF9pZBgBIAEoCRIYChByZXNvdXJjZV92", + "ZXJzaW9uGAIgASgJEhoKEmFzeW5jX29wZXJhdGlvbl9pZBgDIAEoCSJjChdE", + "ZWxldGVVc2VyR3JvdXBSZXNwb25zZRJICg9hc3luY19vcGVyYXRpb24YASAB", + "KAsyLy50ZW1wb3JhbC5hcGkuY2xvdWQub3BlcmF0aW9uLnYxLkFzeW5jT3Bl", + "cmF0aW9uIsABCiJTZXRVc2VyR3JvdXBOYW1lc3BhY2VBY2Nlc3NSZXF1ZXN0", + "EhEKCW5hbWVzcGFjZRgBIAEoCRIQCghncm91cF9pZBgCIAEoCRI/CgZhY2Nl", + "c3MYAyABKAsyLy50ZW1wb3JhbC5hcGkuY2xvdWQuaWRlbnRpdHkudjEuTmFt", + "ZXNwYWNlQWNjZXNzEhgKEHJlc291cmNlX3ZlcnNpb24YBCABKAkSGgoSYXN5", + "bmNfb3BlcmF0aW9uX2lkGAUgASgJIm8KI1NldFVzZXJHcm91cE5hbWVzcGFj", + "ZUFjY2Vzc1Jlc3BvbnNlEkgKD2FzeW5jX29wZXJhdGlvbhgBIAEoCzIvLnRl", + "bXBvcmFsLmFwaS5jbG91ZC5vcGVyYXRpb24udjEuQXN5bmNPcGVyYXRpb24i", + "ewobQ3JlYXRlU2VydmljZUFjY291bnRSZXF1ZXN0EkAKBHNwZWMYASABKAsy", + "Mi50ZW1wb3JhbC5hcGkuY2xvdWQuaWRlbnRpdHkudjEuU2VydmljZUFjY291", + "bnRTcGVjEhoKEmFzeW5jX29wZXJhdGlvbl9pZBgCIAEoCSKEAQocQ3JlYXRl", + "U2VydmljZUFjY291bnRSZXNwb25zZRIaChJzZXJ2aWNlX2FjY291bnRfaWQY", + "ASABKAkSSAoPYXN5bmNfb3BlcmF0aW9uGAIgASgLMi8udGVtcG9yYWwuYXBp", + "LmNsb3VkLm9wZXJhdGlvbi52MS5Bc3luY09wZXJhdGlvbiI2ChhHZXRTZXJ2", + "aWNlQWNjb3VudFJlcXVlc3QSGgoSc2VydmljZV9hY2NvdW50X2lkGAEgASgJ", + "ImQKGUdldFNlcnZpY2VBY2NvdW50UmVzcG9uc2USRwoPc2VydmljZV9hY2Nv", + "dW50GAEgASgLMi4udGVtcG9yYWwuYXBpLmNsb3VkLmlkZW50aXR5LnYxLlNl", + "cnZpY2VBY2NvdW50IkIKGUdldFNlcnZpY2VBY2NvdW50c1JlcXVlc3QSEQoJ", + "cGFnZV9zaXplGAEgASgFEhIKCnBhZ2VfdG9rZW4YAiABKAkifgoaR2V0U2Vy", + "dmljZUFjY291bnRzUmVzcG9uc2USRwoPc2VydmljZV9hY2NvdW50GAEgAygL", + "Mi4udGVtcG9yYWwuYXBpLmNsb3VkLmlkZW50aXR5LnYxLlNlcnZpY2VBY2Nv", + "dW50EhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSKxAQobVXBkYXRlU2Vydmlj", + "ZUFjY291bnRSZXF1ZXN0EhoKEnNlcnZpY2VfYWNjb3VudF9pZBgBIAEoCRJA", + "CgRzcGVjGAIgASgLMjIudGVtcG9yYWwuYXBpLmNsb3VkLmlkZW50aXR5LnYx", + "LlNlcnZpY2VBY2NvdW50U3BlYxIYChByZXNvdXJjZV92ZXJzaW9uGAMgASgJ", + "EhoKEmFzeW5jX29wZXJhdGlvbl9pZBgEIAEoCSJoChxVcGRhdGVTZXJ2aWNl", + "QWNjb3VudFJlc3BvbnNlEkgKD2FzeW5jX29wZXJhdGlvbhgBIAEoCzIvLnRl", + "bXBvcmFsLmFwaS5jbG91ZC5vcGVyYXRpb24udjEuQXN5bmNPcGVyYXRpb24i", + "bwobRGVsZXRlU2VydmljZUFjY291bnRSZXF1ZXN0EhoKEnNlcnZpY2VfYWNj", + "b3VudF9pZBgBIAEoCRIYChByZXNvdXJjZV92ZXJzaW9uGAIgASgJEhoKEmFz", + "eW5jX29wZXJhdGlvbl9pZBgDIAEoCSJoChxEZWxldGVTZXJ2aWNlQWNjb3Vu", + "dFJlc3BvbnNlEkgKD2FzeW5jX29wZXJhdGlvbhgBIAEoCzIvLnRlbXBvcmFs", + "LmFwaS5jbG91ZC5vcGVyYXRpb24udjEuQXN5bmNPcGVyYXRpb25CyAEKJWlv", + "LnRlbXBvcmFsLmFwaS5jbG91ZC5jbG91ZHNlcnZpY2UudjFCFFJlcXVlc3RS", + "ZXNwb25zZVByb3RvUAFaNWdvLnRlbXBvcmFsLmlvL2FwaS9jbG91ZC9jbG91", + "ZHNlcnZpY2UvdjE7Y2xvdWRzZXJ2aWNlqgIkVGVtcG9yYWxpby5BcGkuQ2xv", + "dWQuQ2xvdWRTZXJ2aWNlLlYx6gIoVGVtcG9yYWxpbzo6QXBpOjpDbG91ZDo6", + "Q2xvdWRTZXJ2aWNlOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Temporalio.Api.Cloud.Operation.V1.MessageReflection.Descriptor, global::Temporalio.Api.Cloud.Identity.V1.MessageReflection.Descriptor, global::Temporalio.Api.Cloud.Namespace.V1.MessageReflection.Descriptor, global::Temporalio.Api.Cloud.Region.V1.MessageReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetUsersRequest), global::Temporalio.Api.Cloud.CloudService.V1.GetUsersRequest.Parser, new[]{ "PageSize", "PageToken", "Email", "Namespace" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetUsersResponse), global::Temporalio.Api.Cloud.CloudService.V1.GetUsersResponse.Parser, new[]{ "Users", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetUserRequest), global::Temporalio.Api.Cloud.CloudService.V1.GetUserRequest.Parser, new[]{ "UserId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetUserResponse), global::Temporalio.Api.Cloud.CloudService.V1.GetUserResponse.Parser, new[]{ "User" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.CreateUserRequest), global::Temporalio.Api.Cloud.CloudService.V1.CreateUserRequest.Parser, new[]{ "Spec", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.CreateUserResponse), global::Temporalio.Api.Cloud.CloudService.V1.CreateUserResponse.Parser, new[]{ "UserId", "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.UpdateUserRequest), global::Temporalio.Api.Cloud.CloudService.V1.UpdateUserRequest.Parser, new[]{ "UserId", "Spec", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.UpdateUserResponse), global::Temporalio.Api.Cloud.CloudService.V1.UpdateUserResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.DeleteUserRequest), global::Temporalio.Api.Cloud.CloudService.V1.DeleteUserRequest.Parser, new[]{ "UserId", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.DeleteUserResponse), global::Temporalio.Api.Cloud.CloudService.V1.DeleteUserResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.SetUserNamespaceAccessRequest), global::Temporalio.Api.Cloud.CloudService.V1.SetUserNamespaceAccessRequest.Parser, new[]{ "Namespace", "UserId", "Access", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.SetUserNamespaceAccessResponse), global::Temporalio.Api.Cloud.CloudService.V1.SetUserNamespaceAccessResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetAsyncOperationRequest), global::Temporalio.Api.Cloud.CloudService.V1.GetAsyncOperationRequest.Parser, new[]{ "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetAsyncOperationResponse), global::Temporalio.Api.Cloud.CloudService.V1.GetAsyncOperationResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.CreateNamespaceRequest), global::Temporalio.Api.Cloud.CloudService.V1.CreateNamespaceRequest.Parser, new[]{ "Spec", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.CreateNamespaceResponse), global::Temporalio.Api.Cloud.CloudService.V1.CreateNamespaceResponse.Parser, new[]{ "Namespace", "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetNamespacesRequest), global::Temporalio.Api.Cloud.CloudService.V1.GetNamespacesRequest.Parser, new[]{ "PageSize", "PageToken", "Name" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetNamespacesResponse), global::Temporalio.Api.Cloud.CloudService.V1.GetNamespacesResponse.Parser, new[]{ "Namespaces", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetNamespaceRequest), global::Temporalio.Api.Cloud.CloudService.V1.GetNamespaceRequest.Parser, new[]{ "Namespace" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetNamespaceResponse), global::Temporalio.Api.Cloud.CloudService.V1.GetNamespaceResponse.Parser, new[]{ "Namespace" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.UpdateNamespaceRequest), global::Temporalio.Api.Cloud.CloudService.V1.UpdateNamespaceRequest.Parser, new[]{ "Namespace", "Spec", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.UpdateNamespaceResponse), global::Temporalio.Api.Cloud.CloudService.V1.UpdateNamespaceResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.RenameCustomSearchAttributeRequest), global::Temporalio.Api.Cloud.CloudService.V1.RenameCustomSearchAttributeRequest.Parser, new[]{ "Namespace", "ExistingCustomSearchAttributeName", "NewCustomSearchAttributeName", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.RenameCustomSearchAttributeResponse), global::Temporalio.Api.Cloud.CloudService.V1.RenameCustomSearchAttributeResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.DeleteNamespaceRequest), global::Temporalio.Api.Cloud.CloudService.V1.DeleteNamespaceRequest.Parser, new[]{ "Namespace", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.DeleteNamespaceResponse), global::Temporalio.Api.Cloud.CloudService.V1.DeleteNamespaceResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.FailoverNamespaceRegionRequest), global::Temporalio.Api.Cloud.CloudService.V1.FailoverNamespaceRegionRequest.Parser, new[]{ "Namespace", "Region", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.FailoverNamespaceRegionResponse), global::Temporalio.Api.Cloud.CloudService.V1.FailoverNamespaceRegionResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.AddNamespaceRegionRequest), global::Temporalio.Api.Cloud.CloudService.V1.AddNamespaceRegionRequest.Parser, new[]{ "Namespace", "Region", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.AddNamespaceRegionResponse), global::Temporalio.Api.Cloud.CloudService.V1.AddNamespaceRegionResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetRegionsRequest), global::Temporalio.Api.Cloud.CloudService.V1.GetRegionsRequest.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetRegionsResponse), global::Temporalio.Api.Cloud.CloudService.V1.GetRegionsResponse.Parser, new[]{ "Regions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetRegionRequest), global::Temporalio.Api.Cloud.CloudService.V1.GetRegionRequest.Parser, new[]{ "Region" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetRegionResponse), global::Temporalio.Api.Cloud.CloudService.V1.GetRegionResponse.Parser, new[]{ "Region" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetApiKeysRequest), global::Temporalio.Api.Cloud.CloudService.V1.GetApiKeysRequest.Parser, new[]{ "PageSize", "PageToken", "OwnerId", "OwnerType" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetApiKeysResponse), global::Temporalio.Api.Cloud.CloudService.V1.GetApiKeysResponse.Parser, new[]{ "ApiKeys", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetApiKeyRequest), global::Temporalio.Api.Cloud.CloudService.V1.GetApiKeyRequest.Parser, new[]{ "KeyId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetApiKeyResponse), global::Temporalio.Api.Cloud.CloudService.V1.GetApiKeyResponse.Parser, new[]{ "ApiKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.CreateApiKeyRequest), global::Temporalio.Api.Cloud.CloudService.V1.CreateApiKeyRequest.Parser, new[]{ "Spec", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.CreateApiKeyResponse), global::Temporalio.Api.Cloud.CloudService.V1.CreateApiKeyResponse.Parser, new[]{ "KeyId", "Token", "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.UpdateApiKeyRequest), global::Temporalio.Api.Cloud.CloudService.V1.UpdateApiKeyRequest.Parser, new[]{ "KeyId", "Spec", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.UpdateApiKeyResponse), global::Temporalio.Api.Cloud.CloudService.V1.UpdateApiKeyResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.DeleteApiKeyRequest), global::Temporalio.Api.Cloud.CloudService.V1.DeleteApiKeyRequest.Parser, new[]{ "KeyId", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.DeleteApiKeyResponse), global::Temporalio.Api.Cloud.CloudService.V1.DeleteApiKeyResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetUserGroupsRequest), global::Temporalio.Api.Cloud.CloudService.V1.GetUserGroupsRequest.Parser, new[]{ "PageSize", "PageToken", "Namespace", "GroupName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetUserGroupsResponse), global::Temporalio.Api.Cloud.CloudService.V1.GetUserGroupsResponse.Parser, new[]{ "Groups", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetUserGroupRequest), global::Temporalio.Api.Cloud.CloudService.V1.GetUserGroupRequest.Parser, new[]{ "GroupId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetUserGroupResponse), global::Temporalio.Api.Cloud.CloudService.V1.GetUserGroupResponse.Parser, new[]{ "Group" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.CreateUserGroupRequest), global::Temporalio.Api.Cloud.CloudService.V1.CreateUserGroupRequest.Parser, new[]{ "Spec", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.CreateUserGroupResponse), global::Temporalio.Api.Cloud.CloudService.V1.CreateUserGroupResponse.Parser, new[]{ "GroupId", "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.UpdateUserGroupRequest), global::Temporalio.Api.Cloud.CloudService.V1.UpdateUserGroupRequest.Parser, new[]{ "GroupId", "Spec", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.UpdateUserGroupResponse), global::Temporalio.Api.Cloud.CloudService.V1.UpdateUserGroupResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.DeleteUserGroupRequest), global::Temporalio.Api.Cloud.CloudService.V1.DeleteUserGroupRequest.Parser, new[]{ "GroupId", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.DeleteUserGroupResponse), global::Temporalio.Api.Cloud.CloudService.V1.DeleteUserGroupResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.SetUserGroupNamespaceAccessRequest), global::Temporalio.Api.Cloud.CloudService.V1.SetUserGroupNamespaceAccessRequest.Parser, new[]{ "Namespace", "GroupId", "Access", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.SetUserGroupNamespaceAccessResponse), global::Temporalio.Api.Cloud.CloudService.V1.SetUserGroupNamespaceAccessResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.CreateServiceAccountRequest), global::Temporalio.Api.Cloud.CloudService.V1.CreateServiceAccountRequest.Parser, new[]{ "Spec", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.CreateServiceAccountResponse), global::Temporalio.Api.Cloud.CloudService.V1.CreateServiceAccountResponse.Parser, new[]{ "ServiceAccountId", "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetServiceAccountRequest), global::Temporalio.Api.Cloud.CloudService.V1.GetServiceAccountRequest.Parser, new[]{ "ServiceAccountId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetServiceAccountResponse), global::Temporalio.Api.Cloud.CloudService.V1.GetServiceAccountResponse.Parser, new[]{ "ServiceAccount" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetServiceAccountsRequest), global::Temporalio.Api.Cloud.CloudService.V1.GetServiceAccountsRequest.Parser, new[]{ "PageSize", "PageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.GetServiceAccountsResponse), global::Temporalio.Api.Cloud.CloudService.V1.GetServiceAccountsResponse.Parser, new[]{ "ServiceAccount", "NextPageToken" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.UpdateServiceAccountRequest), global::Temporalio.Api.Cloud.CloudService.V1.UpdateServiceAccountRequest.Parser, new[]{ "ServiceAccountId", "Spec", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.UpdateServiceAccountResponse), global::Temporalio.Api.Cloud.CloudService.V1.UpdateServiceAccountResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.DeleteServiceAccountRequest), global::Temporalio.Api.Cloud.CloudService.V1.DeleteServiceAccountRequest.Parser, new[]{ "ServiceAccountId", "ResourceVersion", "AsyncOperationId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.CloudService.V1.DeleteServiceAccountResponse), global::Temporalio.Api.Cloud.CloudService.V1.DeleteServiceAccountResponse.Parser, new[]{ "AsyncOperation" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class GetUsersRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUsersRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.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 GetUsersRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUsersRequest(GetUsersRequest other) : this() { + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + email_ = other.email_; + namespace_ = other.namespace_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUsersRequest Clone() { + return new GetUsersRequest(this); + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 1; + private int pageSize_; + /// + /// The requested size of the page to retrieve - optional. + /// Cannot exceed 1000. Defaults to 100. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 2; + private string pageToken_ = ""; + /// + /// The page token if this is continuing from another response - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 3; + private string email_ = ""; + /// + /// Filter users by email address - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Email { + get { return email_; } + set { + email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 4; + private string namespace_ = ""; + /// + /// Filter users by the namespace they have access to - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = 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 GetUsersRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetUsersRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + if (Email != other.Email) return false; + if (Namespace != other.Namespace) 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 (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (Email.Length != 0) hash ^= Email.GetHashCode(); + if (Namespace.Length != 0) hash ^= Namespace.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 (PageSize != 0) { + output.WriteRawTag(8); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (Email.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Email); + } + if (Namespace.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Namespace); + } + 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 (PageSize != 0) { + output.WriteRawTag(8); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (Email.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Email); + } + if (Namespace.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Namespace); + } + 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 (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (Email.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); + } + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetUsersRequest other) { + if (other == null) { + return; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + if (other.Email.Length != 0) { + Email = other.Email; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + _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: { + PageSize = input.ReadInt32(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + case 26: { + Email = input.ReadString(); + break; + } + case 34: { + Namespace = 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 8: { + PageSize = input.ReadInt32(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + case 26: { + Email = input.ReadString(); + break; + } + case 34: { + Namespace = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetUsersResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUsersResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.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 GetUsersResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUsersResponse(GetUsersResponse other) : this() { + users_ = other.users_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUsersResponse Clone() { + return new GetUsersResponse(this); + } + + /// Field number for the "users" field. + public const int UsersFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_users_codec + = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Cloud.Identity.V1.User.Parser); + private readonly pbc::RepeatedField users_ = new pbc::RepeatedField(); + /// + /// The list of users in ascending ids order + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Users { + get { return users_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// The next page's token + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string 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 GetUsersResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetUsersResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!users_.Equals(other.users_)) 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 ^= users_.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 + users_.WriteTo(output, _repeated_users_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(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) { + users_.WriteTo(ref output, _repeated_users_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(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 += users_.CalculateSize(_repeated_users_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetUsersResponse other) { + if (other == null) { + return; + } + users_.Add(other.users_); + 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: { + users_.AddEntriesFrom(input, _repeated_users_codec); + break; + } + case 18: { + NextPageToken = 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: { + users_.AddEntriesFrom(ref input, _repeated_users_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUserRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.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 GetUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserRequest(GetUserRequest other) : this() { + userId_ = other.userId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserRequest Clone() { + return new GetUserRequest(this); + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 1; + private string userId_ = ""; + /// + /// The id of the user to get + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = 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 GetUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UserId != other.UserId) 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 (UserId.Length != 0) hash ^= UserId.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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + 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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + 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 (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetUserRequest other) { + if (other == null) { + return; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + _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: { + UserId = 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: { + UserId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetUserResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUserResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[3]; } + } + + [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 GetUserResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserResponse(GetUserResponse other) : this() { + user_ = other.user_ != null ? other.user_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserResponse Clone() { + return new GetUserResponse(this); + } + + /// Field number for the "user" field. + public const int UserFieldNumber = 1; + private global::Temporalio.Api.Cloud.Identity.V1.User user_; + /// + /// The user + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.User User { + get { return user_; } + set { + user_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetUserResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetUserResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(User, other.User)) 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 (user_ != null) hash ^= User.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 (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + 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 (user_ != null) { + output.WriteRawTag(10); + output.WriteMessage(User); + } + 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 (user_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(User); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetUserResponse other) { + if (other == null) { + return; + } + if (other.user_ != null) { + if (user_ == null) { + User = new global::Temporalio.Api.Cloud.Identity.V1.User(); + } + User.MergeFrom(other.User); + } + _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 (user_ == null) { + User = new global::Temporalio.Api.Cloud.Identity.V1.User(); + } + input.ReadMessage(User); + 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 (user_ == null) { + User = new global::Temporalio.Api.Cloud.Identity.V1.User(); + } + input.ReadMessage(User); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateUserRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[4]; } + } + + [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 CreateUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateUserRequest(CreateUserRequest other) : this() { + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateUserRequest Clone() { + return new CreateUserRequest(this); + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 1; + private global::Temporalio.Api.Cloud.Identity.V1.UserSpec spec_; + /// + /// The spec for the user to invite + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.UserSpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 2; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation - optional + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 CreateUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Spec, other.Spec)) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (spec_ != null) hash ^= Spec.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (spec_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Spec); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AsyncOperationId); + } + 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 (spec_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Spec); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AsyncOperationId); + } + 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 (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateUserRequest other) { + if (other == null) { + return; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserSpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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 (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserSpec(); + } + input.ReadMessage(Spec); + break; + } + case 18: { + AsyncOperationId = 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 (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserSpec(); + } + input.ReadMessage(Spec); + break; + } + case 18: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateUserResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateUserResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[5]; } + } + + [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 CreateUserResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateUserResponse(CreateUserResponse other) : this() { + userId_ = other.userId_; + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateUserResponse Clone() { + return new CreateUserResponse(this); + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 1; + private string userId_ = ""; + /// + /// The id of the user that was invited + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 2; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateUserResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateUserResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UserId != other.UserId) return false; + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (asyncOperation_ != null) hash ^= AsyncOperation.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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (asyncOperation_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AsyncOperation); + } + 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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (asyncOperation_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AsyncOperation); + } + 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 (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateUserResponse other) { + if (other == null) { + return; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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: { + UserId = input.ReadString(); + break; + } + case 18: { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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: { + UserId = input.ReadString(); + break; + } + case 18: { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateUserRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[6]; } + } + + [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 UpdateUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateUserRequest(UpdateUserRequest other) : this() { + userId_ = other.userId_; + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateUserRequest Clone() { + return new UpdateUserRequest(this); + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 1; + private string userId_ = ""; + /// + /// The id of the user to update + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 2; + private global::Temporalio.Api.Cloud.Identity.V1.UserSpec spec_; + /// + /// The new user specification + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.UserSpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 3; + private string resourceVersion_ = ""; + /// + /// The version of the user for which this update is intended for + /// The latest version can be found in the GetUser operation response + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 4; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation - optional + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 UpdateUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UserId != other.UserId) return false; + if (!object.Equals(Spec, other.Spec)) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (spec_ != null) hash ^= Spec.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (spec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spec); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AsyncOperationId); + } + 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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (spec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spec); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AsyncOperationId); + } + 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 (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateUserRequest other) { + if (other == null) { + return; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserSpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + UserId = input.ReadString(); + break; + } + case 18: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserSpec(); + } + input.ReadMessage(Spec); + break; + } + case 26: { + ResourceVersion = input.ReadString(); + break; + } + case 34: { + AsyncOperationId = 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: { + UserId = input.ReadString(); + break; + } + case 18: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserSpec(); + } + input.ReadMessage(Spec); + break; + } + case 26: { + ResourceVersion = input.ReadString(); + break; + } + case 34: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateUserResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateUserResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[7]; } + } + + [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 UpdateUserResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateUserResponse(UpdateUserResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateUserResponse Clone() { + return new UpdateUserResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateUserResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateUserResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateUserResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteUserRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteUserRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[8]; } + } + + [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 DeleteUserRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteUserRequest(DeleteUserRequest other) : this() { + userId_ = other.userId_; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteUserRequest Clone() { + return new DeleteUserRequest(this); + } + + /// Field number for the "user_id" field. + public const int UserIdFieldNumber = 1; + private string userId_ = ""; + /// + /// The id of the user to delete + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 2; + private string resourceVersion_ = ""; + /// + /// The version of the user for which this delete is intended for + /// The latest version can be found in the GetUser operation response + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 3; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation - optional + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 DeleteUserRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteUserRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (UserId != other.UserId) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (UserId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(UserId); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteUserRequest other) { + if (other == null) { + return; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + UserId = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + AsyncOperationId = 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: { + UserId = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteUserResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteUserResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[9]; } + } + + [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 DeleteUserResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteUserResponse(DeleteUserResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteUserResponse Clone() { + return new DeleteUserResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteUserResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteUserResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteUserResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetUserNamespaceAccessRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetUserNamespaceAccessRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[10]; } + } + + [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 SetUserNamespaceAccessRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetUserNamespaceAccessRequest(SetUserNamespaceAccessRequest other) : this() { + namespace_ = other.namespace_; + userId_ = other.userId_; + access_ = other.access_ != null ? other.access_.Clone() : null; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetUserNamespaceAccessRequest Clone() { + return new SetUserNamespaceAccessRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + /// + /// The namespace to set permissions for + /// + [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 "user_id" field. + public const int UserIdFieldNumber = 2; + private string userId_ = ""; + /// + /// The id of the user to set permissions for + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string UserId { + get { return userId_; } + set { + userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "access" field. + public const int AccessFieldNumber = 3; + private global::Temporalio.Api.Cloud.Identity.V1.NamespaceAccess access_; + /// + /// The namespace access to assign the user + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.NamespaceAccess Access { + get { return access_; } + set { + access_ = value; + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 4; + private string resourceVersion_ = ""; + /// + /// The version of the user for which this update is intended for + /// The latest version can be found in the GetUser operation response + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 5; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation - optional + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 SetUserNamespaceAccessRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetUserNamespaceAccessRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (UserId != other.UserId) return false; + if (!object.Equals(Access, other.Access)) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode(); + if (access_ != null) hash ^= Access.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + if (access_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Access); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + 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 (UserId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(UserId); + } + if (access_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Access); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + 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 (UserId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); + } + if (access_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Access); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetUserNamespaceAccessRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.UserId.Length != 0) { + UserId = other.UserId; + } + if (other.access_ != null) { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.NamespaceAccess(); + } + Access.MergeFrom(other.Access); + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + UserId = input.ReadString(); + break; + } + case 26: { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.NamespaceAccess(); + } + input.ReadMessage(Access); + break; + } + case 34: { + ResourceVersion = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = 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: { + UserId = input.ReadString(); + break; + } + case 26: { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.NamespaceAccess(); + } + input.ReadMessage(Access); + break; + } + case 34: { + ResourceVersion = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetUserNamespaceAccessResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetUserNamespaceAccessResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[11]; } + } + + [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 SetUserNamespaceAccessResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetUserNamespaceAccessResponse(SetUserNamespaceAccessResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetUserNamespaceAccessResponse Clone() { + return new SetUserNamespaceAccessResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetUserNamespaceAccessResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetUserNamespaceAccessResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetUserNamespaceAccessResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetAsyncOperationRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAsyncOperationRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[12]; } + } + + [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 GetAsyncOperationRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAsyncOperationRequest(GetAsyncOperationRequest other) : this() { + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAsyncOperationRequest Clone() { + return new GetAsyncOperationRequest(this); + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 1; + private string asyncOperationId_ = ""; + /// + /// The id of the async operation to get + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 GetAsyncOperationRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetAsyncOperationRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AsyncOperationId != other.AsyncOperationId) 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 (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (AsyncOperationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(AsyncOperationId); + } + 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 (AsyncOperationId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(AsyncOperationId); + } + 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 (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetAsyncOperationRequest other) { + if (other == null) { + return; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + AsyncOperationId = 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: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetAsyncOperationResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetAsyncOperationResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.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 GetAsyncOperationResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAsyncOperationResponse(GetAsyncOperationResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetAsyncOperationResponse Clone() { + return new GetAsyncOperationResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetAsyncOperationResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetAsyncOperationResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetAsyncOperationResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateNamespaceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateNamespaceRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.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 CreateNamespaceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateNamespaceRequest(CreateNamespaceRequest other) : this() { + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateNamespaceRequest Clone() { + return new CreateNamespaceRequest(this); + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 2; + private global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec spec_; + /// + /// The namespace specification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 3; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation. + /// Optional, if not provided a random id will be generated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 CreateNamespaceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateNamespaceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Spec, other.Spec)) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (spec_ != null) hash ^= Spec.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (spec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spec); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (spec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spec); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateNamespaceRequest other) { + if (other == null) { + return; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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 18: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec(); + } + input.ReadMessage(Spec); + break; + } + case 26: { + AsyncOperationId = 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 18: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec(); + } + input.ReadMessage(Spec); + break; + } + case 26: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateNamespaceResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateNamespaceResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.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 CreateNamespaceResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateNamespaceResponse(CreateNamespaceResponse other) : this() { + namespace_ = other.namespace_; + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateNamespaceResponse Clone() { + return new CreateNamespaceResponse(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + /// + /// The namespace that was created. + /// + [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 "async_operation" field. + public const int AsyncOperationFieldNumber = 2; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateNamespaceResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateNamespaceResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateNamespaceResponse other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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: { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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: { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetNamespacesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetNamespacesRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.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 GetNamespacesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNamespacesRequest(GetNamespacesRequest other) : this() { + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + name_ = other.name_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNamespacesRequest Clone() { + return new GetNamespacesRequest(this); + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 1; + private int pageSize_; + /// + /// The requested size of the page to retrieve. + /// Cannot exceed 1000. + /// Optional, defaults to 100. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 2; + private string pageToken_ = ""; + /// + /// The page token if this is continuing from another response. + /// Optional, defaults to empty. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 3; + private string name_ = ""; + /// + /// Filter namespaces by their name. + /// Optional, defaults to empty. + /// + [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 GetNamespacesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetNamespacesRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) 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 (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.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 (PageSize != 0) { + output.WriteRawTag(8); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + 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 (PageSize != 0) { + output.WriteRawTag(8); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (Name.Length != 0) { + output.WriteRawTag(26); + 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 (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + 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(GetNamespacesRequest other) { + if (other == null) { + return; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + 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 8: { + PageSize = input.ReadInt32(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + case 26: { + 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 8: { + PageSize = input.ReadInt32(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + case 26: { + Name = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetNamespacesResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetNamespacesResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[17]; } + } + + [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 GetNamespacesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNamespacesResponse(GetNamespacesResponse other) : this() { + namespaces_ = other.namespaces_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNamespacesResponse Clone() { + return new GetNamespacesResponse(this); + } + + /// Field number for the "namespaces" field. + public const int NamespacesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_namespaces_codec + = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Cloud.Namespace.V1.Namespace.Parser); + private readonly pbc::RepeatedField namespaces_ = new pbc::RepeatedField(); + /// + /// The list of namespaces in ascending name order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Namespaces { + get { return namespaces_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// The next page's token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string 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 GetNamespacesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetNamespacesResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!namespaces_.Equals(other.namespaces_)) 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 ^= namespaces_.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 + namespaces_.WriteTo(output, _repeated_namespaces_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(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) { + namespaces_.WriteTo(ref output, _repeated_namespaces_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(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 += namespaces_.CalculateSize(_repeated_namespaces_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetNamespacesResponse other) { + if (other == null) { + return; + } + namespaces_.Add(other.namespaces_); + 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: { + namespaces_.AddEntriesFrom(input, _repeated_namespaces_codec); + break; + } + case 18: { + NextPageToken = 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: { + namespaces_.AddEntriesFrom(ref input, _repeated_namespaces_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetNamespaceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetNamespaceRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.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 GetNamespaceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNamespaceRequest(GetNamespaceRequest other) : this() { + namespace_ = other.namespace_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNamespaceRequest Clone() { + return new GetNamespaceRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + /// + /// The namespace to get. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Namespace { + get { return namespace_; } + set { + namespace_ = 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 GetNamespaceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetNamespaceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetNamespaceRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class GetNamespaceResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetNamespaceResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[19]; } + } + + [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 GetNamespaceResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNamespaceResponse(GetNamespaceResponse other) : this() { + namespace_ = other.namespace_ != null ? other.namespace_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetNamespaceResponse Clone() { + return new GetNamespaceResponse(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private global::Temporalio.Api.Cloud.Namespace.V1.Namespace namespace_; + /// + /// The namespace. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Namespace.V1.Namespace Namespace { + get { return namespace_; } + set { + namespace_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetNamespaceResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetNamespaceResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Namespace, other.Namespace)) 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_ != null) hash ^= Namespace.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_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Namespace); + } + 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_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Namespace); + } + 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_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Namespace); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetNamespaceResponse other) { + if (other == null) { + return; + } + if (other.namespace_ != null) { + if (namespace_ == null) { + Namespace = new global::Temporalio.Api.Cloud.Namespace.V1.Namespace(); + } + Namespace.MergeFrom(other.Namespace); + } + _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 (namespace_ == null) { + Namespace = new global::Temporalio.Api.Cloud.Namespace.V1.Namespace(); + } + input.ReadMessage(Namespace); + 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 (namespace_ == null) { + Namespace = new global::Temporalio.Api.Cloud.Namespace.V1.Namespace(); + } + input.ReadMessage(Namespace); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateNamespaceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateNamespaceRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[20]; } + } + + [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 UpdateNamespaceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateNamespaceRequest(UpdateNamespaceRequest other) : this() { + namespace_ = other.namespace_; + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateNamespaceRequest Clone() { + return new UpdateNamespaceRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + /// + /// The namespace to update. + /// + [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 "spec" field. + public const int SpecFieldNumber = 2; + private global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec spec_; + /// + /// The new namespace specification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 3; + private string resourceVersion_ = ""; + /// + /// The version of the namespace for which this update is intended for. + /// The latest version can be found in the namespace status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 4; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation. + /// Optional, if not provided a random id will be generated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 UpdateNamespaceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateNamespaceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (!object.Equals(Spec, other.Spec)) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (spec_ != null) hash ^= Spec.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (spec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spec); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AsyncOperationId); + } + 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 (spec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spec); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AsyncOperationId); + } + 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 (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateNamespaceRequest 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.Cloud.Namespace.V1.NamespaceSpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec(); + } + input.ReadMessage(Spec); + break; + } + case 26: { + ResourceVersion = input.ReadString(); + break; + } + case 34: { + AsyncOperationId = 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: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec(); + } + input.ReadMessage(Spec); + break; + } + case 26: { + ResourceVersion = input.ReadString(); + break; + } + case 34: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateNamespaceResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateNamespaceResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[21]; } + } + + [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 UpdateNamespaceResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateNamespaceResponse(UpdateNamespaceResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateNamespaceResponse Clone() { + return new UpdateNamespaceResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateNamespaceResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateNamespaceResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateNamespaceResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class RenameCustomSearchAttributeRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RenameCustomSearchAttributeRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[22]; } + } + + [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 RenameCustomSearchAttributeRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RenameCustomSearchAttributeRequest(RenameCustomSearchAttributeRequest other) : this() { + namespace_ = other.namespace_; + existingCustomSearchAttributeName_ = other.existingCustomSearchAttributeName_; + newCustomSearchAttributeName_ = other.newCustomSearchAttributeName_; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RenameCustomSearchAttributeRequest Clone() { + return new RenameCustomSearchAttributeRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + /// + /// The namespace to rename the custom search attribute for. + /// + [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 "existing_custom_search_attribute_name" field. + public const int ExistingCustomSearchAttributeNameFieldNumber = 2; + private string existingCustomSearchAttributeName_ = ""; + /// + /// The existing name of the custom search attribute to be renamed. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ExistingCustomSearchAttributeName { + get { return existingCustomSearchAttributeName_; } + set { + existingCustomSearchAttributeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "new_custom_search_attribute_name" field. + public const int NewCustomSearchAttributeNameFieldNumber = 3; + private string newCustomSearchAttributeName_ = ""; + /// + /// The new name of the custom search attribute. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string NewCustomSearchAttributeName { + get { return newCustomSearchAttributeName_; } + set { + newCustomSearchAttributeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 4; + private string resourceVersion_ = ""; + /// + /// The version of the namespace for which this update is intended for. + /// The latest version can be found in the namespace status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 5; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation. + /// Optional, if not provided a random id will be generated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 RenameCustomSearchAttributeRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RenameCustomSearchAttributeRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (ExistingCustomSearchAttributeName != other.ExistingCustomSearchAttributeName) return false; + if (NewCustomSearchAttributeName != other.NewCustomSearchAttributeName) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (ExistingCustomSearchAttributeName.Length != 0) hash ^= ExistingCustomSearchAttributeName.GetHashCode(); + if (NewCustomSearchAttributeName.Length != 0) hash ^= NewCustomSearchAttributeName.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (ExistingCustomSearchAttributeName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ExistingCustomSearchAttributeName); + } + if (NewCustomSearchAttributeName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(NewCustomSearchAttributeName); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + 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 (ExistingCustomSearchAttributeName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ExistingCustomSearchAttributeName); + } + if (NewCustomSearchAttributeName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(NewCustomSearchAttributeName); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + 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 (ExistingCustomSearchAttributeName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ExistingCustomSearchAttributeName); + } + if (NewCustomSearchAttributeName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NewCustomSearchAttributeName); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RenameCustomSearchAttributeRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.ExistingCustomSearchAttributeName.Length != 0) { + ExistingCustomSearchAttributeName = other.ExistingCustomSearchAttributeName; + } + if (other.NewCustomSearchAttributeName.Length != 0) { + NewCustomSearchAttributeName = other.NewCustomSearchAttributeName; + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + ExistingCustomSearchAttributeName = input.ReadString(); + break; + } + case 26: { + NewCustomSearchAttributeName = input.ReadString(); + break; + } + case 34: { + ResourceVersion = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = 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: { + ExistingCustomSearchAttributeName = input.ReadString(); + break; + } + case 26: { + NewCustomSearchAttributeName = input.ReadString(); + break; + } + case 34: { + ResourceVersion = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class RenameCustomSearchAttributeResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RenameCustomSearchAttributeResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[23]; } + } + + [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 RenameCustomSearchAttributeResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RenameCustomSearchAttributeResponse(RenameCustomSearchAttributeResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public RenameCustomSearchAttributeResponse Clone() { + return new RenameCustomSearchAttributeResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as RenameCustomSearchAttributeResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(RenameCustomSearchAttributeResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(RenameCustomSearchAttributeResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteNamespaceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteNamespaceRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[24]; } + } + + [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 DeleteNamespaceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteNamespaceRequest(DeleteNamespaceRequest other) : this() { + namespace_ = other.namespace_; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteNamespaceRequest Clone() { + return new DeleteNamespaceRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + /// + /// The namespace to delete. + /// + [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 "resource_version" field. + public const int ResourceVersionFieldNumber = 2; + private string resourceVersion_ = ""; + /// + /// The version of the namespace for which this delete is intended for. + /// The latest version can be found in the namespace status. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 3; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation. + /// Optional, if not provided a random id will be generated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 DeleteNamespaceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteNamespaceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteNamespaceRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + AsyncOperationId = 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: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteNamespaceResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteNamespaceResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[25]; } + } + + [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 DeleteNamespaceResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteNamespaceResponse(DeleteNamespaceResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteNamespaceResponse Clone() { + return new DeleteNamespaceResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteNamespaceResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteNamespaceResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteNamespaceResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class FailoverNamespaceRegionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FailoverNamespaceRegionRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[26]; } + } + + [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 FailoverNamespaceRegionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FailoverNamespaceRegionRequest(FailoverNamespaceRegionRequest other) : this() { + namespace_ = other.namespace_; + region_ = other.region_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FailoverNamespaceRegionRequest Clone() { + return new FailoverNamespaceRegionRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + /// + /// The namespace to failover. + /// + [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 "region" field. + public const int RegionFieldNumber = 2; + private string region_ = ""; + /// + /// The id of the region to failover to. + /// Must be a region that the namespace is currently available in. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Region { + get { return region_; } + set { + region_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 3; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 FailoverNamespaceRegionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FailoverNamespaceRegionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (Region != other.Region) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (Region.Length != 0) hash ^= Region.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (Region.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Region); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (Region.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Region); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (Region.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Region); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FailoverNamespaceRegionRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.Region.Length != 0) { + Region = other.Region; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + Region = input.ReadString(); + break; + } + case 26: { + AsyncOperationId = 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: { + Region = input.ReadString(); + break; + } + case 26: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class FailoverNamespaceRegionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FailoverNamespaceRegionResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[27]; } + } + + [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 FailoverNamespaceRegionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FailoverNamespaceRegionResponse(FailoverNamespaceRegionResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public FailoverNamespaceRegionResponse Clone() { + return new FailoverNamespaceRegionResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FailoverNamespaceRegionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FailoverNamespaceRegionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(FailoverNamespaceRegionResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class AddNamespaceRegionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddNamespaceRegionRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[28]; } + } + + [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 AddNamespaceRegionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddNamespaceRegionRequest(AddNamespaceRegionRequest other) : this() { + namespace_ = other.namespace_; + region_ = other.region_; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddNamespaceRegionRequest Clone() { + return new AddNamespaceRegionRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + /// + /// The namespace to add the region to. + /// + [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 "region" field. + public const int RegionFieldNumber = 2; + private string region_ = ""; + /// + /// The id of the standby region to add to the namespace. + /// The GetRegions API can be used to get the list of valid region ids. + /// Example: "aws-us-west-2". + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Region { + get { return region_; } + set { + region_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 3; + private string resourceVersion_ = ""; + /// + /// The version of the namespace for which this add region operation is intended for. + /// The latest version can be found in the GetNamespace operation response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 4; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 AddNamespaceRegionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddNamespaceRegionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (Region != other.Region) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (Region.Length != 0) hash ^= Region.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (Region.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Region); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AsyncOperationId); + } + 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 (Region.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Region); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AsyncOperationId); + } + 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 (Region.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Region); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddNamespaceRegionRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.Region.Length != 0) { + Region = other.Region; + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + Region = input.ReadString(); + break; + } + case 26: { + ResourceVersion = input.ReadString(); + break; + } + case 34: { + AsyncOperationId = 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: { + Region = input.ReadString(); + break; + } + case 26: { + ResourceVersion = input.ReadString(); + break; + } + case 34: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AddNamespaceRegionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddNamespaceRegionResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[29]; } + } + + [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 AddNamespaceRegionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddNamespaceRegionResponse(AddNamespaceRegionResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AddNamespaceRegionResponse Clone() { + return new AddNamespaceRegionResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AddNamespaceRegionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AddNamespaceRegionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AddNamespaceRegionResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetRegionsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRegionsRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[30]; } + } + + [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 GetRegionsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRegionsRequest(GetRegionsRequest other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRegionsRequest Clone() { + return new GetRegionsRequest(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRegionsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRegionsRequest 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(GetRegionsRequest 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 GetRegionsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRegionsResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[31]; } + } + + [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 GetRegionsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRegionsResponse(GetRegionsResponse other) : this() { + regions_ = other.regions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRegionsResponse Clone() { + return new GetRegionsResponse(this); + } + + /// Field number for the "regions" field. + public const int RegionsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_regions_codec + = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Cloud.Region.V1.Region.Parser); + private readonly pbc::RepeatedField regions_ = new pbc::RepeatedField(); + /// + /// The temporal cloud regions. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Regions { + get { return regions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRegionsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRegionsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!regions_.Equals(other.regions_)) 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 ^= regions_.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 + regions_.WriteTo(output, _repeated_regions_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) { + regions_.WriteTo(ref output, _repeated_regions_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 += regions_.CalculateSize(_repeated_regions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRegionsResponse other) { + if (other == null) { + return; + } + regions_.Add(other.regions_); + _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: { + regions_.AddEntriesFrom(input, _repeated_regions_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: { + regions_.AddEntriesFrom(ref input, _repeated_regions_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetRegionRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRegionRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[32]; } + } + + [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 GetRegionRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRegionRequest(GetRegionRequest other) : this() { + region_ = other.region_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRegionRequest Clone() { + return new GetRegionRequest(this); + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 1; + private string region_ = ""; + /// + /// The id of the region to get. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Region { + get { return region_; } + set { + region_ = 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 GetRegionRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRegionRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Region != other.Region) 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 (Region.Length != 0) hash ^= Region.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 (Region.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Region); + } + 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 (Region.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Region); + } + 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 (Region.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Region); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRegionRequest other) { + if (other == null) { + return; + } + if (other.Region.Length != 0) { + Region = other.Region; + } + _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: { + Region = 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: { + Region = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetRegionResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRegionResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[33]; } + } + + [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 GetRegionResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRegionResponse(GetRegionResponse other) : this() { + region_ = other.region_ != null ? other.region_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetRegionResponse Clone() { + return new GetRegionResponse(this); + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 1; + private global::Temporalio.Api.Cloud.Region.V1.Region region_; + /// + /// The temporal cloud region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Region.V1.Region Region { + get { return region_; } + set { + region_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetRegionResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetRegionResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Region, other.Region)) 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 (region_ != null) hash ^= Region.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 (region_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Region); + } + 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 (region_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Region); + } + 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 (region_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Region); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetRegionResponse other) { + if (other == null) { + return; + } + if (other.region_ != null) { + if (region_ == null) { + Region = new global::Temporalio.Api.Cloud.Region.V1.Region(); + } + Region.MergeFrom(other.Region); + } + _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 (region_ == null) { + Region = new global::Temporalio.Api.Cloud.Region.V1.Region(); + } + input.ReadMessage(Region); + 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 (region_ == null) { + Region = new global::Temporalio.Api.Cloud.Region.V1.Region(); + } + input.ReadMessage(Region); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetApiKeysRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetApiKeysRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[34]; } + } + + [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 GetApiKeysRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetApiKeysRequest(GetApiKeysRequest other) : this() { + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + ownerId_ = other.ownerId_; + ownerType_ = other.ownerType_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetApiKeysRequest Clone() { + return new GetApiKeysRequest(this); + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 1; + private int pageSize_; + /// + /// The requested size of the page to retrieve - optional. + /// Cannot exceed 1000. Defaults to 100. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 2; + private string pageToken_ = ""; + /// + /// The page token if this is continuing from another response - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "owner_id" field. + public const int OwnerIdFieldNumber = 3; + private string ownerId_ = ""; + /// + /// Filter api keys by owner id - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OwnerId { + get { return ownerId_; } + set { + ownerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "owner_type" field. + public const int OwnerTypeFieldNumber = 4; + private string ownerType_ = ""; + /// + /// Filter api keys by owner type - optional. + /// Possible values: user, service-account + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OwnerType { + get { return ownerType_; } + set { + ownerType_ = 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 GetApiKeysRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetApiKeysRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + if (OwnerId != other.OwnerId) return false; + if (OwnerType != other.OwnerType) 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 (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (OwnerId.Length != 0) hash ^= OwnerId.GetHashCode(); + if (OwnerType.Length != 0) hash ^= OwnerType.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 (PageSize != 0) { + output.WriteRawTag(8); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (OwnerId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OwnerId); + } + if (OwnerType.Length != 0) { + output.WriteRawTag(34); + output.WriteString(OwnerType); + } + 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 (PageSize != 0) { + output.WriteRawTag(8); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (OwnerId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OwnerId); + } + if (OwnerType.Length != 0) { + output.WriteRawTag(34); + output.WriteString(OwnerType); + } + 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 (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (OwnerId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OwnerId); + } + if (OwnerType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OwnerType); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetApiKeysRequest other) { + if (other == null) { + return; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + if (other.OwnerId.Length != 0) { + OwnerId = other.OwnerId; + } + if (other.OwnerType.Length != 0) { + OwnerType = other.OwnerType; + } + _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: { + PageSize = input.ReadInt32(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + case 26: { + OwnerId = input.ReadString(); + break; + } + case 34: { + OwnerType = 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 8: { + PageSize = input.ReadInt32(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + case 26: { + OwnerId = input.ReadString(); + break; + } + case 34: { + OwnerType = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetApiKeysResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetApiKeysResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[35]; } + } + + [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 GetApiKeysResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetApiKeysResponse(GetApiKeysResponse other) : this() { + apiKeys_ = other.apiKeys_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetApiKeysResponse Clone() { + return new GetApiKeysResponse(this); + } + + /// Field number for the "api_keys" field. + public const int ApiKeysFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_apiKeys_codec + = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Cloud.Identity.V1.ApiKey.Parser); + private readonly pbc::RepeatedField apiKeys_ = new pbc::RepeatedField(); + /// + /// The list of api keys in ascending id order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ApiKeys { + get { return apiKeys_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// The next page's token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string 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 GetApiKeysResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetApiKeysResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!apiKeys_.Equals(other.apiKeys_)) 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 ^= apiKeys_.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 + apiKeys_.WriteTo(output, _repeated_apiKeys_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(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) { + apiKeys_.WriteTo(ref output, _repeated_apiKeys_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(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 += apiKeys_.CalculateSize(_repeated_apiKeys_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetApiKeysResponse other) { + if (other == null) { + return; + } + apiKeys_.Add(other.apiKeys_); + 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: { + apiKeys_.AddEntriesFrom(input, _repeated_apiKeys_codec); + break; + } + case 18: { + NextPageToken = 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: { + apiKeys_.AddEntriesFrom(ref input, _repeated_apiKeys_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetApiKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetApiKeyRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[36]; } + } + + [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 GetApiKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetApiKeyRequest(GetApiKeyRequest other) : this() { + keyId_ = other.keyId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetApiKeyRequest Clone() { + return new GetApiKeyRequest(this); + } + + /// Field number for the "key_id" field. + public const int KeyIdFieldNumber = 1; + private string keyId_ = ""; + /// + /// The id of the api key to get. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyId { + get { return keyId_; } + set { + keyId_ = 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 GetApiKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetApiKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KeyId != other.KeyId) 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 (KeyId.Length != 0) hash ^= KeyId.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 (KeyId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KeyId); + } + 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 (KeyId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KeyId); + } + 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 (KeyId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetApiKeyRequest other) { + if (other == null) { + return; + } + if (other.KeyId.Length != 0) { + KeyId = other.KeyId; + } + _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: { + KeyId = 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: { + KeyId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetApiKeyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetApiKeyResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[37]; } + } + + [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 GetApiKeyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetApiKeyResponse(GetApiKeyResponse other) : this() { + apiKey_ = other.apiKey_ != null ? other.apiKey_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetApiKeyResponse Clone() { + return new GetApiKeyResponse(this); + } + + /// Field number for the "api_key" field. + public const int ApiKeyFieldNumber = 1; + private global::Temporalio.Api.Cloud.Identity.V1.ApiKey apiKey_; + /// + /// The api key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.ApiKey ApiKey { + get { return apiKey_; } + set { + apiKey_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetApiKeyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetApiKeyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ApiKey, other.ApiKey)) 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 (apiKey_ != null) hash ^= ApiKey.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 (apiKey_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ApiKey); + } + 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 (apiKey_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ApiKey); + } + 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 (apiKey_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetApiKeyResponse other) { + if (other == null) { + return; + } + if (other.apiKey_ != null) { + if (apiKey_ == null) { + ApiKey = new global::Temporalio.Api.Cloud.Identity.V1.ApiKey(); + } + ApiKey.MergeFrom(other.ApiKey); + } + _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 (apiKey_ == null) { + ApiKey = new global::Temporalio.Api.Cloud.Identity.V1.ApiKey(); + } + input.ReadMessage(ApiKey); + 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 (apiKey_ == null) { + ApiKey = new global::Temporalio.Api.Cloud.Identity.V1.ApiKey(); + } + input.ReadMessage(ApiKey); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateApiKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateApiKeyRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[38]; } + } + + [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 CreateApiKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateApiKeyRequest(CreateApiKeyRequest other) : this() { + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateApiKeyRequest Clone() { + return new CreateApiKeyRequest(this); + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 1; + private global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec spec_; + /// + /// The spec for the api key to create. + /// Create api key only supports service-account owner type for now. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 2; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 CreateApiKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateApiKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Spec, other.Spec)) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (spec_ != null) hash ^= Spec.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (spec_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Spec); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AsyncOperationId); + } + 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 (spec_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Spec); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AsyncOperationId); + } + 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 (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateApiKeyRequest other) { + if (other == null) { + return; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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 (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec(); + } + input.ReadMessage(Spec); + break; + } + case 18: { + AsyncOperationId = 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 (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec(); + } + input.ReadMessage(Spec); + break; + } + case 18: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateApiKeyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateApiKeyResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[39]; } + } + + [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 CreateApiKeyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateApiKeyResponse(CreateApiKeyResponse other) : this() { + keyId_ = other.keyId_; + token_ = other.token_; + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateApiKeyResponse Clone() { + return new CreateApiKeyResponse(this); + } + + /// Field number for the "key_id" field. + public const int KeyIdFieldNumber = 1; + private string keyId_ = ""; + /// + /// The id of the api key created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyId { + get { return keyId_; } + set { + keyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "token" field. + public const int TokenFieldNumber = 2; + private string token_ = ""; + /// + /// The token of the api key created. + /// This is a secret and should be stored securely. + /// It will not be retrievable after this response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Token { + get { return token_; } + set { + token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 3; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateApiKeyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateApiKeyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KeyId != other.KeyId) return false; + if (Token != other.Token) return false; + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (KeyId.Length != 0) hash ^= KeyId.GetHashCode(); + if (Token.Length != 0) hash ^= Token.GetHashCode(); + if (asyncOperation_ != null) hash ^= AsyncOperation.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 (KeyId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KeyId); + } + if (Token.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Token); + } + if (asyncOperation_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AsyncOperation); + } + 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 (KeyId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KeyId); + } + if (Token.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Token); + } + if (asyncOperation_ != null) { + output.WriteRawTag(26); + output.WriteMessage(AsyncOperation); + } + 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 (KeyId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyId); + } + if (Token.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); + } + if (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateApiKeyResponse other) { + if (other == null) { + return; + } + if (other.KeyId.Length != 0) { + KeyId = other.KeyId; + } + if (other.Token.Length != 0) { + Token = other.Token; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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: { + KeyId = input.ReadString(); + break; + } + case 18: { + Token = input.ReadString(); + break; + } + case 26: { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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: { + KeyId = input.ReadString(); + break; + } + case 18: { + Token = input.ReadString(); + break; + } + case 26: { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateApiKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateApiKeyRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[40]; } + } + + [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 UpdateApiKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateApiKeyRequest(UpdateApiKeyRequest other) : this() { + keyId_ = other.keyId_; + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateApiKeyRequest Clone() { + return new UpdateApiKeyRequest(this); + } + + /// Field number for the "key_id" field. + public const int KeyIdFieldNumber = 1; + private string keyId_ = ""; + /// + /// The id of the api key to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyId { + get { return keyId_; } + set { + keyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 2; + private global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec spec_; + /// + /// The new api key specification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 3; + private string resourceVersion_ = ""; + /// + /// The version of the api key for which this update is intended for. + /// The latest version can be found in the GetApiKey operation response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 4; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 UpdateApiKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateApiKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KeyId != other.KeyId) return false; + if (!object.Equals(Spec, other.Spec)) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (KeyId.Length != 0) hash ^= KeyId.GetHashCode(); + if (spec_ != null) hash ^= Spec.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (KeyId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KeyId); + } + if (spec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spec); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AsyncOperationId); + } + 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 (KeyId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KeyId); + } + if (spec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spec); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AsyncOperationId); + } + 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 (KeyId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyId); + } + if (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateApiKeyRequest other) { + if (other == null) { + return; + } + if (other.KeyId.Length != 0) { + KeyId = other.KeyId; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + KeyId = input.ReadString(); + break; + } + case 18: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec(); + } + input.ReadMessage(Spec); + break; + } + case 26: { + ResourceVersion = input.ReadString(); + break; + } + case 34: { + AsyncOperationId = 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: { + KeyId = input.ReadString(); + break; + } + case 18: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec(); + } + input.ReadMessage(Spec); + break; + } + case 26: { + ResourceVersion = input.ReadString(); + break; + } + case 34: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateApiKeyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateApiKeyResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[41]; } + } + + [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 UpdateApiKeyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateApiKeyResponse(UpdateApiKeyResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateApiKeyResponse Clone() { + return new UpdateApiKeyResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateApiKeyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateApiKeyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateApiKeyResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteApiKeyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteApiKeyRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[42]; } + } + + [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 DeleteApiKeyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteApiKeyRequest(DeleteApiKeyRequest other) : this() { + keyId_ = other.keyId_; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteApiKeyRequest Clone() { + return new DeleteApiKeyRequest(this); + } + + /// Field number for the "key_id" field. + public const int KeyIdFieldNumber = 1; + private string keyId_ = ""; + /// + /// The id of the api key to delete. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string KeyId { + get { return keyId_; } + set { + keyId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 2; + private string resourceVersion_ = ""; + /// + /// The version of the api key for which this delete is intended for. + /// The latest version can be found in the GetApiKey operation response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 3; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 DeleteApiKeyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteApiKeyRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (KeyId != other.KeyId) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (KeyId.Length != 0) hash ^= KeyId.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (KeyId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KeyId); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (KeyId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(KeyId); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (KeyId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(KeyId); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteApiKeyRequest other) { + if (other == null) { + return; + } + if (other.KeyId.Length != 0) { + KeyId = other.KeyId; + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + KeyId = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + AsyncOperationId = 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: { + KeyId = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteApiKeyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteApiKeyResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[43]; } + } + + [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 DeleteApiKeyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteApiKeyResponse(DeleteApiKeyResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteApiKeyResponse Clone() { + return new DeleteApiKeyResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteApiKeyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteApiKeyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteApiKeyResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetUserGroupsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUserGroupsRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[44]; } + } + + [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 GetUserGroupsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserGroupsRequest(GetUserGroupsRequest other) : this() { + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + namespace_ = other.namespace_; + groupName_ = other.groupName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserGroupsRequest Clone() { + return new GetUserGroupsRequest(this); + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 1; + private int pageSize_; + /// + /// The requested size of the page to retrieve - optional. + /// Cannot exceed 1000. Defaults to 100. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 2; + private string pageToken_ = ""; + /// + /// The page token if this is continuing from another response - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 3; + private string namespace_ = ""; + /// + /// Filter groups by the namespace they have access to - optional. + /// + [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 "group_name" field. + public const int GroupNameFieldNumber = 4; + private string groupName_ = ""; + /// + /// Filter groups by their name - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GroupName { + get { return groupName_; } + set { + groupName_ = 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 GetUserGroupsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetUserGroupsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) return false; + if (Namespace != other.Namespace) return false; + if (GroupName != other.GroupName) 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 (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.GetHashCode(); + if (Namespace.Length != 0) hash ^= Namespace.GetHashCode(); + if (GroupName.Length != 0) hash ^= GroupName.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 (PageSize != 0) { + output.WriteRawTag(8); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (Namespace.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Namespace); + } + if (GroupName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(GroupName); + } + 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 (PageSize != 0) { + output.WriteRawTag(8); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + if (Namespace.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Namespace); + } + if (GroupName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(GroupName); + } + 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 (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (Namespace.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace); + } + if (GroupName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GroupName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetUserGroupsRequest other) { + if (other == null) { + return; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.GroupName.Length != 0) { + GroupName = other.GroupName; + } + _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: { + PageSize = input.ReadInt32(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + case 26: { + Namespace = input.ReadString(); + break; + } + case 34: { + GroupName = 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 8: { + PageSize = input.ReadInt32(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + case 26: { + Namespace = input.ReadString(); + break; + } + case 34: { + GroupName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetUserGroupsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUserGroupsResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[45]; } + } + + [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 GetUserGroupsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserGroupsResponse(GetUserGroupsResponse other) : this() { + groups_ = other.groups_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserGroupsResponse Clone() { + return new GetUserGroupsResponse(this); + } + + /// Field number for the "groups" field. + public const int GroupsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_groups_codec + = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Cloud.Identity.V1.UserGroup.Parser); + private readonly pbc::RepeatedField groups_ = new pbc::RepeatedField(); + /// + /// The list of groups in ascending name order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Groups { + get { return groups_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// The next page's token. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string 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 GetUserGroupsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetUserGroupsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!groups_.Equals(other.groups_)) 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 ^= groups_.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 + groups_.WriteTo(output, _repeated_groups_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(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) { + groups_.WriteTo(ref output, _repeated_groups_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(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 += groups_.CalculateSize(_repeated_groups_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetUserGroupsResponse other) { + if (other == null) { + return; + } + groups_.Add(other.groups_); + 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: { + groups_.AddEntriesFrom(input, _repeated_groups_codec); + break; + } + case 18: { + NextPageToken = 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: { + groups_.AddEntriesFrom(ref input, _repeated_groups_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetUserGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUserGroupRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[46]; } + } + + [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 GetUserGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserGroupRequest(GetUserGroupRequest other) : this() { + groupId_ = other.groupId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserGroupRequest Clone() { + return new GetUserGroupRequest(this); + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 1; + private string groupId_ = ""; + /// + /// The id of the group to get. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GroupId { + get { return groupId_; } + set { + groupId_ = 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 GetUserGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetUserGroupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupId != other.GroupId) 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 (GroupId.Length != 0) hash ^= GroupId.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 (GroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GroupId); + } + 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 (GroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GroupId); + } + 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 (GroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GroupId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetUserGroupRequest other) { + if (other == null) { + return; + } + if (other.GroupId.Length != 0) { + GroupId = other.GroupId; + } + _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: { + GroupId = 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: { + GroupId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetUserGroupResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetUserGroupResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[47]; } + } + + [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 GetUserGroupResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserGroupResponse(GetUserGroupResponse other) : this() { + group_ = other.group_ != null ? other.group_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetUserGroupResponse Clone() { + return new GetUserGroupResponse(this); + } + + /// Field number for the "group" field. + public const int GroupFieldNumber = 1; + private global::Temporalio.Api.Cloud.Identity.V1.UserGroup group_; + /// + /// The group. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.UserGroup Group { + get { return group_; } + set { + group_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetUserGroupResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetUserGroupResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Group, other.Group)) 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 (group_ != null) hash ^= Group.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 (group_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Group); + } + 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 (group_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Group); + } + 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 (group_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Group); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetUserGroupResponse other) { + if (other == null) { + return; + } + if (other.group_ != null) { + if (group_ == null) { + Group = new global::Temporalio.Api.Cloud.Identity.V1.UserGroup(); + } + Group.MergeFrom(other.Group); + } + _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 (group_ == null) { + Group = new global::Temporalio.Api.Cloud.Identity.V1.UserGroup(); + } + input.ReadMessage(Group); + 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 (group_ == null) { + Group = new global::Temporalio.Api.Cloud.Identity.V1.UserGroup(); + } + input.ReadMessage(Group); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateUserGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateUserGroupRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[48]; } + } + + [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 CreateUserGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateUserGroupRequest(CreateUserGroupRequest other) : this() { + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateUserGroupRequest Clone() { + return new CreateUserGroupRequest(this); + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 1; + private global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec spec_; + /// + /// The spec for the group to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 2; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation. + /// Optional, if not provided a random id will be generated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 CreateUserGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateUserGroupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Spec, other.Spec)) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (spec_ != null) hash ^= Spec.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (spec_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Spec); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AsyncOperationId); + } + 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 (spec_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Spec); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AsyncOperationId); + } + 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 (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateUserGroupRequest other) { + if (other == null) { + return; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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 (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec(); + } + input.ReadMessage(Spec); + break; + } + case 18: { + AsyncOperationId = 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 (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec(); + } + input.ReadMessage(Spec); + break; + } + case 18: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateUserGroupResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateUserGroupResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[49]; } + } + + [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 CreateUserGroupResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateUserGroupResponse(CreateUserGroupResponse other) : this() { + groupId_ = other.groupId_; + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateUserGroupResponse Clone() { + return new CreateUserGroupResponse(this); + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 1; + private string groupId_ = ""; + /// + /// The id of the group that was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GroupId { + get { return groupId_; } + set { + groupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 2; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateUserGroupResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateUserGroupResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupId != other.GroupId) return false; + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (GroupId.Length != 0) hash ^= GroupId.GetHashCode(); + if (asyncOperation_ != null) hash ^= AsyncOperation.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 (GroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GroupId); + } + if (asyncOperation_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AsyncOperation); + } + 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 (GroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GroupId); + } + if (asyncOperation_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AsyncOperation); + } + 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 (GroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GroupId); + } + if (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateUserGroupResponse other) { + if (other == null) { + return; + } + if (other.GroupId.Length != 0) { + GroupId = other.GroupId; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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: { + GroupId = input.ReadString(); + break; + } + case 18: { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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: { + GroupId = input.ReadString(); + break; + } + case 18: { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateUserGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateUserGroupRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[50]; } + } + + [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 UpdateUserGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateUserGroupRequest(UpdateUserGroupRequest other) : this() { + groupId_ = other.groupId_; + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateUserGroupRequest Clone() { + return new UpdateUserGroupRequest(this); + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 1; + private string groupId_ = ""; + /// + /// The id of the group to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GroupId { + get { return groupId_; } + set { + groupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 2; + private global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec spec_; + /// + /// The new group specification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 3; + private string resourceVersion_ = ""; + /// + /// The version of the group for which this update is intended for. + /// The latest version can be found in the GetGroup operation response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 4; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation. + /// Optional, if not provided a random id will be generated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 UpdateUserGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateUserGroupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupId != other.GroupId) return false; + if (!object.Equals(Spec, other.Spec)) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (GroupId.Length != 0) hash ^= GroupId.GetHashCode(); + if (spec_ != null) hash ^= Spec.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (GroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GroupId); + } + if (spec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spec); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AsyncOperationId); + } + 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 (GroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GroupId); + } + if (spec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spec); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AsyncOperationId); + } + 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 (GroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GroupId); + } + if (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateUserGroupRequest other) { + if (other == null) { + return; + } + if (other.GroupId.Length != 0) { + GroupId = other.GroupId; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + GroupId = input.ReadString(); + break; + } + case 18: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec(); + } + input.ReadMessage(Spec); + break; + } + case 26: { + ResourceVersion = input.ReadString(); + break; + } + case 34: { + AsyncOperationId = 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: { + GroupId = input.ReadString(); + break; + } + case 18: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec(); + } + input.ReadMessage(Spec); + break; + } + case 26: { + ResourceVersion = input.ReadString(); + break; + } + case 34: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateUserGroupResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateUserGroupResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.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 UpdateUserGroupResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateUserGroupResponse(UpdateUserGroupResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateUserGroupResponse Clone() { + return new UpdateUserGroupResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateUserGroupResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateUserGroupResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateUserGroupResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteUserGroupRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteUserGroupRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[52]; } + } + + [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 DeleteUserGroupRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteUserGroupRequest(DeleteUserGroupRequest other) : this() { + groupId_ = other.groupId_; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteUserGroupRequest Clone() { + return new DeleteUserGroupRequest(this); + } + + /// Field number for the "group_id" field. + public const int GroupIdFieldNumber = 1; + private string groupId_ = ""; + /// + /// The id of the group to delete. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GroupId { + get { return groupId_; } + set { + groupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 2; + private string resourceVersion_ = ""; + /// + /// The version of the group for which this delete is intended for. + /// The latest version can be found in the GetGroup operation response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 3; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation. + /// Optional, if not provided a random id will be generated. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 DeleteUserGroupRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteUserGroupRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (GroupId != other.GroupId) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (GroupId.Length != 0) hash ^= GroupId.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (GroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GroupId); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (GroupId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(GroupId); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (GroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GroupId); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteUserGroupRequest other) { + if (other == null) { + return; + } + if (other.GroupId.Length != 0) { + GroupId = other.GroupId; + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + GroupId = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + AsyncOperationId = 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: { + GroupId = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteUserGroupResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteUserGroupResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[53]; } + } + + [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 DeleteUserGroupResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteUserGroupResponse(DeleteUserGroupResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteUserGroupResponse Clone() { + return new DeleteUserGroupResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteUserGroupResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteUserGroupResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteUserGroupResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetUserGroupNamespaceAccessRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetUserGroupNamespaceAccessRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[54]; } + } + + [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 SetUserGroupNamespaceAccessRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetUserGroupNamespaceAccessRequest(SetUserGroupNamespaceAccessRequest other) : this() { + namespace_ = other.namespace_; + groupId_ = other.groupId_; + access_ = other.access_ != null ? other.access_.Clone() : null; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetUserGroupNamespaceAccessRequest Clone() { + return new SetUserGroupNamespaceAccessRequest(this); + } + + /// Field number for the "namespace" field. + public const int NamespaceFieldNumber = 1; + private string namespace_ = ""; + /// + /// The namespace to set permissions for. + /// + [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 "group_id" field. + public const int GroupIdFieldNumber = 2; + private string groupId_ = ""; + /// + /// The id of the group to set permissions for. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GroupId { + get { return groupId_; } + set { + groupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "access" field. + public const int AccessFieldNumber = 3; + private global::Temporalio.Api.Cloud.Identity.V1.NamespaceAccess access_; + /// + /// The namespace access to assign the group. If left empty, the group will be removed from the namespace access. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.NamespaceAccess Access { + get { return access_; } + set { + access_ = value; + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 4; + private string resourceVersion_ = ""; + /// + /// The version of the group for which this update is intended for. + /// The latest version can be found in the GetGroup operation response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 5; + private string asyncOperationId_ = ""; + /// + /// The id to use for this async operation - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 SetUserGroupNamespaceAccessRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetUserGroupNamespaceAccessRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace != other.Namespace) return false; + if (GroupId != other.GroupId) return false; + if (!object.Equals(Access, other.Access)) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (GroupId.Length != 0) hash ^= GroupId.GetHashCode(); + if (access_ != null) hash ^= Access.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (GroupId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GroupId); + } + if (access_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Access); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + 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 (GroupId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(GroupId); + } + if (access_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Access); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + 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 (GroupId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GroupId); + } + if (access_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Access); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetUserGroupNamespaceAccessRequest other) { + if (other == null) { + return; + } + if (other.Namespace.Length != 0) { + Namespace = other.Namespace; + } + if (other.GroupId.Length != 0) { + GroupId = other.GroupId; + } + if (other.access_ != null) { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.NamespaceAccess(); + } + Access.MergeFrom(other.Access); + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + GroupId = input.ReadString(); + break; + } + case 26: { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.NamespaceAccess(); + } + input.ReadMessage(Access); + break; + } + case 34: { + ResourceVersion = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = 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: { + GroupId = input.ReadString(); + break; + } + case 26: { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.NamespaceAccess(); + } + input.ReadMessage(Access); + break; + } + case 34: { + ResourceVersion = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class SetUserGroupNamespaceAccessResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetUserGroupNamespaceAccessResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[55]; } + } + + [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 SetUserGroupNamespaceAccessResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetUserGroupNamespaceAccessResponse(SetUserGroupNamespaceAccessResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetUserGroupNamespaceAccessResponse Clone() { + return new SetUserGroupNamespaceAccessResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetUserGroupNamespaceAccessResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetUserGroupNamespaceAccessResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetUserGroupNamespaceAccessResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateServiceAccountRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateServiceAccountRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[56]; } + } + + [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 CreateServiceAccountRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateServiceAccountRequest(CreateServiceAccountRequest other) : this() { + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateServiceAccountRequest Clone() { + return new CreateServiceAccountRequest(this); + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 1; + private global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec spec_; + /// + /// The spec of the service account to create. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 2; + private string asyncOperationId_ = ""; + /// + /// The ID to use for this async operation - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 CreateServiceAccountRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateServiceAccountRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(Spec, other.Spec)) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (spec_ != null) hash ^= Spec.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (spec_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Spec); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AsyncOperationId); + } + 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 (spec_ != null) { + output.WriteRawTag(10); + output.WriteMessage(Spec); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AsyncOperationId); + } + 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 (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateServiceAccountRequest other) { + if (other == null) { + return; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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 (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec(); + } + input.ReadMessage(Spec); + break; + } + case 18: { + AsyncOperationId = 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 (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec(); + } + input.ReadMessage(Spec); + break; + } + case 18: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class CreateServiceAccountResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateServiceAccountResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[57]; } + } + + [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 CreateServiceAccountResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateServiceAccountResponse(CreateServiceAccountResponse other) : this() { + serviceAccountId_ = other.serviceAccountId_; + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CreateServiceAccountResponse Clone() { + return new CreateServiceAccountResponse(this); + } + + /// Field number for the "service_account_id" field. + public const int ServiceAccountIdFieldNumber = 1; + private string serviceAccountId_ = ""; + /// + /// The ID of the created service account. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAccountId { + get { return serviceAccountId_; } + set { + serviceAccountId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 2; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CreateServiceAccountResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CreateServiceAccountResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServiceAccountId != other.ServiceAccountId) return false; + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (ServiceAccountId.Length != 0) hash ^= ServiceAccountId.GetHashCode(); + if (asyncOperation_ != null) hash ^= AsyncOperation.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 (ServiceAccountId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ServiceAccountId); + } + if (asyncOperation_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AsyncOperation); + } + 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 (ServiceAccountId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ServiceAccountId); + } + if (asyncOperation_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AsyncOperation); + } + 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 (ServiceAccountId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAccountId); + } + if (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CreateServiceAccountResponse other) { + if (other == null) { + return; + } + if (other.ServiceAccountId.Length != 0) { + ServiceAccountId = other.ServiceAccountId; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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: { + ServiceAccountId = input.ReadString(); + break; + } + case 18: { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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: { + ServiceAccountId = input.ReadString(); + break; + } + case 18: { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetServiceAccountRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetServiceAccountRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[58]; } + } + + [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 GetServiceAccountRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceAccountRequest(GetServiceAccountRequest other) : this() { + serviceAccountId_ = other.serviceAccountId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceAccountRequest Clone() { + return new GetServiceAccountRequest(this); + } + + /// Field number for the "service_account_id" field. + public const int ServiceAccountIdFieldNumber = 1; + private string serviceAccountId_ = ""; + /// + /// ID of the service account to retrieve. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAccountId { + get { return serviceAccountId_; } + set { + serviceAccountId_ = 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 GetServiceAccountRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetServiceAccountRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServiceAccountId != other.ServiceAccountId) 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 (ServiceAccountId.Length != 0) hash ^= ServiceAccountId.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 (ServiceAccountId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ServiceAccountId); + } + 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 (ServiceAccountId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ServiceAccountId); + } + 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 (ServiceAccountId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAccountId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetServiceAccountRequest other) { + if (other == null) { + return; + } + if (other.ServiceAccountId.Length != 0) { + ServiceAccountId = other.ServiceAccountId; + } + _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: { + ServiceAccountId = 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: { + ServiceAccountId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetServiceAccountResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetServiceAccountResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[59]; } + } + + [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 GetServiceAccountResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceAccountResponse(GetServiceAccountResponse other) : this() { + serviceAccount_ = other.serviceAccount_ != null ? other.serviceAccount_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceAccountResponse Clone() { + return new GetServiceAccountResponse(this); + } + + /// Field number for the "service_account" field. + public const int ServiceAccountFieldNumber = 1; + private global::Temporalio.Api.Cloud.Identity.V1.ServiceAccount serviceAccount_; + /// + /// The service account retrieved. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.ServiceAccount ServiceAccount { + get { return serviceAccount_; } + set { + serviceAccount_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as GetServiceAccountResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetServiceAccountResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(ServiceAccount, other.ServiceAccount)) 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 (serviceAccount_ != null) hash ^= ServiceAccount.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 (serviceAccount_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceAccount); + } + 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 (serviceAccount_ != null) { + output.WriteRawTag(10); + output.WriteMessage(ServiceAccount); + } + 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 (serviceAccount_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ServiceAccount); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetServiceAccountResponse other) { + if (other == null) { + return; + } + if (other.serviceAccount_ != null) { + if (serviceAccount_ == null) { + ServiceAccount = new global::Temporalio.Api.Cloud.Identity.V1.ServiceAccount(); + } + ServiceAccount.MergeFrom(other.ServiceAccount); + } + _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 (serviceAccount_ == null) { + ServiceAccount = new global::Temporalio.Api.Cloud.Identity.V1.ServiceAccount(); + } + input.ReadMessage(ServiceAccount); + 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 (serviceAccount_ == null) { + ServiceAccount = new global::Temporalio.Api.Cloud.Identity.V1.ServiceAccount(); + } + input.ReadMessage(ServiceAccount); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetServiceAccountsRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetServiceAccountsRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[60]; } + } + + [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 GetServiceAccountsRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceAccountsRequest(GetServiceAccountsRequest other) : this() { + pageSize_ = other.pageSize_; + pageToken_ = other.pageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceAccountsRequest Clone() { + return new GetServiceAccountsRequest(this); + } + + /// Field number for the "page_size" field. + public const int PageSizeFieldNumber = 1; + private int pageSize_; + /// + /// The requested size of the page to retrieve - optional. + /// Cannot exceed 1000. Defaults to 100. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PageSize { + get { return pageSize_; } + set { + pageSize_ = value; + } + } + + /// Field number for the "page_token" field. + public const int PageTokenFieldNumber = 2; + private string pageToken_ = ""; + /// + /// The page token if this is continuing from another response - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string PageToken { + get { return pageToken_; } + set { + pageToken_ = 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 GetServiceAccountsRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetServiceAccountsRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (PageSize != other.PageSize) return false; + if (PageToken != other.PageToken) 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 (PageSize != 0) hash ^= PageSize.GetHashCode(); + if (PageToken.Length != 0) hash ^= PageToken.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 (PageSize != 0) { + output.WriteRawTag(8); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + 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 (PageSize != 0) { + output.WriteRawTag(8); + output.WriteInt32(PageSize); + } + if (PageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(PageToken); + } + 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 (PageSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageSize); + } + if (PageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(PageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetServiceAccountsRequest other) { + if (other == null) { + return; + } + if (other.PageSize != 0) { + PageSize = other.PageSize; + } + if (other.PageToken.Length != 0) { + PageToken = other.PageToken; + } + _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: { + PageSize = input.ReadInt32(); + break; + } + case 18: { + PageToken = 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 8: { + PageSize = input.ReadInt32(); + break; + } + case 18: { + PageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class GetServiceAccountsResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetServiceAccountsResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[61]; } + } + + [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 GetServiceAccountsResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceAccountsResponse(GetServiceAccountsResponse other) : this() { + serviceAccount_ = other.serviceAccount_.Clone(); + nextPageToken_ = other.nextPageToken_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public GetServiceAccountsResponse Clone() { + return new GetServiceAccountsResponse(this); + } + + /// Field number for the "service_account" field. + public const int ServiceAccountFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_serviceAccount_codec + = pb::FieldCodec.ForMessage(10, global::Temporalio.Api.Cloud.Identity.V1.ServiceAccount.Parser); + private readonly pbc::RepeatedField serviceAccount_ = new pbc::RepeatedField(); + /// + /// The list of service accounts in ascending ID order. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField ServiceAccount { + get { return serviceAccount_; } + } + + /// Field number for the "next_page_token" field. + public const int NextPageTokenFieldNumber = 2; + private string nextPageToken_ = ""; + /// + /// The next page token, set if there is another page. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string 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 GetServiceAccountsResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(GetServiceAccountsResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!serviceAccount_.Equals(other.serviceAccount_)) 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 ^= serviceAccount_.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 + serviceAccount_.WriteTo(output, _repeated_serviceAccount_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(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) { + serviceAccount_.WriteTo(ref output, _repeated_serviceAccount_codec); + if (NextPageToken.Length != 0) { + output.WriteRawTag(18); + output.WriteString(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 += serviceAccount_.CalculateSize(_repeated_serviceAccount_codec); + if (NextPageToken.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(NextPageToken); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(GetServiceAccountsResponse other) { + if (other == null) { + return; + } + serviceAccount_.Add(other.serviceAccount_); + 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: { + serviceAccount_.AddEntriesFrom(input, _repeated_serviceAccount_codec); + break; + } + case 18: { + NextPageToken = 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: { + serviceAccount_.AddEntriesFrom(ref input, _repeated_serviceAccount_codec); + break; + } + case 18: { + NextPageToken = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateServiceAccountRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateServiceAccountRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[62]; } + } + + [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 UpdateServiceAccountRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateServiceAccountRequest(UpdateServiceAccountRequest other) : this() { + serviceAccountId_ = other.serviceAccountId_; + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateServiceAccountRequest Clone() { + return new UpdateServiceAccountRequest(this); + } + + /// Field number for the "service_account_id" field. + public const int ServiceAccountIdFieldNumber = 1; + private string serviceAccountId_ = ""; + /// + /// The ID of the service account to update. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAccountId { + get { return serviceAccountId_; } + set { + serviceAccountId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 2; + private global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec spec_; + /// + /// The new service account specification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 3; + private string resourceVersion_ = ""; + /// + /// The version of the service account for which this update is intended for. + /// The latest version can be found in the GetServiceAccount response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 4; + private string asyncOperationId_ = ""; + /// + /// The ID to use for this async operation - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 UpdateServiceAccountRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateServiceAccountRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServiceAccountId != other.ServiceAccountId) return false; + if (!object.Equals(Spec, other.Spec)) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (ServiceAccountId.Length != 0) hash ^= ServiceAccountId.GetHashCode(); + if (spec_ != null) hash ^= Spec.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (ServiceAccountId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ServiceAccountId); + } + if (spec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spec); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AsyncOperationId); + } + 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 (ServiceAccountId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ServiceAccountId); + } + if (spec_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Spec); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(AsyncOperationId); + } + 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 (ServiceAccountId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAccountId); + } + if (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateServiceAccountRequest other) { + if (other == null) { + return; + } + if (other.ServiceAccountId.Length != 0) { + ServiceAccountId = other.ServiceAccountId; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + ServiceAccountId = input.ReadString(); + break; + } + case 18: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec(); + } + input.ReadMessage(Spec); + break; + } + case 26: { + ResourceVersion = input.ReadString(); + break; + } + case 34: { + AsyncOperationId = 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: { + ServiceAccountId = input.ReadString(); + break; + } + case 18: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec(); + } + input.ReadMessage(Spec); + break; + } + case 26: { + ResourceVersion = input.ReadString(); + break; + } + case 34: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class UpdateServiceAccountResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateServiceAccountResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[63]; } + } + + [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 UpdateServiceAccountResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateServiceAccountResponse(UpdateServiceAccountResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateServiceAccountResponse Clone() { + return new UpdateServiceAccountResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateServiceAccountResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateServiceAccountResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateServiceAccountResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteServiceAccountRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteServiceAccountRequest()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[64]; } + } + + [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 DeleteServiceAccountRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteServiceAccountRequest(DeleteServiceAccountRequest other) : this() { + serviceAccountId_ = other.serviceAccountId_; + resourceVersion_ = other.resourceVersion_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteServiceAccountRequest Clone() { + return new DeleteServiceAccountRequest(this); + } + + /// Field number for the "service_account_id" field. + public const int ServiceAccountIdFieldNumber = 1; + private string serviceAccountId_ = ""; + /// + /// The ID of the service account to delete; + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ServiceAccountId { + get { return serviceAccountId_; } + set { + serviceAccountId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 2; + private string resourceVersion_ = ""; + /// + /// The version of the service account for which this update is intended for. + /// The latest version can be found in the GetServiceAccount response. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 3; + private string asyncOperationId_ = ""; + /// + /// The ID to use for this async operation - optional. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 DeleteServiceAccountRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteServiceAccountRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ServiceAccountId != other.ServiceAccountId) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (ServiceAccountId.Length != 0) hash ^= ServiceAccountId.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (ServiceAccountId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ServiceAccountId); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (ServiceAccountId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ServiceAccountId); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(26); + output.WriteString(AsyncOperationId); + } + 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 (ServiceAccountId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceAccountId); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteServiceAccountRequest other) { + if (other == null) { + return; + } + if (other.ServiceAccountId.Length != 0) { + ServiceAccountId = other.ServiceAccountId; + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + ServiceAccountId = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + AsyncOperationId = 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: { + ServiceAccountId = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class DeleteServiceAccountResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteServiceAccountResponse()); + 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.Cloud.CloudService.V1.RequestResponseReflection.Descriptor.MessageTypes[65]; } + } + + [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 DeleteServiceAccountResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteServiceAccountResponse(DeleteServiceAccountResponse other) : this() { + asyncOperation_ = other.asyncOperation_ != null ? other.asyncOperation_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteServiceAccountResponse Clone() { + return new DeleteServiceAccountResponse(this); + } + + /// Field number for the "async_operation" field. + public const int AsyncOperationFieldNumber = 1; + private global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation asyncOperation_; + /// + /// The async operation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation AsyncOperation { + get { return asyncOperation_; } + set { + asyncOperation_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteServiceAccountResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteServiceAccountResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AsyncOperation, other.AsyncOperation)) 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 (asyncOperation_ != null) hash ^= AsyncOperation.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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AsyncOperation); + } + 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 (asyncOperation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AsyncOperation); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteServiceAccountResponse other) { + if (other == null) { + return; + } + if (other.asyncOperation_ != null) { + if (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + AsyncOperation.MergeFrom(other.AsyncOperation); + } + _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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + 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 (asyncOperation_ == null) { + AsyncOperation = new global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation(); + } + input.ReadMessage(AsyncOperation); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Temporalio/Api/Cloud/CloudService/V1/Service.cs b/src/Temporalio/Api/Cloud/CloudService/V1/Service.cs new file mode 100644 index 00000000..b6a4a6a6 --- /dev/null +++ b/src/Temporalio/Api/Cloud/CloudService/V1/Service.cs @@ -0,0 +1,178 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: temporal/api/cloud/cloudservice/v1/service.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.Cloud.CloudService.V1 { + + /// Holder for reflection information generated from temporal/api/cloud/cloudservice/v1/service.proto + public static partial class ServiceReflection { + + #region Descriptor + /// File descriptor for temporal/api/cloud/cloudservice/v1/service.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static ServiceReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "CjB0ZW1wb3JhbC9hcGkvY2xvdWQvY2xvdWRzZXJ2aWNlL3YxL3NlcnZpY2Uu", + "cHJvdG8SInRlbXBvcmFsLmFwaS5jbG91ZC5jbG91ZHNlcnZpY2UudjEaOXRl", + "bXBvcmFsL2FwaS9jbG91ZC9jbG91ZHNlcnZpY2UvdjEvcmVxdWVzdF9yZXNw", + "b25zZS5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bzLOLgoM", + "Q2xvdWRTZXJ2aWNlEosBCghHZXRVc2VycxIzLnRlbXBvcmFsLmFwaS5jbG91", + "ZC5jbG91ZHNlcnZpY2UudjEuR2V0VXNlcnNSZXF1ZXN0GjQudGVtcG9yYWwu", + "YXBpLmNsb3VkLmNsb3Vkc2VydmljZS52MS5HZXRVc2Vyc1Jlc3BvbnNlIhSC", + "0+STAg4SDC9jbG91ZC91c2VycxKSAQoHR2V0VXNlchIyLnRlbXBvcmFsLmFw", + "aS5jbG91ZC5jbG91ZHNlcnZpY2UudjEuR2V0VXNlclJlcXVlc3QaMy50ZW1w", + "b3JhbC5hcGkuY2xvdWQuY2xvdWRzZXJ2aWNlLnYxLkdldFVzZXJSZXNwb25z", + "ZSIegtPkkwIYEhYvY2xvdWQvdXNlcnMve3VzZXJfaWR9EpQBCgpDcmVhdGVV", + "c2VyEjUudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2VydmljZS52MS5DcmVh", + "dGVVc2VyUmVxdWVzdBo2LnRlbXBvcmFsLmFwaS5jbG91ZC5jbG91ZHNlcnZp", + "Y2UudjEuQ3JlYXRlVXNlclJlc3BvbnNlIheC0+STAhEiDC9jbG91ZC91c2Vy", + "czoBKhKeAQoKVXBkYXRlVXNlchI1LnRlbXBvcmFsLmFwaS5jbG91ZC5jbG91", + "ZHNlcnZpY2UudjEuVXBkYXRlVXNlclJlcXVlc3QaNi50ZW1wb3JhbC5hcGku", + "Y2xvdWQuY2xvdWRzZXJ2aWNlLnYxLlVwZGF0ZVVzZXJSZXNwb25zZSIhgtPk", + "kwIbIhYvY2xvdWQvdXNlcnMve3VzZXJfaWR9OgEqEpsBCgpEZWxldGVVc2Vy", + "EjUudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2VydmljZS52MS5EZWxldGVV", + "c2VyUmVxdWVzdBo2LnRlbXBvcmFsLmFwaS5jbG91ZC5jbG91ZHNlcnZpY2Uu", + "djEuRGVsZXRlVXNlclJlc3BvbnNlIh6C0+STAhgqFi9jbG91ZC91c2Vycy97", + "dXNlcl9pZH0S4AEKFlNldFVzZXJOYW1lc3BhY2VBY2Nlc3MSQS50ZW1wb3Jh", + "bC5hcGkuY2xvdWQuY2xvdWRzZXJ2aWNlLnYxLlNldFVzZXJOYW1lc3BhY2VB", + "Y2Nlc3NSZXF1ZXN0GkIudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2Vydmlj", + "ZS52MS5TZXRVc2VyTmFtZXNwYWNlQWNjZXNzUmVzcG9uc2UiP4LT5JMCOSI0", + "L2Nsb3VkL25hbWVzcGFjZXMve25hbWVzcGFjZX0vdXNlcnMve3VzZXJfaWR9", + "L2FjY2VzczoBKhLAAQoRR2V0QXN5bmNPcGVyYXRpb24SPC50ZW1wb3JhbC5h", + "cGkuY2xvdWQuY2xvdWRzZXJ2aWNlLnYxLkdldEFzeW5jT3BlcmF0aW9uUmVx", + "dWVzdBo9LnRlbXBvcmFsLmFwaS5jbG91ZC5jbG91ZHNlcnZpY2UudjEuR2V0", + "QXN5bmNPcGVyYXRpb25SZXNwb25zZSIugtPkkwIoEiYvY2xvdWQvb3BlcmF0", + "aW9ucy97YXN5bmNfb3BlcmF0aW9uX2lkfRKoAQoPQ3JlYXRlTmFtZXNwYWNl", + "EjoudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2VydmljZS52MS5DcmVhdGVO", + "YW1lc3BhY2VSZXF1ZXN0GjsudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2Vy", + "dmljZS52MS5DcmVhdGVOYW1lc3BhY2VSZXNwb25zZSIcgtPkkwIWIhEvY2xv", + "dWQvbmFtZXNwYWNlczoBKhKfAQoNR2V0TmFtZXNwYWNlcxI4LnRlbXBvcmFs", + "LmFwaS5jbG91ZC5jbG91ZHNlcnZpY2UudjEuR2V0TmFtZXNwYWNlc1JlcXVl", + "c3QaOS50ZW1wb3JhbC5hcGkuY2xvdWQuY2xvdWRzZXJ2aWNlLnYxLkdldE5h", + "bWVzcGFjZXNSZXNwb25zZSIZgtPkkwITEhEvY2xvdWQvbmFtZXNwYWNlcxKo", + "AQoMR2V0TmFtZXNwYWNlEjcudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2Vy", + "dmljZS52MS5HZXROYW1lc3BhY2VSZXF1ZXN0GjgudGVtcG9yYWwuYXBpLmNs", + "b3VkLmNsb3Vkc2VydmljZS52MS5HZXROYW1lc3BhY2VSZXNwb25zZSIlgtPk", + "kwIfEh0vY2xvdWQvbmFtZXNwYWNlcy97bmFtZXNwYWNlfRK0AQoPVXBkYXRl", + "TmFtZXNwYWNlEjoudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2VydmljZS52", + "MS5VcGRhdGVOYW1lc3BhY2VSZXF1ZXN0GjsudGVtcG9yYWwuYXBpLmNsb3Vk", + "LmNsb3Vkc2VydmljZS52MS5VcGRhdGVOYW1lc3BhY2VSZXNwb25zZSIogtPk", + "kwIiIh0vY2xvdWQvbmFtZXNwYWNlcy97bmFtZXNwYWNlfToBKhL3AQobUmVu", + "YW1lQ3VzdG9tU2VhcmNoQXR0cmlidXRlEkYudGVtcG9yYWwuYXBpLmNsb3Vk", + "LmNsb3Vkc2VydmljZS52MS5SZW5hbWVDdXN0b21TZWFyY2hBdHRyaWJ1dGVS", + "ZXF1ZXN0GkcudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2VydmljZS52MS5S", + "ZW5hbWVDdXN0b21TZWFyY2hBdHRyaWJ1dGVSZXNwb25zZSJHgtPkkwJBIjwv", + "Y2xvdWQvbmFtZXNwYWNlcy97bmFtZXNwYWNlfS9yZW5hbWUtY3VzdG9tLXNl", + "YXJjaC1hdHRyaWJ1dGU6ASoSsQEKD0RlbGV0ZU5hbWVzcGFjZRI6LnRlbXBv", + "cmFsLmFwaS5jbG91ZC5jbG91ZHNlcnZpY2UudjEuRGVsZXRlTmFtZXNwYWNl", + "UmVxdWVzdBo7LnRlbXBvcmFsLmFwaS5jbG91ZC5jbG91ZHNlcnZpY2UudjEu", + "RGVsZXRlTmFtZXNwYWNlUmVzcG9uc2UiJYLT5JMCHyodL2Nsb3VkL25hbWVz", + "cGFjZXMve25hbWVzcGFjZX0S3AEKF0ZhaWxvdmVyTmFtZXNwYWNlUmVnaW9u", + "EkIudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2VydmljZS52MS5GYWlsb3Zl", + "ck5hbWVzcGFjZVJlZ2lvblJlcXVlc3QaQy50ZW1wb3JhbC5hcGkuY2xvdWQu", + "Y2xvdWRzZXJ2aWNlLnYxLkZhaWxvdmVyTmFtZXNwYWNlUmVnaW9uUmVzcG9u", + "c2UiOILT5JMCMiItL2Nsb3VkL25hbWVzcGFjZXMve25hbWVzcGFjZX0vZmFp", + "bG92ZXItcmVnaW9uOgEqEsgBChJBZGROYW1lc3BhY2VSZWdpb24SPS50ZW1w", + "b3JhbC5hcGkuY2xvdWQuY2xvdWRzZXJ2aWNlLnYxLkFkZE5hbWVzcGFjZVJl", + "Z2lvblJlcXVlc3QaPi50ZW1wb3JhbC5hcGkuY2xvdWQuY2xvdWRzZXJ2aWNl", + "LnYxLkFkZE5hbWVzcGFjZVJlZ2lvblJlc3BvbnNlIjOC0+STAi0iKC9jbG91", + "ZC9uYW1lc3BhY2VzL3tuYW1lc3BhY2V9L2FkZC1yZWdpb246ASoSkwEKCkdl", + "dFJlZ2lvbnMSNS50ZW1wb3JhbC5hcGkuY2xvdWQuY2xvdWRzZXJ2aWNlLnYx", + "LkdldFJlZ2lvbnNSZXF1ZXN0GjYudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vk", + "c2VydmljZS52MS5HZXRSZWdpb25zUmVzcG9uc2UiFoLT5JMCEBIOL2Nsb3Vk", + "L3JlZ2lvbnMSmQEKCUdldFJlZ2lvbhI0LnRlbXBvcmFsLmFwaS5jbG91ZC5j", + "bG91ZHNlcnZpY2UudjEuR2V0UmVnaW9uUmVxdWVzdBo1LnRlbXBvcmFsLmFw", + "aS5jbG91ZC5jbG91ZHNlcnZpY2UudjEuR2V0UmVnaW9uUmVzcG9uc2UiH4LT", + "5JMCGRIXL2Nsb3VkL3JlZ2lvbnMve3JlZ2lvbn0SlAEKCkdldEFwaUtleXMS", + "NS50ZW1wb3JhbC5hcGkuY2xvdWQuY2xvdWRzZXJ2aWNlLnYxLkdldEFwaUtl", + "eXNSZXF1ZXN0GjYudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2VydmljZS52", + "MS5HZXRBcGlLZXlzUmVzcG9uc2UiF4LT5JMCERIPL2Nsb3VkL2FwaS1rZXlz", + "EpoBCglHZXRBcGlLZXkSNC50ZW1wb3JhbC5hcGkuY2xvdWQuY2xvdWRzZXJ2", + "aWNlLnYxLkdldEFwaUtleVJlcXVlc3QaNS50ZW1wb3JhbC5hcGkuY2xvdWQu", + "Y2xvdWRzZXJ2aWNlLnYxLkdldEFwaUtleVJlc3BvbnNlIiCC0+STAhoSGC9j", + "bG91ZC9hcGkta2V5cy97a2V5X2lkfRKdAQoMQ3JlYXRlQXBpS2V5EjcudGVt", + "cG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2VydmljZS52MS5DcmVhdGVBcGlLZXlS", + "ZXF1ZXN0GjgudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2VydmljZS52MS5D", + "cmVhdGVBcGlLZXlSZXNwb25zZSIagtPkkwIUIg8vY2xvdWQvYXBpLWtleXM6", + "ASoSpgEKDFVwZGF0ZUFwaUtleRI3LnRlbXBvcmFsLmFwaS5jbG91ZC5jbG91", + "ZHNlcnZpY2UudjEuVXBkYXRlQXBpS2V5UmVxdWVzdBo4LnRlbXBvcmFsLmFw", + "aS5jbG91ZC5jbG91ZHNlcnZpY2UudjEuVXBkYXRlQXBpS2V5UmVzcG9uc2Ui", + "I4LT5JMCHSIYL2Nsb3VkL2FwaS1rZXlzL3trZXlfaWR9OgEqEqMBCgxEZWxl", + "dGVBcGlLZXkSNy50ZW1wb3JhbC5hcGkuY2xvdWQuY2xvdWRzZXJ2aWNlLnYx", + "LkRlbGV0ZUFwaUtleVJlcXVlc3QaOC50ZW1wb3JhbC5hcGkuY2xvdWQuY2xv", + "dWRzZXJ2aWNlLnYxLkRlbGV0ZUFwaUtleVJlc3BvbnNlIiCC0+STAhoqGC9j", + "bG91ZC9hcGkta2V5cy97a2V5X2lkfRKgAQoNR2V0VXNlckdyb3VwcxI4LnRl", + "bXBvcmFsLmFwaS5jbG91ZC5jbG91ZHNlcnZpY2UudjEuR2V0VXNlckdyb3Vw", + "c1JlcXVlc3QaOS50ZW1wb3JhbC5hcGkuY2xvdWQuY2xvdWRzZXJ2aWNlLnYx", + "LkdldFVzZXJHcm91cHNSZXNwb25zZSIagtPkkwIUEhIvY2xvdWQvdXNlci1n", + "cm91cHMSqAEKDEdldFVzZXJHcm91cBI3LnRlbXBvcmFsLmFwaS5jbG91ZC5j", + "bG91ZHNlcnZpY2UudjEuR2V0VXNlckdyb3VwUmVxdWVzdBo4LnRlbXBvcmFs", + "LmFwaS5jbG91ZC5jbG91ZHNlcnZpY2UudjEuR2V0VXNlckdyb3VwUmVzcG9u", + "c2UiJYLT5JMCHxIdL2Nsb3VkL3VzZXItZ3JvdXBzL3tncm91cF9pZH0SqQEK", + "D0NyZWF0ZVVzZXJHcm91cBI6LnRlbXBvcmFsLmFwaS5jbG91ZC5jbG91ZHNl", + "cnZpY2UudjEuQ3JlYXRlVXNlckdyb3VwUmVxdWVzdBo7LnRlbXBvcmFsLmFw", + "aS5jbG91ZC5jbG91ZHNlcnZpY2UudjEuQ3JlYXRlVXNlckdyb3VwUmVzcG9u", + "c2UiHYLT5JMCFyISL2Nsb3VkL3VzZXItZ3JvdXBzOgEqErQBCg9VcGRhdGVV", + "c2VyR3JvdXASOi50ZW1wb3JhbC5hcGkuY2xvdWQuY2xvdWRzZXJ2aWNlLnYx", + "LlVwZGF0ZVVzZXJHcm91cFJlcXVlc3QaOy50ZW1wb3JhbC5hcGkuY2xvdWQu", + "Y2xvdWRzZXJ2aWNlLnYxLlVwZGF0ZVVzZXJHcm91cFJlc3BvbnNlIiiC0+ST", + "AiIiHS9jbG91ZC91c2VyLWdyb3Vwcy97Z3JvdXBfaWR9OgEqErEBCg9EZWxl", + "dGVVc2VyR3JvdXASOi50ZW1wb3JhbC5hcGkuY2xvdWQuY2xvdWRzZXJ2aWNl", + "LnYxLkRlbGV0ZVVzZXJHcm91cFJlcXVlc3QaOy50ZW1wb3JhbC5hcGkuY2xv", + "dWQuY2xvdWRzZXJ2aWNlLnYxLkRlbGV0ZVVzZXJHcm91cFJlc3BvbnNlIiWC", + "0+STAh8qHS9jbG91ZC91c2VyLWdyb3Vwcy97Z3JvdXBfaWR9EvYBChtTZXRV", + "c2VyR3JvdXBOYW1lc3BhY2VBY2Nlc3MSRi50ZW1wb3JhbC5hcGkuY2xvdWQu", + "Y2xvdWRzZXJ2aWNlLnYxLlNldFVzZXJHcm91cE5hbWVzcGFjZUFjY2Vzc1Jl", + "cXVlc3QaRy50ZW1wb3JhbC5hcGkuY2xvdWQuY2xvdWRzZXJ2aWNlLnYxLlNl", + "dFVzZXJHcm91cE5hbWVzcGFjZUFjY2Vzc1Jlc3BvbnNlIkaC0+STAkAiOy9j", + "bG91ZC9uYW1lc3BhY2VzL3tuYW1lc3BhY2V9L3VzZXItZ3JvdXBzL3tncm91", + "cF9pZH0vYWNjZXNzOgEqEr0BChRDcmVhdGVTZXJ2aWNlQWNjb3VudBI/LnRl", + "bXBvcmFsLmFwaS5jbG91ZC5jbG91ZHNlcnZpY2UudjEuQ3JlYXRlU2Vydmlj", + "ZUFjY291bnRSZXF1ZXN0GkAudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2Vy", + "dmljZS52MS5DcmVhdGVTZXJ2aWNlQWNjb3VudFJlc3BvbnNlIiKC0+STAhwi", + "Fy9jbG91ZC9zZXJ2aWNlLWFjY291bnRzOgEqEsYBChFHZXRTZXJ2aWNlQWNj", + "b3VudBI8LnRlbXBvcmFsLmFwaS5jbG91ZC5jbG91ZHNlcnZpY2UudjEuR2V0", + "U2VydmljZUFjY291bnRSZXF1ZXN0Gj0udGVtcG9yYWwuYXBpLmNsb3VkLmNs", + "b3Vkc2VydmljZS52MS5HZXRTZXJ2aWNlQWNjb3VudFJlc3BvbnNlIjSC0+ST", + "Ai4SLC9jbG91ZC9zZXJ2aWNlLWFjY291bnRzL3tzZXJ2aWNlX2FjY291bnRf", + "aWR9ErQBChJHZXRTZXJ2aWNlQWNjb3VudHMSPS50ZW1wb3JhbC5hcGkuY2xv", + "dWQuY2xvdWRzZXJ2aWNlLnYxLkdldFNlcnZpY2VBY2NvdW50c1JlcXVlc3Qa", + "Pi50ZW1wb3JhbC5hcGkuY2xvdWQuY2xvdWRzZXJ2aWNlLnYxLkdldFNlcnZp", + "Y2VBY2NvdW50c1Jlc3BvbnNlIh+C0+STAhkSFy9jbG91ZC9zZXJ2aWNlLWFj", + "Y291bnRzEtIBChRVcGRhdGVTZXJ2aWNlQWNjb3VudBI/LnRlbXBvcmFsLmFw", + "aS5jbG91ZC5jbG91ZHNlcnZpY2UudjEuVXBkYXRlU2VydmljZUFjY291bnRS", + "ZXF1ZXN0GkAudGVtcG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2VydmljZS52MS5V", + "cGRhdGVTZXJ2aWNlQWNjb3VudFJlc3BvbnNlIjeC0+STAjEiLC9jbG91ZC9z", + "ZXJ2aWNlLWFjY291bnRzL3tzZXJ2aWNlX2FjY291bnRfaWR9OgEqEs8BChRE", + "ZWxldGVTZXJ2aWNlQWNjb3VudBI/LnRlbXBvcmFsLmFwaS5jbG91ZC5jbG91", + "ZHNlcnZpY2UudjEuRGVsZXRlU2VydmljZUFjY291bnRSZXF1ZXN0GkAudGVt", + "cG9yYWwuYXBpLmNsb3VkLmNsb3Vkc2VydmljZS52MS5EZWxldGVTZXJ2aWNl", + "QWNjb3VudFJlc3BvbnNlIjSC0+STAi4qLC9jbG91ZC9zZXJ2aWNlLWFjY291", + "bnRzL3tzZXJ2aWNlX2FjY291bnRfaWR9QsABCiVpby50ZW1wb3JhbC5hcGku", + "Y2xvdWQuY2xvdWRzZXJ2aWNlLnYxQgxTZXJ2aWNlUHJvdG9QAVo1Z28udGVt", + "cG9yYWwuaW8vYXBpL2Nsb3VkL2Nsb3Vkc2VydmljZS92MTtjbG91ZHNlcnZp", + "Y2WqAiRUZW1wb3JhbGlvLkFwaS5DbG91ZC5DbG91ZFNlcnZpY2UuVjHqAihU", + "ZW1wb3JhbGlvOjpBcGk6OkNsb3VkOjpDbG91ZFNlcnZpY2U6OlYxYgZwcm90", + "bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Temporalio.Api.Cloud.CloudService.V1.RequestResponseReflection.Descriptor, global::Temporalio.Api.Dependencies.Google.Api.AnnotationsReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, null)); + } + #endregion + + } +} + +#endregion Designer generated code diff --git a/src/Temporalio/Api/Cloud/Identity/V1/Message.cs b/src/Temporalio/Api/Cloud/Identity/V1/Message.cs new file mode 100644 index 00000000..22a0743e --- /dev/null +++ b/src/Temporalio/Api/Cloud/Identity/V1/Message.cs @@ -0,0 +1,4045 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: temporal/api/cloud/identity/v1/message.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.Cloud.Identity.V1 { + + /// Holder for reflection information generated from temporal/api/cloud/identity/v1/message.proto + public static partial class MessageReflection { + + #region Descriptor + /// File descriptor for temporal/api/cloud/identity/v1/message.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MessageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cix0ZW1wb3JhbC9hcGkvY2xvdWQvaWRlbnRpdHkvdjEvbWVzc2FnZS5wcm90", + "bxIedGVtcG9yYWwuYXBpLmNsb3VkLmlkZW50aXR5LnYxGh9nb29nbGUvcHJv", + "dG9idWYvdGltZXN0YW1wLnByb3RvIh0KDUFjY291bnRBY2Nlc3MSDAoEcm9s", + "ZRgBIAEoCSIlCg9OYW1lc3BhY2VBY2Nlc3MSEgoKcGVybWlzc2lvbhgBIAEo", + "CSKVAgoGQWNjZXNzEkUKDmFjY291bnRfYWNjZXNzGAEgASgLMi0udGVtcG9y", + "YWwuYXBpLmNsb3VkLmlkZW50aXR5LnYxLkFjY291bnRBY2Nlc3MSWQoSbmFt", + "ZXNwYWNlX2FjY2Vzc2VzGAIgAygLMj0udGVtcG9yYWwuYXBpLmNsb3VkLmlk", + "ZW50aXR5LnYxLkFjY2Vzcy5OYW1lc3BhY2VBY2Nlc3Nlc0VudHJ5GmkKFk5h", + "bWVzcGFjZUFjY2Vzc2VzRW50cnkSCwoDa2V5GAEgASgJEj4KBXZhbHVlGAIg", + "ASgLMi8udGVtcG9yYWwuYXBpLmNsb3VkLmlkZW50aXR5LnYxLk5hbWVzcGFj", + "ZUFjY2VzczoCOAEiUQoIVXNlclNwZWMSDQoFZW1haWwYASABKAkSNgoGYWNj", + "ZXNzGAIgASgLMiYudGVtcG9yYWwuYXBpLmNsb3VkLmlkZW50aXR5LnYxLkFj", + "Y2VzcyJwCgpJbnZpdGF0aW9uEjAKDGNyZWF0ZWRfdGltZRgBIAEoCzIaLmdv", + "b2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASMAoMZXhwaXJlZF90aW1lGAIgASgL", + "MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCK5AgoEVXNlchIKCgJpZBgB", + "IAEoCRIYChByZXNvdXJjZV92ZXJzaW9uGAIgASgJEjYKBHNwZWMYAyABKAsy", + "KC50ZW1wb3JhbC5hcGkuY2xvdWQuaWRlbnRpdHkudjEuVXNlclNwZWMSDQoF", + "c3RhdGUYBCABKAkSGgoSYXN5bmNfb3BlcmF0aW9uX2lkGAUgASgJEj4KCmlu", + "dml0YXRpb24YBiABKAsyKi50ZW1wb3JhbC5hcGkuY2xvdWQuaWRlbnRpdHku", + "djEuSW52aXRhdGlvbhIwCgxjcmVhdGVkX3RpbWUYByABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wEjYKEmxhc3RfbW9kaWZpZWRfdGltZRgIIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiVQoNVXNlckdyb3VwU3Bl", + "YxIMCgRuYW1lGAEgASgJEjYKBmFjY2VzcxgCIAEoCzImLnRlbXBvcmFsLmFw", + "aS5jbG91ZC5pZGVudGl0eS52MS5BY2Nlc3MigwIKCVVzZXJHcm91cBIKCgJp", + "ZBgBIAEoCRIYChByZXNvdXJjZV92ZXJzaW9uGAIgASgJEjsKBHNwZWMYAyAB", + "KAsyLS50ZW1wb3JhbC5hcGkuY2xvdWQuaWRlbnRpdHkudjEuVXNlckdyb3Vw", + "U3BlYxINCgVzdGF0ZRgEIAEoCRIaChJhc3luY19vcGVyYXRpb25faWQYBSAB", + "KAkSMAoMY3JlYXRlZF90aW1lGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRp", + "bWVzdGFtcBI2ChJsYXN0X21vZGlmaWVkX3RpbWUYByABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wIo0CCg5TZXJ2aWNlQWNjb3VudBIKCgJpZBgB", + "IAEoCRIYChByZXNvdXJjZV92ZXJzaW9uGAIgASgJEkAKBHNwZWMYAyABKAsy", + "Mi50ZW1wb3JhbC5hcGkuY2xvdWQuaWRlbnRpdHkudjEuU2VydmljZUFjY291", + "bnRTcGVjEg0KBXN0YXRlGAQgASgJEhoKEmFzeW5jX29wZXJhdGlvbl9pZBgF", + "IAEoCRIwCgxjcmVhdGVkX3RpbWUYBiABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wEjYKEmxhc3RfbW9kaWZpZWRfdGltZRgHIAEoCzIaLmdvb2ds", + "ZS5wcm90b2J1Zi5UaW1lc3RhbXAibwoSU2VydmljZUFjY291bnRTcGVjEgwK", + "BG5hbWUYASABKAkSNgoGYWNjZXNzGAIgASgLMiYudGVtcG9yYWwuYXBpLmNs", + "b3VkLmlkZW50aXR5LnYxLkFjY2VzcxITCgtkZXNjcmlwdGlvbhgDIAEoCSL9", + "AQoGQXBpS2V5EgoKAmlkGAEgASgJEhgKEHJlc291cmNlX3ZlcnNpb24YAiAB", + "KAkSOAoEc3BlYxgDIAEoCzIqLnRlbXBvcmFsLmFwaS5jbG91ZC5pZGVudGl0", + "eS52MS5BcGlLZXlTcGVjEg0KBXN0YXRlGAQgASgJEhoKEmFzeW5jX29wZXJh", + "dGlvbl9pZBgFIAEoCRIwCgxjcmVhdGVkX3RpbWUYBiABKAsyGi5nb29nbGUu", + "cHJvdG9idWYuVGltZXN0YW1wEjYKEmxhc3RfbW9kaWZpZWRfdGltZRgHIAEo", + "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAioAEKCkFwaUtleVNwZWMS", + "EAoIb3duZXJfaWQYASABKAkSEgoKb3duZXJfdHlwZRgCIAEoCRIUCgxkaXNw", + "bGF5X25hbWUYAyABKAkSEwoLZGVzY3JpcHRpb24YBCABKAkSLwoLZXhwaXJ5", + "X3RpbWUYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhAKCGRp", + "c2FibGVkGAYgASgIQqwBCiFpby50ZW1wb3JhbC5hcGkuY2xvdWQuaWRlbnRp", + "dHkudjFCDE1lc3NhZ2VQcm90b1ABWi1nby50ZW1wb3JhbC5pby9hcGkvY2xv", + "dWQvaWRlbnRpdHkvdjE7aWRlbnRpdHmqAiBUZW1wb3JhbGlvLkFwaS5DbG91", + "ZC5JZGVudGl0eS5WMeoCJFRlbXBvcmFsaW86OkFwaTo6Q2xvdWQ6OklkZW50", + "aXR5OjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Identity.V1.AccountAccess), global::Temporalio.Api.Cloud.Identity.V1.AccountAccess.Parser, new[]{ "Role" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Identity.V1.NamespaceAccess), global::Temporalio.Api.Cloud.Identity.V1.NamespaceAccess.Parser, new[]{ "Permission" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Identity.V1.Access), global::Temporalio.Api.Cloud.Identity.V1.Access.Parser, new[]{ "AccountAccess", "NamespaceAccesses" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Identity.V1.UserSpec), global::Temporalio.Api.Cloud.Identity.V1.UserSpec.Parser, new[]{ "Email", "Access" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Identity.V1.Invitation), global::Temporalio.Api.Cloud.Identity.V1.Invitation.Parser, new[]{ "CreatedTime", "ExpiredTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Identity.V1.User), global::Temporalio.Api.Cloud.Identity.V1.User.Parser, new[]{ "Id", "ResourceVersion", "Spec", "State", "AsyncOperationId", "Invitation", "CreatedTime", "LastModifiedTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec), global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec.Parser, new[]{ "Name", "Access" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Identity.V1.UserGroup), global::Temporalio.Api.Cloud.Identity.V1.UserGroup.Parser, new[]{ "Id", "ResourceVersion", "Spec", "State", "AsyncOperationId", "CreatedTime", "LastModifiedTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Identity.V1.ServiceAccount), global::Temporalio.Api.Cloud.Identity.V1.ServiceAccount.Parser, new[]{ "Id", "ResourceVersion", "Spec", "State", "AsyncOperationId", "CreatedTime", "LastModifiedTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec), global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec.Parser, new[]{ "Name", "Access", "Description" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Identity.V1.ApiKey), global::Temporalio.Api.Cloud.Identity.V1.ApiKey.Parser, new[]{ "Id", "ResourceVersion", "Spec", "State", "AsyncOperationId", "CreatedTime", "LastModifiedTime" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec), global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec.Parser, new[]{ "OwnerId", "OwnerType", "DisplayName", "Description", "ExpiryTime", "Disabled" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class AccountAccess : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AccountAccess()); + 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.Cloud.Identity.V1.MessageReflection.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 AccountAccess() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccountAccess(AccountAccess other) : this() { + role_ = other.role_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AccountAccess Clone() { + return new AccountAccess(this); + } + + /// Field number for the "role" field. + public const int RoleFieldNumber = 1; + private string role_ = ""; + /// + /// The role on the account, should be one of [admin, developer, read] + /// admin - gives full access the account, including users and namespaces + /// developer - gives access to create namespaces on the account + /// read - gives read only access to the account + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Role { + get { return role_; } + set { + role_ = 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 AccountAccess); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AccountAccess other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Role != other.Role) 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 (Role.Length != 0) hash ^= Role.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 (Role.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Role); + } + 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 (Role.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Role); + } + 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 (Role.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Role); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AccountAccess other) { + if (other == null) { + return; + } + if (other.Role.Length != 0) { + Role = other.Role; + } + _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: { + Role = 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: { + Role = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class NamespaceAccess : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NamespaceAccess()); + 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.Cloud.Identity.V1.MessageReflection.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 NamespaceAccess() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NamespaceAccess(NamespaceAccess other) : this() { + permission_ = other.permission_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NamespaceAccess Clone() { + return new NamespaceAccess(this); + } + + /// Field number for the "permission" field. + public const int PermissionFieldNumber = 1; + private string permission_ = ""; + /// + /// The permission to the namespace, should be one of [admin, write, read] + /// admin - gives full access to the namespace, including assigning namespace access to other users + /// write - gives write access to the namespace configuration and workflows within the namespace + /// read - gives read only access to the namespace configuration and workflows within the namespace + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Permission { + get { return permission_; } + set { + permission_ = 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 NamespaceAccess); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NamespaceAccess other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Permission != other.Permission) 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 (Permission.Length != 0) hash ^= Permission.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 (Permission.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Permission); + } + 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 (Permission.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Permission); + } + 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 (Permission.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Permission); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NamespaceAccess other) { + if (other == null) { + return; + } + if (other.Permission.Length != 0) { + Permission = other.Permission; + } + _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: { + Permission = 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: { + Permission = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Access : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Access()); + 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.Cloud.Identity.V1.MessageReflection.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 Access() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Access(Access other) : this() { + accountAccess_ = other.accountAccess_ != null ? other.accountAccess_.Clone() : null; + namespaceAccesses_ = other.namespaceAccesses_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Access Clone() { + return new Access(this); + } + + /// Field number for the "account_access" field. + public const int AccountAccessFieldNumber = 1; + private global::Temporalio.Api.Cloud.Identity.V1.AccountAccess accountAccess_; + /// + /// The account access + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.AccountAccess AccountAccess { + get { return accountAccess_; } + set { + accountAccess_ = value; + } + } + + /// Field number for the "namespace_accesses" field. + public const int NamespaceAccessesFieldNumber = 2; + private static readonly pbc::MapField.Codec _map_namespaceAccesses_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Temporalio.Api.Cloud.Identity.V1.NamespaceAccess.Parser), 18); + private readonly pbc::MapField namespaceAccesses_ = new pbc::MapField(); + /// + /// The map of namespace accesses + /// The key is the namespace name and the value is the access to the namespace + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField NamespaceAccesses { + get { return namespaceAccesses_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Access); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Access other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(AccountAccess, other.AccountAccess)) return false; + if (!NamespaceAccesses.Equals(other.NamespaceAccesses)) 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 (accountAccess_ != null) hash ^= AccountAccess.GetHashCode(); + hash ^= NamespaceAccesses.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 (accountAccess_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AccountAccess); + } + namespaceAccesses_.WriteTo(output, _map_namespaceAccesses_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 (accountAccess_ != null) { + output.WriteRawTag(10); + output.WriteMessage(AccountAccess); + } + namespaceAccesses_.WriteTo(ref output, _map_namespaceAccesses_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 (accountAccess_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AccountAccess); + } + size += namespaceAccesses_.CalculateSize(_map_namespaceAccesses_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Access other) { + if (other == null) { + return; + } + if (other.accountAccess_ != null) { + if (accountAccess_ == null) { + AccountAccess = new global::Temporalio.Api.Cloud.Identity.V1.AccountAccess(); + } + AccountAccess.MergeFrom(other.AccountAccess); + } + namespaceAccesses_.MergeFrom(other.namespaceAccesses_); + _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 (accountAccess_ == null) { + AccountAccess = new global::Temporalio.Api.Cloud.Identity.V1.AccountAccess(); + } + input.ReadMessage(AccountAccess); + break; + } + case 18: { + namespaceAccesses_.AddEntriesFrom(input, _map_namespaceAccesses_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: { + if (accountAccess_ == null) { + AccountAccess = new global::Temporalio.Api.Cloud.Identity.V1.AccountAccess(); + } + input.ReadMessage(AccountAccess); + break; + } + case 18: { + namespaceAccesses_.AddEntriesFrom(ref input, _map_namespaceAccesses_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class UserSpec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserSpec()); + 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.Cloud.Identity.V1.MessageReflection.Descriptor.MessageTypes[3]; } + } + + [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 UserSpec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserSpec(UserSpec other) : this() { + email_ = other.email_; + access_ = other.access_ != null ? other.access_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserSpec Clone() { + return new UserSpec(this); + } + + /// Field number for the "email" field. + public const int EmailFieldNumber = 1; + private string email_ = ""; + /// + /// The email address associated to the user + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Email { + get { return email_; } + set { + email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "access" field. + public const int AccessFieldNumber = 2; + private global::Temporalio.Api.Cloud.Identity.V1.Access access_; + /// + /// The access to assigned to the user + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.Access Access { + get { return access_; } + set { + access_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UserSpec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserSpec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Email != other.Email) return false; + if (!object.Equals(Access, other.Access)) 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 (Email.Length != 0) hash ^= Email.GetHashCode(); + if (access_ != null) hash ^= Access.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 (Email.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Email); + } + if (access_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Access); + } + 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 (Email.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Email); + } + if (access_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Access); + } + 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 (Email.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); + } + if (access_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Access); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserSpec other) { + if (other == null) { + return; + } + if (other.Email.Length != 0) { + Email = other.Email; + } + if (other.access_ != null) { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.Access(); + } + Access.MergeFrom(other.Access); + } + _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: { + Email = input.ReadString(); + break; + } + case 18: { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.Access(); + } + input.ReadMessage(Access); + 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: { + Email = input.ReadString(); + break; + } + case 18: { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.Access(); + } + input.ReadMessage(Access); + break; + } + } + } + } + #endif + + } + + public sealed partial class Invitation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Invitation()); + 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.Cloud.Identity.V1.MessageReflection.Descriptor.MessageTypes[4]; } + } + + [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 Invitation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Invitation(Invitation other) : this() { + createdTime_ = other.createdTime_ != null ? other.createdTime_.Clone() : null; + expiredTime_ = other.expiredTime_ != null ? other.expiredTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Invitation Clone() { + return new Invitation(this); + } + + /// Field number for the "created_time" field. + public const int CreatedTimeFieldNumber = 1; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdTime_; + /// + /// The date and time when the user was created + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedTime { + get { return createdTime_; } + set { + createdTime_ = value; + } + } + + /// Field number for the "expired_time" field. + public const int ExpiredTimeFieldNumber = 2; + private global::Google.Protobuf.WellKnownTypes.Timestamp expiredTime_; + /// + /// The date and time when the invitation expires or has expired + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiredTime { + get { return expiredTime_; } + set { + expiredTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Invitation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Invitation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (!object.Equals(CreatedTime, other.CreatedTime)) return false; + if (!object.Equals(ExpiredTime, other.ExpiredTime)) 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 (createdTime_ != null) hash ^= CreatedTime.GetHashCode(); + if (expiredTime_ != null) hash ^= ExpiredTime.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 (createdTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreatedTime); + } + if (expiredTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExpiredTime); + } + 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 (createdTime_ != null) { + output.WriteRawTag(10); + output.WriteMessage(CreatedTime); + } + if (expiredTime_ != null) { + output.WriteRawTag(18); + output.WriteMessage(ExpiredTime); + } + 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 (createdTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedTime); + } + if (expiredTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiredTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Invitation other) { + if (other == null) { + return; + } + if (other.createdTime_ != null) { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedTime.MergeFrom(other.CreatedTime); + } + if (other.expiredTime_ != null) { + if (expiredTime_ == null) { + ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpiredTime.MergeFrom(other.ExpiredTime); + } + _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 (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedTime); + break; + } + case 18: { + if (expiredTime_ == null) { + ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiredTime); + 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 (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedTime); + break; + } + case 18: { + if (expiredTime_ == null) { + ExpiredTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiredTime); + break; + } + } + } + } + #endif + + } + + public sealed partial class User : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new User()); + 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.Cloud.Identity.V1.MessageReflection.Descriptor.MessageTypes[5]; } + } + + [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 User() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public User(User other) : this() { + id_ = other.id_; + resourceVersion_ = other.resourceVersion_; + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + state_ = other.state_; + asyncOperationId_ = other.asyncOperationId_; + invitation_ = other.invitation_ != null ? other.invitation_.Clone() : null; + createdTime_ = other.createdTime_ != null ? other.createdTime_.Clone() : null; + lastModifiedTime_ = other.lastModifiedTime_ != null ? other.lastModifiedTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public User Clone() { + return new User(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// The id of the user + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 2; + private string resourceVersion_ = ""; + /// + /// The current version of the user specification + /// The next update operation will have to include this version + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 3; + private global::Temporalio.Api.Cloud.Identity.V1.UserSpec spec_; + /// + /// The user specification + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.UserSpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private string state_ = ""; + /// + /// The current state of the user + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string State { + get { return state_; } + set { + state_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 5; + private string asyncOperationId_ = ""; + /// + /// The id of the async operation that is creating/updating/deleting the user, if any + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "invitation" field. + public const int InvitationFieldNumber = 6; + private global::Temporalio.Api.Cloud.Identity.V1.Invitation invitation_; + /// + /// The details of the open invitation sent to the user, if any + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.Invitation Invitation { + get { return invitation_; } + set { + invitation_ = value; + } + } + + /// Field number for the "created_time" field. + public const int CreatedTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdTime_; + /// + /// The date and time when the user was created + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedTime { + get { return createdTime_; } + set { + createdTime_ = value; + } + } + + /// Field number for the "last_modified_time" field. + public const int LastModifiedTimeFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastModifiedTime_; + /// + /// The date and time when the user was last modified + /// Will not be set if the user has never been modified + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastModifiedTime { + get { return lastModifiedTime_; } + set { + lastModifiedTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as User); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(User other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (!object.Equals(Spec, other.Spec)) return false; + if (State != other.State) return false; + if (AsyncOperationId != other.AsyncOperationId) return false; + if (!object.Equals(Invitation, other.Invitation)) return false; + if (!object.Equals(CreatedTime, other.CreatedTime)) return false; + if (!object.Equals(LastModifiedTime, other.LastModifiedTime)) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (spec_ != null) hash ^= Spec.GetHashCode(); + if (State.Length != 0) hash ^= State.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.GetHashCode(); + if (invitation_ != null) hash ^= Invitation.GetHashCode(); + if (createdTime_ != null) hash ^= CreatedTime.GetHashCode(); + if (lastModifiedTime_ != null) hash ^= LastModifiedTime.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (spec_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Spec); + } + if (State.Length != 0) { + output.WriteRawTag(34); + output.WriteString(State); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + if (invitation_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Invitation); + } + if (createdTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreatedTime); + } + if (lastModifiedTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(LastModifiedTime); + } + 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (spec_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Spec); + } + if (State.Length != 0) { + output.WriteRawTag(34); + output.WriteString(State); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + if (invitation_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Invitation); + } + if (createdTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(CreatedTime); + } + if (lastModifiedTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(LastModifiedTime); + } + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (State.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(State); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (invitation_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Invitation); + } + if (createdTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedTime); + } + if (lastModifiedTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastModifiedTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(User other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserSpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.State.Length != 0) { + State = other.State; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + if (other.invitation_ != null) { + if (invitation_ == null) { + Invitation = new global::Temporalio.Api.Cloud.Identity.V1.Invitation(); + } + Invitation.MergeFrom(other.Invitation); + } + if (other.createdTime_ != null) { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedTime.MergeFrom(other.CreatedTime); + } + if (other.lastModifiedTime_ != null) { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastModifiedTime.MergeFrom(other.LastModifiedTime); + } + _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: { + Id = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserSpec(); + } + input.ReadMessage(Spec); + break; + } + case 34: { + State = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = input.ReadString(); + break; + } + case 50: { + if (invitation_ == null) { + Invitation = new global::Temporalio.Api.Cloud.Identity.V1.Invitation(); + } + input.ReadMessage(Invitation); + break; + } + case 58: { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedTime); + break; + } + case 66: { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastModifiedTime); + 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: { + Id = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserSpec(); + } + input.ReadMessage(Spec); + break; + } + case 34: { + State = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = input.ReadString(); + break; + } + case 50: { + if (invitation_ == null) { + Invitation = new global::Temporalio.Api.Cloud.Identity.V1.Invitation(); + } + input.ReadMessage(Invitation); + break; + } + case 58: { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedTime); + break; + } + case 66: { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastModifiedTime); + break; + } + } + } + } + #endif + + } + + public sealed partial class UserGroupSpec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserGroupSpec()); + 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.Cloud.Identity.V1.MessageReflection.Descriptor.MessageTypes[6]; } + } + + [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 UserGroupSpec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserGroupSpec(UserGroupSpec other) : this() { + name_ = other.name_; + access_ = other.access_ != null ? other.access_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserGroupSpec Clone() { + return new UserGroupSpec(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The name of the group as defined in the customer's IdP (e.g. Google group name in Google Workspace) + /// The name is immutable. Once set, it cannot be changed + /// + [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 "access" field. + public const int AccessFieldNumber = 2; + private global::Temporalio.Api.Cloud.Identity.V1.Access access_; + /// + /// The access assigned to the group + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.Access Access { + get { return access_; } + set { + access_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UserGroupSpec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserGroupSpec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(Access, other.Access)) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); + if (access_ != null) hash ^= Access.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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (access_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Access); + } + 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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (access_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Access); + } + 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (access_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Access); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserGroupSpec other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.access_ != null) { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.Access(); + } + Access.MergeFrom(other.Access); + } + _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: { + Name = input.ReadString(); + break; + } + case 18: { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.Access(); + } + input.ReadMessage(Access); + 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: { + Name = input.ReadString(); + break; + } + case 18: { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.Access(); + } + input.ReadMessage(Access); + break; + } + } + } + } + #endif + + } + + public sealed partial class UserGroup : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UserGroup()); + 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.Cloud.Identity.V1.MessageReflection.Descriptor.MessageTypes[7]; } + } + + [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 UserGroup() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserGroup(UserGroup other) : this() { + id_ = other.id_; + resourceVersion_ = other.resourceVersion_; + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + state_ = other.state_; + asyncOperationId_ = other.asyncOperationId_; + createdTime_ = other.createdTime_ != null ? other.createdTime_.Clone() : null; + lastModifiedTime_ = other.lastModifiedTime_ != null ? other.lastModifiedTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UserGroup Clone() { + return new UserGroup(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// The id of the group + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 2; + private string resourceVersion_ = ""; + /// + /// The current version of the group specification + /// The next update operation will have to include this version + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 3; + private global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec spec_; + /// + /// The group specification + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private string state_ = ""; + /// + /// The current state of the group + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string State { + get { return state_; } + set { + state_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 5; + private string asyncOperationId_ = ""; + /// + /// The id of the async operation that is creating/updating/deleting the group, if any + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "created_time" field. + public const int CreatedTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdTime_; + /// + /// The date and time when the group was created + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedTime { + get { return createdTime_; } + set { + createdTime_ = value; + } + } + + /// Field number for the "last_modified_time" field. + public const int LastModifiedTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastModifiedTime_; + /// + /// The date and time when the group was last modified + /// Will not be set if the group has never been modified + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastModifiedTime { + get { return lastModifiedTime_; } + set { + lastModifiedTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UserGroup); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UserGroup other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (!object.Equals(Spec, other.Spec)) return false; + if (State != other.State) return false; + if (AsyncOperationId != other.AsyncOperationId) return false; + if (!object.Equals(CreatedTime, other.CreatedTime)) return false; + if (!object.Equals(LastModifiedTime, other.LastModifiedTime)) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (spec_ != null) hash ^= Spec.GetHashCode(); + if (State.Length != 0) hash ^= State.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.GetHashCode(); + if (createdTime_ != null) hash ^= CreatedTime.GetHashCode(); + if (lastModifiedTime_ != null) hash ^= LastModifiedTime.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (spec_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Spec); + } + if (State.Length != 0) { + output.WriteRawTag(34); + output.WriteString(State); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + if (createdTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreatedTime); + } + if (lastModifiedTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(LastModifiedTime); + } + 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (spec_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Spec); + } + if (State.Length != 0) { + output.WriteRawTag(34); + output.WriteString(State); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + if (createdTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreatedTime); + } + if (lastModifiedTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(LastModifiedTime); + } + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (State.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(State); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (createdTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedTime); + } + if (lastModifiedTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastModifiedTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UserGroup other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.State.Length != 0) { + State = other.State; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + if (other.createdTime_ != null) { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedTime.MergeFrom(other.CreatedTime); + } + if (other.lastModifiedTime_ != null) { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastModifiedTime.MergeFrom(other.LastModifiedTime); + } + _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: { + Id = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec(); + } + input.ReadMessage(Spec); + break; + } + case 34: { + State = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = input.ReadString(); + break; + } + case 50: { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedTime); + break; + } + case 58: { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastModifiedTime); + 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: { + Id = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.UserGroupSpec(); + } + input.ReadMessage(Spec); + break; + } + case 34: { + State = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = input.ReadString(); + break; + } + case 50: { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedTime); + break; + } + case 58: { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastModifiedTime); + break; + } + } + } + } + #endif + + } + + public sealed partial class ServiceAccount : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceAccount()); + 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.Cloud.Identity.V1.MessageReflection.Descriptor.MessageTypes[8]; } + } + + [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 ServiceAccount() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceAccount(ServiceAccount other) : this() { + id_ = other.id_; + resourceVersion_ = other.resourceVersion_; + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + state_ = other.state_; + asyncOperationId_ = other.asyncOperationId_; + createdTime_ = other.createdTime_ != null ? other.createdTime_.Clone() : null; + lastModifiedTime_ = other.lastModifiedTime_ != null ? other.lastModifiedTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceAccount Clone() { + return new ServiceAccount(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// The id of the service account. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 2; + private string resourceVersion_ = ""; + /// + /// The current version of the service account specification. + /// The next update operation will have to include this version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 3; + private global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec spec_; + /// + /// The service account specification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private string state_ = ""; + /// + /// The current state of the service account. + /// Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended. + /// For any failed state, reach out to Temporal Cloud support for remediation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string State { + get { return state_; } + set { + state_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 5; + private string asyncOperationId_ = ""; + /// + /// The id of the async operation that is creating/updating/deleting the service account, if any. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "created_time" field. + public const int CreatedTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdTime_; + /// + /// The date and time when the service account was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedTime { + get { return createdTime_; } + set { + createdTime_ = value; + } + } + + /// Field number for the "last_modified_time" field. + public const int LastModifiedTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastModifiedTime_; + /// + /// The date and time when the service account was last modified + /// Will not be set if the service account has never been modified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastModifiedTime { + get { return lastModifiedTime_; } + set { + lastModifiedTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ServiceAccount); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceAccount other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (!object.Equals(Spec, other.Spec)) return false; + if (State != other.State) return false; + if (AsyncOperationId != other.AsyncOperationId) return false; + if (!object.Equals(CreatedTime, other.CreatedTime)) return false; + if (!object.Equals(LastModifiedTime, other.LastModifiedTime)) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (spec_ != null) hash ^= Spec.GetHashCode(); + if (State.Length != 0) hash ^= State.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.GetHashCode(); + if (createdTime_ != null) hash ^= CreatedTime.GetHashCode(); + if (lastModifiedTime_ != null) hash ^= LastModifiedTime.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (spec_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Spec); + } + if (State.Length != 0) { + output.WriteRawTag(34); + output.WriteString(State); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + if (createdTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreatedTime); + } + if (lastModifiedTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(LastModifiedTime); + } + 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (spec_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Spec); + } + if (State.Length != 0) { + output.WriteRawTag(34); + output.WriteString(State); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + if (createdTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreatedTime); + } + if (lastModifiedTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(LastModifiedTime); + } + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (State.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(State); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (createdTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedTime); + } + if (lastModifiedTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastModifiedTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceAccount other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.State.Length != 0) { + State = other.State; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + if (other.createdTime_ != null) { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedTime.MergeFrom(other.CreatedTime); + } + if (other.lastModifiedTime_ != null) { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastModifiedTime.MergeFrom(other.LastModifiedTime); + } + _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: { + Id = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec(); + } + input.ReadMessage(Spec); + break; + } + case 34: { + State = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = input.ReadString(); + break; + } + case 50: { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedTime); + break; + } + case 58: { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastModifiedTime); + 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: { + Id = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ServiceAccountSpec(); + } + input.ReadMessage(Spec); + break; + } + case 34: { + State = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = input.ReadString(); + break; + } + case 50: { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedTime); + break; + } + case 58: { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastModifiedTime); + break; + } + } + } + } + #endif + + } + + public sealed partial class ServiceAccountSpec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ServiceAccountSpec()); + 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.Cloud.Identity.V1.MessageReflection.Descriptor.MessageTypes[9]; } + } + + [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 ServiceAccountSpec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceAccountSpec(ServiceAccountSpec other) : this() { + name_ = other.name_; + access_ = other.access_ != null ? other.access_.Clone() : null; + description_ = other.description_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ServiceAccountSpec Clone() { + return new ServiceAccountSpec(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The name associated with the service account. + /// The name is mutable, but must be unique across all your active service accounts. + /// + [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 "access" field. + public const int AccessFieldNumber = 2; + private global::Temporalio.Api.Cloud.Identity.V1.Access access_; + /// + /// The access assigned to the service account. + /// The access is mutable. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.Access Access { + get { return access_; } + set { + access_ = value; + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 3; + private string description_ = ""; + /// + /// The description associated with the service account - optional. + /// The description is mutable. + /// + [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 ServiceAccountSpec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ServiceAccountSpec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (!object.Equals(Access, other.Access)) return false; + if (Description != other.Description) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); + if (access_ != null) hash ^= Access.GetHashCode(); + if (Description.Length != 0) hash ^= Description.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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (access_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Access); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + 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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + if (access_ != null) { + output.WriteRawTag(18); + output.WriteMessage(Access); + } + if (Description.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Description); + } + 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + if (access_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Access); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ServiceAccountSpec other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.access_ != null) { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.Access(); + } + Access.MergeFrom(other.Access); + } + if (other.Description.Length != 0) { + Description = other.Description; + } + _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: { + Name = input.ReadString(); + break; + } + case 18: { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.Access(); + } + input.ReadMessage(Access); + break; + } + case 26: { + Description = 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: { + Name = input.ReadString(); + break; + } + case 18: { + if (access_ == null) { + Access = new global::Temporalio.Api.Cloud.Identity.V1.Access(); + } + input.ReadMessage(Access); + break; + } + case 26: { + Description = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ApiKey : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApiKey()); + 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.Cloud.Identity.V1.MessageReflection.Descriptor.MessageTypes[10]; } + } + + [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 ApiKey() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApiKey(ApiKey other) : this() { + id_ = other.id_; + resourceVersion_ = other.resourceVersion_; + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + state_ = other.state_; + asyncOperationId_ = other.asyncOperationId_; + createdTime_ = other.createdTime_ != null ? other.createdTime_.Clone() : null; + lastModifiedTime_ = other.lastModifiedTime_ != null ? other.lastModifiedTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApiKey Clone() { + return new ApiKey(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// The id of the API Key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "resource_version" field. + public const int ResourceVersionFieldNumber = 2; + private string resourceVersion_ = ""; + /// + /// The current version of the API key specification. + /// The next update operation will have to include this version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 3; + private global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec spec_; + /// + /// The API key specification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private string state_ = ""; + /// + /// The current state of the API key. + /// Possible values: activating, activationfailed, active, updating, updatefailed, deleting, deletefailed, deleted, suspending, suspendfailed, suspended. + /// For any failed state, reach out to Temporal Cloud support for remediation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string State { + get { return state_; } + set { + state_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 5; + private string asyncOperationId_ = ""; + /// + /// The id of the async operation that is creating/updating/deleting the API key, if any. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "created_time" field. + public const int CreatedTimeFieldNumber = 6; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdTime_; + /// + /// The date and time when the API key was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedTime { + get { return createdTime_; } + set { + createdTime_ = value; + } + } + + /// Field number for the "last_modified_time" field. + public const int LastModifiedTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastModifiedTime_; + /// + /// The date and time when the API key was last modified. + /// Will not be set if the API key has never been modified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastModifiedTime { + get { return lastModifiedTime_; } + set { + lastModifiedTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ApiKey); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ApiKey other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (!object.Equals(Spec, other.Spec)) return false; + if (State != other.State) return false; + if (AsyncOperationId != other.AsyncOperationId) return false; + if (!object.Equals(CreatedTime, other.CreatedTime)) return false; + if (!object.Equals(LastModifiedTime, other.LastModifiedTime)) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (spec_ != null) hash ^= Spec.GetHashCode(); + if (State.Length != 0) hash ^= State.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.GetHashCode(); + if (createdTime_ != null) hash ^= CreatedTime.GetHashCode(); + if (lastModifiedTime_ != null) hash ^= LastModifiedTime.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (spec_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Spec); + } + if (State.Length != 0) { + output.WriteRawTag(34); + output.WriteString(State); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + if (createdTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreatedTime); + } + if (lastModifiedTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(LastModifiedTime); + } + 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (spec_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Spec); + } + if (State.Length != 0) { + output.WriteRawTag(34); + output.WriteString(State); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + if (createdTime_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CreatedTime); + } + if (lastModifiedTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(LastModifiedTime); + } + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (State.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(State); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (createdTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedTime); + } + if (lastModifiedTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastModifiedTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ApiKey other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.State.Length != 0) { + State = other.State; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + if (other.createdTime_ != null) { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedTime.MergeFrom(other.CreatedTime); + } + if (other.lastModifiedTime_ != null) { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastModifiedTime.MergeFrom(other.LastModifiedTime); + } + _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: { + Id = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec(); + } + input.ReadMessage(Spec); + break; + } + case 34: { + State = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = input.ReadString(); + break; + } + case 50: { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedTime); + break; + } + case 58: { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastModifiedTime); + 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: { + Id = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Identity.V1.ApiKeySpec(); + } + input.ReadMessage(Spec); + break; + } + case 34: { + State = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = input.ReadString(); + break; + } + case 50: { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedTime); + break; + } + case 58: { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastModifiedTime); + break; + } + } + } + } + #endif + + } + + public sealed partial class ApiKeySpec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApiKeySpec()); + 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.Cloud.Identity.V1.MessageReflection.Descriptor.MessageTypes[11]; } + } + + [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 ApiKeySpec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApiKeySpec(ApiKeySpec other) : this() { + ownerId_ = other.ownerId_; + ownerType_ = other.ownerType_; + displayName_ = other.displayName_; + description_ = other.description_; + expiryTime_ = other.expiryTime_ != null ? other.expiryTime_.Clone() : null; + disabled_ = other.disabled_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApiKeySpec Clone() { + return new ApiKeySpec(this); + } + + /// Field number for the "owner_id" field. + public const int OwnerIdFieldNumber = 1; + private string ownerId_ = ""; + /// + /// The id of the owner to create the API key for. + /// The owner id is immutable. Once set during creation, it cannot be changed. + /// The owner id is the id of the user when the owner type is 'user'. + /// The owner id is the id of the service account when the owner type is 'service-account'. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OwnerId { + get { return ownerId_; } + set { + ownerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "owner_type" field. + public const int OwnerTypeFieldNumber = 2; + private string ownerType_ = ""; + /// + /// The type of the owner to create the API key for. + /// The owner type is immutable. Once set during creation, it cannot be changed. + /// Possible values: user, service-account. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OwnerType { + get { return ownerType_; } + set { + ownerType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "display_name" field. + public const int DisplayNameFieldNumber = 3; + private string displayName_ = ""; + /// + /// The display name of the API key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DisplayName { + get { return displayName_; } + set { + displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "description" field. + public const int DescriptionFieldNumber = 4; + private string description_ = ""; + /// + /// The description of the API key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Description { + get { return description_; } + set { + description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "expiry_time" field. + public const int ExpiryTimeFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Timestamp expiryTime_; + /// + /// The expiry time of the API key. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp ExpiryTime { + get { return expiryTime_; } + set { + expiryTime_ = value; + } + } + + /// Field number for the "disabled" field. + public const int DisabledFieldNumber = 6; + private bool disabled_; + /// + /// True if the API key is disabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Disabled { + get { return disabled_; } + set { + disabled_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ApiKeySpec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ApiKeySpec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (OwnerId != other.OwnerId) return false; + if (OwnerType != other.OwnerType) return false; + if (DisplayName != other.DisplayName) return false; + if (Description != other.Description) return false; + if (!object.Equals(ExpiryTime, other.ExpiryTime)) return false; + if (Disabled != other.Disabled) 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 (OwnerId.Length != 0) hash ^= OwnerId.GetHashCode(); + if (OwnerType.Length != 0) hash ^= OwnerType.GetHashCode(); + if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode(); + if (Description.Length != 0) hash ^= Description.GetHashCode(); + if (expiryTime_ != null) hash ^= ExpiryTime.GetHashCode(); + if (Disabled != false) hash ^= Disabled.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 (OwnerId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(OwnerId); + } + if (OwnerType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OwnerType); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (expiryTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ExpiryTime); + } + if (Disabled != false) { + output.WriteRawTag(48); + output.WriteBool(Disabled); + } + 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 (OwnerId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(OwnerId); + } + if (OwnerType.Length != 0) { + output.WriteRawTag(18); + output.WriteString(OwnerType); + } + if (DisplayName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DisplayName); + } + if (Description.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Description); + } + if (expiryTime_ != null) { + output.WriteRawTag(42); + output.WriteMessage(ExpiryTime); + } + if (Disabled != false) { + output.WriteRawTag(48); + output.WriteBool(Disabled); + } + 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 (OwnerId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OwnerId); + } + if (OwnerType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OwnerType); + } + if (DisplayName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName); + } + if (Description.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); + } + if (expiryTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExpiryTime); + } + if (Disabled != 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(ApiKeySpec other) { + if (other == null) { + return; + } + if (other.OwnerId.Length != 0) { + OwnerId = other.OwnerId; + } + if (other.OwnerType.Length != 0) { + OwnerType = other.OwnerType; + } + if (other.DisplayName.Length != 0) { + DisplayName = other.DisplayName; + } + if (other.Description.Length != 0) { + Description = other.Description; + } + if (other.expiryTime_ != null) { + if (expiryTime_ == null) { + ExpiryTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + ExpiryTime.MergeFrom(other.ExpiryTime); + } + if (other.Disabled != false) { + Disabled = other.Disabled; + } + _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: { + OwnerId = input.ReadString(); + break; + } + case 18: { + OwnerType = input.ReadString(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + if (expiryTime_ == null) { + ExpiryTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiryTime); + break; + } + case 48: { + Disabled = 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: { + OwnerId = input.ReadString(); + break; + } + case 18: { + OwnerType = input.ReadString(); + break; + } + case 26: { + DisplayName = input.ReadString(); + break; + } + case 34: { + Description = input.ReadString(); + break; + } + case 42: { + if (expiryTime_ == null) { + ExpiryTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(ExpiryTime); + break; + } + case 48: { + Disabled = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Temporalio/Api/Cloud/Namespace/V1/Message.cs b/src/Temporalio/Api/Cloud/Namespace/V1/Message.cs new file mode 100644 index 00000000..452a0929 --- /dev/null +++ b/src/Temporalio/Api/Cloud/Namespace/V1/Message.cs @@ -0,0 +1,3416 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: temporal/api/cloud/namespace/v1/message.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.Cloud.Namespace.V1 { + + /// Holder for reflection information generated from temporal/api/cloud/namespace/v1/message.proto + public static partial class MessageReflection { + + #region Descriptor + /// File descriptor for temporal/api/cloud/namespace/v1/message.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MessageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci10ZW1wb3JhbC9hcGkvY2xvdWQvbmFtZXNwYWNlL3YxL21lc3NhZ2UucHJv", + "dG8SH3RlbXBvcmFsLmFwaS5jbG91ZC5uYW1lc3BhY2UudjEaH2dvb2dsZS9w", + "cm90b2J1Zi90aW1lc3RhbXAucHJvdG8igQEKFUNlcnRpZmljYXRlRmlsdGVy", + "U3BlYxITCgtjb21tb25fbmFtZRgBIAEoCRIUCgxvcmdhbml6YXRpb24YAiAB", + "KAkSGwoTb3JnYW5pemF0aW9uYWxfdW5pdBgDIAEoCRIgChhzdWJqZWN0X2Fs", + "dGVybmF0aXZlX25hbWUYBCABKAkikAEKDE10bHNBdXRoU3BlYxIaChJhY2Nl", + "cHRlZF9jbGllbnRfY2EYASABKAkSUwoTY2VydGlmaWNhdGVfZmlsdGVycxgC", + "IAMoCzI2LnRlbXBvcmFsLmFwaS5jbG91ZC5uYW1lc3BhY2UudjEuQ2VydGlm", + "aWNhdGVGaWx0ZXJTcGVjEg8KB2VuYWJsZWQYAyABKAgiIQoOQXBpS2V5QXV0", + "aFNwZWMSDwoHZW5hYmxlZBgBIAEoCCJoCg9Db2RlY1NlcnZlclNwZWMSEAoI", + "ZW5kcG9pbnQYASABKAkSGQoRcGFzc19hY2Nlc3NfdG9rZW4YAiABKAgSKAog", + "aW5jbHVkZV9jcm9zc19vcmlnaW5fY3JlZGVudGlhbHMYAyABKAgixAMKDU5h", + "bWVzcGFjZVNwZWMSDAoEbmFtZRgBIAEoCRIPCgdyZWdpb25zGAIgAygJEhYK", + "DnJldGVudGlvbl9kYXlzGAMgASgFEkAKCW10bHNfYXV0aBgEIAEoCzItLnRl", + "bXBvcmFsLmFwaS5jbG91ZC5uYW1lc3BhY2UudjEuTXRsc0F1dGhTcGVjEkUK", + "DGFwaV9rZXlfYXV0aBgHIAEoCzIvLnRlbXBvcmFsLmFwaS5jbG91ZC5uYW1l", + "c3BhY2UudjEuQXBpS2V5QXV0aFNwZWMSbAoYY3VzdG9tX3NlYXJjaF9hdHRy", + "aWJ1dGVzGAUgAygLMkoudGVtcG9yYWwuYXBpLmNsb3VkLm5hbWVzcGFjZS52", + "MS5OYW1lc3BhY2VTcGVjLkN1c3RvbVNlYXJjaEF0dHJpYnV0ZXNFbnRyeRJG", + "Cgxjb2RlY19zZXJ2ZXIYBiABKAsyMC50ZW1wb3JhbC5hcGkuY2xvdWQubmFt", + "ZXNwYWNlLnYxLkNvZGVjU2VydmVyU3BlYxo9ChtDdXN0b21TZWFyY2hBdHRy", + "aWJ1dGVzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJR", + "CglFbmRwb2ludHMSEwoLd2ViX2FkZHJlc3MYASABKAkSGQoRbXRsc19ncnBj", + "X2FkZHJlc3MYAiABKAkSFAoMZ3JwY19hZGRyZXNzGAMgASgJIioKBkxpbWl0", + "cxIgChhhY3Rpb25zX3Blcl9zZWNvbmRfbGltaXQYASABKAUiWAoSQVdTUHJp", + "dmF0ZUxpbmtJbmZvEh4KFmFsbG93ZWRfcHJpbmNpcGFsX2FybnMYASADKAkS", + "IgoadnBjX2VuZHBvaW50X3NlcnZpY2VfbmFtZXMYAiADKAkidAoTUHJpdmF0", + "ZUNvbm5lY3Rpdml0eRIOCgZyZWdpb24YASABKAkSTQoQYXdzX3ByaXZhdGVf", + "bGluaxgCIAEoCzIzLnRlbXBvcmFsLmFwaS5jbG91ZC5uYW1lc3BhY2UudjEu", + "QVdTUHJpdmF0ZUxpbmtJbmZvIrIFCglOYW1lc3BhY2USEQoJbmFtZXNwYWNl", + "GAEgASgJEhgKEHJlc291cmNlX3ZlcnNpb24YAiABKAkSPAoEc3BlYxgDIAEo", + "CzIuLnRlbXBvcmFsLmFwaS5jbG91ZC5uYW1lc3BhY2UudjEuTmFtZXNwYWNl", + "U3BlYxINCgVzdGF0ZRgEIAEoCRIaChJhc3luY19vcGVyYXRpb25faWQYBSAB", + "KAkSPQoJZW5kcG9pbnRzGAYgASgLMioudGVtcG9yYWwuYXBpLmNsb3VkLm5h", + "bWVzcGFjZS52MS5FbmRwb2ludHMSFQoNYWN0aXZlX3JlZ2lvbhgHIAEoCRI3", + "CgZsaW1pdHMYCCABKAsyJy50ZW1wb3JhbC5hcGkuY2xvdWQubmFtZXNwYWNl", + "LnYxLkxpbWl0cxJUChZwcml2YXRlX2Nvbm5lY3Rpdml0aWVzGAkgAygLMjQu", + "dGVtcG9yYWwuYXBpLmNsb3VkLm5hbWVzcGFjZS52MS5Qcml2YXRlQ29ubmVj", + "dGl2aXR5EjAKDGNyZWF0ZWRfdGltZRgKIAEoCzIaLmdvb2dsZS5wcm90b2J1", + "Zi5UaW1lc3RhbXASNgoSbGFzdF9tb2RpZmllZF90aW1lGAsgASgLMhouZ29v", + "Z2xlLnByb3RvYnVmLlRpbWVzdGFtcBJTCg1yZWdpb25fc3RhdHVzGAwgAygL", + "MjwudGVtcG9yYWwuYXBpLmNsb3VkLm5hbWVzcGFjZS52MS5OYW1lc3BhY2Uu", + "UmVnaW9uU3RhdHVzRW50cnkaawoRUmVnaW9uU3RhdHVzRW50cnkSCwoDa2V5", + "GAEgASgJEkUKBXZhbHVlGAIgASgLMjYudGVtcG9yYWwuYXBpLmNsb3VkLm5h", + "bWVzcGFjZS52MS5OYW1lc3BhY2VSZWdpb25TdGF0dXM6AjgBIkIKFU5hbWVz", + "cGFjZVJlZ2lvblN0YXR1cxINCgVzdGF0ZRgBIAEoCRIaChJhc3luY19vcGVy", + "YXRpb25faWQYAiABKAlCsQEKImlvLnRlbXBvcmFsLmFwaS5jbG91ZC5uYW1l", + "c3BhY2UudjFCDE1lc3NhZ2VQcm90b1ABWi9nby50ZW1wb3JhbC5pby9hcGkv", + "Y2xvdWQvbmFtZXNwYWNlL3YxO25hbWVzcGFjZaoCIVRlbXBvcmFsaW8uQXBp", + "LkNsb3VkLk5hbWVzcGFjZS5WMeoCJVRlbXBvcmFsaW86OkFwaTo6Q2xvdWQ6", + "Ok5hbWVzcGFjZTo6VjFiBnByb3RvMw==")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Namespace.V1.CertificateFilterSpec), global::Temporalio.Api.Cloud.Namespace.V1.CertificateFilterSpec.Parser, new[]{ "CommonName", "Organization", "OrganizationalUnit", "SubjectAlternativeName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Namespace.V1.MtlsAuthSpec), global::Temporalio.Api.Cloud.Namespace.V1.MtlsAuthSpec.Parser, new[]{ "AcceptedClientCa", "CertificateFilters", "Enabled" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Namespace.V1.ApiKeyAuthSpec), global::Temporalio.Api.Cloud.Namespace.V1.ApiKeyAuthSpec.Parser, new[]{ "Enabled" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Namespace.V1.CodecServerSpec), global::Temporalio.Api.Cloud.Namespace.V1.CodecServerSpec.Parser, new[]{ "Endpoint", "PassAccessToken", "IncludeCrossOriginCredentials" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec), global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec.Parser, new[]{ "Name", "Regions", "RetentionDays", "MtlsAuth", "ApiKeyAuth", "CustomSearchAttributes", "CodecServer" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Namespace.V1.Endpoints), global::Temporalio.Api.Cloud.Namespace.V1.Endpoints.Parser, new[]{ "WebAddress", "MtlsGrpcAddress", "GrpcAddress" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Namespace.V1.Limits), global::Temporalio.Api.Cloud.Namespace.V1.Limits.Parser, new[]{ "ActionsPerSecondLimit" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Namespace.V1.AWSPrivateLinkInfo), global::Temporalio.Api.Cloud.Namespace.V1.AWSPrivateLinkInfo.Parser, new[]{ "AllowedPrincipalArns", "VpcEndpointServiceNames" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Namespace.V1.PrivateConnectivity), global::Temporalio.Api.Cloud.Namespace.V1.PrivateConnectivity.Parser, new[]{ "Region", "AwsPrivateLink" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Namespace.V1.Namespace), global::Temporalio.Api.Cloud.Namespace.V1.Namespace.Parser, new[]{ "Namespace_", "ResourceVersion", "Spec", "State", "AsyncOperationId", "Endpoints", "ActiveRegion", "Limits", "PrivateConnectivities", "CreatedTime", "LastModifiedTime", "RegionStatus" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Namespace.V1.NamespaceRegionStatus), global::Temporalio.Api.Cloud.Namespace.V1.NamespaceRegionStatus.Parser, new[]{ "State", "AsyncOperationId" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class CertificateFilterSpec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CertificateFilterSpec()); + 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.Cloud.Namespace.V1.MessageReflection.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 CertificateFilterSpec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateFilterSpec(CertificateFilterSpec other) : this() { + commonName_ = other.commonName_; + organization_ = other.organization_; + organizationalUnit_ = other.organizationalUnit_; + subjectAlternativeName_ = other.subjectAlternativeName_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CertificateFilterSpec Clone() { + return new CertificateFilterSpec(this); + } + + /// Field number for the "common_name" field. + public const int CommonNameFieldNumber = 1; + private string commonName_ = ""; + /// + /// The common_name in the certificate. + /// Optional, default is empty. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CommonName { + get { return commonName_; } + set { + commonName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "organization" field. + public const int OrganizationFieldNumber = 2; + private string organization_ = ""; + /// + /// The organization in the certificate. + /// Optional, default is empty. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Organization { + get { return organization_; } + set { + organization_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "organizational_unit" field. + public const int OrganizationalUnitFieldNumber = 3; + private string organizationalUnit_ = ""; + /// + /// The organizational_unit in the certificate. + /// Optional, default is empty. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OrganizationalUnit { + get { return organizationalUnit_; } + set { + organizationalUnit_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "subject_alternative_name" field. + public const int SubjectAlternativeNameFieldNumber = 4; + private string subjectAlternativeName_ = ""; + /// + /// The subject_alternative_name in the certificate. + /// Optional, default is empty. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SubjectAlternativeName { + get { return subjectAlternativeName_; } + set { + subjectAlternativeName_ = 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 CertificateFilterSpec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CertificateFilterSpec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (CommonName != other.CommonName) return false; + if (Organization != other.Organization) return false; + if (OrganizationalUnit != other.OrganizationalUnit) return false; + if (SubjectAlternativeName != other.SubjectAlternativeName) 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 (CommonName.Length != 0) hash ^= CommonName.GetHashCode(); + if (Organization.Length != 0) hash ^= Organization.GetHashCode(); + if (OrganizationalUnit.Length != 0) hash ^= OrganizationalUnit.GetHashCode(); + if (SubjectAlternativeName.Length != 0) hash ^= SubjectAlternativeName.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 (CommonName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CommonName); + } + if (Organization.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Organization); + } + if (OrganizationalUnit.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OrganizationalUnit); + } + if (SubjectAlternativeName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(SubjectAlternativeName); + } + 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 (CommonName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(CommonName); + } + if (Organization.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Organization); + } + if (OrganizationalUnit.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OrganizationalUnit); + } + if (SubjectAlternativeName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(SubjectAlternativeName); + } + 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 (CommonName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CommonName); + } + if (Organization.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Organization); + } + if (OrganizationalUnit.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OrganizationalUnit); + } + if (SubjectAlternativeName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SubjectAlternativeName); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(CertificateFilterSpec other) { + if (other == null) { + return; + } + if (other.CommonName.Length != 0) { + CommonName = other.CommonName; + } + if (other.Organization.Length != 0) { + Organization = other.Organization; + } + if (other.OrganizationalUnit.Length != 0) { + OrganizationalUnit = other.OrganizationalUnit; + } + if (other.SubjectAlternativeName.Length != 0) { + SubjectAlternativeName = other.SubjectAlternativeName; + } + _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: { + CommonName = input.ReadString(); + break; + } + case 18: { + Organization = input.ReadString(); + break; + } + case 26: { + OrganizationalUnit = input.ReadString(); + break; + } + case 34: { + SubjectAlternativeName = 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: { + CommonName = input.ReadString(); + break; + } + case 18: { + Organization = input.ReadString(); + break; + } + case 26: { + OrganizationalUnit = input.ReadString(); + break; + } + case 34: { + SubjectAlternativeName = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class MtlsAuthSpec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MtlsAuthSpec()); + 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.Cloud.Namespace.V1.MessageReflection.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 MtlsAuthSpec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MtlsAuthSpec(MtlsAuthSpec other) : this() { + acceptedClientCa_ = other.acceptedClientCa_; + certificateFilters_ = other.certificateFilters_.Clone(); + enabled_ = other.enabled_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MtlsAuthSpec Clone() { + return new MtlsAuthSpec(this); + } + + /// Field number for the "accepted_client_ca" field. + public const int AcceptedClientCaFieldNumber = 1; + private string acceptedClientCa_ = ""; + /// + /// The base64 encoded ca cert(s) in PEM format that the clients can use for authentication and authorization. + /// This must only be one value, but the CA can have a chain. + /// + /// (-- api-linter: core::0140::base64=disabled --) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AcceptedClientCa { + get { return acceptedClientCa_; } + set { + acceptedClientCa_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "certificate_filters" field. + public const int CertificateFiltersFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_certificateFilters_codec + = pb::FieldCodec.ForMessage(18, global::Temporalio.Api.Cloud.Namespace.V1.CertificateFilterSpec.Parser); + private readonly pbc::RepeatedField certificateFilters_ = new pbc::RepeatedField(); + /// + /// Certificate filters which, if specified, only allow connections from client certificates whose distinguished name properties match at least one of the filters. + /// This allows limiting access to specific end-entity certificates. + /// Optional, default is empty. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField CertificateFilters { + get { return certificateFilters_; } + } + + /// Field number for the "enabled" field. + public const int EnabledFieldNumber = 3; + private bool enabled_; + /// + /// Flag to enable mTLS auth (default: disabled). + /// Note: disabling mTLS auth will cause existing mTLS connections to fail. + /// temporal:versioning:min_version=2024-05-13-00 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Enabled { + get { return enabled_; } + set { + enabled_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as MtlsAuthSpec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(MtlsAuthSpec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (AcceptedClientCa != other.AcceptedClientCa) return false; + if(!certificateFilters_.Equals(other.certificateFilters_)) return false; + if (Enabled != other.Enabled) 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 (AcceptedClientCa.Length != 0) hash ^= AcceptedClientCa.GetHashCode(); + hash ^= certificateFilters_.GetHashCode(); + if (Enabled != false) hash ^= Enabled.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 (AcceptedClientCa.Length != 0) { + output.WriteRawTag(10); + output.WriteString(AcceptedClientCa); + } + certificateFilters_.WriteTo(output, _repeated_certificateFilters_codec); + if (Enabled != false) { + output.WriteRawTag(24); + output.WriteBool(Enabled); + } + 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 (AcceptedClientCa.Length != 0) { + output.WriteRawTag(10); + output.WriteString(AcceptedClientCa); + } + certificateFilters_.WriteTo(ref output, _repeated_certificateFilters_codec); + if (Enabled != false) { + output.WriteRawTag(24); + output.WriteBool(Enabled); + } + 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 (AcceptedClientCa.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AcceptedClientCa); + } + size += certificateFilters_.CalculateSize(_repeated_certificateFilters_codec); + if (Enabled != 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(MtlsAuthSpec other) { + if (other == null) { + return; + } + if (other.AcceptedClientCa.Length != 0) { + AcceptedClientCa = other.AcceptedClientCa; + } + certificateFilters_.Add(other.certificateFilters_); + if (other.Enabled != false) { + Enabled = other.Enabled; + } + _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: { + AcceptedClientCa = input.ReadString(); + break; + } + case 18: { + certificateFilters_.AddEntriesFrom(input, _repeated_certificateFilters_codec); + break; + } + case 24: { + Enabled = 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: { + AcceptedClientCa = input.ReadString(); + break; + } + case 18: { + certificateFilters_.AddEntriesFrom(ref input, _repeated_certificateFilters_codec); + break; + } + case 24: { + Enabled = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ApiKeyAuthSpec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ApiKeyAuthSpec()); + 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.Cloud.Namespace.V1.MessageReflection.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 ApiKeyAuthSpec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApiKeyAuthSpec(ApiKeyAuthSpec other) : this() { + enabled_ = other.enabled_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ApiKeyAuthSpec Clone() { + return new ApiKeyAuthSpec(this); + } + + /// Field number for the "enabled" field. + public const int EnabledFieldNumber = 1; + private bool enabled_; + /// + /// Flag to enable API key auth (default: disabled). + /// Note: disabling API key auth will cause existing API key connections to fail. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Enabled { + get { return enabled_; } + set { + enabled_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ApiKeyAuthSpec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ApiKeyAuthSpec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Enabled != other.Enabled) 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 (_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 (_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 (_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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ApiKeyAuthSpec other) { + if (other == null) { + return; + } + if (other.Enabled != false) { + Enabled = other.Enabled; + } + _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; + } + } + } + #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; + } + } + } + } + #endif + + } + + public sealed partial class CodecServerSpec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CodecServerSpec()); + 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.Cloud.Namespace.V1.MessageReflection.Descriptor.MessageTypes[3]; } + } + + [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 CodecServerSpec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CodecServerSpec(CodecServerSpec other) : this() { + endpoint_ = other.endpoint_; + passAccessToken_ = other.passAccessToken_; + includeCrossOriginCredentials_ = other.includeCrossOriginCredentials_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public CodecServerSpec Clone() { + return new CodecServerSpec(this); + } + + /// Field number for the "endpoint" field. + public const int EndpointFieldNumber = 1; + private string endpoint_ = ""; + /// + /// The codec server endpoint. + /// + [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 "pass_access_token" field. + public const int PassAccessTokenFieldNumber = 2; + private bool passAccessToken_; + /// + /// Whether to pass the user access token with your endpoint. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool PassAccessToken { + get { return passAccessToken_; } + set { + passAccessToken_ = value; + } + } + + /// Field number for the "include_cross_origin_credentials" field. + public const int IncludeCrossOriginCredentialsFieldNumber = 3; + private bool includeCrossOriginCredentials_; + /// + /// Whether to include cross-origin credentials. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool IncludeCrossOriginCredentials { + get { return includeCrossOriginCredentials_; } + set { + includeCrossOriginCredentials_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as CodecServerSpec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(CodecServerSpec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Endpoint != other.Endpoint) return false; + if (PassAccessToken != other.PassAccessToken) return false; + if (IncludeCrossOriginCredentials != other.IncludeCrossOriginCredentials) 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 (Endpoint.Length != 0) hash ^= Endpoint.GetHashCode(); + if (PassAccessToken != false) hash ^= PassAccessToken.GetHashCode(); + if (IncludeCrossOriginCredentials != false) hash ^= IncludeCrossOriginCredentials.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 (Endpoint.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Endpoint); + } + if (PassAccessToken != false) { + output.WriteRawTag(16); + output.WriteBool(PassAccessToken); + } + if (IncludeCrossOriginCredentials != false) { + output.WriteRawTag(24); + output.WriteBool(IncludeCrossOriginCredentials); + } + 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 (Endpoint.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Endpoint); + } + if (PassAccessToken != false) { + output.WriteRawTag(16); + output.WriteBool(PassAccessToken); + } + if (IncludeCrossOriginCredentials != false) { + output.WriteRawTag(24); + output.WriteBool(IncludeCrossOriginCredentials); + } + 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 (Endpoint.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Endpoint); + } + if (PassAccessToken != false) { + size += 1 + 1; + } + if (IncludeCrossOriginCredentials != 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(CodecServerSpec other) { + if (other == null) { + return; + } + if (other.Endpoint.Length != 0) { + Endpoint = other.Endpoint; + } + if (other.PassAccessToken != false) { + PassAccessToken = other.PassAccessToken; + } + if (other.IncludeCrossOriginCredentials != false) { + IncludeCrossOriginCredentials = other.IncludeCrossOriginCredentials; + } + _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: { + Endpoint = input.ReadString(); + break; + } + case 16: { + PassAccessToken = input.ReadBool(); + break; + } + case 24: { + IncludeCrossOriginCredentials = 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: { + Endpoint = input.ReadString(); + break; + } + case 16: { + PassAccessToken = input.ReadBool(); + break; + } + case 24: { + IncludeCrossOriginCredentials = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + public sealed partial class NamespaceSpec : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NamespaceSpec()); + 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.Cloud.Namespace.V1.MessageReflection.Descriptor.MessageTypes[4]; } + } + + [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 NamespaceSpec() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NamespaceSpec(NamespaceSpec other) : this() { + name_ = other.name_; + regions_ = other.regions_.Clone(); + retentionDays_ = other.retentionDays_; + mtlsAuth_ = other.mtlsAuth_ != null ? other.mtlsAuth_.Clone() : null; + apiKeyAuth_ = other.apiKeyAuth_ != null ? other.apiKeyAuth_.Clone() : null; + customSearchAttributes_ = other.customSearchAttributes_.Clone(); + codecServer_ = other.codecServer_ != null ? other.codecServer_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NamespaceSpec Clone() { + return new NamespaceSpec(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// The name to use for the namespace. + /// This will create a namespace that's available at '<name>.<account>.tmprl.cloud:7233'. + /// The name is immutable. Once set, it cannot be changed. + /// + [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 "regions" field. + public const int RegionsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_regions_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField regions_ = new pbc::RepeatedField(); + /// + /// The ids of the regions where the namespace should be available. + /// The GetRegions API can be used to get the list of valid region ids. + /// Specifying more than one region makes the namespace "global", which is currently a preview only feature with restricted access. + /// Please reach out to Temporal support for more information on global namespaces. + /// When provisioned the global namespace will be active on the first region in the list and passive on the rest. + /// Number of supported regions is 2. + /// The regions is immutable. Once set, it cannot be changed. + /// Example: ["aws-us-west-2"]. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Regions { + get { return regions_; } + } + + /// Field number for the "retention_days" field. + public const int RetentionDaysFieldNumber = 3; + private int retentionDays_; + /// + /// The number of days the workflows data will be retained for. + /// Changes to the retention period may impact your storage costs. + /// Any changes to the retention period will be applied to all new running workflows. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int RetentionDays { + get { return retentionDays_; } + set { + retentionDays_ = value; + } + } + + /// Field number for the "mtls_auth" field. + public const int MtlsAuthFieldNumber = 4; + private global::Temporalio.Api.Cloud.Namespace.V1.MtlsAuthSpec mtlsAuth_; + /// + /// The mTLS auth configuration for the namespace. + /// If unspecified, mTLS will be disabled. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Namespace.V1.MtlsAuthSpec MtlsAuth { + get { return mtlsAuth_; } + set { + mtlsAuth_ = value; + } + } + + /// Field number for the "api_key_auth" field. + public const int ApiKeyAuthFieldNumber = 7; + private global::Temporalio.Api.Cloud.Namespace.V1.ApiKeyAuthSpec apiKeyAuth_; + /// + /// The API key auth configuration for the namespace. + /// If unspecified, API keys will be disabled. + /// temporal:versioning:min_version=2024-05-13-00 + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Namespace.V1.ApiKeyAuthSpec ApiKeyAuth { + get { return apiKeyAuth_; } + set { + apiKeyAuth_ = value; + } + } + + /// Field number for the "custom_search_attributes" field. + public const int CustomSearchAttributesFieldNumber = 5; + private static readonly pbc::MapField.Codec _map_customSearchAttributes_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); + private readonly pbc::MapField customSearchAttributes_ = new pbc::MapField(); + /// + /// The custom search attributes to use for the namespace. + /// The name of the attribute is the key and the type is the value. + /// Supported attribute types: text, keyword, int, double, bool, datetime, keyword_list. + /// NOTE: currently deleting a search attribute is not supported. + /// Optional, default is empty. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField CustomSearchAttributes { + get { return customSearchAttributes_; } + } + + /// Field number for the "codec_server" field. + public const int CodecServerFieldNumber = 6; + private global::Temporalio.Api.Cloud.Namespace.V1.CodecServerSpec codecServer_; + /// + /// Codec server spec used by UI to decode payloads for all users interacting with this namespace. + /// Optional, default is unset. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Namespace.V1.CodecServerSpec CodecServer { + get { return codecServer_; } + set { + codecServer_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as NamespaceSpec); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NamespaceSpec other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if(!regions_.Equals(other.regions_)) return false; + if (RetentionDays != other.RetentionDays) return false; + if (!object.Equals(MtlsAuth, other.MtlsAuth)) return false; + if (!object.Equals(ApiKeyAuth, other.ApiKeyAuth)) return false; + if (!CustomSearchAttributes.Equals(other.CustomSearchAttributes)) return false; + if (!object.Equals(CodecServer, other.CodecServer)) 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 (Name.Length != 0) hash ^= Name.GetHashCode(); + hash ^= regions_.GetHashCode(); + if (RetentionDays != 0) hash ^= RetentionDays.GetHashCode(); + if (mtlsAuth_ != null) hash ^= MtlsAuth.GetHashCode(); + if (apiKeyAuth_ != null) hash ^= ApiKeyAuth.GetHashCode(); + hash ^= CustomSearchAttributes.GetHashCode(); + if (codecServer_ != null) hash ^= CodecServer.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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + regions_.WriteTo(output, _repeated_regions_codec); + if (RetentionDays != 0) { + output.WriteRawTag(24); + output.WriteInt32(RetentionDays); + } + if (mtlsAuth_ != null) { + output.WriteRawTag(34); + output.WriteMessage(MtlsAuth); + } + customSearchAttributes_.WriteTo(output, _map_customSearchAttributes_codec); + if (codecServer_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CodecServer); + } + if (apiKeyAuth_ != null) { + output.WriteRawTag(58); + output.WriteMessage(ApiKeyAuth); + } + 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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); + } + regions_.WriteTo(ref output, _repeated_regions_codec); + if (RetentionDays != 0) { + output.WriteRawTag(24); + output.WriteInt32(RetentionDays); + } + if (mtlsAuth_ != null) { + output.WriteRawTag(34); + output.WriteMessage(MtlsAuth); + } + customSearchAttributes_.WriteTo(ref output, _map_customSearchAttributes_codec); + if (codecServer_ != null) { + output.WriteRawTag(50); + output.WriteMessage(CodecServer); + } + if (apiKeyAuth_ != null) { + output.WriteRawTag(58); + output.WriteMessage(ApiKeyAuth); + } + 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + } + size += regions_.CalculateSize(_repeated_regions_codec); + if (RetentionDays != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RetentionDays); + } + if (mtlsAuth_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(MtlsAuth); + } + if (apiKeyAuth_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiKeyAuth); + } + size += customSearchAttributes_.CalculateSize(_map_customSearchAttributes_codec); + if (codecServer_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CodecServer); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NamespaceSpec other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + regions_.Add(other.regions_); + if (other.RetentionDays != 0) { + RetentionDays = other.RetentionDays; + } + if (other.mtlsAuth_ != null) { + if (mtlsAuth_ == null) { + MtlsAuth = new global::Temporalio.Api.Cloud.Namespace.V1.MtlsAuthSpec(); + } + MtlsAuth.MergeFrom(other.MtlsAuth); + } + if (other.apiKeyAuth_ != null) { + if (apiKeyAuth_ == null) { + ApiKeyAuth = new global::Temporalio.Api.Cloud.Namespace.V1.ApiKeyAuthSpec(); + } + ApiKeyAuth.MergeFrom(other.ApiKeyAuth); + } + customSearchAttributes_.MergeFrom(other.customSearchAttributes_); + if (other.codecServer_ != null) { + if (codecServer_ == null) { + CodecServer = new global::Temporalio.Api.Cloud.Namespace.V1.CodecServerSpec(); + } + CodecServer.MergeFrom(other.CodecServer); + } + _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: { + Name = input.ReadString(); + break; + } + case 18: { + regions_.AddEntriesFrom(input, _repeated_regions_codec); + break; + } + case 24: { + RetentionDays = input.ReadInt32(); + break; + } + case 34: { + if (mtlsAuth_ == null) { + MtlsAuth = new global::Temporalio.Api.Cloud.Namespace.V1.MtlsAuthSpec(); + } + input.ReadMessage(MtlsAuth); + break; + } + case 42: { + customSearchAttributes_.AddEntriesFrom(input, _map_customSearchAttributes_codec); + break; + } + case 50: { + if (codecServer_ == null) { + CodecServer = new global::Temporalio.Api.Cloud.Namespace.V1.CodecServerSpec(); + } + input.ReadMessage(CodecServer); + break; + } + case 58: { + if (apiKeyAuth_ == null) { + ApiKeyAuth = new global::Temporalio.Api.Cloud.Namespace.V1.ApiKeyAuthSpec(); + } + input.ReadMessage(ApiKeyAuth); + 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: { + Name = input.ReadString(); + break; + } + case 18: { + regions_.AddEntriesFrom(ref input, _repeated_regions_codec); + break; + } + case 24: { + RetentionDays = input.ReadInt32(); + break; + } + case 34: { + if (mtlsAuth_ == null) { + MtlsAuth = new global::Temporalio.Api.Cloud.Namespace.V1.MtlsAuthSpec(); + } + input.ReadMessage(MtlsAuth); + break; + } + case 42: { + customSearchAttributes_.AddEntriesFrom(ref input, _map_customSearchAttributes_codec); + break; + } + case 50: { + if (codecServer_ == null) { + CodecServer = new global::Temporalio.Api.Cloud.Namespace.V1.CodecServerSpec(); + } + input.ReadMessage(CodecServer); + break; + } + case 58: { + if (apiKeyAuth_ == null) { + ApiKeyAuth = new global::Temporalio.Api.Cloud.Namespace.V1.ApiKeyAuthSpec(); + } + input.ReadMessage(ApiKeyAuth); + break; + } + } + } + } + #endif + + } + + public sealed partial class Endpoints : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Endpoints()); + 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.Cloud.Namespace.V1.MessageReflection.Descriptor.MessageTypes[5]; } + } + + [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 Endpoints() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Endpoints(Endpoints other) : this() { + webAddress_ = other.webAddress_; + mtlsGrpcAddress_ = other.mtlsGrpcAddress_; + grpcAddress_ = other.grpcAddress_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Endpoints Clone() { + return new Endpoints(this); + } + + /// Field number for the "web_address" field. + public const int WebAddressFieldNumber = 1; + private string webAddress_ = ""; + /// + /// The web UI address. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string WebAddress { + get { return webAddress_; } + set { + webAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "mtls_grpc_address" field. + public const int MtlsGrpcAddressFieldNumber = 2; + private string mtlsGrpcAddress_ = ""; + /// + /// The gRPC address for mTLS client connections (may be empty if mTLS is disabled). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MtlsGrpcAddress { + get { return mtlsGrpcAddress_; } + set { + mtlsGrpcAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "grpc_address" field. + public const int GrpcAddressFieldNumber = 3; + private string grpcAddress_ = ""; + /// + /// The gRPC address for API key client connections (may be empty if API keys are disabled). + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GrpcAddress { + get { return grpcAddress_; } + set { + grpcAddress_ = 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 Endpoints); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Endpoints other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (WebAddress != other.WebAddress) return false; + if (MtlsGrpcAddress != other.MtlsGrpcAddress) return false; + if (GrpcAddress != other.GrpcAddress) 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 (WebAddress.Length != 0) hash ^= WebAddress.GetHashCode(); + if (MtlsGrpcAddress.Length != 0) hash ^= MtlsGrpcAddress.GetHashCode(); + if (GrpcAddress.Length != 0) hash ^= GrpcAddress.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 (WebAddress.Length != 0) { + output.WriteRawTag(10); + output.WriteString(WebAddress); + } + if (MtlsGrpcAddress.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MtlsGrpcAddress); + } + if (GrpcAddress.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GrpcAddress); + } + 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 (WebAddress.Length != 0) { + output.WriteRawTag(10); + output.WriteString(WebAddress); + } + if (MtlsGrpcAddress.Length != 0) { + output.WriteRawTag(18); + output.WriteString(MtlsGrpcAddress); + } + if (GrpcAddress.Length != 0) { + output.WriteRawTag(26); + output.WriteString(GrpcAddress); + } + 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 (WebAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(WebAddress); + } + if (MtlsGrpcAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MtlsGrpcAddress); + } + if (GrpcAddress.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GrpcAddress); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Endpoints other) { + if (other == null) { + return; + } + if (other.WebAddress.Length != 0) { + WebAddress = other.WebAddress; + } + if (other.MtlsGrpcAddress.Length != 0) { + MtlsGrpcAddress = other.MtlsGrpcAddress; + } + if (other.GrpcAddress.Length != 0) { + GrpcAddress = other.GrpcAddress; + } + _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: { + WebAddress = input.ReadString(); + break; + } + case 18: { + MtlsGrpcAddress = input.ReadString(); + break; + } + case 26: { + GrpcAddress = 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: { + WebAddress = input.ReadString(); + break; + } + case 18: { + MtlsGrpcAddress = input.ReadString(); + break; + } + case 26: { + GrpcAddress = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class Limits : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Limits()); + 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.Cloud.Namespace.V1.MessageReflection.Descriptor.MessageTypes[6]; } + } + + [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 Limits() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Limits(Limits other) : this() { + actionsPerSecondLimit_ = other.actionsPerSecondLimit_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Limits Clone() { + return new Limits(this); + } + + /// Field number for the "actions_per_second_limit" field. + public const int ActionsPerSecondLimitFieldNumber = 1; + private int actionsPerSecondLimit_; + /// + /// The number of actions per second (APS) that is currently allowed for the namespace. + /// The namespace may be throttled if its APS exceeds the limit. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ActionsPerSecondLimit { + get { return actionsPerSecondLimit_; } + set { + actionsPerSecondLimit_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Limits); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Limits other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ActionsPerSecondLimit != other.ActionsPerSecondLimit) 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 (ActionsPerSecondLimit != 0) hash ^= ActionsPerSecondLimit.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 (ActionsPerSecondLimit != 0) { + output.WriteRawTag(8); + output.WriteInt32(ActionsPerSecondLimit); + } + 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 (ActionsPerSecondLimit != 0) { + output.WriteRawTag(8); + output.WriteInt32(ActionsPerSecondLimit); + } + 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 (ActionsPerSecondLimit != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ActionsPerSecondLimit); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Limits other) { + if (other == null) { + return; + } + if (other.ActionsPerSecondLimit != 0) { + ActionsPerSecondLimit = other.ActionsPerSecondLimit; + } + _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: { + ActionsPerSecondLimit = input.ReadInt32(); + 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: { + ActionsPerSecondLimit = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + public sealed partial class AWSPrivateLinkInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AWSPrivateLinkInfo()); + 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.Cloud.Namespace.V1.MessageReflection.Descriptor.MessageTypes[7]; } + } + + [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 AWSPrivateLinkInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AWSPrivateLinkInfo(AWSPrivateLinkInfo other) : this() { + allowedPrincipalArns_ = other.allowedPrincipalArns_.Clone(); + vpcEndpointServiceNames_ = other.vpcEndpointServiceNames_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AWSPrivateLinkInfo Clone() { + return new AWSPrivateLinkInfo(this); + } + + /// Field number for the "allowed_principal_arns" field. + public const int AllowedPrincipalArnsFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_allowedPrincipalArns_codec + = pb::FieldCodec.ForString(10); + private readonly pbc::RepeatedField allowedPrincipalArns_ = new pbc::RepeatedField(); + /// + /// The list of principal arns that are allowed to access the namespace on the private link. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField AllowedPrincipalArns { + get { return allowedPrincipalArns_; } + } + + /// Field number for the "vpc_endpoint_service_names" field. + public const int VpcEndpointServiceNamesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_vpcEndpointServiceNames_codec + = pb::FieldCodec.ForString(18); + private readonly pbc::RepeatedField vpcEndpointServiceNames_ = new pbc::RepeatedField(); + /// + /// The list of vpc endpoint service names that are associated with the namespace. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField VpcEndpointServiceNames { + get { return vpcEndpointServiceNames_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AWSPrivateLinkInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AWSPrivateLinkInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!allowedPrincipalArns_.Equals(other.allowedPrincipalArns_)) return false; + if(!vpcEndpointServiceNames_.Equals(other.vpcEndpointServiceNames_)) 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 ^= allowedPrincipalArns_.GetHashCode(); + hash ^= vpcEndpointServiceNames_.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 + allowedPrincipalArns_.WriteTo(output, _repeated_allowedPrincipalArns_codec); + vpcEndpointServiceNames_.WriteTo(output, _repeated_vpcEndpointServiceNames_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) { + allowedPrincipalArns_.WriteTo(ref output, _repeated_allowedPrincipalArns_codec); + vpcEndpointServiceNames_.WriteTo(ref output, _repeated_vpcEndpointServiceNames_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 += allowedPrincipalArns_.CalculateSize(_repeated_allowedPrincipalArns_codec); + size += vpcEndpointServiceNames_.CalculateSize(_repeated_vpcEndpointServiceNames_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AWSPrivateLinkInfo other) { + if (other == null) { + return; + } + allowedPrincipalArns_.Add(other.allowedPrincipalArns_); + vpcEndpointServiceNames_.Add(other.vpcEndpointServiceNames_); + _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: { + allowedPrincipalArns_.AddEntriesFrom(input, _repeated_allowedPrincipalArns_codec); + break; + } + case 18: { + vpcEndpointServiceNames_.AddEntriesFrom(input, _repeated_vpcEndpointServiceNames_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: { + allowedPrincipalArns_.AddEntriesFrom(ref input, _repeated_allowedPrincipalArns_codec); + break; + } + case 18: { + vpcEndpointServiceNames_.AddEntriesFrom(ref input, _repeated_vpcEndpointServiceNames_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class PrivateConnectivity : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PrivateConnectivity()); + 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.Cloud.Namespace.V1.MessageReflection.Descriptor.MessageTypes[8]; } + } + + [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 PrivateConnectivity() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PrivateConnectivity(PrivateConnectivity other) : this() { + region_ = other.region_; + awsPrivateLink_ = other.awsPrivateLink_ != null ? other.awsPrivateLink_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PrivateConnectivity Clone() { + return new PrivateConnectivity(this); + } + + /// Field number for the "region" field. + public const int RegionFieldNumber = 1; + private string region_ = ""; + /// + /// The id of the region where the private connectivity applies. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Region { + get { return region_; } + set { + region_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "aws_private_link" field. + public const int AwsPrivateLinkFieldNumber = 2; + private global::Temporalio.Api.Cloud.Namespace.V1.AWSPrivateLinkInfo awsPrivateLink_; + /// + /// The AWS PrivateLink info. + /// This will only be set for an aws region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Namespace.V1.AWSPrivateLinkInfo AwsPrivateLink { + get { return awsPrivateLink_; } + set { + awsPrivateLink_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PrivateConnectivity); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PrivateConnectivity other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Region != other.Region) return false; + if (!object.Equals(AwsPrivateLink, other.AwsPrivateLink)) 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 (Region.Length != 0) hash ^= Region.GetHashCode(); + if (awsPrivateLink_ != null) hash ^= AwsPrivateLink.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 (Region.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Region); + } + if (awsPrivateLink_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AwsPrivateLink); + } + 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 (Region.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Region); + } + if (awsPrivateLink_ != null) { + output.WriteRawTag(18); + output.WriteMessage(AwsPrivateLink); + } + 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 (Region.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Region); + } + if (awsPrivateLink_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(AwsPrivateLink); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PrivateConnectivity other) { + if (other == null) { + return; + } + if (other.Region.Length != 0) { + Region = other.Region; + } + if (other.awsPrivateLink_ != null) { + if (awsPrivateLink_ == null) { + AwsPrivateLink = new global::Temporalio.Api.Cloud.Namespace.V1.AWSPrivateLinkInfo(); + } + AwsPrivateLink.MergeFrom(other.AwsPrivateLink); + } + _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: { + Region = input.ReadString(); + break; + } + case 18: { + if (awsPrivateLink_ == null) { + AwsPrivateLink = new global::Temporalio.Api.Cloud.Namespace.V1.AWSPrivateLinkInfo(); + } + input.ReadMessage(AwsPrivateLink); + 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: { + Region = input.ReadString(); + break; + } + case 18: { + if (awsPrivateLink_ == null) { + AwsPrivateLink = new global::Temporalio.Api.Cloud.Namespace.V1.AWSPrivateLinkInfo(); + } + input.ReadMessage(AwsPrivateLink); + break; + } + } + } + } + #endif + + } + + public sealed partial class Namespace : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Namespace()); + 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.Cloud.Namespace.V1.MessageReflection.Descriptor.MessageTypes[9]; } + } + + [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 Namespace() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Namespace(Namespace other) : this() { + namespace_ = other.namespace_; + resourceVersion_ = other.resourceVersion_; + spec_ = other.spec_ != null ? other.spec_.Clone() : null; + state_ = other.state_; + asyncOperationId_ = other.asyncOperationId_; + endpoints_ = other.endpoints_ != null ? other.endpoints_.Clone() : null; + activeRegion_ = other.activeRegion_; + limits_ = other.limits_ != null ? other.limits_.Clone() : null; + privateConnectivities_ = other.privateConnectivities_.Clone(); + createdTime_ = other.createdTime_ != null ? other.createdTime_.Clone() : null; + lastModifiedTime_ = other.lastModifiedTime_ != null ? other.lastModifiedTime_.Clone() : null; + regionStatus_ = other.regionStatus_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Namespace Clone() { + return new Namespace(this); + } + + /// Field number for the "namespace" field. + public const int Namespace_FieldNumber = 1; + private string namespace_ = ""; + /// + /// The namespace identifier. + /// + [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 "resource_version" field. + public const int ResourceVersionFieldNumber = 2; + private string resourceVersion_ = ""; + /// + /// The current version of the namespace specification. + /// The next update operation will have to include this version. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceVersion { + get { return resourceVersion_; } + set { + resourceVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "spec" field. + public const int SpecFieldNumber = 3; + private global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec spec_; + /// + /// The namespace specification. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec Spec { + get { return spec_; } + set { + spec_ = value; + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 4; + private string state_ = ""; + /// + /// The current state of the namespace. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string State { + get { return state_; } + set { + state_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 5; + private string asyncOperationId_ = ""; + /// + /// The id of the async operation that is creating/updating/deleting the namespace, if any. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "endpoints" field. + public const int EndpointsFieldNumber = 6; + private global::Temporalio.Api.Cloud.Namespace.V1.Endpoints endpoints_; + /// + /// The endpoints for the namespace. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Namespace.V1.Endpoints Endpoints { + get { return endpoints_; } + set { + endpoints_ = value; + } + } + + /// Field number for the "active_region" field. + public const int ActiveRegionFieldNumber = 7; + private string activeRegion_ = ""; + /// + /// The currently active region for the namespace. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ActiveRegion { + get { return activeRegion_; } + set { + activeRegion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "limits" field. + public const int LimitsFieldNumber = 8; + private global::Temporalio.Api.Cloud.Namespace.V1.Limits limits_; + /// + /// The limits set on the namespace currently. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Temporalio.Api.Cloud.Namespace.V1.Limits Limits { + get { return limits_; } + set { + limits_ = value; + } + } + + /// Field number for the "private_connectivities" field. + public const int PrivateConnectivitiesFieldNumber = 9; + private static readonly pb::FieldCodec _repeated_privateConnectivities_codec + = pb::FieldCodec.ForMessage(74, global::Temporalio.Api.Cloud.Namespace.V1.PrivateConnectivity.Parser); + private readonly pbc::RepeatedField privateConnectivities_ = new pbc::RepeatedField(); + /// + /// The private connectivities for the namespace, if any. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField PrivateConnectivities { + get { return privateConnectivities_; } + } + + /// Field number for the "created_time" field. + public const int CreatedTimeFieldNumber = 10; + private global::Google.Protobuf.WellKnownTypes.Timestamp createdTime_; + /// + /// The date and time when the namespace was created. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedTime { + get { return createdTime_; } + set { + createdTime_ = value; + } + } + + /// Field number for the "last_modified_time" field. + public const int LastModifiedTimeFieldNumber = 11; + private global::Google.Protobuf.WellKnownTypes.Timestamp lastModifiedTime_; + /// + /// The date and time when the namespace was last modified. + /// Will not be set if the namespace has never been modified. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp LastModifiedTime { + get { return lastModifiedTime_; } + set { + lastModifiedTime_ = value; + } + } + + /// Field number for the "region_status" field. + public const int RegionStatusFieldNumber = 12; + private static readonly pbc::MapField.Codec _map_regionStatus_codec + = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Temporalio.Api.Cloud.Namespace.V1.NamespaceRegionStatus.Parser), 98); + private readonly pbc::MapField regionStatus_ = new pbc::MapField(); + /// + /// The status of each region where the namespace is available. + /// The id of the region is the key and the status is the value of the map. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::MapField RegionStatus { + get { return regionStatus_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Namespace); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Namespace other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Namespace_ != other.Namespace_) return false; + if (ResourceVersion != other.ResourceVersion) return false; + if (!object.Equals(Spec, other.Spec)) return false; + if (State != other.State) return false; + if (AsyncOperationId != other.AsyncOperationId) return false; + if (!object.Equals(Endpoints, other.Endpoints)) return false; + if (ActiveRegion != other.ActiveRegion) return false; + if (!object.Equals(Limits, other.Limits)) return false; + if(!privateConnectivities_.Equals(other.privateConnectivities_)) return false; + if (!object.Equals(CreatedTime, other.CreatedTime)) return false; + if (!object.Equals(LastModifiedTime, other.LastModifiedTime)) return false; + if (!RegionStatus.Equals(other.RegionStatus)) 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 (ResourceVersion.Length != 0) hash ^= ResourceVersion.GetHashCode(); + if (spec_ != null) hash ^= Spec.GetHashCode(); + if (State.Length != 0) hash ^= State.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.GetHashCode(); + if (endpoints_ != null) hash ^= Endpoints.GetHashCode(); + if (ActiveRegion.Length != 0) hash ^= ActiveRegion.GetHashCode(); + if (limits_ != null) hash ^= Limits.GetHashCode(); + hash ^= privateConnectivities_.GetHashCode(); + if (createdTime_ != null) hash ^= CreatedTime.GetHashCode(); + if (lastModifiedTime_ != null) hash ^= LastModifiedTime.GetHashCode(); + hash ^= RegionStatus.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 (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (spec_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Spec); + } + if (State.Length != 0) { + output.WriteRawTag(34); + output.WriteString(State); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + if (endpoints_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Endpoints); + } + if (ActiveRegion.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ActiveRegion); + } + if (limits_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Limits); + } + privateConnectivities_.WriteTo(output, _repeated_privateConnectivities_codec); + if (createdTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CreatedTime); + } + if (lastModifiedTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(LastModifiedTime); + } + regionStatus_.WriteTo(output, _map_regionStatus_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 (Namespace_.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Namespace_); + } + if (ResourceVersion.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ResourceVersion); + } + if (spec_ != null) { + output.WriteRawTag(26); + output.WriteMessage(Spec); + } + if (State.Length != 0) { + output.WriteRawTag(34); + output.WriteString(State); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(AsyncOperationId); + } + if (endpoints_ != null) { + output.WriteRawTag(50); + output.WriteMessage(Endpoints); + } + if (ActiveRegion.Length != 0) { + output.WriteRawTag(58); + output.WriteString(ActiveRegion); + } + if (limits_ != null) { + output.WriteRawTag(66); + output.WriteMessage(Limits); + } + privateConnectivities_.WriteTo(ref output, _repeated_privateConnectivities_codec); + if (createdTime_ != null) { + output.WriteRawTag(82); + output.WriteMessage(CreatedTime); + } + if (lastModifiedTime_ != null) { + output.WriteRawTag(90); + output.WriteMessage(LastModifiedTime); + } + regionStatus_.WriteTo(ref output, _map_regionStatus_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 (Namespace_.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace_); + } + if (ResourceVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceVersion); + } + if (spec_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Spec); + } + if (State.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(State); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (endpoints_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Endpoints); + } + if (ActiveRegion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ActiveRegion); + } + if (limits_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Limits); + } + size += privateConnectivities_.CalculateSize(_repeated_privateConnectivities_codec); + if (createdTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedTime); + } + if (lastModifiedTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastModifiedTime); + } + size += regionStatus_.CalculateSize(_map_regionStatus_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Namespace other) { + if (other == null) { + return; + } + if (other.Namespace_.Length != 0) { + Namespace_ = other.Namespace_; + } + if (other.ResourceVersion.Length != 0) { + ResourceVersion = other.ResourceVersion; + } + if (other.spec_ != null) { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec(); + } + Spec.MergeFrom(other.Spec); + } + if (other.State.Length != 0) { + State = other.State; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + if (other.endpoints_ != null) { + if (endpoints_ == null) { + Endpoints = new global::Temporalio.Api.Cloud.Namespace.V1.Endpoints(); + } + Endpoints.MergeFrom(other.Endpoints); + } + if (other.ActiveRegion.Length != 0) { + ActiveRegion = other.ActiveRegion; + } + if (other.limits_ != null) { + if (limits_ == null) { + Limits = new global::Temporalio.Api.Cloud.Namespace.V1.Limits(); + } + Limits.MergeFrom(other.Limits); + } + privateConnectivities_.Add(other.privateConnectivities_); + if (other.createdTime_ != null) { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + CreatedTime.MergeFrom(other.CreatedTime); + } + if (other.lastModifiedTime_ != null) { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + LastModifiedTime.MergeFrom(other.LastModifiedTime); + } + regionStatus_.MergeFrom(other.regionStatus_); + _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: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec(); + } + input.ReadMessage(Spec); + break; + } + case 34: { + State = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = input.ReadString(); + break; + } + case 50: { + if (endpoints_ == null) { + Endpoints = new global::Temporalio.Api.Cloud.Namespace.V1.Endpoints(); + } + input.ReadMessage(Endpoints); + break; + } + case 58: { + ActiveRegion = input.ReadString(); + break; + } + case 66: { + if (limits_ == null) { + Limits = new global::Temporalio.Api.Cloud.Namespace.V1.Limits(); + } + input.ReadMessage(Limits); + break; + } + case 74: { + privateConnectivities_.AddEntriesFrom(input, _repeated_privateConnectivities_codec); + break; + } + case 82: { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedTime); + break; + } + case 90: { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastModifiedTime); + break; + } + case 98: { + regionStatus_.AddEntriesFrom(input, _map_regionStatus_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: { + Namespace_ = input.ReadString(); + break; + } + case 18: { + ResourceVersion = input.ReadString(); + break; + } + case 26: { + if (spec_ == null) { + Spec = new global::Temporalio.Api.Cloud.Namespace.V1.NamespaceSpec(); + } + input.ReadMessage(Spec); + break; + } + case 34: { + State = input.ReadString(); + break; + } + case 42: { + AsyncOperationId = input.ReadString(); + break; + } + case 50: { + if (endpoints_ == null) { + Endpoints = new global::Temporalio.Api.Cloud.Namespace.V1.Endpoints(); + } + input.ReadMessage(Endpoints); + break; + } + case 58: { + ActiveRegion = input.ReadString(); + break; + } + case 66: { + if (limits_ == null) { + Limits = new global::Temporalio.Api.Cloud.Namespace.V1.Limits(); + } + input.ReadMessage(Limits); + break; + } + case 74: { + privateConnectivities_.AddEntriesFrom(ref input, _repeated_privateConnectivities_codec); + break; + } + case 82: { + if (createdTime_ == null) { + CreatedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(CreatedTime); + break; + } + case 90: { + if (lastModifiedTime_ == null) { + LastModifiedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(LastModifiedTime); + break; + } + case 98: { + regionStatus_.AddEntriesFrom(ref input, _map_regionStatus_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class NamespaceRegionStatus : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NamespaceRegionStatus()); + 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.Cloud.Namespace.V1.MessageReflection.Descriptor.MessageTypes[10]; } + } + + [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 NamespaceRegionStatus() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NamespaceRegionStatus(NamespaceRegionStatus other) : this() { + state_ = other.state_; + asyncOperationId_ = other.asyncOperationId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public NamespaceRegionStatus Clone() { + return new NamespaceRegionStatus(this); + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 1; + private string state_ = ""; + /// + /// The current state of the namespace region. + /// Possible values: adding, active, passive, removing, failed. + /// For any failed state, reach out to Temporal Cloud support for remediation. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string State { + get { return state_; } + set { + state_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "async_operation_id" field. + public const int AsyncOperationIdFieldNumber = 2; + private string asyncOperationId_ = ""; + /// + /// The id of the async operation that is making changes to where the namespace is available, if any. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string AsyncOperationId { + get { return asyncOperationId_; } + set { + asyncOperationId_ = 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 NamespaceRegionStatus); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(NamespaceRegionStatus other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (State != other.State) return false; + if (AsyncOperationId != other.AsyncOperationId) 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 (State.Length != 0) hash ^= State.GetHashCode(); + if (AsyncOperationId.Length != 0) hash ^= AsyncOperationId.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 (State.Length != 0) { + output.WriteRawTag(10); + output.WriteString(State); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AsyncOperationId); + } + 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 (State.Length != 0) { + output.WriteRawTag(10); + output.WriteString(State); + } + if (AsyncOperationId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(AsyncOperationId); + } + 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 (State.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(State); + } + if (AsyncOperationId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(AsyncOperationId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(NamespaceRegionStatus other) { + if (other == null) { + return; + } + if (other.State.Length != 0) { + State = other.State; + } + if (other.AsyncOperationId.Length != 0) { + AsyncOperationId = other.AsyncOperationId; + } + _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: { + State = input.ReadString(); + break; + } + case 18: { + AsyncOperationId = 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: { + State = input.ReadString(); + break; + } + case 18: { + AsyncOperationId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Temporalio/Api/Cloud/Operation/V1/Message.cs b/src/Temporalio/Api/Cloud/Operation/V1/Message.cs new file mode 100644 index 00000000..957b36c9 --- /dev/null +++ b/src/Temporalio/Api/Cloud/Operation/V1/Message.cs @@ -0,0 +1,567 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: temporal/api/cloud/operation/v1/message.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.Cloud.Operation.V1 { + + /// Holder for reflection information generated from temporal/api/cloud/operation/v1/message.proto + public static partial class MessageReflection { + + #region Descriptor + /// File descriptor for temporal/api/cloud/operation/v1/message.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MessageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Ci10ZW1wb3JhbC9hcGkvY2xvdWQvb3BlcmF0aW9uL3YxL21lc3NhZ2UucHJv", + "dG8SH3RlbXBvcmFsLmFwaS5jbG91ZC5vcGVyYXRpb24udjEaHmdvb2dsZS9w", + "cm90b2J1Zi9kdXJhdGlvbi5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVz", + "dGFtcC5wcm90bxoZZ29vZ2xlL3Byb3RvYnVmL2FueS5wcm90byKiAgoOQXN5", + "bmNPcGVyYXRpb24SCgoCaWQYASABKAkSDQoFc3RhdGUYAiABKAkSMQoOY2hl", + "Y2tfZHVyYXRpb24YAyABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb24S", + "FgoOb3BlcmF0aW9uX3R5cGUYBCABKAkSLQoPb3BlcmF0aW9uX2lucHV0GAUg", + "ASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueRIWCg5mYWlsdXJlX3JlYXNvbhgG", + "IAEoCRIwCgxzdGFydGVkX3RpbWUYByABKAsyGi5nb29nbGUucHJvdG9idWYu", + "VGltZXN0YW1wEjEKDWZpbmlzaGVkX3RpbWUYCCABKAsyGi5nb29nbGUucHJv", + "dG9idWYuVGltZXN0YW1wQrEBCiJpby50ZW1wb3JhbC5hcGkuY2xvdWQub3Bl", + "cmF0aW9uLnYxQgxNZXNzYWdlUHJvdG9QAVovZ28udGVtcG9yYWwuaW8vYXBp", + "L2Nsb3VkL29wZXJhdGlvbi92MTtvcGVyYXRpb26qAiFUZW1wb3JhbGlvLkFw", + "aS5DbG91ZC5PcGVyYXRpb24uVjHqAiVUZW1wb3JhbGlvOjpBcGk6OkNsb3Vk", + "OjpPcGVyYXRpb246OlYxYgZwcm90bzM=")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.AnyReflection.Descriptor, }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation), global::Temporalio.Api.Cloud.Operation.V1.AsyncOperation.Parser, new[]{ "Id", "State", "CheckDuration", "OperationType", "OperationInput", "FailureReason", "StartedTime", "FinishedTime" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class AsyncOperation : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AsyncOperation()); + 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.Cloud.Operation.V1.MessageReflection.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 AsyncOperation() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AsyncOperation(AsyncOperation other) : this() { + id_ = other.id_; + state_ = other.state_; + checkDuration_ = other.checkDuration_ != null ? other.checkDuration_.Clone() : null; + operationType_ = other.operationType_; + operationInput_ = other.operationInput_ != null ? other.operationInput_.Clone() : null; + failureReason_ = other.failureReason_; + startedTime_ = other.startedTime_ != null ? other.startedTime_.Clone() : null; + finishedTime_ = other.finishedTime_ != null ? other.finishedTime_.Clone() : null; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public AsyncOperation Clone() { + return new AsyncOperation(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// The operation id + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "state" field. + public const int StateFieldNumber = 2; + private string state_ = ""; + /// + /// The current state of this operation + /// Possible values are: pending, in_progress, failed, cancelled, fulfilled + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string State { + get { return state_; } + set { + state_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "check_duration" field. + public const int CheckDurationFieldNumber = 3; + private global::Google.Protobuf.WellKnownTypes.Duration checkDuration_; + /// + /// The recommended duration to check back for an update in the operation's state + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Duration CheckDuration { + get { return checkDuration_; } + set { + checkDuration_ = value; + } + } + + /// Field number for the "operation_type" field. + public const int OperationTypeFieldNumber = 4; + private string operationType_ = ""; + /// + /// The type of operation being performed + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OperationType { + get { return operationType_; } + set { + operationType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "operation_input" field. + public const int OperationInputFieldNumber = 5; + private global::Google.Protobuf.WellKnownTypes.Any operationInput_; + /// + /// The input to the operation being performed + /// + /// (-- api-linter: core::0146::any=disabled --) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Any OperationInput { + get { return operationInput_; } + set { + operationInput_ = value; + } + } + + /// Field number for the "failure_reason" field. + public const int FailureReasonFieldNumber = 6; + private string failureReason_ = ""; + /// + /// If the operation failed, the reason for the failure + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FailureReason { + get { return failureReason_; } + set { + failureReason_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "started_time" field. + public const int StartedTimeFieldNumber = 7; + private global::Google.Protobuf.WellKnownTypes.Timestamp startedTime_; + /// + /// The date and time when the operation initiated + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp StartedTime { + get { return startedTime_; } + set { + startedTime_ = value; + } + } + + /// Field number for the "finished_time" field. + public const int FinishedTimeFieldNumber = 8; + private global::Google.Protobuf.WellKnownTypes.Timestamp finishedTime_; + /// + /// The date and time when the operation completed + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public global::Google.Protobuf.WellKnownTypes.Timestamp FinishedTime { + get { return finishedTime_; } + set { + finishedTime_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as AsyncOperation); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(AsyncOperation other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (State != other.State) return false; + if (!object.Equals(CheckDuration, other.CheckDuration)) return false; + if (OperationType != other.OperationType) return false; + if (!object.Equals(OperationInput, other.OperationInput)) return false; + if (FailureReason != other.FailureReason) return false; + if (!object.Equals(StartedTime, other.StartedTime)) return false; + if (!object.Equals(FinishedTime, other.FinishedTime)) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (State.Length != 0) hash ^= State.GetHashCode(); + if (checkDuration_ != null) hash ^= CheckDuration.GetHashCode(); + if (OperationType.Length != 0) hash ^= OperationType.GetHashCode(); + if (operationInput_ != null) hash ^= OperationInput.GetHashCode(); + if (FailureReason.Length != 0) hash ^= FailureReason.GetHashCode(); + if (startedTime_ != null) hash ^= StartedTime.GetHashCode(); + if (finishedTime_ != null) hash ^= FinishedTime.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (State.Length != 0) { + output.WriteRawTag(18); + output.WriteString(State); + } + if (checkDuration_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CheckDuration); + } + if (OperationType.Length != 0) { + output.WriteRawTag(34); + output.WriteString(OperationType); + } + if (operationInput_ != null) { + output.WriteRawTag(42); + output.WriteMessage(OperationInput); + } + if (FailureReason.Length != 0) { + output.WriteRawTag(50); + output.WriteString(FailureReason); + } + if (startedTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(StartedTime); + } + if (finishedTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(FinishedTime); + } + 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (State.Length != 0) { + output.WriteRawTag(18); + output.WriteString(State); + } + if (checkDuration_ != null) { + output.WriteRawTag(26); + output.WriteMessage(CheckDuration); + } + if (OperationType.Length != 0) { + output.WriteRawTag(34); + output.WriteString(OperationType); + } + if (operationInput_ != null) { + output.WriteRawTag(42); + output.WriteMessage(OperationInput); + } + if (FailureReason.Length != 0) { + output.WriteRawTag(50); + output.WriteString(FailureReason); + } + if (startedTime_ != null) { + output.WriteRawTag(58); + output.WriteMessage(StartedTime); + } + if (finishedTime_ != null) { + output.WriteRawTag(66); + output.WriteMessage(FinishedTime); + } + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (State.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(State); + } + if (checkDuration_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(CheckDuration); + } + if (OperationType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OperationType); + } + if (operationInput_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(OperationInput); + } + if (FailureReason.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FailureReason); + } + if (startedTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(StartedTime); + } + if (finishedTime_ != null) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(FinishedTime); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(AsyncOperation other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.State.Length != 0) { + State = other.State; + } + if (other.checkDuration_ != null) { + if (checkDuration_ == null) { + CheckDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + CheckDuration.MergeFrom(other.CheckDuration); + } + if (other.OperationType.Length != 0) { + OperationType = other.OperationType; + } + if (other.operationInput_ != null) { + if (operationInput_ == null) { + OperationInput = new global::Google.Protobuf.WellKnownTypes.Any(); + } + OperationInput.MergeFrom(other.OperationInput); + } + if (other.FailureReason.Length != 0) { + FailureReason = other.FailureReason; + } + if (other.startedTime_ != null) { + if (startedTime_ == null) { + StartedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + StartedTime.MergeFrom(other.StartedTime); + } + if (other.finishedTime_ != null) { + if (finishedTime_ == null) { + FinishedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + FinishedTime.MergeFrom(other.FinishedTime); + } + _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: { + Id = input.ReadString(); + break; + } + case 18: { + State = input.ReadString(); + break; + } + case 26: { + if (checkDuration_ == null) { + CheckDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(CheckDuration); + break; + } + case 34: { + OperationType = input.ReadString(); + break; + } + case 42: { + if (operationInput_ == null) { + OperationInput = new global::Google.Protobuf.WellKnownTypes.Any(); + } + input.ReadMessage(OperationInput); + break; + } + case 50: { + FailureReason = input.ReadString(); + break; + } + case 58: { + if (startedTime_ == null) { + StartedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartedTime); + break; + } + case 66: { + if (finishedTime_ == null) { + FinishedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishedTime); + 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: { + Id = input.ReadString(); + break; + } + case 18: { + State = input.ReadString(); + break; + } + case 26: { + if (checkDuration_ == null) { + CheckDuration = new global::Google.Protobuf.WellKnownTypes.Duration(); + } + input.ReadMessage(CheckDuration); + break; + } + case 34: { + OperationType = input.ReadString(); + break; + } + case 42: { + if (operationInput_ == null) { + OperationInput = new global::Google.Protobuf.WellKnownTypes.Any(); + } + input.ReadMessage(OperationInput); + break; + } + case 50: { + FailureReason = input.ReadString(); + break; + } + case 58: { + if (startedTime_ == null) { + StartedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(StartedTime); + break; + } + case 66: { + if (finishedTime_ == null) { + FinishedTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); + } + input.ReadMessage(FinishedTime); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Temporalio/Api/Cloud/Region/V1/Message.cs b/src/Temporalio/Api/Cloud/Region/V1/Message.cs new file mode 100644 index 00000000..56778f0a --- /dev/null +++ b/src/Temporalio/Api/Cloud/Region/V1/Message.cs @@ -0,0 +1,362 @@ +// +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: temporal/api/cloud/region/v1/message.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.Cloud.Region.V1 { + + /// Holder for reflection information generated from temporal/api/cloud/region/v1/message.proto + public static partial class MessageReflection { + + #region Descriptor + /// File descriptor for temporal/api/cloud/region/v1/message.proto + public static pbr::FileDescriptor Descriptor { + get { return descriptor; } + } + private static pbr::FileDescriptor descriptor; + + static MessageReflection() { + byte[] descriptorData = global::System.Convert.FromBase64String( + string.Concat( + "Cip0ZW1wb3JhbC9hcGkvY2xvdWQvcmVnaW9uL3YxL21lc3NhZ2UucHJvdG8S", + "HHRlbXBvcmFsLmFwaS5jbG91ZC5yZWdpb24udjEiXQoGUmVnaW9uEgoKAmlk", + "GAEgASgJEhYKDmNsb3VkX3Byb3ZpZGVyGAIgASgJEh0KFWNsb3VkX3Byb3Zp", + "ZGVyX3JlZ2lvbhgDIAEoCRIQCghsb2NhdGlvbhgEIAEoCUKiAQofaW8udGVt", + "cG9yYWwuYXBpLmNsb3VkLnJlZ2lvbi52MUIMTWVzc2FnZVByb3RvUAFaKWdv", + "LnRlbXBvcmFsLmlvL2FwaS9jbG91ZC9yZWdpb24vdjE7cmVnaW9uqgIeVGVt", + "cG9yYWxpby5BcGkuQ2xvdWQuUmVnaW9uLlYx6gIiVGVtcG9yYWxpbzo6QXBp", + "OjpDbG91ZDo6UmVnaW9uOjpWMWIGcHJvdG8z")); + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, + new pbr::FileDescriptor[] { }, + new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { + new pbr::GeneratedClrTypeInfo(typeof(global::Temporalio.Api.Cloud.Region.V1.Region), global::Temporalio.Api.Cloud.Region.V1.Region.Parser, new[]{ "Id", "CloudProvider", "CloudProviderRegion", "Location" }, null, null, null, null) + })); + } + #endregion + + } + #region Messages + public sealed partial class Region : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Region()); + 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.Cloud.Region.V1.MessageReflection.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 Region() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Region(Region other) : this() { + id_ = other.id_; + cloudProvider_ = other.cloudProvider_; + cloudProviderRegion_ = other.cloudProviderRegion_; + location_ = other.location_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Region Clone() { + return new Region(this); + } + + /// Field number for the "id" field. + public const int IdFieldNumber = 1; + private string id_ = ""; + /// + /// The id of the temporal cloud region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Id { + get { return id_; } + set { + id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cloud_provider" field. + public const int CloudProviderFieldNumber = 2; + private string cloudProvider_ = ""; + /// + /// The name of the cloud provider that's hosting the region. + /// Currently only "aws" is supported. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CloudProvider { + get { return cloudProvider_; } + set { + cloudProvider_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "cloud_provider_region" field. + public const int CloudProviderRegionFieldNumber = 3; + private string cloudProviderRegion_ = ""; + /// + /// The region identifier as defined by the cloud provider. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CloudProviderRegion { + get { return cloudProviderRegion_; } + set { + cloudProviderRegion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "location" field. + public const int LocationFieldNumber = 4; + private string location_ = ""; + /// + /// The human readable location of the region. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Location { + get { return location_; } + set { + location_ = 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 Region); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Region other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Id != other.Id) return false; + if (CloudProvider != other.CloudProvider) return false; + if (CloudProviderRegion != other.CloudProviderRegion) return false; + if (Location != other.Location) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); + if (CloudProvider.Length != 0) hash ^= CloudProvider.GetHashCode(); + if (CloudProviderRegion.Length != 0) hash ^= CloudProviderRegion.GetHashCode(); + if (Location.Length != 0) hash ^= Location.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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (CloudProvider.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CloudProvider); + } + if (CloudProviderRegion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CloudProviderRegion); + } + if (Location.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Location); + } + 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 (Id.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Id); + } + if (CloudProvider.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CloudProvider); + } + if (CloudProviderRegion.Length != 0) { + output.WriteRawTag(26); + output.WriteString(CloudProviderRegion); + } + if (Location.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Location); + } + 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 (Id.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); + } + if (CloudProvider.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CloudProvider); + } + if (CloudProviderRegion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CloudProviderRegion); + } + if (Location.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Location); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Region other) { + if (other == null) { + return; + } + if (other.Id.Length != 0) { + Id = other.Id; + } + if (other.CloudProvider.Length != 0) { + CloudProvider = other.CloudProvider; + } + if (other.CloudProviderRegion.Length != 0) { + CloudProviderRegion = other.CloudProviderRegion; + } + if (other.Location.Length != 0) { + Location = other.Location; + } + _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: { + Id = input.ReadString(); + break; + } + case 18: { + CloudProvider = input.ReadString(); + break; + } + case 26: { + CloudProviderRegion = input.ReadString(); + break; + } + case 34: { + Location = 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: { + Id = input.ReadString(); + break; + } + case 18: { + CloudProvider = input.ReadString(); + break; + } + case 26: { + CloudProviderRegion = input.ReadString(); + break; + } + case 34: { + Location = input.ReadString(); + break; + } + } + } + } + #endif + + } + + #endregion + +} + +#endregion Designer generated code diff --git a/src/Temporalio/Bridge/Interop/Interop.cs b/src/Temporalio/Bridge/Interop/Interop.cs index 1347edf9..333e9e76 100644 --- a/src/Temporalio/Bridge/Interop/Interop.cs +++ b/src/Temporalio/Bridge/Interop/Interop.cs @@ -40,6 +40,7 @@ internal enum RpcService { Workflow = 1, Operator, + Cloud, Test, Health, } @@ -545,7 +546,7 @@ internal unsafe partial struct SlotSupplier { public SlotSupplier_Tag tag; - [NativeTypeName("__AnonymousRecord_temporal-sdk-bridge_L379_C3")] + [NativeTypeName("__AnonymousRecord_temporal-sdk-bridge_L380_C3")] public _Anonymous_e__Union Anonymous; internal ref FixedSizeSlotSupplier fixed_size @@ -574,11 +575,11 @@ internal ref ResourceBasedSlotSupplier resource_based internal unsafe partial struct _Anonymous_e__Union { [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_temporal-sdk-bridge_L380_C5")] + [NativeTypeName("__AnonymousRecord_temporal-sdk-bridge_L381_C5")] public _Anonymous1_e__Struct Anonymous1; [FieldOffset(0)] - [NativeTypeName("__AnonymousRecord_temporal-sdk-bridge_L383_C5")] + [NativeTypeName("__AnonymousRecord_temporal-sdk-bridge_L384_C5")] public _Anonymous2_e__Struct Anonymous2; internal partial struct _Anonymous1_e__Struct diff --git a/src/Temporalio/Bridge/include/temporal-sdk-bridge.h b/src/Temporalio/Bridge/include/temporal-sdk-bridge.h index 9efdfa2d..37ce5044 100644 --- a/src/Temporalio/Bridge/include/temporal-sdk-bridge.h +++ b/src/Temporalio/Bridge/include/temporal-sdk-bridge.h @@ -37,6 +37,7 @@ typedef enum OpenTelemetryMetricTemporality { typedef enum RpcService { Workflow = 1, Operator, + Cloud, Test, Health, } RpcService; diff --git a/src/Temporalio/Bridge/sdk-core b/src/Temporalio/Bridge/sdk-core index d7a49490..f14a3b81 160000 --- a/src/Temporalio/Bridge/sdk-core +++ b/src/Temporalio/Bridge/sdk-core @@ -1 +1 @@ -Subproject commit d7a49490fa80fff8800a2eaf80b5345d3edc69e7 +Subproject commit f14a3b81b63bf78d0c7c2d9cfe40cd469c069df6 diff --git a/src/Temporalio/Bridge/src/client.rs b/src/Temporalio/Bridge/src/client.rs index 06210c35..a0f05150 100644 --- a/src/Temporalio/Bridge/src/client.rs +++ b/src/Temporalio/Bridge/src/client.rs @@ -9,8 +9,8 @@ use std::str::FromStr; use std::time::Duration; use temporal_client::{ ClientKeepAliveConfig, ClientOptions as CoreClientOptions, ClientOptionsBuilder, - ClientTlsConfig, ConfiguredClient, HealthService, OperatorService, RetryClient, RetryConfig, - TemporalServiceClientWithMetrics, TestService, TlsConfig, WorkflowService, + ClientTlsConfig, CloudService, ConfiguredClient, HealthService, OperatorService, RetryClient, + RetryConfig, TemporalServiceClientWithMetrics, TestService, TlsConfig, WorkflowService, }; use tonic::metadata::MetadataKey; use url::Url; @@ -172,6 +172,7 @@ unsafe impl Sync for RpcCallOptions {} pub enum RpcService { Workflow = 1, Operator, + Cloud, Test, Health, } @@ -219,6 +220,9 @@ pub extern "C" fn client_rpc_call( RpcService::Workflow => { service_call!(call_workflow_service, client, options, cancel_token) } + RpcService::Cloud => { + service_call!(call_cloud_service, client, options, cancel_token) + } RpcService::Operator => { service_call!(call_operator_service, client, options, cancel_token) } @@ -269,6 +273,16 @@ macro_rules! rpc_call { }; } +macro_rules! rpc_call_on_trait { + ($client:ident, $call:ident, $trait:tt, $call_name:ident) => { + if $call.retry { + rpc_resp($trait::$call_name(&mut $client, rpc_req($call)?).await) + } else { + rpc_resp($trait::$call_name(&mut $client.into_inner(), rpc_req($call)?).await) + } + }; +} + async fn call_workflow_service( client: &CoreClient, call: &RpcCallOptions, @@ -354,7 +368,7 @@ async fn call_workflow_service( "StartBatchOperation" => rpc_call!(client, call, start_batch_operation), "StopBatchOperation" => rpc_call!(client, call, stop_batch_operation), "TerminateWorkflowExecution" => rpc_call!(client, call, terminate_workflow_execution), - "UpdateNamespace" => rpc_call!(client, call, update_namespace), + "UpdateNamespace" => rpc_call_on_trait!(client, call, WorkflowService, update_namespace), "UpdateSchedule" => rpc_call!(client, call, update_schedule), "UpdateWorkerVersioningRules" => rpc_call!(client, call, update_worker_versioning_rules), "UpdateWorkflowExecution" => rpc_call!(client, call, update_workflow_execution), @@ -375,7 +389,7 @@ async fn call_operator_service( "AddOrUpdateRemoteCluster" => rpc_call!(client, call, add_or_update_remote_cluster), "AddSearchAttributes" => rpc_call!(client, call, add_search_attributes), "CreateNexusEndpoint" => rpc_call!(client, call, create_nexus_endpoint), - "DeleteNamespace" => rpc_call!(client, call, delete_namespace), + "DeleteNamespace" => rpc_call_on_trait!(client, call, OperatorService, delete_namespace), "DeleteNexusEndpoint" => rpc_call!(client, call, delete_nexus_endpoint), "DeleteWorkflowExecution" => rpc_call!(client, call, delete_workflow_execution), "GetNexusEndpoint" => rpc_call!(client, call, get_nexus_endpoint), @@ -389,6 +403,50 @@ async fn call_operator_service( } } +async fn call_cloud_service<'p>( + client: &CoreClient, + call: &RpcCallOptions, +) -> anyhow::Result> { + let rpc = call.rpc.to_str(); + let mut client = client.clone(); + match rpc { + "AddNamespaceRegion" => rpc_call!(client, call, add_namespace_region), + "CreateApiKey" => rpc_call!(client, call, create_api_key), + "CreateNamespace" => rpc_call!(client, call, create_namespace), + "CreateServiceAccount" => rpc_call!(client, call, create_service_account), + "CreateUserGroup" => rpc_call!(client, call, create_user_group), + "CreateUser" => rpc_call!(client, call, create_user), + "DeleteApiKey" => rpc_call!(client, call, delete_api_key), + "DeleteNamespace" => rpc_call_on_trait!(client, call, CloudService, delete_namespace), + "DeleteServiceAccount" => rpc_call!(client, call, delete_service_account), + "DeleteUserGroup" => rpc_call!(client, call, delete_user_group), + "DeleteUser" => rpc_call!(client, call, delete_user), + "FailoverNamespaceRegion" => rpc_call!(client, call, failover_namespace_region), + "GetApiKey" => rpc_call!(client, call, get_api_key), + "GetApiKeys" => rpc_call!(client, call, get_api_keys), + "GetAsyncOperation" => rpc_call!(client, call, get_async_operation), + "GetNamespace" => rpc_call!(client, call, get_namespace), + "GetNamespaces" => rpc_call!(client, call, get_namespaces), + "GetRegion" => rpc_call!(client, call, get_region), + "GetRegions" => rpc_call!(client, call, get_regions), + "GetServiceAccount" => rpc_call!(client, call, get_service_account), + "GetServiceAccounts" => rpc_call!(client, call, get_service_accounts), + "GetUserGroup" => rpc_call!(client, call, get_user_group), + "GetUserGroups" => rpc_call!(client, call, get_user_groups), + "GetUser" => rpc_call!(client, call, get_user), + "GetUsers" => rpc_call!(client, call, get_users), + "RenameCustomSearchAttribute" => rpc_call!(client, call, rename_custom_search_attribute), + "SetUserGroupNamespaceAccess" => rpc_call!(client, call, set_user_group_namespace_access), + "SetUserNamespaceAccess" => rpc_call!(client, call, set_user_namespace_access), + "UpdateApiKey" => rpc_call!(client, call, update_api_key), + "UpdateNamespace" => rpc_call_on_trait!(client, call, CloudService, update_namespace), + "UpdateServiceAccount" => rpc_call!(client, call, update_service_account), + "UpdateUserGroup" => rpc_call!(client, call, update_user_group), + "UpdateUser" => rpc_call!(client, call, update_user), + rpc => Err(anyhow::anyhow!("Unknown RPC call {}", rpc)), + } +} + async fn call_test_service(client: &CoreClient, call: &RpcCallOptions) -> anyhow::Result> { let rpc = call.rpc.to_str(); let mut client = client.clone(); diff --git a/src/Temporalio/Bridge/src/worker.rs b/src/Temporalio/Bridge/src/worker.rs index 484ed34f..abf10867 100644 --- a/src/Temporalio/Bridge/src/worker.rs +++ b/src/Temporalio/Bridge/src/worker.rs @@ -84,7 +84,6 @@ pub struct ResourceBasedTunerOptions { target_cpu_usage: f64, } - #[derive(Clone)] pub struct Worker { worker: Option>, @@ -166,7 +165,7 @@ pub extern "C" fn worker_new(client: *mut Client, options: *const WorkerOptions) #[no_mangle] pub extern "C" fn worker_free(worker: *mut Worker) { if worker.is_null() { - return + return; } unsafe { let _ = Box::from_raw(worker); @@ -638,9 +637,7 @@ impl TryFrom<&TunerHolder> for temporal_sdk_core::TunerHolder { true }; if !all_are_same { - bail!( - "All resource-based slot suppliers must have the same ResourceBasedTunerOptions", - ); + bail!("All resource-based slot suppliers must have the same ResourceBasedTunerOptions",); } let mut options = temporal_sdk_core::TunerHolderOptionsBuilder::default(); diff --git a/src/Temporalio/Client/CloudService.Rpc.cs b/src/Temporalio/Client/CloudService.Rpc.cs new file mode 100644 index 00000000..dffbbe8b --- /dev/null +++ b/src/Temporalio/Client/CloudService.Rpc.cs @@ -0,0 +1,375 @@ +// +// Generated. DO NOT EDIT! +// +#pragma warning disable 8669 +using System.Threading.Tasks; +using Temporalio.Api.Cloud.CloudService.V1; + +namespace Temporalio.Client +{ + public abstract partial class CloudService + { + /// + /// Invoke AddNamespaceRegion. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task AddNamespaceRegionAsync(AddNamespaceRegionRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("AddNamespaceRegion", req, AddNamespaceRegionResponse.Parser, options); + } + + /// + /// Invoke CreateApiKey. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task CreateApiKeyAsync(CreateApiKeyRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("CreateApiKey", req, CreateApiKeyResponse.Parser, options); + } + + /// + /// Invoke CreateNamespace. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task CreateNamespaceAsync(CreateNamespaceRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("CreateNamespace", req, CreateNamespaceResponse.Parser, options); + } + + /// + /// Invoke CreateServiceAccount. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task CreateServiceAccountAsync(CreateServiceAccountRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("CreateServiceAccount", req, CreateServiceAccountResponse.Parser, options); + } + + /// + /// Invoke CreateUser. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task CreateUserAsync(CreateUserRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("CreateUser", req, CreateUserResponse.Parser, options); + } + + /// + /// Invoke CreateUserGroup. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task CreateUserGroupAsync(CreateUserGroupRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("CreateUserGroup", req, CreateUserGroupResponse.Parser, options); + } + + /// + /// Invoke DeleteApiKey. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task DeleteApiKeyAsync(DeleteApiKeyRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("DeleteApiKey", req, DeleteApiKeyResponse.Parser, options); + } + + /// + /// Invoke DeleteNamespace. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task DeleteNamespaceAsync(DeleteNamespaceRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("DeleteNamespace", req, DeleteNamespaceResponse.Parser, options); + } + + /// + /// Invoke DeleteServiceAccount. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task DeleteServiceAccountAsync(DeleteServiceAccountRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("DeleteServiceAccount", req, DeleteServiceAccountResponse.Parser, options); + } + + /// + /// Invoke DeleteUser. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task DeleteUserAsync(DeleteUserRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("DeleteUser", req, DeleteUserResponse.Parser, options); + } + + /// + /// Invoke DeleteUserGroup. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task DeleteUserGroupAsync(DeleteUserGroupRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("DeleteUserGroup", req, DeleteUserGroupResponse.Parser, options); + } + + /// + /// Invoke FailoverNamespaceRegion. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task FailoverNamespaceRegionAsync(FailoverNamespaceRegionRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("FailoverNamespaceRegion", req, FailoverNamespaceRegionResponse.Parser, options); + } + + /// + /// Invoke GetApiKey. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetApiKeyAsync(GetApiKeyRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetApiKey", req, GetApiKeyResponse.Parser, options); + } + + /// + /// Invoke GetApiKeys. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetApiKeysAsync(GetApiKeysRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetApiKeys", req, GetApiKeysResponse.Parser, options); + } + + /// + /// Invoke GetAsyncOperation. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetAsyncOperationAsync(GetAsyncOperationRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetAsyncOperation", req, GetAsyncOperationResponse.Parser, options); + } + + /// + /// Invoke GetNamespace. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetNamespaceAsync(GetNamespaceRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetNamespace", req, GetNamespaceResponse.Parser, options); + } + + /// + /// Invoke GetNamespaces. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetNamespacesAsync(GetNamespacesRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetNamespaces", req, GetNamespacesResponse.Parser, options); + } + + /// + /// Invoke GetRegion. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetRegionAsync(GetRegionRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetRegion", req, GetRegionResponse.Parser, options); + } + + /// + /// Invoke GetRegions. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetRegionsAsync(GetRegionsRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetRegions", req, GetRegionsResponse.Parser, options); + } + + /// + /// Invoke GetServiceAccount. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetServiceAccountAsync(GetServiceAccountRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetServiceAccount", req, GetServiceAccountResponse.Parser, options); + } + + /// + /// Invoke GetServiceAccounts. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetServiceAccountsAsync(GetServiceAccountsRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetServiceAccounts", req, GetServiceAccountsResponse.Parser, options); + } + + /// + /// Invoke GetUser. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetUserAsync(GetUserRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetUser", req, GetUserResponse.Parser, options); + } + + /// + /// Invoke GetUserGroup. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetUserGroupAsync(GetUserGroupRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetUserGroup", req, GetUserGroupResponse.Parser, options); + } + + /// + /// Invoke GetUserGroups. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetUserGroupsAsync(GetUserGroupsRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetUserGroups", req, GetUserGroupsResponse.Parser, options); + } + + /// + /// Invoke GetUsers. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task GetUsersAsync(GetUsersRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("GetUsers", req, GetUsersResponse.Parser, options); + } + + /// + /// Invoke RenameCustomSearchAttribute. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task RenameCustomSearchAttributeAsync(RenameCustomSearchAttributeRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("RenameCustomSearchAttribute", req, RenameCustomSearchAttributeResponse.Parser, options); + } + + /// + /// Invoke SetUserGroupNamespaceAccess. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task SetUserGroupNamespaceAccessAsync(SetUserGroupNamespaceAccessRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("SetUserGroupNamespaceAccess", req, SetUserGroupNamespaceAccessResponse.Parser, options); + } + + /// + /// Invoke SetUserNamespaceAccess. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task SetUserNamespaceAccessAsync(SetUserNamespaceAccessRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("SetUserNamespaceAccess", req, SetUserNamespaceAccessResponse.Parser, options); + } + + /// + /// Invoke UpdateApiKey. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task UpdateApiKeyAsync(UpdateApiKeyRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("UpdateApiKey", req, UpdateApiKeyResponse.Parser, options); + } + + /// + /// Invoke UpdateNamespace. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task UpdateNamespaceAsync(UpdateNamespaceRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("UpdateNamespace", req, UpdateNamespaceResponse.Parser, options); + } + + /// + /// Invoke UpdateServiceAccount. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task UpdateServiceAccountAsync(UpdateServiceAccountRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("UpdateServiceAccount", req, UpdateServiceAccountResponse.Parser, options); + } + + /// + /// Invoke UpdateUser. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task UpdateUserAsync(UpdateUserRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("UpdateUser", req, UpdateUserResponse.Parser, options); + } + + /// + /// Invoke UpdateUserGroup. + /// + /// Request for the call. + /// Optional RPC options. + /// RPC response + public Task UpdateUserGroupAsync(UpdateUserGroupRequest req, RpcOptions? options = null) + { + return InvokeRpcAsync("UpdateUserGroup", req, UpdateUserGroupResponse.Parser, options); + } + } +} \ No newline at end of file diff --git a/src/Temporalio/Client/CloudService.cs b/src/Temporalio/Client/CloudService.cs new file mode 100644 index 00000000..91da55ce --- /dev/null +++ b/src/Temporalio/Client/CloudService.cs @@ -0,0 +1,41 @@ +#pragma warning disable CA1724 // We are ok with service and core names clashing w/ other namespaces + +using System.Threading.Tasks; +using Google.Protobuf; + +namespace Temporalio.Client +{ + /// + /// Raw gRPC cloud service. + /// + /// + /// WARNING: Cloud Operations API and its client are experimental and APIs may change. + /// + public abstract partial class CloudService : RpcService + { + /// + internal override Bridge.Interop.RpcService Service => Bridge.Interop.RpcService.Cloud; + + /// + internal override string FullName => "temporal.api.cloud.cloudservice.v1.CloudService"; + + /// + /// Implementation of the cloud service. + /// + public class Core : CloudService + { + private readonly TemporalConnection connection; + + /// + /// Initializes a new instance of the class. + /// + /// Connection to use. + public Core(TemporalConnection connection) => this.connection = connection; + + /// + protected override Task InvokeRpcAsync( + string rpc, IMessage req, MessageParser resp, RpcOptions? options = null) => + connection.InvokeRpcAsync(this, rpc, req, resp, options); + } + } +} diff --git a/src/Temporalio/Client/ITemporalClient.cs b/src/Temporalio/Client/ITemporalClient.cs index f1f28ec5..1e3bb0ed 100644 --- a/src/Temporalio/Client/ITemporalClient.cs +++ b/src/Temporalio/Client/ITemporalClient.cs @@ -19,5 +19,15 @@ public partial interface ITemporalClient : Worker.IWorkerClient /// Gets the outbound interceptor in use. /// Interceptors.ClientOutboundInterceptor OutboundInterceptor { get; } + + /// + /// Gets the raw gRPC workflow service. Most users do not need this. + /// + WorkflowService WorkflowService { get; } + + /// + /// Gets the raw gRPC operator service for self-hosted servers. Most users do not need this. + /// + OperatorService OperatorService { get; } } } diff --git a/src/Temporalio/Client/ITemporalCloudOperationsClient.cs b/src/Temporalio/Client/ITemporalCloudOperationsClient.cs new file mode 100644 index 00000000..a60ac094 --- /dev/null +++ b/src/Temporalio/Client/ITemporalCloudOperationsClient.cs @@ -0,0 +1,26 @@ +namespace Temporalio.Client +{ + /// + /// Interface to a client to Temporal Cloud Operations API. + /// + /// + /// Clients are thread-safe and are encouraged to be reused to properly reuse the underlying + /// connection. + /// + /// + /// + /// WARNING: Cloud Operations API and its client are experimental and APIs may change. + /// + public interface ITemporalCloudOperationsClient + { + /// + /// Gets the connection associated with this client. + /// + ITemporalConnection Connection { get; } + + /// + /// Gets the raw gRPC cloud service. + /// + CloudService CloudService { get; } + } +} \ No newline at end of file diff --git a/src/Temporalio/Client/ITemporalConnection.cs b/src/Temporalio/Client/ITemporalConnection.cs index 8b6cbda3..548cd235 100644 --- a/src/Temporalio/Client/ITemporalConnection.cs +++ b/src/Temporalio/Client/ITemporalConnection.cs @@ -48,6 +48,14 @@ public interface ITemporalConnection : IBridgeClientProvider /// OperatorService OperatorService { get; } + /// + /// Gets the raw cloud service. + /// + /// + /// WARNING: Cloud Operations API and its client are experimental and APIs may change. + /// + CloudService CloudService { get; } + /// /// Gets the raw gRPC test service. /// diff --git a/src/Temporalio/Client/TemporalClient.cs b/src/Temporalio/Client/TemporalClient.cs index f681e3fe..a0b9c59a 100644 --- a/src/Temporalio/Client/TemporalClient.cs +++ b/src/Temporalio/Client/TemporalClient.cs @@ -38,6 +38,12 @@ public TemporalClient(ITemporalConnection connection, TemporalClientOptions opti /// public ITemporalConnection Connection { get; private init; } + /// + public WorkflowService WorkflowService => Connection.WorkflowService; + + /// + public OperatorService OperatorService => Connection.OperatorService; + /// public TemporalClientOptions Options { get; private init; } diff --git a/src/Temporalio/Client/TemporalCloudOperationsClient.cs b/src/Temporalio/Client/TemporalCloudOperationsClient.cs new file mode 100644 index 00000000..952ee834 --- /dev/null +++ b/src/Temporalio/Client/TemporalCloudOperationsClient.cs @@ -0,0 +1,86 @@ +using System.Collections.Generic; +using System.Threading.Tasks; + +namespace Temporalio.Client +{ + /// + /// Client for Temporal Cloud Operations. + /// + /// + /// Clients are thread-safe and are encouraged to be reused to properly reuse the underlying + /// connection. + /// + /// + /// WARNING: Cloud Operations API and its client are experimental and APIs may change. + /// + public class TemporalCloudOperationsClient : ITemporalCloudOperationsClient + { + /// + /// Initializes a new instance of the class from + /// an existing connection. + /// + /// Connection for this client. + /// + /// WARNING: Cloud Operations API and its client are experimental and APIs may change. + /// + public TemporalCloudOperationsClient(ITemporalConnection connection) => + Connection = connection; + + /// + public ITemporalConnection Connection { get; private init; } + + /// + public CloudService CloudService => Connection.CloudService; + + /// + /// Connect to the Temporal Cloud Operations API. + /// + /// Options for connecting. + /// The connected client. + /// + /// WARNING: Cloud Operations API and its client are experimental and APIs may change. + /// + public static async Task ConnectAsync( + TemporalCloudOperationsClientConnectOptions options) => + new(await TemporalConnection.ConnectAsync( + MaybeWithVersionHeader(options)).ConfigureAwait(false)); + + /// + /// Create a client to the Temporal Cloud Operations API that does not connect until first + /// call. + /// + /// Options for connecting. + /// The not-yet-connected client. + /// + /// WARNING: Cloud Operations API and its client are experimental and APIs may change. + /// + public static TemporalCloudOperationsClient CreateLazy( + TemporalCloudOperationsClientConnectOptions options) => + new(TemporalConnection.CreateLazy( + MaybeWithVersionHeader(options))); + + private static TemporalCloudOperationsClientConnectOptions MaybeWithVersionHeader( + TemporalCloudOperationsClientConnectOptions options) + { + // If there is a version, add it as RPC metadata (cloning first) + if (options.Version is not { } version) + { + return options; + } + var newMetadata = new Dictionary + { + ["temporal-cloud-api-version"] = version, + }; + if (options.RpcMetadata is { } existing) + { + foreach (var kvp in existing) + { + newMetadata[kvp.Key] = kvp.Value; + } + } + options = (TemporalCloudOperationsClientConnectOptions)options.Clone(); + options.RpcMetadata = newMetadata; + return options; + } + } +} \ No newline at end of file diff --git a/src/Temporalio/Client/TemporalCloudOperationsClientConnectOptions.cs b/src/Temporalio/Client/TemporalCloudOperationsClientConnectOptions.cs new file mode 100644 index 00000000..700358b1 --- /dev/null +++ b/src/Temporalio/Client/TemporalCloudOperationsClientConnectOptions.cs @@ -0,0 +1,49 @@ +namespace Temporalio.Client +{ + /// + /// Options for . Unlike + /// , this defaults TargetHost to the known host + /// and Tls to enabled. + /// + /// + /// WARNING: Cloud Operations API and its client are experimental and APIs may change. + /// + public class TemporalCloudOperationsClientConnectOptions : TemporalConnectionOptions + { + /// + /// Initializes a new instance of the + /// class. Most users will at + /// least need an API key and therefore should use the other constructor overload. + /// + /// + /// WARNING: Cloud Operations API and its client are experimental and APIs may change. + /// + public TemporalCloudOperationsClientConnectOptions() + { + // Default some values we wouldn't default for the regular connection + TargetHost = "saas-api.tmprl.cloud:443"; + Tls = new(); + } + + /// + /// Initializes a new instance of the + /// class. + /// + /// API key for the client. + /// + /// WARNING: Cloud Operations API and its client are experimental and APIs may change. + /// + public TemporalCloudOperationsClientConnectOptions(string apiKey) + : this() + { + ApiKey = apiKey; + } + + /// + /// Gets or sets the version header for safer mutation. Note, upon connect, this is actually + /// merged into the RPC metadata as the temporal-cloud-api-version header and users + /// must retain that header if needed if/when RPC metadata is updated. + /// + public string? Version { get; set; } + } +} \ No newline at end of file diff --git a/src/Temporalio/Client/TemporalConnection.cs b/src/Temporalio/Client/TemporalConnection.cs index 9c0b34c0..96ee7365 100644 --- a/src/Temporalio/Client/TemporalConnection.cs +++ b/src/Temporalio/Client/TemporalConnection.cs @@ -32,6 +32,7 @@ private TemporalConnection(TemporalConnectionOptions options, bool lazy) { WorkflowService = new WorkflowService.Core(this); OperatorService = new OperatorService.Core(this); + CloudService = new CloudService.Core(this); TestService = new TestService.Core(this); Options = options; if (options.RpcMetadata == null) @@ -128,6 +129,9 @@ public string? ApiKey /// public OperatorService OperatorService { get; private init; } + /// + public CloudService CloudService { get; private init; } + /// public TestService TestService { get; private init; } diff --git a/tests/Temporalio.SmokeTest/Program.cs b/tests/Temporalio.SmokeTest/Program.cs index 39098701..437923cd 100644 --- a/tests/Temporalio.SmokeTest/Program.cs +++ b/tests/Temporalio.SmokeTest/Program.cs @@ -4,4 +4,4 @@ Console.WriteLine( "System info: {0}", - await env.Client.Connection.WorkflowService.GetSystemInfoAsync(new())); \ No newline at end of file + await env.Client.WorkflowService.GetSystemInfoAsync(new())); \ No newline at end of file diff --git a/tests/Temporalio.SmokeTestDotNetFramework/Program.cs b/tests/Temporalio.SmokeTestDotNetFramework/Program.cs index d77001c9..de314c14 100644 --- a/tests/Temporalio.SmokeTestDotNetFramework/Program.cs +++ b/tests/Temporalio.SmokeTestDotNetFramework/Program.cs @@ -14,7 +14,7 @@ public static async Task Main() { Console.WriteLine( "System info: {0}", - await env.Client.Connection.WorkflowService.GetSystemInfoAsync(new GetSystemInfoRequest())); + await env.Client.WorkflowService.GetSystemInfoAsync(new GetSystemInfoRequest())); } finally { diff --git a/tests/Temporalio.Tests/Client/TemporalClientTests.cs b/tests/Temporalio.Tests/Client/TemporalClientTests.cs index baba23ce..ff5de190 100644 --- a/tests/Temporalio.Tests/Client/TemporalClientTests.cs +++ b/tests/Temporalio.Tests/Client/TemporalClientTests.cs @@ -19,7 +19,7 @@ public TemporalClientTests(ITestOutputHelper output, WorkflowEnvironment env) [Fact] public async Task ConnectAsync_Connection_Succeeds() { - var resp = await Client.Connection.WorkflowService.GetSystemInfoAsync( + var resp = await Client.WorkflowService.GetSystemInfoAsync( new Api.WorkflowService.V1.GetSystemInfoRequest()); // Just confirm the response has a version and capabilities Assert.NotEmpty(resp.ServerVersion); @@ -29,7 +29,7 @@ public async Task ConnectAsync_Connection_Succeeds() // TODO(cretz): Find way to confirm this works without running our own gRPC server Client.Connection.RpcMetadata = new Dictionary { ["header"] = "value" }; Client.Connection.ApiKey = "my-api-key"; - resp = await Client.Connection.WorkflowService.GetSystemInfoAsync( + resp = await Client.WorkflowService.GetSystemInfoAsync( new Api.WorkflowService.V1.GetSystemInfoRequest()); Assert.NotEmpty(resp.ServerVersion); Assert.NotNull(resp.Capabilities); @@ -70,9 +70,10 @@ public async Task ConnectAsync_Connection_AllGrpcCallsSupported() }), }); - // Check workflow service and operator service - await AssertAllRpcsAsync(captureMeter.Calls, env.Client.Connection.WorkflowService); - await AssertAllRpcsAsync(captureMeter.Calls, env.Client.Connection.OperatorService, skip: "AddOrUpdateRemoteCluster"); + // Check workflow, operator, and cloud service + await AssertAllRpcsAsync(captureMeter.Calls, env.Client.WorkflowService); + await AssertAllRpcsAsync(captureMeter.Calls, env.Client.OperatorService, skip: "AddOrUpdateRemoteCluster"); + await AssertAllRpcsAsync(captureMeter.Calls, env.Client.Connection.CloudService); } private static async Task AssertAllRpcsAsync( diff --git a/tests/Temporalio.Tests/Client/TemporalCloudOperationsClientTests.cs b/tests/Temporalio.Tests/Client/TemporalCloudOperationsClientTests.cs new file mode 100644 index 00000000..ab68f7a9 --- /dev/null +++ b/tests/Temporalio.Tests/Client/TemporalCloudOperationsClientTests.cs @@ -0,0 +1,27 @@ +using Temporalio.Client; +using Xunit; +using Xunit.Abstractions; + +namespace Temporalio.Tests.Client; + +public class TemporalCloudOperationsClientTests : TestBase +{ + public TemporalCloudOperationsClientTests(ITestOutputHelper output) + : base(output) + { + } + + [SkippableFact] + public async Task ConnectAsync_SimpleCall_Succeeds() + { + var client = await TemporalCloudOperationsClient.ConnectAsync( + new(Environment.GetEnvironmentVariable("TEMPORAL_CLIENT_CLOUD_API_KEY") ?? + throw new SkipException("No cloud API key")) + { + Version = Environment.GetEnvironmentVariable("TEMPORAL_CLIENT_CLOUD_API_VERSION"), + }); + var ns = Environment.GetEnvironmentVariable("TEMPORAL_CLIENT_CLOUD_NAMESPACE")!; + var res = await client.Connection.CloudService.GetNamespaceAsync(new() { Namespace = ns }); + Assert.Equal(ns, res.Namespace.Namespace_); + } +} \ No newline at end of file diff --git a/tests/Temporalio.Tests/Runtime/TemporalRuntimeTests.cs b/tests/Temporalio.Tests/Runtime/TemporalRuntimeTests.cs index 05885c90..475ef819 100644 --- a/tests/Temporalio.Tests/Runtime/TemporalRuntimeTests.cs +++ b/tests/Temporalio.Tests/Runtime/TemporalRuntimeTests.cs @@ -32,7 +32,7 @@ public async Task Runtime_Separate_BothUsed() Runtime = new( new() { Telemetry = new() { Metrics = new() { Prometheus = new(promAddr1) } } }), }); - await client1.Connection.WorkflowService.GetSystemInfoAsync(new()); + await client1.WorkflowService.GetSystemInfoAsync(new()); var promAddr2 = $"127.0.0.1:{TestUtils.FreePort()}"; var client2 = await TemporalClient.ConnectAsync( new() @@ -42,7 +42,7 @@ public async Task Runtime_Separate_BothUsed() Runtime = new( new() { Telemetry = new() { Metrics = new() { Prometheus = new(promAddr2) } } }), }); - await client2.Connection.WorkflowService.GetSystemInfoAsync(new()); + await client2.WorkflowService.GetSystemInfoAsync(new()); // Check that Prometheus on each runtime is reporting metrics using var httpClient = new HttpClient(); diff --git a/tests/Temporalio.Tests/Worker/WorkflowWorkerTests.cs b/tests/Temporalio.Tests/Worker/WorkflowWorkerTests.cs index 8522063b..3f47ed16 100644 --- a/tests/Temporalio.Tests/Worker/WorkflowWorkerTests.cs +++ b/tests/Temporalio.Tests/Worker/WorkflowWorkerTests.cs @@ -4057,7 +4057,7 @@ await AssertMore.EventuallyAsync(async () => { try { - var resp = await Client.Connection.WorkflowService.PollWorkflowExecutionUpdateAsync(new() + var resp = await Client.WorkflowService.PollWorkflowExecutionUpdateAsync(new() { Identity = Client.Connection.Options.Identity, Namespace = Client.Options.Namespace, @@ -4134,7 +4134,7 @@ public async Task ExecuteWorkflowAsync_CurrentBuildId_SetProperly() }, new(tq) { BuildId = "1.0" }); - await Env.Client.Connection.WorkflowService.ResetStickyTaskQueueAsync(new() + await Env.Client.WorkflowService.ResetStickyTaskQueueAsync(new() { Namespace = Env.Client.Options.Namespace, Execution = new() { WorkflowId = handle.Id }, diff --git a/tests/Temporalio.Tests/WorkflowEnvironmentTestBase.cs b/tests/Temporalio.Tests/WorkflowEnvironmentTestBase.cs index ff12a108..a3619747 100644 --- a/tests/Temporalio.Tests/WorkflowEnvironmentTestBase.cs +++ b/tests/Temporalio.Tests/WorkflowEnvironmentTestBase.cs @@ -67,13 +67,13 @@ protected async Task ServerSupportsWorkerVersioning() protected async Task EnsureSearchAttributesPresentAsync() { // Only add search attributes if not present - var resp = await Client.Connection.OperatorService.ListSearchAttributesAsync( + var resp = await Client.OperatorService.ListSearchAttributesAsync( new() { Namespace = Client.Options.Namespace }); if (resp.CustomAttributes.ContainsKey(AttrBool.Name)) { return; } - await Client.Connection.OperatorService.AddSearchAttributesAsync(new() + await Client.OperatorService.AddSearchAttributesAsync(new() { Namespace = Client.Options.Namespace, SearchAttributes = @@ -91,7 +91,7 @@ await Client.Connection.OperatorService.AddSearchAttributesAsync(new() }, }, }); - resp = await Client.Connection.OperatorService.ListSearchAttributesAsync( + resp = await Client.OperatorService.ListSearchAttributesAsync( new() { Namespace = Client.Options.Namespace }); Assert.Contains(AttrBool.Name, resp.CustomAttributes.Keys); }