diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5a32d936..d0d1c74e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -7,11 +7,18 @@ jobs: build: runs-on: ubuntu-latest steps: + - run: docker pull camunda/zeebe:8.1.3 - uses: actions/checkout@v2 - name: Setup .NET Core uses: actions/setup-dotnet@v1 with: dotnet-version: '3.1.x' + - name: Build + run: dotnet build --configuration Release + - name: Test + run: dotnet test - name: Pack working-directory: ./Client run: dotnet pack --configuration Release --no-restore + - name: Release + run: dotnet nuget push Client/bin/Release/zb-client.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json diff --git a/Client/Client.csproj b/Client/Client.csproj index 169b56d1..3bb227a6 100644 --- a/Client/Client.csproj +++ b/Client/Client.csproj @@ -2,7 +2,7 @@ netstandard2.0 - 1.2.1 + 1.3.0 Christopher Zell @@ -13,23 +13,103 @@ For more information about the zeebe project please visit http://zeebe.iohttps://github.com/zeebe-io/zeebe-client-csharp zeebe, zb, zb-csharp, zb-client, grpc - 1.2.1 - 1.2.1 + 1.3.0 + 1.3.0 Features: -Bug Fixes: - - * Return max if exceeding max wait time by @Zelldon in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/381 - + * feat: allowed to set retryBackOff parameter of FailJobCommand by @aanodin in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/482 +Bug Fixes: -Update Dependencies - + * + +Dependency updates: + + * chore(deps): bump zb-client from 1.2.0 to 1.2.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/382 + * chore(deps): bump Grpc.Auth from 2.43.0 to 2.44.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/389 + * chore(deps): bump Grpc.Core from 2.43.0 to 2.44.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/386 + * chore(deps): bump Grpc.Tools from 2.43.0 to 2.44.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/387 + * chore(deps): bump Grpc from 2.43.0 to 2.44.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/388 + * chore(deps): bump Microsoft.NET.Test.Sdk from 17.0.0 to 17.1.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/390 + * chore(deps): bump NLog from 4.7.13 to 4.7.14 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/391 + * chore(deps): bump Microsoft.Extensions.Logging.Abstractions from 6.0.0 to 6.0.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/392 + * chore(deps): bump NUnit from 3.13.2 to 3.13.3 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/393 + * chore(deps): bump Grpc.Core from 2.44.0 to 2.45.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/397 + * chore(deps): bump NLog from 4.7.14 to 4.7.15 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/398 + * chore(deps): bump Grpc.Auth from 2.44.0 to 2.45.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/396 + * chore(deps): bump Grpc from 2.44.0 to 2.45.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/395 + * chore(deps): bump Grpc.Tools from 2.44.0 to 2.45.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/394 + * chore(deps): bump Google.Protobuf from 3.19.4 to 3.20.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/399 + * chore(deps): bump Google.Protobuf from 3.20.0 to 3.20.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/400 + * chore(deps): bump Microsoft.NET.Test.Sdk from 17.1.0 to 17.2.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/401 + * chore(deps): bump Grpc.Tools from 2.45.0 to 2.46.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/405 + * chore(deps): bump Grpc.Auth from 2.45.0 to 2.46.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/404 + * chore(deps): bump Grpc.Core from 2.45.0 to 2.46.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/403 + * chore(deps): bump Grpc from 2.45.0 to 2.46.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/402 + * chore(deps): bump NLog from 4.7.15 to 5.0.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/407 + * chore(deps): bump NLog.Extensions.Logging from 1.7.4 to 5.0.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/406 + * chore(deps): bump Grpc.Core from 2.46.1 to 2.46.3 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/409 + * chore(deps): bump Grpc.Tools from 2.46.1 to 2.46.3 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/408 + * chore(deps): bump Grpc from 2.46.1 to 2.46.3 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/411 + * chore(deps): bump Grpc.Auth from 2.46.1 to 2.46.3 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/410 + * chore(deps): bump Google.Protobuf from 3.20.1 to 3.21.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/412 + * chore(deps): bump Google.Protobuf from 3.21.0 to 3.21.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/413 + * chore(deps): bump NLog from 5.0.0 to 5.0.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/416 + * chore(deps): bump Grpc.Tools from 2.46.3 to 2.47.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/419 + * chore(deps): bump NLog.Extensions.Logging from 5.0.0 to 5.0.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/420 + * chore(deps): bump Google.Protobuf from 3.21.1 to 3.21.2 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/421 + * chore(deps): bump Grpc.Auth from 2.46.3 to 2.47.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/422 + * chore(deps): bump Google.Protobuf from 3.21.2 to 3.21.4 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/425 + * chore(deps): bump Microsoft.NET.Test.Sdk from 17.2.0 to 17.3.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/427 + * chore(deps): bump Google.Protobuf from 3.21.4 to 3.21.5 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/426 + * chore(deps): bump NLog from 5.0.1 to 5.0.2 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/429 + * chore(deps): bump NLog.Extensions.Logging from 5.0.1 to 5.0.2 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/428 + * chore(deps): bump Grpc.Tools from 2.47.0 to 2.48.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/430 + * chore(deps): bump Grpc.Auth from 2.47.0 to 2.48.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/431 + * chore(deps): bump NLog from 5.0.2 to 5.0.4 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/436 + * chore(deps): bump Microsoft.NET.Test.Sdk from 17.3.0 to 17.3.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/432 + * chore(deps): bump NLog.Extensions.Logging from 5.0.2 to 5.0.4 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/435 + * chore(deps): bump Grpc.Tools from 2.48.0 to 2.48.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/437 + * chore(deps): bump Google.Protobuf from 3.21.5 to 3.21.6 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/440 + * chore(deps): bump Microsoft.Extensions.Logging.Abstractions from 6.0.1 to 6.0.2 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/441 + * chore(deps): bump Grpc.Tools from 2.48.1 to 2.49.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/444 + * chore(deps): bump Grpc.Auth from 2.48.0 to 2.49.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/442 + * chore(deps): bump Microsoft.NET.Test.Sdk from 17.3.1 to 17.3.2 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/445 + * chore(deps): bump Grpc.Core from 2.46.3 to 2.46.5 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/446 + * chore(deps): bump Grpc from 2.46.3 to 2.46.5 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/443 + * chore(deps): bump Google.Protobuf from 3.21.6 to 3.21.7 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/447 + * chore(deps): bump Microsoft.Extensions.DependencyInjection from 6.0.0 to 6.0.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/448 + * chore(deps): bump Google.Protobuf from 3.21.7 to 3.21.9 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/454 + * chore(deps): bump NLog from 5.0.4 to 5.0.5 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/453 + * chore(deps): bump Grpc.Tools from 2.49.1 to 2.50.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/449 + * chore(deps): bump Microsoft.Extensions.DependencyInjection from 6.0.1 to 7.0.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/457 + * chore(deps): bump NLog.Extensions.Logging from 5.0.4 to 5.1.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/458 + * chore(deps): bump Microsoft.Extensions.DependencyInjection.Abstractions from 6.0.0 to 7.0.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/456 + * chore(deps): bump Microsoft.NET.Test.Sdk from 17.3.2 to 17.4.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/461 + * chore(deps): bump System.Threading.Tasks.Dataflow from 6.0.0 to 7.0.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/460 + * chore(deps): bump Microsoft.Extensions.Logging.Abstractions from 6.0.2 to 7.0.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/459 + * chore(deps): bump NUnit3TestAdapter from 4.2.1 to 4.3.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/465 + * chore(deps): bump Microsoft.Extensions.Configuration.FileExtensions from 6.0.0 to 7.0.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/464 + * chore(deps): bump Grpc.Auth from 2.49.0 to 2.50.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/463 + * chore(deps): bump NUnit3TestAdapter from 4.3.0 to 4.3.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/466 + * chore(deps): bump Newtonsoft.Json from 13.0.1 to 13.0.2 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/467 + * chore(deps): bump NLog from 5.0.5 to 5.1.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/470 + * chore(deps): bump NLog.Extensions.Logging from 5.1.0 to 5.2.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/469 + * chore(deps): bump Google.Protobuf from 3.21.9 to 3.21.10 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/471 + * feat: Update Testcontainers for .NET by @HofmeisterAn in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/475 + * chore(deps): bump Microsoft.NET.Test.Sdk from 17.4.0 to 17.4.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/476 + * chore(deps): bump Google.Protobuf from 3.21.10 to 3.21.12 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/477 + * chore(deps): bump Grpc.Tools from 2.50.0 to 2.51.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/472 + * chore(deps): bump NLog from 5.1.0 to 5.1.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/479 + * chore(deps): bump NLog.Extensions.Logging from 5.2.0 to 5.2.1 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/478 + * chore(deps): bump Grpc.Auth from 2.50.0 to 2.51.0 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/480 + * chore(deps): bump Grpc.Core from 2.46.5 to 2.46.6 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/484 + * chore(deps): bump Grpc from 2.46.5 to 2.46.6 by @dependabot in https://github.com/camunda-community-hub/zeebe-client-csharp/pull/485 ----- -This release is based on the Zeebe 1.3.X release (https://github.com/zeebe-io/zeebe). +This release is based on the Zeebe 8.1.X release (https://github.com/zeebe-io/zeebe). true true @@ -39,9 +119,9 @@ This release is based on the Zeebe 1.3.X release (https://github.com/zeebe-io/ze git Apache-2.0 icon.png - 1.2.1 + 1.3.0 Zeebe.Client - 1.2.1 + 1.3.0 diff --git a/Client/Impl/proto/Gateway.cs b/Client/Impl/proto/Gateway.cs index bdbbe8b0..158d9c82 100644 --- a/Client/Impl/proto/Gateway.cs +++ b/Client/Impl/proto/Gateway.cs @@ -2,7 +2,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: gateway.proto // -#pragma warning disable 1591, 0612, 3021 +#pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; @@ -40,87 +40,125 @@ static GatewayReflection() { "b2Nlc3NJbnN0YW5jZUtleRgBIAEoAyIfCh1DYW5jZWxQcm9jZXNzSW5zdGFu", "Y2VSZXNwb25zZSI3ChJDb21wbGV0ZUpvYlJlcXVlc3QSDgoGam9iS2V5GAEg", "ASgDEhEKCXZhcmlhYmxlcxgCIAEoCSIVChNDb21wbGV0ZUpvYlJlc3BvbnNl", - "IncKHENyZWF0ZVByb2Nlc3NJbnN0YW5jZVJlcXVlc3QSHAoUcHJvY2Vzc0Rl", - "ZmluaXRpb25LZXkYASABKAMSFQoNYnBtblByb2Nlc3NJZBgCIAEoCRIPCgd2", - "ZXJzaW9uGAMgASgFEhEKCXZhcmlhYmxlcxgEIAEoCSKBAQodQ3JlYXRlUHJv", - "Y2Vzc0luc3RhbmNlUmVzcG9uc2USHAoUcHJvY2Vzc0RlZmluaXRpb25LZXkY", - "ASABKAMSFQoNYnBtblByb2Nlc3NJZBgCIAEoCRIPCgd2ZXJzaW9uGAMgASgF", - "EhoKEnByb2Nlc3NJbnN0YW5jZUtleRgEIAEoAyKZAQomQ3JlYXRlUHJvY2Vz", - "c0luc3RhbmNlV2l0aFJlc3VsdFJlcXVlc3QSPwoHcmVxdWVzdBgBIAEoCzIu", - "LmdhdGV3YXlfcHJvdG9jb2wuQ3JlYXRlUHJvY2Vzc0luc3RhbmNlUmVxdWVz", - "dBIWCg5yZXF1ZXN0VGltZW91dBgCIAEoAxIWCg5mZXRjaFZhcmlhYmxlcxgD", - "IAMoCSKeAQonQ3JlYXRlUHJvY2Vzc0luc3RhbmNlV2l0aFJlc3VsdFJlc3Bv", - "bnNlEhwKFHByb2Nlc3NEZWZpbml0aW9uS2V5GAEgASgDEhUKDWJwbW5Qcm9j", - "ZXNzSWQYAiABKAkSDwoHdmVyc2lvbhgDIAEoBRIaChJwcm9jZXNzSW5zdGFu", - "Y2VLZXkYBCABKAMSEQoJdmFyaWFibGVzGAUgASgJIlEKFERlcGxveVByb2Nl", - "c3NSZXF1ZXN0EjkKCXByb2Nlc3NlcxgBIAMoCzImLmdhdGV3YXlfcHJvdG9j", - "b2wuUHJvY2Vzc1JlcXVlc3RPYmplY3QiOAoUUHJvY2Vzc1JlcXVlc3RPYmpl", - "Y3QSDAoEbmFtZRgBIAEoCRISCgpkZWZpbml0aW9uGAIgASgMIloKFURlcGxv", - "eVByb2Nlc3NSZXNwb25zZRILCgNrZXkYASABKAMSNAoJcHJvY2Vzc2VzGAIg", - "AygLMiEuZ2F0ZXdheV9wcm90b2NvbC5Qcm9jZXNzTWV0YWRhdGEibQoPUHJv", - "Y2Vzc01ldGFkYXRhEhUKDWJwbW5Qcm9jZXNzSWQYASABKAkSDwoHdmVyc2lv", - "bhgCIAEoBRIcChRwcm9jZXNzRGVmaW5pdGlvbktleRgDIAEoAxIUCgxyZXNv", - "dXJjZU5hbWUYBCABKAkiXQoORmFpbEpvYlJlcXVlc3QSDgoGam9iS2V5GAEg", - "ASgDEg8KB3JldHJpZXMYAiABKAUSFAoMZXJyb3JNZXNzYWdlGAMgASgJEhQK", - "DHJldHJ5QmFja09mZhgEIAEoAyIRCg9GYWlsSm9iUmVzcG9uc2UiTAoRVGhy", - "b3dFcnJvclJlcXVlc3QSDgoGam9iS2V5GAEgASgDEhEKCWVycm9yQ29kZRgC", - "IAEoCRIUCgxlcnJvck1lc3NhZ2UYAyABKAkiFAoSVGhyb3dFcnJvclJlc3Bv", - "bnNlIncKFVB1Ymxpc2hNZXNzYWdlUmVxdWVzdBIMCgRuYW1lGAEgASgJEhYK", - "DmNvcnJlbGF0aW9uS2V5GAIgASgJEhIKCnRpbWVUb0xpdmUYAyABKAMSEQoJ", - "bWVzc2FnZUlkGAQgASgJEhEKCXZhcmlhYmxlcxgFIAEoCSIlChZQdWJsaXNo", - "TWVzc2FnZVJlc3BvbnNlEgsKA2tleRgBIAEoAyItChZSZXNvbHZlSW5jaWRl", - "bnRSZXF1ZXN0EhMKC2luY2lkZW50S2V5GAEgASgDIhkKF1Jlc29sdmVJbmNp", - "ZGVudFJlc3BvbnNlIhEKD1RvcG9sb2d5UmVxdWVzdCKiAQoQVG9wb2xvZ3lS", - "ZXNwb25zZRItCgdicm9rZXJzGAEgAygLMhwuZ2F0ZXdheV9wcm90b2NvbC5C", - "cm9rZXJJbmZvEhMKC2NsdXN0ZXJTaXplGAIgASgFEhcKD3BhcnRpdGlvbnND", - "b3VudBgDIAEoBRIZChFyZXBsaWNhdGlvbkZhY3RvchgEIAEoBRIWCg5nYXRl", - "d2F5VmVyc2lvbhgFIAEoCSJ6CgpCcm9rZXJJbmZvEg4KBm5vZGVJZBgBIAEo", - "BRIMCgRob3N0GAIgASgJEgwKBHBvcnQYAyABKAUSLwoKcGFydGl0aW9ucxgE", - "IAMoCzIbLmdhdGV3YXlfcHJvdG9jb2wuUGFydGl0aW9uEg8KB3ZlcnNpb24Y", - "BSABKAkioAIKCVBhcnRpdGlvbhITCgtwYXJ0aXRpb25JZBgBIAEoBRI9CgRy", - "b2xlGAIgASgOMi8uZ2F0ZXdheV9wcm90b2NvbC5QYXJ0aXRpb24uUGFydGl0", - "aW9uQnJva2VyUm9sZRJBCgZoZWFsdGgYAyABKA4yMS5nYXRld2F5X3Byb3Rv", - "Y29sLlBhcnRpdGlvbi5QYXJ0aXRpb25Ccm9rZXJIZWFsdGgiPQoTUGFydGl0", - "aW9uQnJva2VyUm9sZRIKCgZMRUFERVIQABIMCghGT0xMT1dFUhABEgwKCElO", - "QUNUSVZFEAIiPQoVUGFydGl0aW9uQnJva2VySGVhbHRoEgsKB0hFQUxUSFkQ", - "ABINCglVTkhFQUxUSFkQARIICgRERUFEEAIiOgoXVXBkYXRlSm9iUmV0cmll", - "c1JlcXVlc3QSDgoGam9iS2V5GAEgASgDEg8KB3JldHJpZXMYAiABKAUiGgoY", - "VXBkYXRlSm9iUmV0cmllc1Jlc3BvbnNlIlMKE1NldFZhcmlhYmxlc1JlcXVl", - "c3QSGgoSZWxlbWVudEluc3RhbmNlS2V5GAEgASgDEhEKCXZhcmlhYmxlcxgC", - "IAEoCRINCgVsb2NhbBgDIAEoCCIjChRTZXRWYXJpYWJsZXNSZXNwb25zZRIL", - "CgNrZXkYASABKAMy4goKB0dhdGV3YXkSYQoMQWN0aXZhdGVKb2JzEiUuZ2F0", - "ZXdheV9wcm90b2NvbC5BY3RpdmF0ZUpvYnNSZXF1ZXN0GiYuZ2F0ZXdheV9w", - "cm90b2NvbC5BY3RpdmF0ZUpvYnNSZXNwb25zZSIAMAESegoVQ2FuY2VsUHJv", - "Y2Vzc0luc3RhbmNlEi4uZ2F0ZXdheV9wcm90b2NvbC5DYW5jZWxQcm9jZXNz", - "SW5zdGFuY2VSZXF1ZXN0Gi8uZ2F0ZXdheV9wcm90b2NvbC5DYW5jZWxQcm9j", - "ZXNzSW5zdGFuY2VSZXNwb25zZSIAElwKC0NvbXBsZXRlSm9iEiQuZ2F0ZXdh", - "eV9wcm90b2NvbC5Db21wbGV0ZUpvYlJlcXVlc3QaJS5nYXRld2F5X3Byb3Rv", - "Y29sLkNvbXBsZXRlSm9iUmVzcG9uc2UiABJ6ChVDcmVhdGVQcm9jZXNzSW5z", - "dGFuY2USLi5nYXRld2F5X3Byb3RvY29sLkNyZWF0ZVByb2Nlc3NJbnN0YW5j", - "ZVJlcXVlc3QaLy5nYXRld2F5X3Byb3RvY29sLkNyZWF0ZVByb2Nlc3NJbnN0", - "YW5jZVJlc3BvbnNlIgASmAEKH0NyZWF0ZVByb2Nlc3NJbnN0YW5jZVdpdGhS", - "ZXN1bHQSOC5nYXRld2F5X3Byb3RvY29sLkNyZWF0ZVByb2Nlc3NJbnN0YW5j", - "ZVdpdGhSZXN1bHRSZXF1ZXN0GjkuZ2F0ZXdheV9wcm90b2NvbC5DcmVhdGVQ", - "cm9jZXNzSW5zdGFuY2VXaXRoUmVzdWx0UmVzcG9uc2UiABJiCg1EZXBsb3lQ", - "cm9jZXNzEiYuZ2F0ZXdheV9wcm90b2NvbC5EZXBsb3lQcm9jZXNzUmVxdWVz", - "dBonLmdhdGV3YXlfcHJvdG9jb2wuRGVwbG95UHJvY2Vzc1Jlc3BvbnNlIgAS", - "UAoHRmFpbEpvYhIgLmdhdGV3YXlfcHJvdG9jb2wuRmFpbEpvYlJlcXVlc3Qa", - "IS5nYXRld2F5X3Byb3RvY29sLkZhaWxKb2JSZXNwb25zZSIAElkKClRocm93", - "RXJyb3ISIy5nYXRld2F5X3Byb3RvY29sLlRocm93RXJyb3JSZXF1ZXN0GiQu", - "Z2F0ZXdheV9wcm90b2NvbC5UaHJvd0Vycm9yUmVzcG9uc2UiABJlCg5QdWJs", - "aXNoTWVzc2FnZRInLmdhdGV3YXlfcHJvdG9jb2wuUHVibGlzaE1lc3NhZ2VS", - "ZXF1ZXN0GiguZ2F0ZXdheV9wcm90b2NvbC5QdWJsaXNoTWVzc2FnZVJlc3Bv", - "bnNlIgASaAoPUmVzb2x2ZUluY2lkZW50EiguZ2F0ZXdheV9wcm90b2NvbC5S", - "ZXNvbHZlSW5jaWRlbnRSZXF1ZXN0GikuZ2F0ZXdheV9wcm90b2NvbC5SZXNv", - "bHZlSW5jaWRlbnRSZXNwb25zZSIAEl8KDFNldFZhcmlhYmxlcxIlLmdhdGV3", - "YXlfcHJvdG9jb2wuU2V0VmFyaWFibGVzUmVxdWVzdBomLmdhdGV3YXlfcHJv", - "dG9jb2wuU2V0VmFyaWFibGVzUmVzcG9uc2UiABJTCghUb3BvbG9neRIhLmdh", - "dGV3YXlfcHJvdG9jb2wuVG9wb2xvZ3lSZXF1ZXN0GiIuZ2F0ZXdheV9wcm90", - "b2NvbC5Ub3BvbG9neVJlc3BvbnNlIgASawoQVXBkYXRlSm9iUmV0cmllcxIp", - "LmdhdGV3YXlfcHJvdG9jb2wuVXBkYXRlSm9iUmV0cmllc1JlcXVlc3QaKi5n", - "YXRld2F5X3Byb3RvY29sLlVwZGF0ZUpvYlJldHJpZXNSZXNwb25zZSIAQiwK", - "IWlvLmNhbXVuZGEuemVlYmUuZ2F0ZXdheS5wcm90b2NvbFAAWgUuLztwYmIG", - "cHJvdG8z")); + "Is0BChxDcmVhdGVQcm9jZXNzSW5zdGFuY2VSZXF1ZXN0EhwKFHByb2Nlc3NE", + "ZWZpbml0aW9uS2V5GAEgASgDEhUKDWJwbW5Qcm9jZXNzSWQYAiABKAkSDwoH", + "dmVyc2lvbhgDIAEoBRIRCgl2YXJpYWJsZXMYBCABKAkSVAoRc3RhcnRJbnN0", + "cnVjdGlvbnMYBSADKAsyOS5nYXRld2F5X3Byb3RvY29sLlByb2Nlc3NJbnN0", + "YW5jZUNyZWF0aW9uU3RhcnRJbnN0cnVjdGlvbiI8CidQcm9jZXNzSW5zdGFu", + "Y2VDcmVhdGlvblN0YXJ0SW5zdHJ1Y3Rpb24SEQoJZWxlbWVudElkGAEgASgJ", + "IoEBCh1DcmVhdGVQcm9jZXNzSW5zdGFuY2VSZXNwb25zZRIcChRwcm9jZXNz", + "RGVmaW5pdGlvbktleRgBIAEoAxIVCg1icG1uUHJvY2Vzc0lkGAIgASgJEg8K", + "B3ZlcnNpb24YAyABKAUSGgoScHJvY2Vzc0luc3RhbmNlS2V5GAQgASgDIpkB", + "CiZDcmVhdGVQcm9jZXNzSW5zdGFuY2VXaXRoUmVzdWx0UmVxdWVzdBI/Cgdy", + "ZXF1ZXN0GAEgASgLMi4uZ2F0ZXdheV9wcm90b2NvbC5DcmVhdGVQcm9jZXNz", + "SW5zdGFuY2VSZXF1ZXN0EhYKDnJlcXVlc3RUaW1lb3V0GAIgASgDEhYKDmZl", + "dGNoVmFyaWFibGVzGAMgAygJIp4BCidDcmVhdGVQcm9jZXNzSW5zdGFuY2VX", + "aXRoUmVzdWx0UmVzcG9uc2USHAoUcHJvY2Vzc0RlZmluaXRpb25LZXkYASAB", + "KAMSFQoNYnBtblByb2Nlc3NJZBgCIAEoCRIPCgd2ZXJzaW9uGAMgASgFEhoK", + "EnByb2Nlc3NJbnN0YW5jZUtleRgEIAEoAxIRCgl2YXJpYWJsZXMYBSABKAki", + "VQoURGVwbG95UHJvY2Vzc1JlcXVlc3QSOQoJcHJvY2Vzc2VzGAEgAygLMiYu", + "Z2F0ZXdheV9wcm90b2NvbC5Qcm9jZXNzUmVxdWVzdE9iamVjdDoCGAEiPAoU", + "UHJvY2Vzc1JlcXVlc3RPYmplY3QSDAoEbmFtZRgBIAEoCRISCgpkZWZpbml0", + "aW9uGAIgASgMOgIYASJeChVEZXBsb3lQcm9jZXNzUmVzcG9uc2USCwoDa2V5", + "GAEgASgDEjQKCXByb2Nlc3NlcxgCIAMoCzIhLmdhdGV3YXlfcHJvdG9jb2wu", + "UHJvY2Vzc01ldGFkYXRhOgIYASJGChVEZXBsb3lSZXNvdXJjZVJlcXVlc3QS", + "LQoJcmVzb3VyY2VzGAEgAygLMhouZ2F0ZXdheV9wcm90b2NvbC5SZXNvdXJj", + "ZSIpCghSZXNvdXJjZRIMCgRuYW1lGAEgASgJEg8KB2NvbnRlbnQYAiABKAwi", + "WAoWRGVwbG95UmVzb3VyY2VSZXNwb25zZRILCgNrZXkYASABKAMSMQoLZGVw", + "bG95bWVudHMYAiADKAsyHC5nYXRld2F5X3Byb3RvY29sLkRlcGxveW1lbnQi", + "1gEKCkRlcGxveW1lbnQSNAoHcHJvY2VzcxgBIAEoCzIhLmdhdGV3YXlfcHJv", + "dG9jb2wuUHJvY2Vzc01ldGFkYXRhSAASNgoIZGVjaXNpb24YAiABKAsyIi5n", + "YXRld2F5X3Byb3RvY29sLkRlY2lzaW9uTWV0YWRhdGFIABJOChRkZWNpc2lv", + "blJlcXVpcmVtZW50cxgDIAEoCzIuLmdhdGV3YXlfcHJvdG9jb2wuRGVjaXNp", + "b25SZXF1aXJlbWVudHNNZXRhZGF0YUgAQgoKCE1ldGFkYXRhIm0KD1Byb2Nl", + "c3NNZXRhZGF0YRIVCg1icG1uUHJvY2Vzc0lkGAEgASgJEg8KB3ZlcnNpb24Y", + "AiABKAUSHAoUcHJvY2Vzc0RlZmluaXRpb25LZXkYAyABKAMSFAoMcmVzb3Vy", + "Y2VOYW1lGAQgASgJIqwBChBEZWNpc2lvbk1ldGFkYXRhEhUKDWRtbkRlY2lz", + "aW9uSWQYASABKAkSFwoPZG1uRGVjaXNpb25OYW1lGAIgASgJEg8KB3ZlcnNp", + "b24YAyABKAUSEwoLZGVjaXNpb25LZXkYBCABKAMSIQoZZG1uRGVjaXNpb25S", + "ZXF1aXJlbWVudHNJZBgFIAEoCRIfChdkZWNpc2lvblJlcXVpcmVtZW50c0tl", + "eRgGIAEoAyKuAQocRGVjaXNpb25SZXF1aXJlbWVudHNNZXRhZGF0YRIhChlk", + "bW5EZWNpc2lvblJlcXVpcmVtZW50c0lkGAEgASgJEiMKG2RtbkRlY2lzaW9u", + "UmVxdWlyZW1lbnRzTmFtZRgCIAEoCRIPCgd2ZXJzaW9uGAMgASgFEh8KF2Rl", + "Y2lzaW9uUmVxdWlyZW1lbnRzS2V5GAQgASgDEhQKDHJlc291cmNlTmFtZRgF", + "IAEoCSJdCg5GYWlsSm9iUmVxdWVzdBIOCgZqb2JLZXkYASABKAMSDwoHcmV0", + "cmllcxgCIAEoBRIUCgxlcnJvck1lc3NhZ2UYAyABKAkSFAoMcmV0cnlCYWNr", + "T2ZmGAQgASgDIhEKD0ZhaWxKb2JSZXNwb25zZSJMChFUaHJvd0Vycm9yUmVx", + "dWVzdBIOCgZqb2JLZXkYASABKAMSEQoJZXJyb3JDb2RlGAIgASgJEhQKDGVy", + "cm9yTWVzc2FnZRgDIAEoCSIUChJUaHJvd0Vycm9yUmVzcG9uc2UidwoVUHVi", + "bGlzaE1lc3NhZ2VSZXF1ZXN0EgwKBG5hbWUYASABKAkSFgoOY29ycmVsYXRp", + "b25LZXkYAiABKAkSEgoKdGltZVRvTGl2ZRgDIAEoAxIRCgltZXNzYWdlSWQY", + "BCABKAkSEQoJdmFyaWFibGVzGAUgASgJIiUKFlB1Ymxpc2hNZXNzYWdlUmVz", + "cG9uc2USCwoDa2V5GAEgASgDIi0KFlJlc29sdmVJbmNpZGVudFJlcXVlc3QS", + "EwoLaW5jaWRlbnRLZXkYASABKAMiGQoXUmVzb2x2ZUluY2lkZW50UmVzcG9u", + "c2UiEQoPVG9wb2xvZ3lSZXF1ZXN0IqIBChBUb3BvbG9neVJlc3BvbnNlEi0K", + "B2Jyb2tlcnMYASADKAsyHC5nYXRld2F5X3Byb3RvY29sLkJyb2tlckluZm8S", + "EwoLY2x1c3RlclNpemUYAiABKAUSFwoPcGFydGl0aW9uc0NvdW50GAMgASgF", + "EhkKEXJlcGxpY2F0aW9uRmFjdG9yGAQgASgFEhYKDmdhdGV3YXlWZXJzaW9u", + "GAUgASgJInoKCkJyb2tlckluZm8SDgoGbm9kZUlkGAEgASgFEgwKBGhvc3QY", + "AiABKAkSDAoEcG9ydBgDIAEoBRIvCgpwYXJ0aXRpb25zGAQgAygLMhsuZ2F0", + "ZXdheV9wcm90b2NvbC5QYXJ0aXRpb24SDwoHdmVyc2lvbhgFIAEoCSKgAgoJ", + "UGFydGl0aW9uEhMKC3BhcnRpdGlvbklkGAEgASgFEj0KBHJvbGUYAiABKA4y", + "Ly5nYXRld2F5X3Byb3RvY29sLlBhcnRpdGlvbi5QYXJ0aXRpb25Ccm9rZXJS", + "b2xlEkEKBmhlYWx0aBgDIAEoDjIxLmdhdGV3YXlfcHJvdG9jb2wuUGFydGl0", + "aW9uLlBhcnRpdGlvbkJyb2tlckhlYWx0aCI9ChNQYXJ0aXRpb25Ccm9rZXJS", + "b2xlEgoKBkxFQURFUhAAEgwKCEZPTExPV0VSEAESDAoISU5BQ1RJVkUQAiI9", + "ChVQYXJ0aXRpb25Ccm9rZXJIZWFsdGgSCwoHSEVBTFRIWRAAEg0KCVVOSEVB", + "TFRIWRABEggKBERFQUQQAiI6ChdVcGRhdGVKb2JSZXRyaWVzUmVxdWVzdBIO", + "CgZqb2JLZXkYASABKAMSDwoHcmV0cmllcxgCIAEoBSIaChhVcGRhdGVKb2JS", + "ZXRyaWVzUmVzcG9uc2UiUwoTU2V0VmFyaWFibGVzUmVxdWVzdBIaChJlbGVt", + "ZW50SW5zdGFuY2VLZXkYASABKAMSEQoJdmFyaWFibGVzGAIgASgJEg0KBWxv", + "Y2FsGAMgASgIIiMKFFNldFZhcmlhYmxlc1Jlc3BvbnNlEgsKA2tleRgBIAEo", + "AyKgBAocTW9kaWZ5UHJvY2Vzc0luc3RhbmNlUmVxdWVzdBIaChJwcm9jZXNz", + "SW5zdGFuY2VLZXkYASABKAMSYAoUYWN0aXZhdGVJbnN0cnVjdGlvbnMYAiAD", + "KAsyQi5nYXRld2F5X3Byb3RvY29sLk1vZGlmeVByb2Nlc3NJbnN0YW5jZVJl", + "cXVlc3QuQWN0aXZhdGVJbnN0cnVjdGlvbhJiChV0ZXJtaW5hdGVJbnN0cnVj", + "dGlvbnMYAyADKAsyQy5nYXRld2F5X3Byb3RvY29sLk1vZGlmeVByb2Nlc3NJ", + "bnN0YW5jZVJlcXVlc3QuVGVybWluYXRlSW5zdHJ1Y3Rpb24argEKE0FjdGl2", + "YXRlSW5zdHJ1Y3Rpb24SEQoJZWxlbWVudElkGAEgASgJEiIKGmFuY2VzdG9y", + "RWxlbWVudEluc3RhbmNlS2V5GAIgASgDEmAKFHZhcmlhYmxlSW5zdHJ1Y3Rp", + "b25zGAMgAygLMkIuZ2F0ZXdheV9wcm90b2NvbC5Nb2RpZnlQcm9jZXNzSW5z", + "dGFuY2VSZXF1ZXN0LlZhcmlhYmxlSW5zdHJ1Y3Rpb24aOQoTVmFyaWFibGVJ", + "bnN0cnVjdGlvbhIRCgl2YXJpYWJsZXMYASABKAkSDwoHc2NvcGVJZBgCIAEo", + "CRoyChRUZXJtaW5hdGVJbnN0cnVjdGlvbhIaChJlbGVtZW50SW5zdGFuY2VL", + "ZXkYASABKAMiHwodTW9kaWZ5UHJvY2Vzc0luc3RhbmNlUmVzcG9uc2UyyAwK", + "B0dhdGV3YXkSYQoMQWN0aXZhdGVKb2JzEiUuZ2F0ZXdheV9wcm90b2NvbC5B", + "Y3RpdmF0ZUpvYnNSZXF1ZXN0GiYuZ2F0ZXdheV9wcm90b2NvbC5BY3RpdmF0", + "ZUpvYnNSZXNwb25zZSIAMAESegoVQ2FuY2VsUHJvY2Vzc0luc3RhbmNlEi4u", + "Z2F0ZXdheV9wcm90b2NvbC5DYW5jZWxQcm9jZXNzSW5zdGFuY2VSZXF1ZXN0", + "Gi8uZ2F0ZXdheV9wcm90b2NvbC5DYW5jZWxQcm9jZXNzSW5zdGFuY2VSZXNw", + "b25zZSIAElwKC0NvbXBsZXRlSm9iEiQuZ2F0ZXdheV9wcm90b2NvbC5Db21w", + "bGV0ZUpvYlJlcXVlc3QaJS5nYXRld2F5X3Byb3RvY29sLkNvbXBsZXRlSm9i", + "UmVzcG9uc2UiABJ6ChVDcmVhdGVQcm9jZXNzSW5zdGFuY2USLi5nYXRld2F5", + "X3Byb3RvY29sLkNyZWF0ZVByb2Nlc3NJbnN0YW5jZVJlcXVlc3QaLy5nYXRl", + "d2F5X3Byb3RvY29sLkNyZWF0ZVByb2Nlc3NJbnN0YW5jZVJlc3BvbnNlIgAS", + "mAEKH0NyZWF0ZVByb2Nlc3NJbnN0YW5jZVdpdGhSZXN1bHQSOC5nYXRld2F5", + "X3Byb3RvY29sLkNyZWF0ZVByb2Nlc3NJbnN0YW5jZVdpdGhSZXN1bHRSZXF1", + "ZXN0GjkuZ2F0ZXdheV9wcm90b2NvbC5DcmVhdGVQcm9jZXNzSW5zdGFuY2VX", + "aXRoUmVzdWx0UmVzcG9uc2UiABJlCg1EZXBsb3lQcm9jZXNzEiYuZ2F0ZXdh", + "eV9wcm90b2NvbC5EZXBsb3lQcm9jZXNzUmVxdWVzdBonLmdhdGV3YXlfcHJv", + "dG9jb2wuRGVwbG95UHJvY2Vzc1Jlc3BvbnNlIgOIAgESZQoORGVwbG95UmVz", + "b3VyY2USJy5nYXRld2F5X3Byb3RvY29sLkRlcGxveVJlc291cmNlUmVxdWVz", + "dBooLmdhdGV3YXlfcHJvdG9jb2wuRGVwbG95UmVzb3VyY2VSZXNwb25zZSIA", + "ElAKB0ZhaWxKb2ISIC5nYXRld2F5X3Byb3RvY29sLkZhaWxKb2JSZXF1ZXN0", + "GiEuZ2F0ZXdheV9wcm90b2NvbC5GYWlsSm9iUmVzcG9uc2UiABJZCgpUaHJv", + "d0Vycm9yEiMuZ2F0ZXdheV9wcm90b2NvbC5UaHJvd0Vycm9yUmVxdWVzdBok", + "LmdhdGV3YXlfcHJvdG9jb2wuVGhyb3dFcnJvclJlc3BvbnNlIgASZQoOUHVi", + "bGlzaE1lc3NhZ2USJy5nYXRld2F5X3Byb3RvY29sLlB1Ymxpc2hNZXNzYWdl", + "UmVxdWVzdBooLmdhdGV3YXlfcHJvdG9jb2wuUHVibGlzaE1lc3NhZ2VSZXNw", + "b25zZSIAEmgKD1Jlc29sdmVJbmNpZGVudBIoLmdhdGV3YXlfcHJvdG9jb2wu", + "UmVzb2x2ZUluY2lkZW50UmVxdWVzdBopLmdhdGV3YXlfcHJvdG9jb2wuUmVz", + "b2x2ZUluY2lkZW50UmVzcG9uc2UiABJfCgxTZXRWYXJpYWJsZXMSJS5nYXRl", + "d2F5X3Byb3RvY29sLlNldFZhcmlhYmxlc1JlcXVlc3QaJi5nYXRld2F5X3By", + "b3RvY29sLlNldFZhcmlhYmxlc1Jlc3BvbnNlIgASUwoIVG9wb2xvZ3kSIS5n", + "YXRld2F5X3Byb3RvY29sLlRvcG9sb2d5UmVxdWVzdBoiLmdhdGV3YXlfcHJv", + "dG9jb2wuVG9wb2xvZ3lSZXNwb25zZSIAEmsKEFVwZGF0ZUpvYlJldHJpZXMS", + "KS5nYXRld2F5X3Byb3RvY29sLlVwZGF0ZUpvYlJldHJpZXNSZXF1ZXN0Giou", + "Z2F0ZXdheV9wcm90b2NvbC5VcGRhdGVKb2JSZXRyaWVzUmVzcG9uc2UiABJ6", + "ChVNb2RpZnlQcm9jZXNzSW5zdGFuY2USLi5nYXRld2F5X3Byb3RvY29sLk1v", + "ZGlmeVByb2Nlc3NJbnN0YW5jZVJlcXVlc3QaLy5nYXRld2F5X3Byb3RvY29s", + "Lk1vZGlmeVByb2Nlc3NJbnN0YW5jZVJlc3BvbnNlIgBCLAohaW8uY2FtdW5k", + "YS56ZWViZS5nYXRld2F5LnByb3RvY29sUABaBS4vO3BiYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -131,14 +169,21 @@ static GatewayReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.CancelProcessInstanceResponse), global::GatewayProtocol.CancelProcessInstanceResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.CompleteJobRequest), global::GatewayProtocol.CompleteJobRequest.Parser, new[]{ "JobKey", "Variables" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.CompleteJobResponse), global::GatewayProtocol.CompleteJobResponse.Parser, null, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.CreateProcessInstanceRequest), global::GatewayProtocol.CreateProcessInstanceRequest.Parser, new[]{ "ProcessDefinitionKey", "BpmnProcessId", "Version", "Variables" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.CreateProcessInstanceRequest), global::GatewayProtocol.CreateProcessInstanceRequest.Parser, new[]{ "ProcessDefinitionKey", "BpmnProcessId", "Version", "Variables", "StartInstructions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.ProcessInstanceCreationStartInstruction), global::GatewayProtocol.ProcessInstanceCreationStartInstruction.Parser, new[]{ "ElementId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.CreateProcessInstanceResponse), global::GatewayProtocol.CreateProcessInstanceResponse.Parser, new[]{ "ProcessDefinitionKey", "BpmnProcessId", "Version", "ProcessInstanceKey" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.CreateProcessInstanceWithResultRequest), global::GatewayProtocol.CreateProcessInstanceWithResultRequest.Parser, new[]{ "Request", "RequestTimeout", "FetchVariables" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.CreateProcessInstanceWithResultResponse), global::GatewayProtocol.CreateProcessInstanceWithResultResponse.Parser, new[]{ "ProcessDefinitionKey", "BpmnProcessId", "Version", "ProcessInstanceKey", "Variables" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.DeployProcessRequest), global::GatewayProtocol.DeployProcessRequest.Parser, new[]{ "Processes" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.ProcessRequestObject), global::GatewayProtocol.ProcessRequestObject.Parser, new[]{ "Name", "Definition" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.DeployProcessResponse), global::GatewayProtocol.DeployProcessResponse.Parser, new[]{ "Key", "Processes" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.DeployResourceRequest), global::GatewayProtocol.DeployResourceRequest.Parser, new[]{ "Resources" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.Resource), global::GatewayProtocol.Resource.Parser, new[]{ "Name", "Content" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.DeployResourceResponse), global::GatewayProtocol.DeployResourceResponse.Parser, new[]{ "Key", "Deployments" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.Deployment), global::GatewayProtocol.Deployment.Parser, new[]{ "Process", "Decision", "DecisionRequirements" }, new[]{ "Metadata" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.ProcessMetadata), global::GatewayProtocol.ProcessMetadata.Parser, new[]{ "BpmnProcessId", "Version", "ProcessDefinitionKey", "ResourceName" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.DecisionMetadata), global::GatewayProtocol.DecisionMetadata.Parser, new[]{ "DmnDecisionId", "DmnDecisionName", "Version", "DecisionKey", "DmnDecisionRequirementsId", "DecisionRequirementsKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.DecisionRequirementsMetadata), global::GatewayProtocol.DecisionRequirementsMetadata.Parser, new[]{ "DmnDecisionRequirementsId", "DmnDecisionRequirementsName", "Version", "DecisionRequirementsKey", "ResourceName" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.FailJobRequest), global::GatewayProtocol.FailJobRequest.Parser, new[]{ "JobKey", "Retries", "ErrorMessage", "RetryBackOff" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.FailJobResponse), global::GatewayProtocol.FailJobResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.ThrowErrorRequest), global::GatewayProtocol.ThrowErrorRequest.Parser, new[]{ "JobKey", "ErrorCode", "ErrorMessage" }, null, null, null, null), @@ -154,7 +199,11 @@ static GatewayReflection() { new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.UpdateJobRetriesRequest), global::GatewayProtocol.UpdateJobRetriesRequest.Parser, new[]{ "JobKey", "Retries" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.UpdateJobRetriesResponse), global::GatewayProtocol.UpdateJobRetriesResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.SetVariablesRequest), global::GatewayProtocol.SetVariablesRequest.Parser, new[]{ "ElementInstanceKey", "Variables", "Local" }, null, null, null, null), - new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.SetVariablesResponse), global::GatewayProtocol.SetVariablesResponse.Parser, new[]{ "Key" }, null, null, null, null) + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.SetVariablesResponse), global::GatewayProtocol.SetVariablesResponse.Parser, new[]{ "Key" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.ModifyProcessInstanceRequest), global::GatewayProtocol.ModifyProcessInstanceRequest.Parser, new[]{ "ProcessInstanceKey", "ActivateInstructions", "TerminateInstructions" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.ModifyProcessInstanceRequest.Types.ActivateInstruction), global::GatewayProtocol.ModifyProcessInstanceRequest.Types.ActivateInstruction.Parser, new[]{ "ElementId", "AncestorElementInstanceKey", "VariableInstructions" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.ModifyProcessInstanceRequest.Types.VariableInstruction), global::GatewayProtocol.ModifyProcessInstanceRequest.Types.VariableInstruction.Parser, new[]{ "Variables", "ScopeId" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.ModifyProcessInstanceRequest.Types.TerminateInstruction), global::GatewayProtocol.ModifyProcessInstanceRequest.Types.TerminateInstruction.Parser, new[]{ "ElementInstanceKey" }, null, null, null, null)}), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.ModifyProcessInstanceResponse), global::GatewayProtocol.ModifyProcessInstanceResponse.Parser, null, null, null, null, null) })); } #endregion @@ -2170,6 +2219,7 @@ public CreateProcessInstanceRequest(CreateProcessInstanceRequest other) : this() bpmnProcessId_ = other.bpmnProcessId_; version_ = other.version_; variables_ = other.variables_; + startInstructions_ = other.startInstructions_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } @@ -2244,6 +2294,22 @@ public string Variables { } } + /// Field number for the "startInstructions" field. + public const int StartInstructionsFieldNumber = 5; + private static readonly pb::FieldCodec _repeated_startInstructions_codec + = pb::FieldCodec.ForMessage(42, global::GatewayProtocol.ProcessInstanceCreationStartInstruction.Parser); + private readonly pbc::RepeatedField startInstructions_ = new pbc::RepeatedField(); + /// + /// List of start instructions. If empty (default) the process instance + /// will start at the start event. If non-empty the process instance will apply start + /// instructions after it has been created + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField StartInstructions { + get { return startInstructions_; } + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { @@ -2263,6 +2329,7 @@ public bool Equals(CreateProcessInstanceRequest other) { if (BpmnProcessId != other.BpmnProcessId) return false; if (Version != other.Version) return false; if (Variables != other.Variables) return false; + if(!startInstructions_.Equals(other.startInstructions_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -2274,6 +2341,7 @@ public override int GetHashCode() { if (BpmnProcessId.Length != 0) hash ^= BpmnProcessId.GetHashCode(); if (Version != 0) hash ^= Version.GetHashCode(); if (Variables.Length != 0) hash ^= Variables.GetHashCode(); + hash ^= startInstructions_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -2308,6 +2376,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteString(Variables); } + startInstructions_.WriteTo(output, _repeated_startInstructions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -2334,6 +2403,7 @@ public void WriteTo(pb::CodedOutputStream output) { output.WriteRawTag(34); output.WriteString(Variables); } + startInstructions_.WriteTo(ref output, _repeated_startInstructions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -2356,6 +2426,7 @@ public int CalculateSize() { if (Variables.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Variables); } + size += startInstructions_.CalculateSize(_repeated_startInstructions_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -2380,6 +2451,7 @@ public void MergeFrom(CreateProcessInstanceRequest other) { if (other.Variables.Length != 0) { Variables = other.Variables; } + startInstructions_.Add(other.startInstructions_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -2411,6 +2483,10 @@ public void MergeFrom(pb::CodedInputStream input) { Variables = input.ReadString(); break; } + case 42: { + startInstructions_.AddEntriesFrom(input, _repeated_startInstructions_codec); + break; + } } } #endif @@ -2442,6 +2518,202 @@ public void MergeFrom(pb::CodedInputStream input) { Variables = input.ReadString(); break; } + case 42: { + startInstructions_.AddEntriesFrom(ref input, _repeated_startInstructions_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class ProcessInstanceCreationStartInstruction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProcessInstanceCreationStartInstruction()); + 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::GatewayProtocol.GatewayReflection.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 ProcessInstanceCreationStartInstruction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProcessInstanceCreationStartInstruction(ProcessInstanceCreationStartInstruction other) : this() { + elementId_ = other.elementId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ProcessInstanceCreationStartInstruction Clone() { + return new ProcessInstanceCreationStartInstruction(this); + } + + /// Field number for the "elementId" field. + public const int ElementIdFieldNumber = 1; + private string elementId_ = ""; + /// + /// element ID + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ElementId { + get { return elementId_; } + set { + elementId_ = 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 ProcessInstanceCreationStartInstruction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ProcessInstanceCreationStartInstruction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ElementId != other.ElementId) 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 (ElementId.Length != 0) hash ^= ElementId.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 (ElementId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ElementId); + } + 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 (ElementId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ElementId); + } + 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 (ElementId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ElementId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ProcessInstanceCreationStartInstruction other) { + if (other == null) { + return; + } + if (other.ElementId.Length != 0) { + ElementId = other.ElementId; + } + _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: { + ElementId = 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: { + ElementId = input.ReadString(); + break; + } } } } @@ -2463,7 +2735,7 @@ public sealed partial class CreateProcessInstanceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -3402,7 +3675,7 @@ public sealed partial class DeployProcessRequest : pb::IMessage /// List of process resources to deploy /// + [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Processes { @@ -3569,6 +3843,7 @@ public void MergeFrom(pb::CodedInputStream input) { } + [global::System.ObsoleteAttribute] public sealed partial class ProcessRequestObject : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -3583,7 +3858,7 @@ public sealed partial class ProcessRequestObject : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage @@ -3815,7 +4091,7 @@ public sealed partial class DeployProcessResponse : pb::IMessage + public sealed partial class DeployResourceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProcessMetadata()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeployResourceRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[14]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4047,7 +4323,7 @@ public sealed partial class ProcessMetadata : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProcessMetadata() { + public DeployResourceRequest() { OnConstruction(); } @@ -4055,112 +4331,55 @@ public ProcessMetadata() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProcessMetadata(ProcessMetadata other) : this() { - bpmnProcessId_ = other.bpmnProcessId_; - version_ = other.version_; - processDefinitionKey_ = other.processDefinitionKey_; - resourceName_ = other.resourceName_; + public DeployResourceRequest(DeployResourceRequest other) : this() { + resources_ = other.resources_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProcessMetadata Clone() { - return new ProcessMetadata(this); + public DeployResourceRequest Clone() { + return new DeployResourceRequest(this); } - /// Field number for the "bpmnProcessId" field. - public const int BpmnProcessIdFieldNumber = 1; - private string bpmnProcessId_ = ""; + /// Field number for the "resources" field. + public const int ResourcesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_resources_codec + = pb::FieldCodec.ForMessage(10, global::GatewayProtocol.Resource.Parser); + private readonly pbc::RepeatedField resources_ = new pbc::RepeatedField(); /// - /// the bpmn process ID, as parsed during deployment; together with the version forms a - /// unique identifier for a specific process definition + /// list of resources to deploy /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string BpmnProcessId { - get { return bpmnProcessId_; } - set { - bpmnProcessId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public pbc::RepeatedField Resources { + get { return resources_; } } - /// Field number for the "version" field. - public const int VersionFieldNumber = 2; - private int version_; - /// - /// the assigned process version - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Version { - get { return version_; } - set { - version_ = value; - } + public override bool Equals(object other) { + return Equals(other as DeployResourceRequest); } - /// Field number for the "processDefinitionKey" field. - public const int ProcessDefinitionKeyFieldNumber = 3; - private long processDefinitionKey_; - /// - /// the assigned key, which acts as a unique identifier for this process - /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ProcessDefinitionKey { - get { return processDefinitionKey_; } - set { - processDefinitionKey_ = value; + public bool Equals(DeployResourceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; } - } - - /// Field number for the "resourceName" field. - public const int ResourceNameFieldNumber = 4; - private string resourceName_ = ""; - /// - /// the resource name (see: ProcessRequestObject.name) from which this process was - /// parsed - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } - set { - resourceName_ = 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 ProcessMetadata); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProcessMetadata other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; - } - if (BpmnProcessId != other.BpmnProcessId) return false; - if (Version != other.Version) return false; - if (ProcessDefinitionKey != other.ProcessDefinitionKey) return false; - if (ResourceName != other.ResourceName) return false; - return Equals(_unknownFields, other._unknownFields); + if(!resources_.Equals(other.resources_)) 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 (BpmnProcessId.Length != 0) hash ^= BpmnProcessId.GetHashCode(); - if (Version != 0) hash ^= Version.GetHashCode(); - if (ProcessDefinitionKey != 0L) hash ^= ProcessDefinitionKey.GetHashCode(); - if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); + hash ^= resources_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4179,22 +4398,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (BpmnProcessId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(BpmnProcessId); - } - if (Version != 0) { - output.WriteRawTag(16); - output.WriteInt32(Version); - } - if (ProcessDefinitionKey != 0L) { - output.WriteRawTag(24); - output.WriteInt64(ProcessDefinitionKey); - } - if (ResourceName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ResourceName); - } + resources_.WriteTo(output, _repeated_resources_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4205,22 +4409,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (BpmnProcessId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(BpmnProcessId); - } - if (Version != 0) { - output.WriteRawTag(16); - output.WriteInt32(Version); - } - if (ProcessDefinitionKey != 0L) { - output.WriteRawTag(24); - output.WriteInt64(ProcessDefinitionKey); - } - if (ResourceName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ResourceName); - } + resources_.WriteTo(ref output, _repeated_resources_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4231,18 +4420,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (BpmnProcessId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(BpmnProcessId); - } - if (Version != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version); - } - if (ProcessDefinitionKey != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ProcessDefinitionKey); - } - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); - } + size += resources_.CalculateSize(_repeated_resources_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4251,22 +4429,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProcessMetadata other) { + public void MergeFrom(DeployResourceRequest other) { if (other == null) { return; } - if (other.BpmnProcessId.Length != 0) { - BpmnProcessId = other.BpmnProcessId; - } - if (other.Version != 0) { - Version = other.Version; - } - if (other.ProcessDefinitionKey != 0L) { - ProcessDefinitionKey = other.ProcessDefinitionKey; - } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; - } + resources_.Add(other.resources_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4283,19 +4450,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - BpmnProcessId = input.ReadString(); - break; - } - case 16: { - Version = input.ReadInt32(); - break; - } - case 24: { - ProcessDefinitionKey = input.ReadInt64(); - break; - } - case 34: { - ResourceName = input.ReadString(); + resources_.AddEntriesFrom(input, _repeated_resources_codec); break; } } @@ -4314,19 +4469,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - BpmnProcessId = input.ReadString(); - break; - } - case 16: { - Version = input.ReadInt32(); - break; - } - case 24: { - ProcessDefinitionKey = input.ReadInt64(); - break; - } - case 34: { - ResourceName = input.ReadString(); + resources_.AddEntriesFrom(ref input, _repeated_resources_codec); break; } } @@ -4336,21 +4479,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class FailJobRequest : pb::IMessage + public sealed partial class Resource : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FailJobRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Resource()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[15]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4361,7 +4504,7 @@ public sealed partial class FailJobRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FailJobRequest() { + public Resource() { OnConstruction(); } @@ -4369,101 +4512,65 @@ public FailJobRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FailJobRequest(FailJobRequest other) : this() { - jobKey_ = other.jobKey_; - retries_ = other.retries_; - errorMessage_ = other.errorMessage_; - retryBackOff_ = other.retryBackOff_; + public Resource(Resource other) : this() { + name_ = other.name_; + content_ = other.content_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FailJobRequest Clone() { - return new FailJobRequest(this); - } - - /// Field number for the "jobKey" field. - public const int JobKeyFieldNumber = 1; - private long jobKey_; - /// - /// the unique job identifier, as obtained when activating the job - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long JobKey { - get { return jobKey_; } - set { - jobKey_ = value; - } - } - - /// Field number for the "retries" field. - public const int RetriesFieldNumber = 2; - private int retries_; - /// - /// the amount of retries the job should have left - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Retries { - get { return retries_; } - set { - retries_ = value; - } + public Resource Clone() { + return new Resource(this); } - /// Field number for the "errorMessage" field. - public const int ErrorMessageFieldNumber = 3; - private string errorMessage_ = ""; + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; /// - /// an optional message describing why the job failed - /// this is particularly useful if a job runs out of retries and an incident is raised, - /// as it this message can help explain why an incident was raised + /// the resource name, e.g. myProcess.bpmn or myDecision.dmn /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ErrorMessage { - get { return errorMessage_; } + public string Name { + get { return name_; } set { - errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "retryBackOff" field. - public const int RetryBackOffFieldNumber = 4; - private long retryBackOff_; + /// Field number for the "content" field. + public const int ContentFieldNumber = 2; + private pb::ByteString content_ = pb::ByteString.Empty; /// - /// the backoff timeout for the next retry + /// the file content as a UTF8-encoded string /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long RetryBackOff { - get { return retryBackOff_; } + public pb::ByteString Content { + get { return content_; } set { - retryBackOff_ = value; + content_ = 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 FailJobRequest); + return Equals(other as Resource); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FailJobRequest other) { + public bool Equals(Resource other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (JobKey != other.JobKey) return false; - if (Retries != other.Retries) return false; - if (ErrorMessage != other.ErrorMessage) return false; - if (RetryBackOff != other.RetryBackOff) return false; + if (Name != other.Name) return false; + if (Content != other.Content) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4471,10 +4578,8 @@ public bool Equals(FailJobRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (JobKey != 0L) hash ^= JobKey.GetHashCode(); - if (Retries != 0) hash ^= Retries.GetHashCode(); - if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode(); - if (RetryBackOff != 0L) hash ^= RetryBackOff.GetHashCode(); + if (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Content.Length != 0) hash ^= Content.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4493,21 +4598,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (JobKey != 0L) { - output.WriteRawTag(8); - output.WriteInt64(JobKey); - } - if (Retries != 0) { - output.WriteRawTag(16); - output.WriteInt32(Retries); - } - if (ErrorMessage.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ErrorMessage); + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); } - if (RetryBackOff != 0L) { - output.WriteRawTag(32); - output.WriteInt64(RetryBackOff); + if (Content.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Content); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -4519,21 +4616,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (JobKey != 0L) { - output.WriteRawTag(8); - output.WriteInt64(JobKey); - } - if (Retries != 0) { - output.WriteRawTag(16); - output.WriteInt32(Retries); - } - if (ErrorMessage.Length != 0) { - output.WriteRawTag(26); - output.WriteString(ErrorMessage); + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); } - if (RetryBackOff != 0L) { - output.WriteRawTag(32); - output.WriteInt64(RetryBackOff); + if (Content.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Content); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -4545,17 +4634,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (JobKey != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(JobKey); - } - if (Retries != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Retries); - } - if (ErrorMessage.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); + if (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (RetryBackOff != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(RetryBackOff); + if (Content.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Content); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -4565,21 +4648,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FailJobRequest other) { + public void MergeFrom(Resource other) { if (other == null) { return; } - if (other.JobKey != 0L) { - JobKey = other.JobKey; + if (other.Name.Length != 0) { + Name = other.Name; } - if (other.Retries != 0) { - Retries = other.Retries; - } - if (other.ErrorMessage.Length != 0) { - ErrorMessage = other.ErrorMessage; - } - if (other.RetryBackOff != 0L) { - RetryBackOff = other.RetryBackOff; + if (other.Content.Length != 0) { + Content = other.Content; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4596,20 +4673,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - JobKey = input.ReadInt64(); - break; - } - case 16: { - Retries = input.ReadInt32(); - break; - } - case 26: { - ErrorMessage = input.ReadString(); + case 10: { + Name = input.ReadString(); break; } - case 32: { - RetryBackOff = input.ReadInt64(); + case 18: { + Content = input.ReadBytes(); break; } } @@ -4627,20 +4696,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - JobKey = input.ReadInt64(); - break; - } - case 16: { - Retries = input.ReadInt32(); - break; - } - case 26: { - ErrorMessage = input.ReadString(); + case 10: { + Name = input.ReadString(); break; } - case 32: { - RetryBackOff = input.ReadInt64(); + case 18: { + Content = input.ReadBytes(); break; } } @@ -4650,21 +4711,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class FailJobResponse : pb::IMessage + public sealed partial class DeployResourceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FailJobResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeployResourceResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[16]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4675,7 +4736,7 @@ public sealed partial class FailJobResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FailJobResponse() { + public DeployResourceResponse() { OnConstruction(); } @@ -4683,31 +4744,64 @@ public FailJobResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FailJobResponse(FailJobResponse other) : this() { + public DeployResourceResponse(DeployResourceResponse other) : this() { + key_ = other.key_; + deployments_ = other.deployments_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FailJobResponse Clone() { - return new FailJobResponse(this); + public DeployResourceResponse Clone() { + return new DeployResourceResponse(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private long key_; + /// + /// the unique key identifying the deployment + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Key { + get { return key_; } + set { + key_ = value; + } + } + + /// Field number for the "deployments" field. + public const int DeploymentsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_deployments_codec + = pb::FieldCodec.ForMessage(18, global::GatewayProtocol.Deployment.Parser); + private readonly pbc::RepeatedField deployments_ = new pbc::RepeatedField(); + /// + /// a list of deployed resources, e.g. processes + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Deployments { + get { return deployments_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as FailJobResponse); + return Equals(other as DeployResourceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(FailJobResponse other) { + public bool Equals(DeployResourceResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (Key != other.Key) return false; + if(!deployments_.Equals(other.deployments_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4715,6 +4809,8 @@ public bool Equals(FailJobResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (Key != 0L) hash ^= Key.GetHashCode(); + hash ^= deployments_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4733,6 +4829,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (Key != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Key); + } + deployments_.WriteTo(output, _repeated_deployments_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4743,6 +4844,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Key != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Key); + } + deployments_.WriteTo(ref output, _repeated_deployments_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4753,6 +4859,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (Key != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Key); + } + size += deployments_.CalculateSize(_repeated_deployments_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4761,10 +4871,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(FailJobResponse other) { + public void MergeFrom(DeployResourceResponse other) { if (other == null) { return; } + if (other.Key != 0L) { + Key = other.Key; + } + deployments_.Add(other.deployments_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4780,6 +4894,14 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 8: { + Key = input.ReadInt64(); + break; + } + case 18: { + deployments_.AddEntriesFrom(input, _repeated_deployments_codec); + break; + } } } #endif @@ -4795,6 +4917,14 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 8: { + Key = input.ReadInt64(); + break; + } + case 18: { + deployments_.AddEntriesFrom(ref input, _repeated_deployments_codec); + break; + } } } } @@ -4802,21 +4932,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ThrowErrorRequest : pb::IMessage + public sealed partial class Deployment : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ThrowErrorRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Deployment()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[17]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[18]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -4827,7 +4957,7 @@ public sealed partial class ThrowErrorRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ThrowErrorRequest() { + public Deployment() { OnConstruction(); } @@ -4835,82 +4965,114 @@ public ThrowErrorRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ThrowErrorRequest(ThrowErrorRequest other) : this() { - jobKey_ = other.jobKey_; - errorCode_ = other.errorCode_; - errorMessage_ = other.errorMessage_; + public Deployment(Deployment other) : this() { + switch (other.MetadataCase) { + case MetadataOneofCase.Process: + Process = other.Process.Clone(); + break; + case MetadataOneofCase.Decision: + Decision = other.Decision.Clone(); + break; + case MetadataOneofCase.DecisionRequirements: + DecisionRequirements = other.DecisionRequirements.Clone(); + break; + } + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ThrowErrorRequest Clone() { - return new ThrowErrorRequest(this); + public Deployment Clone() { + return new Deployment(this); } - /// Field number for the "jobKey" field. - public const int JobKeyFieldNumber = 1; - private long jobKey_; + /// Field number for the "process" field. + public const int ProcessFieldNumber = 1; /// - /// the unique job identifier, as obtained when activating the job + /// metadata of a deployed process /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long JobKey { - get { return jobKey_; } + public global::GatewayProtocol.ProcessMetadata Process { + get { return metadataCase_ == MetadataOneofCase.Process ? (global::GatewayProtocol.ProcessMetadata) metadata_ : null; } set { - jobKey_ = value; + metadata_ = value; + metadataCase_ = value == null ? MetadataOneofCase.None : MetadataOneofCase.Process; } } - /// Field number for the "errorCode" field. - public const int ErrorCodeFieldNumber = 2; - private string errorCode_ = ""; + /// Field number for the "decision" field. + public const int DecisionFieldNumber = 2; /// - /// the error code that will be matched with an error catch event + /// metadata of a deployed decision /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ErrorCode { - get { return errorCode_; } + public global::GatewayProtocol.DecisionMetadata Decision { + get { return metadataCase_ == MetadataOneofCase.Decision ? (global::GatewayProtocol.DecisionMetadata) metadata_ : null; } set { - errorCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + metadata_ = value; + metadataCase_ = value == null ? MetadataOneofCase.None : MetadataOneofCase.Decision; } } - /// Field number for the "errorMessage" field. - public const int ErrorMessageFieldNumber = 3; - private string errorMessage_ = ""; + /// Field number for the "decisionRequirements" field. + public const int DecisionRequirementsFieldNumber = 3; /// - /// an optional error message that provides additional context + /// metadata of a deployed decision requirements /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ErrorMessage { - get { return errorMessage_; } + public global::GatewayProtocol.DecisionRequirementsMetadata DecisionRequirements { + get { return metadataCase_ == MetadataOneofCase.DecisionRequirements ? (global::GatewayProtocol.DecisionRequirementsMetadata) metadata_ : null; } set { - errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + metadata_ = value; + metadataCase_ = value == null ? MetadataOneofCase.None : MetadataOneofCase.DecisionRequirements; } } + private object metadata_; + /// Enum of possible cases for the "Metadata" oneof. + public enum MetadataOneofCase { + None = 0, + Process = 1, + Decision = 2, + DecisionRequirements = 3, + } + private MetadataOneofCase metadataCase_ = MetadataOneofCase.None; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public MetadataOneofCase MetadataCase { + get { return metadataCase_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void ClearMetadata() { + metadataCase_ = MetadataOneofCase.None; + metadata_ = null; + } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as ThrowErrorRequest); + return Equals(other as Deployment); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ThrowErrorRequest other) { + public bool Equals(Deployment other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (JobKey != other.JobKey) return false; - if (ErrorCode != other.ErrorCode) return false; - if (ErrorMessage != other.ErrorMessage) return false; + if (!object.Equals(Process, other.Process)) return false; + if (!object.Equals(Decision, other.Decision)) return false; + if (!object.Equals(DecisionRequirements, other.DecisionRequirements)) return false; + if (MetadataCase != other.MetadataCase) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4918,9 +5080,10 @@ public bool Equals(ThrowErrorRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (JobKey != 0L) hash ^= JobKey.GetHashCode(); - if (ErrorCode.Length != 0) hash ^= ErrorCode.GetHashCode(); - if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode(); + if (metadataCase_ == MetadataOneofCase.Process) hash ^= Process.GetHashCode(); + if (metadataCase_ == MetadataOneofCase.Decision) hash ^= Decision.GetHashCode(); + if (metadataCase_ == MetadataOneofCase.DecisionRequirements) hash ^= DecisionRequirements.GetHashCode(); + hash ^= (int) metadataCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4939,17 +5102,17 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (JobKey != 0L) { - output.WriteRawTag(8); - output.WriteInt64(JobKey); + if (metadataCase_ == MetadataOneofCase.Process) { + output.WriteRawTag(10); + output.WriteMessage(Process); } - if (ErrorCode.Length != 0) { + if (metadataCase_ == MetadataOneofCase.Decision) { output.WriteRawTag(18); - output.WriteString(ErrorCode); + output.WriteMessage(Decision); } - if (ErrorMessage.Length != 0) { + if (metadataCase_ == MetadataOneofCase.DecisionRequirements) { output.WriteRawTag(26); - output.WriteString(ErrorMessage); + output.WriteMessage(DecisionRequirements); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -4961,17 +5124,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (JobKey != 0L) { - output.WriteRawTag(8); - output.WriteInt64(JobKey); + if (metadataCase_ == MetadataOneofCase.Process) { + output.WriteRawTag(10); + output.WriteMessage(Process); } - if (ErrorCode.Length != 0) { + if (metadataCase_ == MetadataOneofCase.Decision) { output.WriteRawTag(18); - output.WriteString(ErrorCode); + output.WriteMessage(Decision); } - if (ErrorMessage.Length != 0) { + if (metadataCase_ == MetadataOneofCase.DecisionRequirements) { output.WriteRawTag(26); - output.WriteString(ErrorMessage); + output.WriteMessage(DecisionRequirements); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -4983,14 +5146,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (JobKey != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(JobKey); + if (metadataCase_ == MetadataOneofCase.Process) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Process); } - if (ErrorCode.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorCode); + if (metadataCase_ == MetadataOneofCase.Decision) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(Decision); } - if (ErrorMessage.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); + if (metadataCase_ == MetadataOneofCase.DecisionRequirements) { + size += 1 + pb::CodedOutputStream.ComputeMessageSize(DecisionRequirements); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5000,19 +5163,31 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ThrowErrorRequest other) { + public void MergeFrom(Deployment other) { if (other == null) { return; } - if (other.JobKey != 0L) { - JobKey = other.JobKey; - } - if (other.ErrorCode.Length != 0) { - ErrorCode = other.ErrorCode; - } - if (other.ErrorMessage.Length != 0) { - ErrorMessage = other.ErrorMessage; + switch (other.MetadataCase) { + case MetadataOneofCase.Process: + if (Process == null) { + Process = new global::GatewayProtocol.ProcessMetadata(); + } + Process.MergeFrom(other.Process); + break; + case MetadataOneofCase.Decision: + if (Decision == null) { + Decision = new global::GatewayProtocol.DecisionMetadata(); + } + Decision.MergeFrom(other.Decision); + break; + case MetadataOneofCase.DecisionRequirements: + if (DecisionRequirements == null) { + DecisionRequirements = new global::GatewayProtocol.DecisionRequirementsMetadata(); + } + DecisionRequirements.MergeFrom(other.DecisionRequirements); + break; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5028,16 +5203,31 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - JobKey = input.ReadInt64(); + case 10: { + global::GatewayProtocol.ProcessMetadata subBuilder = new global::GatewayProtocol.ProcessMetadata(); + if (metadataCase_ == MetadataOneofCase.Process) { + subBuilder.MergeFrom(Process); + } + input.ReadMessage(subBuilder); + Process = subBuilder; break; } case 18: { - ErrorCode = input.ReadString(); + global::GatewayProtocol.DecisionMetadata subBuilder = new global::GatewayProtocol.DecisionMetadata(); + if (metadataCase_ == MetadataOneofCase.Decision) { + subBuilder.MergeFrom(Decision); + } + input.ReadMessage(subBuilder); + Decision = subBuilder; break; } case 26: { - ErrorMessage = input.ReadString(); + global::GatewayProtocol.DecisionRequirementsMetadata subBuilder = new global::GatewayProtocol.DecisionRequirementsMetadata(); + if (metadataCase_ == MetadataOneofCase.DecisionRequirements) { + subBuilder.MergeFrom(DecisionRequirements); + } + input.ReadMessage(subBuilder); + DecisionRequirements = subBuilder; break; } } @@ -5055,16 +5245,31 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - JobKey = input.ReadInt64(); + case 10: { + global::GatewayProtocol.ProcessMetadata subBuilder = new global::GatewayProtocol.ProcessMetadata(); + if (metadataCase_ == MetadataOneofCase.Process) { + subBuilder.MergeFrom(Process); + } + input.ReadMessage(subBuilder); + Process = subBuilder; break; } case 18: { - ErrorCode = input.ReadString(); + global::GatewayProtocol.DecisionMetadata subBuilder = new global::GatewayProtocol.DecisionMetadata(); + if (metadataCase_ == MetadataOneofCase.Decision) { + subBuilder.MergeFrom(Decision); + } + input.ReadMessage(subBuilder); + Decision = subBuilder; break; } case 26: { - ErrorMessage = input.ReadString(); + global::GatewayProtocol.DecisionRequirementsMetadata subBuilder = new global::GatewayProtocol.DecisionRequirementsMetadata(); + if (metadataCase_ == MetadataOneofCase.DecisionRequirements) { + subBuilder.MergeFrom(DecisionRequirements); + } + input.ReadMessage(subBuilder); + DecisionRequirements = subBuilder; break; } } @@ -5074,21 +5279,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ThrowErrorResponse : pb::IMessage + public sealed partial class ProcessMetadata : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ThrowErrorResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProcessMetadata()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[18]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[19]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5099,7 +5304,7 @@ public sealed partial class ThrowErrorResponse : pb::IMessageField number for the "bpmnProcessId" field. + public const int BpmnProcessIdFieldNumber = 1; + private string bpmnProcessId_ = ""; + /// + /// the bpmn process ID, as parsed during deployment; together with the version forms a + /// unique identifier for a specific process definition + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ThrowErrorResponse); + public string BpmnProcessId { + get { return bpmnProcessId_; } + set { + bpmnProcessId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } + /// Field number for the "version" field. + public const int VersionFieldNumber = 2; + private int version_; + /// + /// the assigned process version + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ThrowErrorResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; + public int Version { + get { return version_; } + set { + version_ = value; } - return Equals(_unknownFields, other._unknownFields); } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + /// Field number for the "processDefinitionKey" field. + public const int ProcessDefinitionKeyFieldNumber = 3; + private long processDefinitionKey_; + /// + /// the assigned key, which acts as a unique identifier for this process + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ProcessDefinitionKey { + get { return processDefinitionKey_; } + set { + processDefinitionKey_ = value; + } + } + + /// Field number for the "resourceName" field. + public const int ResourceNameFieldNumber = 4; + private string resourceName_ = ""; + /// + /// the resource name (see: ProcessRequestObject.name) from which this process was + /// parsed + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceName { + get { return resourceName_; } + set { + resourceName_ = 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 ProcessMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ProcessMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (BpmnProcessId != other.BpmnProcessId) return false; + if (Version != other.Version) return false; + if (ProcessDefinitionKey != other.ProcessDefinitionKey) return false; + if (ResourceName != other.ResourceName) 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 (BpmnProcessId.Length != 0) hash ^= BpmnProcessId.GetHashCode(); + if (Version != 0) hash ^= Version.GetHashCode(); + if (ProcessDefinitionKey != 0L) hash ^= ProcessDefinitionKey.GetHashCode(); + if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5157,6 +5436,22 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (BpmnProcessId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(BpmnProcessId); + } + if (Version != 0) { + output.WriteRawTag(16); + output.WriteInt32(Version); + } + if (ProcessDefinitionKey != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ProcessDefinitionKey); + } + if (ResourceName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ResourceName); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -5167,6 +5462,22 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (BpmnProcessId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(BpmnProcessId); + } + if (Version != 0) { + output.WriteRawTag(16); + output.WriteInt32(Version); + } + if (ProcessDefinitionKey != 0L) { + output.WriteRawTag(24); + output.WriteInt64(ProcessDefinitionKey); + } + if (ResourceName.Length != 0) { + output.WriteRawTag(34); + output.WriteString(ResourceName); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5177,6 +5488,18 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (BpmnProcessId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(BpmnProcessId); + } + if (Version != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version); + } + if (ProcessDefinitionKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ProcessDefinitionKey); + } + if (ResourceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -5185,10 +5508,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ThrowErrorResponse other) { + public void MergeFrom(ProcessMetadata other) { if (other == null) { return; } + if (other.BpmnProcessId.Length != 0) { + BpmnProcessId = other.BpmnProcessId; + } + if (other.Version != 0) { + Version = other.Version; + } + if (other.ProcessDefinitionKey != 0L) { + ProcessDefinitionKey = other.ProcessDefinitionKey; + } + if (other.ResourceName.Length != 0) { + ResourceName = other.ResourceName; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5204,6 +5539,22 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 10: { + BpmnProcessId = input.ReadString(); + break; + } + case 16: { + Version = input.ReadInt32(); + break; + } + case 24: { + ProcessDefinitionKey = input.ReadInt64(); + break; + } + case 34: { + ResourceName = input.ReadString(); + break; + } } } #endif @@ -5219,6 +5570,22 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 10: { + BpmnProcessId = input.ReadString(); + break; + } + case 16: { + Version = input.ReadInt32(); + break; + } + case 24: { + ProcessDefinitionKey = input.ReadInt64(); + break; + } + case 34: { + ResourceName = input.ReadString(); + break; + } } } } @@ -5226,21 +5593,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class PublishMessageRequest : pb::IMessage + public sealed partial class DecisionMetadata : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PublishMessageRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DecisionMetadata()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[19]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5251,7 +5618,7 @@ public sealed partial class PublishMessageRequest : pb::IMessageField number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; + /// Field number for the "dmnDecisionId" field. + public const int DmnDecisionIdFieldNumber = 1; + private string dmnDecisionId_ = ""; /// - /// the name of the message + /// the dmn decision ID, as parsed during deployment; together with the + /// versions forms a unique identifier for a specific decision /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } + public string DmnDecisionId { + get { return dmnDecisionId_; } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + dmnDecisionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "correlationKey" field. - public const int CorrelationKeyFieldNumber = 2; - private string correlationKey_ = ""; + /// Field number for the "dmnDecisionName" field. + public const int DmnDecisionNameFieldNumber = 2; + private string dmnDecisionName_ = ""; /// - /// the correlation key of the message + /// the dmn name of the decision, as parsed during deployment /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string CorrelationKey { - get { return correlationKey_; } + public string DmnDecisionName { + get { return dmnDecisionName_; } set { - correlationKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + dmnDecisionName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "timeToLive" field. - public const int TimeToLiveFieldNumber = 3; - private long timeToLive_; + /// Field number for the "version" field. + public const int VersionFieldNumber = 3; + private int version_; /// - /// how long the message should be buffered on the broker, in milliseconds + /// the assigned decision version /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long TimeToLive { - get { return timeToLive_; } + public int Version { + get { return version_; } set { - timeToLive_ = value; + version_ = value; } } - /// Field number for the "messageId" field. - public const int MessageIdFieldNumber = 4; - private string messageId_ = ""; + /// Field number for the "decisionKey" field. + public const int DecisionKeyFieldNumber = 4; + private long decisionKey_; /// - /// the unique ID of the message; can be omitted. only useful to ensure only one message - /// with the given ID will ever be published (during its lifetime) + /// the assigned decision key, which acts as a unique identifier for this + /// decision /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string MessageId { - get { return messageId_; } + public long DecisionKey { + get { return decisionKey_; } set { - messageId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + decisionKey_ = value; } } - /// Field number for the "variables" field. - public const int VariablesFieldNumber = 5; - private string variables_ = ""; + /// Field number for the "dmnDecisionRequirementsId" field. + public const int DmnDecisionRequirementsIdFieldNumber = 5; + private string dmnDecisionRequirementsId_ = ""; /// - /// the message variables as a JSON document; to be valid, the root of the document must be an - /// object, e.g. { "a": "foo" }. [ "foo" ] would not be valid. + /// the dmn ID of the decision requirements graph that this decision is part + /// of, as parsed during deployment /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Variables { - get { return variables_; } + public string DmnDecisionRequirementsId { + get { return dmnDecisionRequirementsId_; } set { - variables_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + dmnDecisionRequirementsId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "decisionRequirementsKey" field. + public const int DecisionRequirementsKeyFieldNumber = 6; + private long decisionRequirementsKey_; + /// + /// the assigned key of the decision requirements graph that this decision is + /// part of + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DecisionRequirementsKey { + get { return decisionRequirementsKey_; } + set { + decisionRequirementsKey_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as PublishMessageRequest); + return Equals(other as DecisionMetadata); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PublishMessageRequest other) { + public bool Equals(DecisionMetadata other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Name != other.Name) return false; - if (CorrelationKey != other.CorrelationKey) return false; - if (TimeToLive != other.TimeToLive) return false; - if (MessageId != other.MessageId) return false; - if (Variables != other.Variables) return false; + if (DmnDecisionId != other.DmnDecisionId) return false; + if (DmnDecisionName != other.DmnDecisionName) return false; + if (Version != other.Version) return false; + if (DecisionKey != other.DecisionKey) return false; + if (DmnDecisionRequirementsId != other.DmnDecisionRequirementsId) return false; + if (DecisionRequirementsKey != other.DecisionRequirementsKey) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5378,11 +5764,12 @@ public bool Equals(PublishMessageRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (CorrelationKey.Length != 0) hash ^= CorrelationKey.GetHashCode(); - if (TimeToLive != 0L) hash ^= TimeToLive.GetHashCode(); - if (MessageId.Length != 0) hash ^= MessageId.GetHashCode(); - if (Variables.Length != 0) hash ^= Variables.GetHashCode(); + if (DmnDecisionId.Length != 0) hash ^= DmnDecisionId.GetHashCode(); + if (DmnDecisionName.Length != 0) hash ^= DmnDecisionName.GetHashCode(); + if (Version != 0) hash ^= Version.GetHashCode(); + if (DecisionKey != 0L) hash ^= DecisionKey.GetHashCode(); + if (DmnDecisionRequirementsId.Length != 0) hash ^= DmnDecisionRequirementsId.GetHashCode(); + if (DecisionRequirementsKey != 0L) hash ^= DecisionRequirementsKey.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5401,25 +5788,29 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Name.Length != 0) { + if (DmnDecisionId.Length != 0) { output.WriteRawTag(10); - output.WriteString(Name); + output.WriteString(DmnDecisionId); } - if (CorrelationKey.Length != 0) { + if (DmnDecisionName.Length != 0) { output.WriteRawTag(18); - output.WriteString(CorrelationKey); + output.WriteString(DmnDecisionName); } - if (TimeToLive != 0L) { + if (Version != 0) { output.WriteRawTag(24); - output.WriteInt64(TimeToLive); + output.WriteInt32(Version); } - if (MessageId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(MessageId); + if (DecisionKey != 0L) { + output.WriteRawTag(32); + output.WriteInt64(DecisionKey); } - if (Variables.Length != 0) { + if (DmnDecisionRequirementsId.Length != 0) { output.WriteRawTag(42); - output.WriteString(Variables); + output.WriteString(DmnDecisionRequirementsId); + } + if (DecisionRequirementsKey != 0L) { + output.WriteRawTag(48); + output.WriteInt64(DecisionRequirementsKey); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5431,25 +5822,29 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Name.Length != 0) { + if (DmnDecisionId.Length != 0) { output.WriteRawTag(10); - output.WriteString(Name); + output.WriteString(DmnDecisionId); } - if (CorrelationKey.Length != 0) { + if (DmnDecisionName.Length != 0) { output.WriteRawTag(18); - output.WriteString(CorrelationKey); + output.WriteString(DmnDecisionName); } - if (TimeToLive != 0L) { + if (Version != 0) { output.WriteRawTag(24); - output.WriteInt64(TimeToLive); + output.WriteInt32(Version); } - if (MessageId.Length != 0) { - output.WriteRawTag(34); - output.WriteString(MessageId); + if (DecisionKey != 0L) { + output.WriteRawTag(32); + output.WriteInt64(DecisionKey); } - if (Variables.Length != 0) { + if (DmnDecisionRequirementsId.Length != 0) { output.WriteRawTag(42); - output.WriteString(Variables); + output.WriteString(DmnDecisionRequirementsId); + } + if (DecisionRequirementsKey != 0L) { + output.WriteRawTag(48); + output.WriteInt64(DecisionRequirementsKey); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5461,20 +5856,23 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Name.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); + if (DmnDecisionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DmnDecisionId); } - if (CorrelationKey.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(CorrelationKey); + if (DmnDecisionName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DmnDecisionName); } - if (TimeToLive != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeToLive); + if (Version != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version); } - if (MessageId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(MessageId); + if (DecisionKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DecisionKey); } - if (Variables.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Variables); + if (DmnDecisionRequirementsId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DmnDecisionRequirementsId); + } + if (DecisionRequirementsKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DecisionRequirementsKey); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5484,24 +5882,27 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PublishMessageRequest other) { + public void MergeFrom(DecisionMetadata other) { if (other == null) { return; } - if (other.Name.Length != 0) { - Name = other.Name; + if (other.DmnDecisionId.Length != 0) { + DmnDecisionId = other.DmnDecisionId; } - if (other.CorrelationKey.Length != 0) { - CorrelationKey = other.CorrelationKey; + if (other.DmnDecisionName.Length != 0) { + DmnDecisionName = other.DmnDecisionName; } - if (other.TimeToLive != 0L) { - TimeToLive = other.TimeToLive; + if (other.Version != 0) { + Version = other.Version; } - if (other.MessageId.Length != 0) { - MessageId = other.MessageId; + if (other.DecisionKey != 0L) { + DecisionKey = other.DecisionKey; } - if (other.Variables.Length != 0) { - Variables = other.Variables; + if (other.DmnDecisionRequirementsId.Length != 0) { + DmnDecisionRequirementsId = other.DmnDecisionRequirementsId; + } + if (other.DecisionRequirementsKey != 0L) { + DecisionRequirementsKey = other.DecisionRequirementsKey; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5519,23 +5920,27 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Name = input.ReadString(); + DmnDecisionId = input.ReadString(); break; } case 18: { - CorrelationKey = input.ReadString(); + DmnDecisionName = input.ReadString(); break; } case 24: { - TimeToLive = input.ReadInt64(); + Version = input.ReadInt32(); break; } - case 34: { - MessageId = input.ReadString(); + case 32: { + DecisionKey = input.ReadInt64(); break; } case 42: { - Variables = input.ReadString(); + DmnDecisionRequirementsId = input.ReadString(); + break; + } + case 48: { + DecisionRequirementsKey = input.ReadInt64(); break; } } @@ -5554,23 +5959,27 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Name = input.ReadString(); + DmnDecisionId = input.ReadString(); break; } case 18: { - CorrelationKey = input.ReadString(); + DmnDecisionName = input.ReadString(); break; } case 24: { - TimeToLive = input.ReadInt64(); + Version = input.ReadInt32(); break; } - case 34: { - MessageId = input.ReadString(); + case 32: { + DecisionKey = input.ReadInt64(); break; } case 42: { - Variables = input.ReadString(); + DmnDecisionRequirementsId = input.ReadString(); + break; + } + case 48: { + DecisionRequirementsKey = input.ReadInt64(); break; } } @@ -5580,21 +5989,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class PublishMessageResponse : pb::IMessage + public sealed partial class DecisionRequirementsMetadata : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PublishMessageResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DecisionRequirementsMetadata()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[20]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[21]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5605,7 +6014,7 @@ public sealed partial class PublishMessageResponse : pb::IMessageField number for the "key" field. - public const int KeyFieldNumber = 1; - private long key_; + /// Field number for the "dmnDecisionRequirementsId" field. + public const int DmnDecisionRequirementsIdFieldNumber = 1; + private string dmnDecisionRequirementsId_ = ""; /// - /// the unique ID of the message that was published + /// the dmn decision requirements ID, as parsed during deployment; together + /// with the versions forms a unique identifier for a specific decision /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Key { - get { return key_; } + public string DmnDecisionRequirementsId { + get { return dmnDecisionRequirementsId_; } set { - key_ = value; + dmnDecisionRequirementsId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "dmnDecisionRequirementsName" field. + public const int DmnDecisionRequirementsNameFieldNumber = 2; + private string dmnDecisionRequirementsName_ = ""; + /// + /// the dmn name of the decision requirements, as parsed during deployment + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DmnDecisionRequirementsName { + get { return dmnDecisionRequirementsName_; } + set { + dmnDecisionRequirementsName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 3; + private int version_; + /// + /// the assigned decision requirements version + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Version { + get { return version_; } + set { + version_ = value; + } + } + + /// Field number for the "decisionRequirementsKey" field. + public const int DecisionRequirementsKeyFieldNumber = 4; + private long decisionRequirementsKey_; + /// + /// the assigned decision requirements key, which acts as a unique identifier + /// for this decision requirements + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DecisionRequirementsKey { + get { return decisionRequirementsKey_; } + set { + decisionRequirementsKey_ = value; + } + } + + /// Field number for the "resourceName" field. + public const int ResourceNameFieldNumber = 5; + private string resourceName_ = ""; + /// + /// the resource name (see: Resource.name) from which this decision + /// requirements was parsed + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ResourceName { + get { return resourceName_; } + set { + resourceName_ = 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 PublishMessageResponse); + return Equals(other as DecisionRequirementsMetadata); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PublishMessageResponse other) { + public bool Equals(DecisionRequirementsMetadata other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Key != other.Key) return false; + if (DmnDecisionRequirementsId != other.DmnDecisionRequirementsId) return false; + if (DmnDecisionRequirementsName != other.DmnDecisionRequirementsName) return false; + if (Version != other.Version) return false; + if (DecisionRequirementsKey != other.DecisionRequirementsKey) return false; + if (ResourceName != other.ResourceName) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5662,7 +6142,11 @@ public bool Equals(PublishMessageResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Key != 0L) hash ^= Key.GetHashCode(); + if (DmnDecisionRequirementsId.Length != 0) hash ^= DmnDecisionRequirementsId.GetHashCode(); + if (DmnDecisionRequirementsName.Length != 0) hash ^= DmnDecisionRequirementsName.GetHashCode(); + if (Version != 0) hash ^= Version.GetHashCode(); + if (DecisionRequirementsKey != 0L) hash ^= DecisionRequirementsKey.GetHashCode(); + if (ResourceName.Length != 0) hash ^= ResourceName.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5681,9 +6165,25 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Key != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Key); + if (DmnDecisionRequirementsId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DmnDecisionRequirementsId); + } + if (DmnDecisionRequirementsName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DmnDecisionRequirementsName); + } + if (Version != 0) { + output.WriteRawTag(24); + output.WriteInt32(Version); + } + if (DecisionRequirementsKey != 0L) { + output.WriteRawTag(32); + output.WriteInt64(DecisionRequirementsKey); + } + if (ResourceName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ResourceName); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5695,9 +6195,25 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Key != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Key); + if (DmnDecisionRequirementsId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(DmnDecisionRequirementsId); + } + if (DmnDecisionRequirementsName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DmnDecisionRequirementsName); + } + if (Version != 0) { + output.WriteRawTag(24); + output.WriteInt32(Version); + } + if (DecisionRequirementsKey != 0L) { + output.WriteRawTag(32); + output.WriteInt64(DecisionRequirementsKey); + } + if (ResourceName.Length != 0) { + output.WriteRawTag(42); + output.WriteString(ResourceName); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5709,8 +6225,20 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Key != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Key); + if (DmnDecisionRequirementsId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DmnDecisionRequirementsId); + } + if (DmnDecisionRequirementsName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DmnDecisionRequirementsName); + } + if (Version != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version); + } + if (DecisionRequirementsKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DecisionRequirementsKey); + } + if (ResourceName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5720,12 +6248,24 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(PublishMessageResponse other) { + public void MergeFrom(DecisionRequirementsMetadata other) { if (other == null) { return; } - if (other.Key != 0L) { - Key = other.Key; + if (other.DmnDecisionRequirementsId.Length != 0) { + DmnDecisionRequirementsId = other.DmnDecisionRequirementsId; + } + if (other.DmnDecisionRequirementsName.Length != 0) { + DmnDecisionRequirementsName = other.DmnDecisionRequirementsName; + } + if (other.Version != 0) { + Version = other.Version; + } + if (other.DecisionRequirementsKey != 0L) { + DecisionRequirementsKey = other.DecisionRequirementsKey; + } + if (other.ResourceName.Length != 0) { + ResourceName = other.ResourceName; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5742,8 +6282,24 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - Key = input.ReadInt64(); + case 10: { + DmnDecisionRequirementsId = input.ReadString(); + break; + } + case 18: { + DmnDecisionRequirementsName = input.ReadString(); + break; + } + case 24: { + Version = input.ReadInt32(); + break; + } + case 32: { + DecisionRequirementsKey = input.ReadInt64(); + break; + } + case 42: { + ResourceName = input.ReadString(); break; } } @@ -5761,8 +6317,24 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - Key = input.ReadInt64(); + case 10: { + DmnDecisionRequirementsId = input.ReadString(); + break; + } + case 18: { + DmnDecisionRequirementsName = input.ReadString(); + break; + } + case 24: { + Version = input.ReadInt32(); + break; + } + case 32: { + DecisionRequirementsKey = input.ReadInt64(); + break; + } + case 42: { + ResourceName = input.ReadString(); break; } } @@ -5772,21 +6344,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ResolveIncidentRequest : pb::IMessage + public sealed partial class FailJobRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResolveIncidentRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FailJobRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[21]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[22]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5797,7 +6369,7 @@ public sealed partial class ResolveIncidentRequest : pb::IMessageField number for the "incidentKey" field. - public const int IncidentKeyFieldNumber = 1; - private long incidentKey_; + /// Field number for the "jobKey" field. + public const int JobKeyFieldNumber = 1; + private long jobKey_; /// - /// the unique ID of the incident to resolve + /// the unique job identifier, as obtained when activating the job /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long IncidentKey { - get { return incidentKey_; } + public long JobKey { + get { return jobKey_; } set { - incidentKey_ = value; + jobKey_ = value; } } + /// Field number for the "retries" field. + public const int RetriesFieldNumber = 2; + private int retries_; + /// + /// the amount of retries the job should have left + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override bool Equals(object other) { - return Equals(other as ResolveIncidentRequest); - } - + public int Retries { + get { return retries_; } + set { + retries_ = value; + } + } + + /// Field number for the "errorMessage" field. + public const int ErrorMessageFieldNumber = 3; + private string errorMessage_ = ""; + /// + /// an optional message describing why the job failed + /// this is particularly useful if a job runs out of retries and an incident is raised, + /// as it this message can help explain why an incident was raised + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ResolveIncidentRequest other) { + public string ErrorMessage { + get { return errorMessage_; } + set { + errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "retryBackOff" field. + public const int RetryBackOffFieldNumber = 4; + private long retryBackOff_; + /// + /// the backoff timeout (in ms) for the next retry + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long RetryBackOff { + get { return retryBackOff_; } + set { + retryBackOff_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as FailJobRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(FailJobRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (IncidentKey != other.IncidentKey) return false; + if (JobKey != other.JobKey) return false; + if (Retries != other.Retries) return false; + if (ErrorMessage != other.ErrorMessage) return false; + if (RetryBackOff != other.RetryBackOff) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5854,7 +6479,10 @@ public bool Equals(ResolveIncidentRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (IncidentKey != 0L) hash ^= IncidentKey.GetHashCode(); + if (JobKey != 0L) hash ^= JobKey.GetHashCode(); + if (Retries != 0) hash ^= Retries.GetHashCode(); + if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode(); + if (RetryBackOff != 0L) hash ^= RetryBackOff.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5873,9 +6501,21 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (IncidentKey != 0L) { + if (JobKey != 0L) { output.WriteRawTag(8); - output.WriteInt64(IncidentKey); + output.WriteInt64(JobKey); + } + if (Retries != 0) { + output.WriteRawTag(16); + output.WriteInt32(Retries); + } + if (ErrorMessage.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ErrorMessage); + } + if (RetryBackOff != 0L) { + output.WriteRawTag(32); + output.WriteInt64(RetryBackOff); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5887,9 +6527,21 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (IncidentKey != 0L) { + if (JobKey != 0L) { output.WriteRawTag(8); - output.WriteInt64(IncidentKey); + output.WriteInt64(JobKey); + } + if (Retries != 0) { + output.WriteRawTag(16); + output.WriteInt32(Retries); + } + if (ErrorMessage.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ErrorMessage); + } + if (RetryBackOff != 0L) { + output.WriteRawTag(32); + output.WriteInt64(RetryBackOff); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5901,8 +6553,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (IncidentKey != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(IncidentKey); + if (JobKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(JobKey); + } + if (Retries != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Retries); + } + if (ErrorMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); + } + if (RetryBackOff != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(RetryBackOff); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5912,12 +6573,21 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ResolveIncidentRequest other) { + public void MergeFrom(FailJobRequest other) { if (other == null) { return; } - if (other.IncidentKey != 0L) { - IncidentKey = other.IncidentKey; + if (other.JobKey != 0L) { + JobKey = other.JobKey; + } + if (other.Retries != 0) { + Retries = other.Retries; + } + if (other.ErrorMessage.Length != 0) { + ErrorMessage = other.ErrorMessage; + } + if (other.RetryBackOff != 0L) { + RetryBackOff = other.RetryBackOff; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5935,7 +6605,19 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - IncidentKey = input.ReadInt64(); + JobKey = input.ReadInt64(); + break; + } + case 16: { + Retries = input.ReadInt32(); + break; + } + case 26: { + ErrorMessage = input.ReadString(); + break; + } + case 32: { + RetryBackOff = input.ReadInt64(); break; } } @@ -5954,7 +6636,19 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - IncidentKey = input.ReadInt64(); + JobKey = input.ReadInt64(); + break; + } + case 16: { + Retries = input.ReadInt32(); + break; + } + case 26: { + ErrorMessage = input.ReadString(); + break; + } + case 32: { + RetryBackOff = input.ReadInt64(); break; } } @@ -5964,21 +6658,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ResolveIncidentResponse : pb::IMessage + public sealed partial class FailJobResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResolveIncidentResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FailJobResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[22]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[23]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -5989,7 +6683,7 @@ public sealed partial class ResolveIncidentResponse : pb::IMessage + public sealed partial class ThrowErrorRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TopologyRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ThrowErrorRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[23]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[24]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6141,7 +6835,7 @@ public sealed partial class TopologyRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TopologyRequest() { + public ThrowErrorRequest() { OnConstruction(); } @@ -6149,31 +6843,82 @@ public TopologyRequest() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TopologyRequest(TopologyRequest other) : this() { + public ThrowErrorRequest(ThrowErrorRequest other) : this() { + jobKey_ = other.jobKey_; + errorCode_ = other.errorCode_; + errorMessage_ = other.errorMessage_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TopologyRequest Clone() { - return new TopologyRequest(this); + public ThrowErrorRequest Clone() { + return new ThrowErrorRequest(this); + } + + /// Field number for the "jobKey" field. + public const int JobKeyFieldNumber = 1; + private long jobKey_; + /// + /// the unique job identifier, as obtained when activating the job + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long JobKey { + get { return jobKey_; } + set { + jobKey_ = value; + } + } + + /// Field number for the "errorCode" field. + public const int ErrorCodeFieldNumber = 2; + private string errorCode_ = ""; + /// + /// the error code that will be matched with an error catch event + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ErrorCode { + get { return errorCode_; } + set { + errorCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "errorMessage" field. + public const int ErrorMessageFieldNumber = 3; + private string errorMessage_ = ""; + /// + /// an optional error message that provides additional context + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ErrorMessage { + get { return errorMessage_; } + set { + errorMessage_ = 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 TopologyRequest); + return Equals(other as ThrowErrorRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TopologyRequest other) { + public bool Equals(ThrowErrorRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (JobKey != other.JobKey) return false; + if (ErrorCode != other.ErrorCode) return false; + if (ErrorMessage != other.ErrorMessage) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6181,6 +6926,9 @@ public bool Equals(TopologyRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (JobKey != 0L) hash ^= JobKey.GetHashCode(); + if (ErrorCode.Length != 0) hash ^= ErrorCode.GetHashCode(); + if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6199,6 +6947,18 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (JobKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(JobKey); + } + if (ErrorCode.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ErrorCode); + } + if (ErrorMessage.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ErrorMessage); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6209,16 +6969,1893 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (_unknownFields != null) { - _unknownFields.WriteTo(ref output); - } - } + if (JobKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(JobKey); + } + if (ErrorCode.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ErrorCode); + } + if (ErrorMessage.Length != 0) { + output.WriteRawTag(26); + output.WriteString(ErrorMessage); + } + 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 (JobKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(JobKey); + } + if (ErrorCode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorCode); + } + if (ErrorMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ThrowErrorRequest other) { + if (other == null) { + return; + } + if (other.JobKey != 0L) { + JobKey = other.JobKey; + } + if (other.ErrorCode.Length != 0) { + ErrorCode = other.ErrorCode; + } + if (other.ErrorMessage.Length != 0) { + ErrorMessage = other.ErrorMessage; + } + _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: { + JobKey = input.ReadInt64(); + break; + } + case 18: { + ErrorCode = input.ReadString(); + break; + } + case 26: { + ErrorMessage = 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: { + JobKey = input.ReadInt64(); + break; + } + case 18: { + ErrorCode = input.ReadString(); + break; + } + case 26: { + ErrorMessage = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ThrowErrorResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ThrowErrorResponse()); + 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::GatewayProtocol.GatewayReflection.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 ThrowErrorResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ThrowErrorResponse(ThrowErrorResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ThrowErrorResponse Clone() { + return new ThrowErrorResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ThrowErrorResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ThrowErrorResponse 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(ThrowErrorResponse 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 PublishMessageRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PublishMessageRequest()); + 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::GatewayProtocol.GatewayReflection.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 PublishMessageRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PublishMessageRequest(PublishMessageRequest other) : this() { + name_ = other.name_; + correlationKey_ = other.correlationKey_; + timeToLive_ = other.timeToLive_; + messageId_ = other.messageId_; + variables_ = other.variables_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PublishMessageRequest Clone() { + return new PublishMessageRequest(this); + } + + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; + /// + /// the name of the message + /// + [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 "correlationKey" field. + public const int CorrelationKeyFieldNumber = 2; + private string correlationKey_ = ""; + /// + /// the correlation key of the message + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string CorrelationKey { + get { return correlationKey_; } + set { + correlationKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "timeToLive" field. + public const int TimeToLiveFieldNumber = 3; + private long timeToLive_; + /// + /// how long the message should be buffered on the broker, in milliseconds + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long TimeToLive { + get { return timeToLive_; } + set { + timeToLive_ = value; + } + } + + /// Field number for the "messageId" field. + public const int MessageIdFieldNumber = 4; + private string messageId_ = ""; + /// + /// the unique ID of the message; can be omitted. only useful to ensure only one message + /// with the given ID will ever be published (during its lifetime) + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string MessageId { + get { return messageId_; } + set { + messageId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "variables" field. + public const int VariablesFieldNumber = 5; + private string variables_ = ""; + /// + /// the message variables as a JSON document; to be valid, the root of the document must be an + /// object, e.g. { "a": "foo" }. [ "foo" ] would not be valid. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Variables { + get { return variables_; } + set { + variables_ = 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 PublishMessageRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PublishMessageRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Name != other.Name) return false; + if (CorrelationKey != other.CorrelationKey) return false; + if (TimeToLive != other.TimeToLive) return false; + if (MessageId != other.MessageId) return false; + if (Variables != other.Variables) 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 (CorrelationKey.Length != 0) hash ^= CorrelationKey.GetHashCode(); + if (TimeToLive != 0L) hash ^= TimeToLive.GetHashCode(); + if (MessageId.Length != 0) hash ^= MessageId.GetHashCode(); + if (Variables.Length != 0) hash ^= Variables.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 (CorrelationKey.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CorrelationKey); + } + if (TimeToLive != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TimeToLive); + } + if (MessageId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MessageId); + } + if (Variables.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Variables); + } + 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 (CorrelationKey.Length != 0) { + output.WriteRawTag(18); + output.WriteString(CorrelationKey); + } + if (TimeToLive != 0L) { + output.WriteRawTag(24); + output.WriteInt64(TimeToLive); + } + if (MessageId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MessageId); + } + if (Variables.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Variables); + } + 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 (CorrelationKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CorrelationKey); + } + if (TimeToLive != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeToLive); + } + if (MessageId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(MessageId); + } + if (Variables.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Variables); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PublishMessageRequest other) { + if (other == null) { + return; + } + if (other.Name.Length != 0) { + Name = other.Name; + } + if (other.CorrelationKey.Length != 0) { + CorrelationKey = other.CorrelationKey; + } + if (other.TimeToLive != 0L) { + TimeToLive = other.TimeToLive; + } + if (other.MessageId.Length != 0) { + MessageId = other.MessageId; + } + if (other.Variables.Length != 0) { + Variables = other.Variables; + } + _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: { + CorrelationKey = input.ReadString(); + break; + } + case 24: { + TimeToLive = input.ReadInt64(); + break; + } + case 34: { + MessageId = input.ReadString(); + break; + } + case 42: { + Variables = 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: { + CorrelationKey = input.ReadString(); + break; + } + case 24: { + TimeToLive = input.ReadInt64(); + break; + } + case 34: { + MessageId = input.ReadString(); + break; + } + case 42: { + Variables = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class PublishMessageResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PublishMessageResponse()); + 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::GatewayProtocol.GatewayReflection.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 PublishMessageResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PublishMessageResponse(PublishMessageResponse other) : this() { + key_ = other.key_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public PublishMessageResponse Clone() { + return new PublishMessageResponse(this); + } + + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private long key_; + /// + /// the unique ID of the message that was published + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Key { + get { return key_; } + set { + key_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as PublishMessageResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(PublishMessageResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Key != other.Key) 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 (Key != 0L) hash ^= Key.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 (Key != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Key); + } + 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 (Key != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Key); + } + 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 (Key != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Key); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(PublishMessageResponse other) { + if (other == null) { + return; + } + if (other.Key != 0L) { + Key = other.Key; + } + _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: { + Key = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + Key = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResolveIncidentRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResolveIncidentRequest()); + 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::GatewayProtocol.GatewayReflection.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 ResolveIncidentRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResolveIncidentRequest(ResolveIncidentRequest other) : this() { + incidentKey_ = other.incidentKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResolveIncidentRequest Clone() { + return new ResolveIncidentRequest(this); + } + + /// Field number for the "incidentKey" field. + public const int IncidentKeyFieldNumber = 1; + private long incidentKey_; + /// + /// the unique ID of the incident to resolve + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long IncidentKey { + get { return incidentKey_; } + set { + incidentKey_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResolveIncidentRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResolveIncidentRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (IncidentKey != other.IncidentKey) 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 (IncidentKey != 0L) hash ^= IncidentKey.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 (IncidentKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(IncidentKey); + } + 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 (IncidentKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(IncidentKey); + } + 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 (IncidentKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(IncidentKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ResolveIncidentRequest other) { + if (other == null) { + return; + } + if (other.IncidentKey != 0L) { + IncidentKey = other.IncidentKey; + } + _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: { + IncidentKey = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + IncidentKey = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + public sealed partial class ResolveIncidentResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResolveIncidentResponse()); + 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::GatewayProtocol.GatewayReflection.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 ResolveIncidentResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResolveIncidentResponse(ResolveIncidentResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ResolveIncidentResponse Clone() { + return new ResolveIncidentResponse(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ResolveIncidentResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ResolveIncidentResponse 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(ResolveIncidentResponse 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 TopologyRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TopologyRequest()); + 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::GatewayProtocol.GatewayReflection.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 TopologyRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TopologyRequest(TopologyRequest other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TopologyRequest Clone() { + return new TopologyRequest(this); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TopologyRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TopologyRequest 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(TopologyRequest 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 TopologyResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TopologyResponse()); + 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::GatewayProtocol.GatewayReflection.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 TopologyResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TopologyResponse(TopologyResponse other) : this() { + brokers_ = other.brokers_.Clone(); + clusterSize_ = other.clusterSize_; + partitionsCount_ = other.partitionsCount_; + replicationFactor_ = other.replicationFactor_; + gatewayVersion_ = other.gatewayVersion_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TopologyResponse Clone() { + return new TopologyResponse(this); + } + + /// Field number for the "brokers" field. + public const int BrokersFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_brokers_codec + = pb::FieldCodec.ForMessage(10, global::GatewayProtocol.BrokerInfo.Parser); + private readonly pbc::RepeatedField brokers_ = new pbc::RepeatedField(); + /// + /// list of brokers part of this cluster + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Brokers { + get { return brokers_; } + } + + /// Field number for the "clusterSize" field. + public const int ClusterSizeFieldNumber = 2; + private int clusterSize_; + /// + /// how many nodes are in the cluster + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ClusterSize { + get { return clusterSize_; } + set { + clusterSize_ = value; + } + } + + /// Field number for the "partitionsCount" field. + public const int PartitionsCountFieldNumber = 3; + private int partitionsCount_; + /// + /// how many partitions are spread across the cluster + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int PartitionsCount { + get { return partitionsCount_; } + set { + partitionsCount_ = value; + } + } + + /// Field number for the "replicationFactor" field. + public const int ReplicationFactorFieldNumber = 4; + private int replicationFactor_; + /// + /// configured replication factor for this cluster + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int ReplicationFactor { + get { return replicationFactor_; } + set { + replicationFactor_ = value; + } + } + + /// Field number for the "gatewayVersion" field. + public const int GatewayVersionFieldNumber = 5; + private string gatewayVersion_ = ""; + /// + /// gateway version + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string GatewayVersion { + get { return gatewayVersion_; } + set { + gatewayVersion_ = 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 TopologyResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TopologyResponse other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if(!brokers_.Equals(other.brokers_)) return false; + if (ClusterSize != other.ClusterSize) return false; + if (PartitionsCount != other.PartitionsCount) return false; + if (ReplicationFactor != other.ReplicationFactor) return false; + if (GatewayVersion != other.GatewayVersion) 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 ^= brokers_.GetHashCode(); + if (ClusterSize != 0) hash ^= ClusterSize.GetHashCode(); + if (PartitionsCount != 0) hash ^= PartitionsCount.GetHashCode(); + if (ReplicationFactor != 0) hash ^= ReplicationFactor.GetHashCode(); + if (GatewayVersion.Length != 0) hash ^= GatewayVersion.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 + brokers_.WriteTo(output, _repeated_brokers_codec); + if (ClusterSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(ClusterSize); + } + if (PartitionsCount != 0) { + output.WriteRawTag(24); + output.WriteInt32(PartitionsCount); + } + if (ReplicationFactor != 0) { + output.WriteRawTag(32); + output.WriteInt32(ReplicationFactor); + } + if (GatewayVersion.Length != 0) { + output.WriteRawTag(42); + output.WriteString(GatewayVersion); + } + 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) { + brokers_.WriteTo(ref output, _repeated_brokers_codec); + if (ClusterSize != 0) { + output.WriteRawTag(16); + output.WriteInt32(ClusterSize); + } + if (PartitionsCount != 0) { + output.WriteRawTag(24); + output.WriteInt32(PartitionsCount); + } + if (ReplicationFactor != 0) { + output.WriteRawTag(32); + output.WriteInt32(ReplicationFactor); + } + if (GatewayVersion.Length != 0) { + output.WriteRawTag(42); + output.WriteString(GatewayVersion); + } + 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 += brokers_.CalculateSize(_repeated_brokers_codec); + if (ClusterSize != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClusterSize); + } + if (PartitionsCount != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PartitionsCount); + } + if (ReplicationFactor != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReplicationFactor); + } + if (GatewayVersion.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayVersion); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TopologyResponse other) { + if (other == null) { + return; + } + brokers_.Add(other.brokers_); + if (other.ClusterSize != 0) { + ClusterSize = other.ClusterSize; + } + if (other.PartitionsCount != 0) { + PartitionsCount = other.PartitionsCount; + } + if (other.ReplicationFactor != 0) { + ReplicationFactor = other.ReplicationFactor; + } + if (other.GatewayVersion.Length != 0) { + GatewayVersion = other.GatewayVersion; + } + _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: { + brokers_.AddEntriesFrom(input, _repeated_brokers_codec); + break; + } + case 16: { + ClusterSize = input.ReadInt32(); + break; + } + case 24: { + PartitionsCount = input.ReadInt32(); + break; + } + case 32: { + ReplicationFactor = input.ReadInt32(); + break; + } + case 42: { + GatewayVersion = 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: { + brokers_.AddEntriesFrom(ref input, _repeated_brokers_codec); + break; + } + case 16: { + ClusterSize = input.ReadInt32(); + break; + } + case 24: { + PartitionsCount = input.ReadInt32(); + break; + } + case 32: { + ReplicationFactor = input.ReadInt32(); + break; + } + case 42: { + GatewayVersion = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class BrokerInfo : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BrokerInfo()); + 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::GatewayProtocol.GatewayReflection.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 BrokerInfo() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BrokerInfo(BrokerInfo other) : this() { + nodeId_ = other.nodeId_; + host_ = other.host_; + port_ = other.port_; + partitions_ = other.partitions_.Clone(); + version_ = other.version_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BrokerInfo Clone() { + return new BrokerInfo(this); + } + + /// Field number for the "nodeId" field. + public const int NodeIdFieldNumber = 1; + private int nodeId_; + /// + /// unique (within a cluster) node ID for the broker + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int NodeId { + get { return nodeId_; } + set { + nodeId_ = value; + } + } + + /// Field number for the "host" field. + public const int HostFieldNumber = 2; + private string host_ = ""; + /// + /// hostname of the broker + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Host { + get { return host_; } + set { + host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "port" field. + public const int PortFieldNumber = 3; + private int port_; + /// + /// port for the broker + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Port { + get { return port_; } + set { + port_ = value; + } + } + + /// Field number for the "partitions" field. + public const int PartitionsFieldNumber = 4; + private static readonly pb::FieldCodec _repeated_partitions_codec + = pb::FieldCodec.ForMessage(34, global::GatewayProtocol.Partition.Parser); + private readonly pbc::RepeatedField partitions_ = new pbc::RepeatedField(); + /// + /// list of partitions managed or replicated on this broker + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField Partitions { + get { return partitions_; } + } + + /// Field number for the "version" field. + public const int VersionFieldNumber = 5; + private string version_ = ""; + /// + /// broker version + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Version { + get { return version_; } + set { + version_ = 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 BrokerInfo); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(BrokerInfo other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (NodeId != other.NodeId) return false; + if (Host != other.Host) return false; + if (Port != other.Port) return false; + if(!partitions_.Equals(other.partitions_)) return false; + if (Version != other.Version) 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 (NodeId != 0) hash ^= NodeId.GetHashCode(); + if (Host.Length != 0) hash ^= Host.GetHashCode(); + if (Port != 0) hash ^= Port.GetHashCode(); + hash ^= partitions_.GetHashCode(); + if (Version.Length != 0) hash ^= Version.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 (NodeId != 0) { + output.WriteRawTag(8); + output.WriteInt32(NodeId); + } + if (Host.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Host); + } + if (Port != 0) { + output.WriteRawTag(24); + output.WriteInt32(Port); + } + partitions_.WriteTo(output, _repeated_partitions_codec); + if (Version.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Version); + } + 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 (NodeId != 0) { + output.WriteRawTag(8); + output.WriteInt32(NodeId); + } + if (Host.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Host); + } + if (Port != 0) { + output.WriteRawTag(24); + output.WriteInt32(Port); + } + partitions_.WriteTo(ref output, _repeated_partitions_codec); + if (Version.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Version); + } + 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 (NodeId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(NodeId); + } + if (Host.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); + } + if (Port != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); + } + size += partitions_.CalculateSize(_repeated_partitions_codec); + if (Version.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -6227,10 +8864,23 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TopologyRequest other) { + public void MergeFrom(BrokerInfo other) { if (other == null) { return; } + if (other.NodeId != 0) { + NodeId = other.NodeId; + } + if (other.Host.Length != 0) { + Host = other.Host; + } + if (other.Port != 0) { + Port = other.Port; + } + partitions_.Add(other.partitions_); + if (other.Version.Length != 0) { + Version = other.Version; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6246,6 +8896,26 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 8: { + NodeId = input.ReadInt32(); + break; + } + case 18: { + Host = input.ReadString(); + break; + } + case 24: { + Port = input.ReadInt32(); + break; + } + case 34: { + partitions_.AddEntriesFrom(input, _repeated_partitions_codec); + break; + } + case 42: { + Version = input.ReadString(); + break; + } } } #endif @@ -6261,6 +8931,26 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 8: { + NodeId = input.ReadInt32(); + break; + } + case 18: { + Host = input.ReadString(); + break; + } + case 24: { + Port = input.ReadInt32(); + break; + } + case 34: { + partitions_.AddEntriesFrom(ref input, _repeated_partitions_codec); + break; + } + case 42: { + Version = input.ReadString(); + break; + } } } } @@ -6268,21 +8958,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TopologyResponse : pb::IMessage + public sealed partial class Partition : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TopologyResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Partition()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[24]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[33]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6293,7 +8983,7 @@ public sealed partial class TopologyResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TopologyResponse() { + public Partition() { OnConstruction(); } @@ -6301,115 +8991,82 @@ public TopologyResponse() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TopologyResponse(TopologyResponse other) : this() { - brokers_ = other.brokers_.Clone(); - clusterSize_ = other.clusterSize_; - partitionsCount_ = other.partitionsCount_; - replicationFactor_ = other.replicationFactor_; - gatewayVersion_ = other.gatewayVersion_; + public Partition(Partition other) : this() { + partitionId_ = other.partitionId_; + role_ = other.role_; + health_ = other.health_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TopologyResponse Clone() { - return new TopologyResponse(this); - } - - /// Field number for the "brokers" field. - public const int BrokersFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_brokers_codec - = pb::FieldCodec.ForMessage(10, global::GatewayProtocol.BrokerInfo.Parser); - private readonly pbc::RepeatedField brokers_ = new pbc::RepeatedField(); - /// - /// list of brokers part of this cluster - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Brokers { - get { return brokers_; } - } - - /// Field number for the "clusterSize" field. - public const int ClusterSizeFieldNumber = 2; - private int clusterSize_; - /// - /// how many nodes are in the cluster - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ClusterSize { - get { return clusterSize_; } - set { - clusterSize_ = value; - } + public Partition Clone() { + return new Partition(this); } - /// Field number for the "partitionsCount" field. - public const int PartitionsCountFieldNumber = 3; - private int partitionsCount_; + /// Field number for the "partitionId" field. + public const int PartitionIdFieldNumber = 1; + private int partitionId_; /// - /// how many partitions are spread across the cluster + /// the unique ID of this partition /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PartitionsCount { - get { return partitionsCount_; } + public int PartitionId { + get { return partitionId_; } set { - partitionsCount_ = value; + partitionId_ = value; } } - /// Field number for the "replicationFactor" field. - public const int ReplicationFactorFieldNumber = 4; - private int replicationFactor_; + /// Field number for the "role" field. + public const int RoleFieldNumber = 2; + private global::GatewayProtocol.Partition.Types.PartitionBrokerRole role_ = global::GatewayProtocol.Partition.Types.PartitionBrokerRole.Leader; /// - /// configured replication factor for this cluster + /// the role of the broker for this partition /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int ReplicationFactor { - get { return replicationFactor_; } + public global::GatewayProtocol.Partition.Types.PartitionBrokerRole Role { + get { return role_; } set { - replicationFactor_ = value; + role_ = value; } } - /// Field number for the "gatewayVersion" field. - public const int GatewayVersionFieldNumber = 5; - private string gatewayVersion_ = ""; + /// Field number for the "health" field. + public const int HealthFieldNumber = 3; + private global::GatewayProtocol.Partition.Types.PartitionBrokerHealth health_ = global::GatewayProtocol.Partition.Types.PartitionBrokerHealth.Healthy; /// - /// gateway version + /// the health of this partition /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string GatewayVersion { - get { return gatewayVersion_; } + public global::GatewayProtocol.Partition.Types.PartitionBrokerHealth Health { + get { return health_; } set { - gatewayVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + health_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as TopologyResponse); + return Equals(other as Partition); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TopologyResponse other) { + public bool Equals(Partition other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!brokers_.Equals(other.brokers_)) return false; - if (ClusterSize != other.ClusterSize) return false; - if (PartitionsCount != other.PartitionsCount) return false; - if (ReplicationFactor != other.ReplicationFactor) return false; - if (GatewayVersion != other.GatewayVersion) return false; + if (PartitionId != other.PartitionId) return false; + if (Role != other.Role) return false; + if (Health != other.Health) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6417,11 +9074,9 @@ public bool Equals(TopologyResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= brokers_.GetHashCode(); - if (ClusterSize != 0) hash ^= ClusterSize.GetHashCode(); - if (PartitionsCount != 0) hash ^= PartitionsCount.GetHashCode(); - if (ReplicationFactor != 0) hash ^= ReplicationFactor.GetHashCode(); - if (GatewayVersion.Length != 0) hash ^= GatewayVersion.GetHashCode(); + if (PartitionId != 0) hash ^= PartitionId.GetHashCode(); + if (Role != global::GatewayProtocol.Partition.Types.PartitionBrokerRole.Leader) hash ^= Role.GetHashCode(); + if (Health != global::GatewayProtocol.Partition.Types.PartitionBrokerHealth.Healthy) hash ^= Health.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6440,22 +9095,17 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - brokers_.WriteTo(output, _repeated_brokers_codec); - if (ClusterSize != 0) { + if (PartitionId != 0) { + output.WriteRawTag(8); + output.WriteInt32(PartitionId); + } + if (Role != global::GatewayProtocol.Partition.Types.PartitionBrokerRole.Leader) { output.WriteRawTag(16); - output.WriteInt32(ClusterSize); + output.WriteEnum((int) Role); } - if (PartitionsCount != 0) { + if (Health != global::GatewayProtocol.Partition.Types.PartitionBrokerHealth.Healthy) { output.WriteRawTag(24); - output.WriteInt32(PartitionsCount); - } - if (ReplicationFactor != 0) { - output.WriteRawTag(32); - output.WriteInt32(ReplicationFactor); - } - if (GatewayVersion.Length != 0) { - output.WriteRawTag(42); - output.WriteString(GatewayVersion); + output.WriteEnum((int) Health); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -6467,22 +9117,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - brokers_.WriteTo(ref output, _repeated_brokers_codec); - if (ClusterSize != 0) { + if (PartitionId != 0) { + output.WriteRawTag(8); + output.WriteInt32(PartitionId); + } + if (Role != global::GatewayProtocol.Partition.Types.PartitionBrokerRole.Leader) { output.WriteRawTag(16); - output.WriteInt32(ClusterSize); + output.WriteEnum((int) Role); } - if (PartitionsCount != 0) { + if (Health != global::GatewayProtocol.Partition.Types.PartitionBrokerHealth.Healthy) { output.WriteRawTag(24); - output.WriteInt32(PartitionsCount); - } - if (ReplicationFactor != 0) { - output.WriteRawTag(32); - output.WriteInt32(ReplicationFactor); - } - if (GatewayVersion.Length != 0) { - output.WriteRawTag(42); - output.WriteString(GatewayVersion); + output.WriteEnum((int) Health); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -6494,18 +9139,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += brokers_.CalculateSize(_repeated_brokers_codec); - if (ClusterSize != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClusterSize); - } - if (PartitionsCount != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PartitionsCount); + if (PartitionId != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(PartitionId); } - if (ReplicationFactor != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReplicationFactor); + if (Role != global::GatewayProtocol.Partition.Types.PartitionBrokerRole.Leader) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Role); } - if (GatewayVersion.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayVersion); + if (Health != global::GatewayProtocol.Partition.Types.PartitionBrokerHealth.Healthy) { + size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Health); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -6515,22 +9156,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TopologyResponse other) { + public void MergeFrom(Partition other) { if (other == null) { return; } - brokers_.Add(other.brokers_); - if (other.ClusterSize != 0) { - ClusterSize = other.ClusterSize; - } - if (other.PartitionsCount != 0) { - PartitionsCount = other.PartitionsCount; + if (other.PartitionId != 0) { + PartitionId = other.PartitionId; } - if (other.ReplicationFactor != 0) { - ReplicationFactor = other.ReplicationFactor; + if (other.Role != global::GatewayProtocol.Partition.Types.PartitionBrokerRole.Leader) { + Role = other.Role; } - if (other.GatewayVersion.Length != 0) { - GatewayVersion = other.GatewayVersion; + if (other.Health != global::GatewayProtocol.Partition.Types.PartitionBrokerHealth.Healthy) { + Health = other.Health; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6547,24 +9184,16 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - brokers_.AddEntriesFrom(input, _repeated_brokers_codec); + case 8: { + PartitionId = input.ReadInt32(); break; } case 16: { - ClusterSize = input.ReadInt32(); + Role = (global::GatewayProtocol.Partition.Types.PartitionBrokerRole) input.ReadEnum(); break; } case 24: { - PartitionsCount = input.ReadInt32(); - break; - } - case 32: { - ReplicationFactor = input.ReadInt32(); - break; - } - case 42: { - GatewayVersion = input.ReadString(); + Health = (global::GatewayProtocol.Partition.Types.PartitionBrokerHealth) input.ReadEnum(); break; } } @@ -6582,24 +9211,16 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - brokers_.AddEntriesFrom(ref input, _repeated_brokers_codec); + case 8: { + PartitionId = input.ReadInt32(); break; } case 16: { - ClusterSize = input.ReadInt32(); + Role = (global::GatewayProtocol.Partition.Types.PartitionBrokerRole) input.ReadEnum(); break; } case 24: { - PartitionsCount = input.ReadInt32(); - break; - } - case 32: { - ReplicationFactor = input.ReadInt32(); - break; - } - case 42: { - GatewayVersion = input.ReadString(); + Health = (global::GatewayProtocol.Partition.Types.PartitionBrokerHealth) input.ReadEnum(); break; } } @@ -6607,23 +9228,49 @@ public void MergeFrom(pb::CodedInputStream input) { } #endif + #region Nested types + /// Container for nested types declared in the Partition message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + /// + /// Describes the Raft role of the broker for a given partition + /// + public enum PartitionBrokerRole { + [pbr::OriginalName("LEADER")] Leader = 0, + [pbr::OriginalName("FOLLOWER")] Follower = 1, + [pbr::OriginalName("INACTIVE")] Inactive = 2, + } + + /// + /// Describes the current health of the partition + /// + public enum PartitionBrokerHealth { + [pbr::OriginalName("HEALTHY")] Healthy = 0, + [pbr::OriginalName("UNHEALTHY")] Unhealthy = 1, + [pbr::OriginalName("DEAD")] Dead = 2, + } + + } + #endregion + } - public sealed partial class BrokerInfo : pb::IMessage + public sealed partial class UpdateJobRetriesRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BrokerInfo()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateJobRetriesRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[25]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[34]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6634,7 +9281,7 @@ public sealed partial class BrokerInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BrokerInfo() { + public UpdateJobRetriesRequest() { OnConstruction(); } @@ -6642,115 +9289,65 @@ public BrokerInfo() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BrokerInfo(BrokerInfo other) : this() { - nodeId_ = other.nodeId_; - host_ = other.host_; - port_ = other.port_; - partitions_ = other.partitions_.Clone(); - version_ = other.version_; + public UpdateJobRetriesRequest(UpdateJobRetriesRequest other) : this() { + jobKey_ = other.jobKey_; + retries_ = other.retries_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BrokerInfo Clone() { - return new BrokerInfo(this); - } - - /// Field number for the "nodeId" field. - public const int NodeIdFieldNumber = 1; - private int nodeId_; - /// - /// unique (within a cluster) node ID for the broker - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int NodeId { - get { return nodeId_; } - set { - nodeId_ = value; - } - } - - /// Field number for the "host" field. - public const int HostFieldNumber = 2; - private string host_ = ""; - /// - /// hostname of the broker - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Host { - get { return host_; } - set { - host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public UpdateJobRetriesRequest Clone() { + return new UpdateJobRetriesRequest(this); } - /// Field number for the "port" field. - public const int PortFieldNumber = 3; - private int port_; + /// Field number for the "jobKey" field. + public const int JobKeyFieldNumber = 1; + private long jobKey_; /// - /// port for the broker + /// the unique job identifier, as obtained through ActivateJobs /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Port { - get { return port_; } + public long JobKey { + get { return jobKey_; } set { - port_ = value; + jobKey_ = value; } } - /// Field number for the "partitions" field. - public const int PartitionsFieldNumber = 4; - private static readonly pb::FieldCodec _repeated_partitions_codec - = pb::FieldCodec.ForMessage(34, global::GatewayProtocol.Partition.Parser); - private readonly pbc::RepeatedField partitions_ = new pbc::RepeatedField(); - /// - /// list of partitions managed or replicated on this broker - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Partitions { - get { return partitions_; } - } - - /// Field number for the "version" field. - public const int VersionFieldNumber = 5; - private string version_ = ""; + /// Field number for the "retries" field. + public const int RetriesFieldNumber = 2; + private int retries_; /// - /// broker version + /// the new amount of retries for the job; must be positive /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Version { - get { return version_; } + public int Retries { + get { return retries_; } set { - version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + retries_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as BrokerInfo); + return Equals(other as UpdateJobRetriesRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BrokerInfo other) { + public bool Equals(UpdateJobRetriesRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (NodeId != other.NodeId) return false; - if (Host != other.Host) return false; - if (Port != other.Port) return false; - if(!partitions_.Equals(other.partitions_)) return false; - if (Version != other.Version) return false; + if (JobKey != other.JobKey) return false; + if (Retries != other.Retries) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6758,11 +9355,8 @@ public bool Equals(BrokerInfo other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (NodeId != 0) hash ^= NodeId.GetHashCode(); - if (Host.Length != 0) hash ^= Host.GetHashCode(); - if (Port != 0) hash ^= Port.GetHashCode(); - hash ^= partitions_.GetHashCode(); - if (Version.Length != 0) hash ^= Version.GetHashCode(); + if (JobKey != 0L) hash ^= JobKey.GetHashCode(); + if (Retries != 0) hash ^= Retries.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6781,22 +9375,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (NodeId != 0) { + if (JobKey != 0L) { output.WriteRawTag(8); - output.WriteInt32(NodeId); - } - if (Host.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Host); - } - if (Port != 0) { - output.WriteRawTag(24); - output.WriteInt32(Port); + output.WriteInt64(JobKey); } - partitions_.WriteTo(output, _repeated_partitions_codec); - if (Version.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Version); + if (Retries != 0) { + output.WriteRawTag(16); + output.WriteInt32(Retries); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -6808,22 +9393,13 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (NodeId != 0) { + if (JobKey != 0L) { output.WriteRawTag(8); - output.WriteInt32(NodeId); - } - if (Host.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Host); - } - if (Port != 0) { - output.WriteRawTag(24); - output.WriteInt32(Port); + output.WriteInt64(JobKey); } - partitions_.WriteTo(ref output, _repeated_partitions_codec); - if (Version.Length != 0) { - output.WriteRawTag(42); - output.WriteString(Version); + if (Retries != 0) { + output.WriteRawTag(16); + output.WriteInt32(Retries); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -6835,18 +9411,11 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (NodeId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(NodeId); - } - if (Host.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); - } - if (Port != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); + if (JobKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(JobKey); } - size += partitions_.CalculateSize(_repeated_partitions_codec); - if (Version.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + if (Retries != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Retries); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -6856,22 +9425,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BrokerInfo other) { + public void MergeFrom(UpdateJobRetriesRequest other) { if (other == null) { return; } - if (other.NodeId != 0) { - NodeId = other.NodeId; - } - if (other.Host.Length != 0) { - Host = other.Host; - } - if (other.Port != 0) { - Port = other.Port; + if (other.JobKey != 0L) { + JobKey = other.JobKey; } - partitions_.Add(other.partitions_); - if (other.Version.Length != 0) { - Version = other.Version; + if (other.Retries != 0) { + Retries = other.Retries; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6886,26 +9448,14 @@ public void MergeFrom(pb::CodedInputStream input) { while ((tag = input.ReadTag()) != 0) { switch(tag) { default: - _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); - break; - case 8: { - NodeId = input.ReadInt32(); - break; - } - case 18: { - Host = input.ReadString(); - break; - } - case 24: { - Port = input.ReadInt32(); - break; - } - case 34: { - partitions_.AddEntriesFrom(input, _repeated_partitions_codec); + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); + break; + case 8: { + JobKey = input.ReadInt64(); break; } - case 42: { - Version = input.ReadString(); + case 16: { + Retries = input.ReadInt32(); break; } } @@ -6924,23 +9474,11 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - NodeId = input.ReadInt32(); - break; - } - case 18: { - Host = input.ReadString(); - break; - } - case 24: { - Port = input.ReadInt32(); - break; - } - case 34: { - partitions_.AddEntriesFrom(ref input, _repeated_partitions_codec); + JobKey = input.ReadInt64(); break; } - case 42: { - Version = input.ReadString(); + case 16: { + Retries = input.ReadInt32(); break; } } @@ -6950,21 +9488,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class Partition : pb::IMessage + public sealed partial class UpdateJobRetriesResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Partition()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateJobRetriesResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[26]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[35]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -6975,7 +9513,7 @@ public sealed partial class Partition : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Partition() { + public UpdateJobRetriesResponse() { OnConstruction(); } @@ -6983,82 +9521,31 @@ public Partition() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Partition(Partition other) : this() { - partitionId_ = other.partitionId_; - role_ = other.role_; - health_ = other.health_; + public UpdateJobRetriesResponse(UpdateJobRetriesResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Partition Clone() { - return new Partition(this); - } - - /// Field number for the "partitionId" field. - public const int PartitionIdFieldNumber = 1; - private int partitionId_; - /// - /// the unique ID of this partition - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int PartitionId { - get { return partitionId_; } - set { - partitionId_ = value; - } - } - - /// Field number for the "role" field. - public const int RoleFieldNumber = 2; - private global::GatewayProtocol.Partition.Types.PartitionBrokerRole role_ = global::GatewayProtocol.Partition.Types.PartitionBrokerRole.Leader; - /// - /// the role of the broker for this partition - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::GatewayProtocol.Partition.Types.PartitionBrokerRole Role { - get { return role_; } - set { - role_ = value; - } - } - - /// Field number for the "health" field. - public const int HealthFieldNumber = 3; - private global::GatewayProtocol.Partition.Types.PartitionBrokerHealth health_ = global::GatewayProtocol.Partition.Types.PartitionBrokerHealth.Healthy; - /// - /// the health of this partition - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::GatewayProtocol.Partition.Types.PartitionBrokerHealth Health { - get { return health_; } - set { - health_ = value; - } + public UpdateJobRetriesResponse Clone() { + return new UpdateJobRetriesResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as Partition); + return Equals(other as UpdateJobRetriesResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Partition other) { + public bool Equals(UpdateJobRetriesResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (PartitionId != other.PartitionId) return false; - if (Role != other.Role) return false; - if (Health != other.Health) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7066,9 +9553,6 @@ public bool Equals(Partition other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (PartitionId != 0) hash ^= PartitionId.GetHashCode(); - if (Role != global::GatewayProtocol.Partition.Types.PartitionBrokerRole.Leader) hash ^= Role.GetHashCode(); - if (Health != global::GatewayProtocol.Partition.Types.PartitionBrokerHealth.Healthy) hash ^= Health.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7087,18 +9571,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PartitionId != 0) { - output.WriteRawTag(8); - output.WriteInt32(PartitionId); - } - if (Role != global::GatewayProtocol.Partition.Types.PartitionBrokerRole.Leader) { - output.WriteRawTag(16); - output.WriteEnum((int) Role); - } - if (Health != global::GatewayProtocol.Partition.Types.PartitionBrokerHealth.Healthy) { - output.WriteRawTag(24); - output.WriteEnum((int) Health); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7109,18 +9581,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PartitionId != 0) { - output.WriteRawTag(8); - output.WriteInt32(PartitionId); - } - if (Role != global::GatewayProtocol.Partition.Types.PartitionBrokerRole.Leader) { - output.WriteRawTag(16); - output.WriteEnum((int) Role); - } - if (Health != global::GatewayProtocol.Partition.Types.PartitionBrokerHealth.Healthy) { - output.WriteRawTag(24); - output.WriteEnum((int) Health); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7131,15 +9591,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (PartitionId != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(PartitionId); - } - if (Role != global::GatewayProtocol.Partition.Types.PartitionBrokerRole.Leader) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Role); - } - if (Health != global::GatewayProtocol.Partition.Types.PartitionBrokerHealth.Healthy) { - size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Health); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7148,19 +9599,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Partition other) { + public void MergeFrom(UpdateJobRetriesResponse other) { if (other == null) { return; } - if (other.PartitionId != 0) { - PartitionId = other.PartitionId; - } - if (other.Role != global::GatewayProtocol.Partition.Types.PartitionBrokerRole.Leader) { - Role = other.Role; - } - if (other.Health != global::GatewayProtocol.Partition.Types.PartitionBrokerHealth.Healthy) { - Health = other.Health; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7176,18 +9618,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - PartitionId = input.ReadInt32(); - break; - } - case 16: { - Role = (global::GatewayProtocol.Partition.Types.PartitionBrokerRole) input.ReadEnum(); - break; - } - case 24: { - Health = (global::GatewayProtocol.Partition.Types.PartitionBrokerHealth) input.ReadEnum(); - break; - } } } #endif @@ -7203,66 +9633,28 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - PartitionId = input.ReadInt32(); - break; - } - case 16: { - Role = (global::GatewayProtocol.Partition.Types.PartitionBrokerRole) input.ReadEnum(); - break; - } - case 24: { - Health = (global::GatewayProtocol.Partition.Types.PartitionBrokerHealth) input.ReadEnum(); - break; - } } } } #endif - #region Nested types - /// Container for nested types declared in the Partition message type. - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static partial class Types { - /// - /// Describes the Raft role of the broker for a given partition - /// - public enum PartitionBrokerRole { - [pbr::OriginalName("LEADER")] Leader = 0, - [pbr::OriginalName("FOLLOWER")] Follower = 1, - [pbr::OriginalName("INACTIVE")] Inactive = 2, - } - - /// - /// Describes the current health of the partition - /// - public enum PartitionBrokerHealth { - [pbr::OriginalName("HEALTHY")] Healthy = 0, - [pbr::OriginalName("UNHEALTHY")] Unhealthy = 1, - [pbr::OriginalName("DEAD")] Dead = 2, - } - - } - #endregion - } - public sealed partial class UpdateJobRetriesRequest : pb::IMessage + public sealed partial class SetVariablesRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateJobRetriesRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetVariablesRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[27]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[36]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7273,7 +9665,7 @@ public sealed partial class UpdateJobRetriesRequest : pb::IMessageField number for the "jobKey" field. - public const int JobKeyFieldNumber = 1; - private long jobKey_; + /// Field number for the "elementInstanceKey" field. + public const int ElementInstanceKeyFieldNumber = 1; + private long elementInstanceKey_; /// - /// the unique job identifier, as obtained through ActivateJobs + /// the unique identifier of a particular element; can be the process instance key (as + /// obtained during instance creation), or a given element, such as a service task (see + /// elementInstanceKey on the job message) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long JobKey { - get { return jobKey_; } + public long ElementInstanceKey { + get { return elementInstanceKey_; } set { - jobKey_ = value; + elementInstanceKey_ = value; } } - /// Field number for the "retries" field. - public const int RetriesFieldNumber = 2; - private int retries_; + /// Field number for the "variables" field. + public const int VariablesFieldNumber = 2; + private string variables_ = ""; /// - /// the new amount of retries for the job; must be positive + /// a JSON serialized document describing variables as key value pairs; the root of the document + /// must be an object + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Variables { + get { return variables_; } + set { + variables_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "local" field. + public const int LocalFieldNumber = 3; + private bool local_; + /// + /// if true, the variables will be merged strictly into the local scope (as indicated by + /// elementInstanceKey); this means the variables is not propagated to upper scopes. + /// for example, let's say we have two scopes, '1' and '2', with each having effective variables as: + /// 1 => `{ "foo" : 2 }`, and 2 => `{ "bar" : 1 }`. if we send an update request with + /// elementInstanceKey = 2, variables `{ "foo" : 5 }`, and local is true, then scope 1 will + /// be unchanged, and scope 2 will now be `{ "bar" : 1, "foo" 5 }`. if local was false, however, + /// then scope 1 would be `{ "foo": 5 }`, and scope 2 would be `{ "bar" : 1 }`. /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Retries { - get { return retries_; } + public bool Local { + get { return local_; } set { - retries_ = value; + local_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateJobRetriesRequest); + return Equals(other as SetVariablesRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateJobRetriesRequest other) { + public bool Equals(SetVariablesRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (JobKey != other.JobKey) return false; - if (Retries != other.Retries) return false; + if (ElementInstanceKey != other.ElementInstanceKey) return false; + if (Variables != other.Variables) return false; + if (Local != other.Local) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7347,8 +9765,9 @@ public bool Equals(UpdateJobRetriesRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (JobKey != 0L) hash ^= JobKey.GetHashCode(); - if (Retries != 0) hash ^= Retries.GetHashCode(); + if (ElementInstanceKey != 0L) hash ^= ElementInstanceKey.GetHashCode(); + if (Variables.Length != 0) hash ^= Variables.GetHashCode(); + if (Local != false) hash ^= Local.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7367,13 +9786,17 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (JobKey != 0L) { + if (ElementInstanceKey != 0L) { output.WriteRawTag(8); - output.WriteInt64(JobKey); + output.WriteInt64(ElementInstanceKey); } - if (Retries != 0) { - output.WriteRawTag(16); - output.WriteInt32(Retries); + if (Variables.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Variables); + } + if (Local != false) { + output.WriteRawTag(24); + output.WriteBool(Local); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7385,13 +9808,17 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (JobKey != 0L) { + if (ElementInstanceKey != 0L) { output.WriteRawTag(8); - output.WriteInt64(JobKey); + output.WriteInt64(ElementInstanceKey); } - if (Retries != 0) { - output.WriteRawTag(16); - output.WriteInt32(Retries); + if (Variables.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Variables); + } + if (Local != false) { + output.WriteRawTag(24); + output.WriteBool(Local); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7403,11 +9830,14 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (JobKey != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(JobKey); + if (ElementInstanceKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ElementInstanceKey); } - if (Retries != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Retries); + if (Variables.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Variables); + } + if (Local != false) { + size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7417,15 +9847,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateJobRetriesRequest other) { + public void MergeFrom(SetVariablesRequest other) { if (other == null) { return; } - if (other.JobKey != 0L) { - JobKey = other.JobKey; + if (other.ElementInstanceKey != 0L) { + ElementInstanceKey = other.ElementInstanceKey; } - if (other.Retries != 0) { - Retries = other.Retries; + if (other.Variables.Length != 0) { + Variables = other.Variables; + } + if (other.Local != false) { + Local = other.Local; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7443,11 +9876,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - JobKey = input.ReadInt64(); + ElementInstanceKey = input.ReadInt64(); break; } - case 16: { - Retries = input.ReadInt32(); + case 18: { + Variables = input.ReadString(); + break; + } + case 24: { + Local = input.ReadBool(); break; } } @@ -7466,11 +9903,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - JobKey = input.ReadInt64(); + ElementInstanceKey = input.ReadInt64(); break; } - case 16: { - Retries = input.ReadInt32(); + case 18: { + Variables = input.ReadString(); + break; + } + case 24: { + Local = input.ReadBool(); break; } } @@ -7480,21 +9921,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class UpdateJobRetriesResponse : pb::IMessage + public sealed partial class SetVariablesResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpdateJobRetriesResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetVariablesResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[28]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[37]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7505,7 +9946,7 @@ public sealed partial class UpdateJobRetriesResponse : pb::IMessageField number for the "key" field. + public const int KeyFieldNumber = 1; + private long key_; + /// + /// the unique key of the set variables command + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long Key { + get { return key_; } + set { + key_ = value; + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as UpdateJobRetriesResponse); + return Equals(other as SetVariablesResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateJobRetriesResponse other) { + public bool Equals(SetVariablesResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (Key != other.Key) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7545,6 +10003,7 @@ public bool Equals(UpdateJobRetriesResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; + if (Key != 0L) hash ^= Key.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7563,6 +10022,10 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else + if (Key != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Key); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7573,6 +10036,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { + if (Key != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Key); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -7583,6 +10050,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; + if (Key != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Key); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7591,10 +10061,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateJobRetriesResponse other) { + public void MergeFrom(SetVariablesResponse other) { if (other == null) { return; } + if (other.Key != 0L) { + Key = other.Key; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7610,6 +10083,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 8: { + Key = input.ReadInt64(); + break; + } } } #endif @@ -7625,6 +10102,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; + case 8: { + Key = input.ReadInt64(); + break; + } } } } @@ -7632,21 +10113,21 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class SetVariablesRequest : pb::IMessage + public sealed partial class ModifyProcessInstanceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetVariablesRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModifyProcessInstanceRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[29]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[38]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7657,7 +10138,7 @@ public sealed partial class SetVariablesRequest : pb::IMessageField number for the "elementInstanceKey" field. - public const int ElementInstanceKeyFieldNumber = 1; - private long elementInstanceKey_; + /// Field number for the "processInstanceKey" field. + public const int ProcessInstanceKeyFieldNumber = 1; + private long processInstanceKey_; /// - /// the unique identifier of a particular element; can be the process instance key (as - /// obtained during instance creation), or a given element, such as a service task (see - /// elementInstanceKey on the job message) + /// the key of the process instance that should be modified /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ElementInstanceKey { - get { return elementInstanceKey_; } + public long ProcessInstanceKey { + get { return processInstanceKey_; } set { - elementInstanceKey_ = value; + processInstanceKey_ = value; } } - /// Field number for the "variables" field. - public const int VariablesFieldNumber = 2; - private string variables_ = ""; + /// Field number for the "activateInstructions" field. + public const int ActivateInstructionsFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_activateInstructions_codec + = pb::FieldCodec.ForMessage(18, global::GatewayProtocol.ModifyProcessInstanceRequest.Types.ActivateInstruction.Parser); + private readonly pbc::RepeatedField activateInstructions_ = new pbc::RepeatedField(); /// - /// a JSON serialized document describing variables as key value pairs; the root of the document - /// must be an object + /// instructions describing which elements should be activated in which scopes, + /// and which variables should be created /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Variables { - get { return variables_; } - set { - variables_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public pbc::RepeatedField ActivateInstructions { + get { return activateInstructions_; } } - /// Field number for the "local" field. - public const int LocalFieldNumber = 3; - private bool local_; + /// Field number for the "terminateInstructions" field. + public const int TerminateInstructionsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_terminateInstructions_codec + = pb::FieldCodec.ForMessage(26, global::GatewayProtocol.ModifyProcessInstanceRequest.Types.TerminateInstruction.Parser); + private readonly pbc::RepeatedField terminateInstructions_ = new pbc::RepeatedField(); /// - /// if true, the variables will be merged strictly into the local scope (as indicated by - /// elementInstanceKey); this means the variables is not propagated to upper scopes. - /// for example, let's say we have two scopes, '1' and '2', with each having effective variables as: - /// 1 => `{ "foo" : 2 }`, and 2 => `{ "bar" : 1 }`. if we send an update request with - /// elementInstanceKey = 2, variables `{ "foo" : 5 }`, and local is true, then scope 1 will - /// be unchanged, and scope 2 will now be `{ "bar" : 1, "foo" 5 }`. if local was false, however, - /// then scope 1 would be `{ "foo": 5 }`, and scope 2 would be `{ "bar" : 1 }`. + /// instructions describing which elements should be terminated /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Local { - get { return local_; } - set { - local_ = value; - } + public pbc::RepeatedField TerminateInstructions { + get { return terminateInstructions_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SetVariablesRequest); + return Equals(other as ModifyProcessInstanceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetVariablesRequest other) { + public bool Equals(ModifyProcessInstanceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ElementInstanceKey != other.ElementInstanceKey) return false; - if (Variables != other.Variables) return false; - if (Local != other.Local) return false; + if (ProcessInstanceKey != other.ProcessInstanceKey) return false; + if(!activateInstructions_.Equals(other.activateInstructions_)) return false; + if(!terminateInstructions_.Equals(other.terminateInstructions_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7757,9 +10228,9 @@ public bool Equals(SetVariablesRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ElementInstanceKey != 0L) hash ^= ElementInstanceKey.GetHashCode(); - if (Variables.Length != 0) hash ^= Variables.GetHashCode(); - if (Local != false) hash ^= Local.GetHashCode(); + if (ProcessInstanceKey != 0L) hash ^= ProcessInstanceKey.GetHashCode(); + hash ^= activateInstructions_.GetHashCode(); + hash ^= terminateInstructions_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -7778,18 +10249,12 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ElementInstanceKey != 0L) { + if (ProcessInstanceKey != 0L) { output.WriteRawTag(8); - output.WriteInt64(ElementInstanceKey); - } - if (Variables.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Variables); - } - if (Local != false) { - output.WriteRawTag(24); - output.WriteBool(Local); + output.WriteInt64(ProcessInstanceKey); } + activateInstructions_.WriteTo(output, _repeated_activateInstructions_codec); + terminateInstructions_.WriteTo(output, _repeated_terminateInstructions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -7800,37 +10265,27 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (ElementInstanceKey != 0L) { + if (ProcessInstanceKey != 0L) { output.WriteRawTag(8); - output.WriteInt64(ElementInstanceKey); - } - if (Variables.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Variables); - } - if (Local != false) { - output.WriteRawTag(24); - output.WriteBool(Local); + output.WriteInt64(ProcessInstanceKey); } + activateInstructions_.WriteTo(ref output, _repeated_activateInstructions_codec); + terminateInstructions_.WriteTo(ref output, _repeated_terminateInstructions_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 (ElementInstanceKey != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ElementInstanceKey); - } - if (Variables.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Variables); - } - if (Local != false) { - size += 1 + 1; + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ProcessInstanceKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ProcessInstanceKey); } + size += activateInstructions_.CalculateSize(_repeated_activateInstructions_codec); + size += terminateInstructions_.CalculateSize(_repeated_terminateInstructions_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -7839,19 +10294,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetVariablesRequest other) { + public void MergeFrom(ModifyProcessInstanceRequest other) { if (other == null) { return; } - if (other.ElementInstanceKey != 0L) { - ElementInstanceKey = other.ElementInstanceKey; - } - if (other.Variables.Length != 0) { - Variables = other.Variables; - } - if (other.Local != false) { - Local = other.Local; + if (other.ProcessInstanceKey != 0L) { + ProcessInstanceKey = other.ProcessInstanceKey; } + activateInstructions_.Add(other.activateInstructions_); + terminateInstructions_.Add(other.terminateInstructions_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7868,15 +10319,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - ElementInstanceKey = input.ReadInt64(); + ProcessInstanceKey = input.ReadInt64(); break; } case 18: { - Variables = input.ReadString(); + activateInstructions_.AddEntriesFrom(input, _repeated_activateInstructions_codec); break; } - case 24: { - Local = input.ReadBool(); + case 26: { + terminateInstructions_.AddEntriesFrom(input, _repeated_terminateInstructions_codec); break; } } @@ -7895,15 +10346,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - ElementInstanceKey = input.ReadInt64(); + ProcessInstanceKey = input.ReadInt64(); break; } case 18: { - Variables = input.ReadString(); + activateInstructions_.AddEntriesFrom(ref input, _repeated_activateInstructions_codec); break; } - case 24: { - Local = input.ReadBool(); + case 26: { + terminateInstructions_.AddEntriesFrom(ref input, _repeated_terminateInstructions_codec); break; } } @@ -7911,23 +10362,723 @@ public void MergeFrom(pb::CodedInputStream input) { } #endif + #region Nested types + /// Container for nested types declared in the ModifyProcessInstanceRequest message type. + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static partial class Types { + public sealed partial class ActivateInstruction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateInstruction()); + 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::GatewayProtocol.ModifyProcessInstanceRequest.Descriptor.NestedTypes[0]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateInstruction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateInstruction(ActivateInstruction other) : this() { + elementId_ = other.elementId_; + ancestorElementInstanceKey_ = other.ancestorElementInstanceKey_; + variableInstructions_ = other.variableInstructions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ActivateInstruction Clone() { + return new ActivateInstruction(this); + } + + /// Field number for the "elementId" field. + public const int ElementIdFieldNumber = 1; + private string elementId_ = ""; + /// + /// the id of the element that should be activated + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ElementId { + get { return elementId_; } + set { + elementId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "ancestorElementInstanceKey" field. + public const int AncestorElementInstanceKeyFieldNumber = 2; + private long ancestorElementInstanceKey_; + /// + /// the key of the ancestor scope the element instance should be created in; + /// set to -1 to create the new element instance within an existing element + /// instance of the flow scope + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long AncestorElementInstanceKey { + get { return ancestorElementInstanceKey_; } + set { + ancestorElementInstanceKey_ = value; + } + } + + /// Field number for the "variableInstructions" field. + public const int VariableInstructionsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_variableInstructions_codec + = pb::FieldCodec.ForMessage(26, global::GatewayProtocol.ModifyProcessInstanceRequest.Types.VariableInstruction.Parser); + private readonly pbc::RepeatedField variableInstructions_ = new pbc::RepeatedField(); + /// + /// instructions describing which variables should be created + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField VariableInstructions { + get { return variableInstructions_; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ActivateInstruction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ActivateInstruction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ElementId != other.ElementId) return false; + if (AncestorElementInstanceKey != other.AncestorElementInstanceKey) return false; + if(!variableInstructions_.Equals(other.variableInstructions_)) 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 (ElementId.Length != 0) hash ^= ElementId.GetHashCode(); + if (AncestorElementInstanceKey != 0L) hash ^= AncestorElementInstanceKey.GetHashCode(); + hash ^= variableInstructions_.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 (ElementId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ElementId); + } + if (AncestorElementInstanceKey != 0L) { + output.WriteRawTag(16); + output.WriteInt64(AncestorElementInstanceKey); + } + variableInstructions_.WriteTo(output, _repeated_variableInstructions_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 (ElementId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(ElementId); + } + if (AncestorElementInstanceKey != 0L) { + output.WriteRawTag(16); + output.WriteInt64(AncestorElementInstanceKey); + } + variableInstructions_.WriteTo(ref output, _repeated_variableInstructions_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 (ElementId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ElementId); + } + if (AncestorElementInstanceKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(AncestorElementInstanceKey); + } + size += variableInstructions_.CalculateSize(_repeated_variableInstructions_codec); + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ActivateInstruction other) { + if (other == null) { + return; + } + if (other.ElementId.Length != 0) { + ElementId = other.ElementId; + } + if (other.AncestorElementInstanceKey != 0L) { + AncestorElementInstanceKey = other.AncestorElementInstanceKey; + } + variableInstructions_.Add(other.variableInstructions_); + _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: { + ElementId = input.ReadString(); + break; + } + case 16: { + AncestorElementInstanceKey = input.ReadInt64(); + break; + } + case 26: { + variableInstructions_.AddEntriesFrom(input, _repeated_variableInstructions_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: { + ElementId = input.ReadString(); + break; + } + case 16: { + AncestorElementInstanceKey = input.ReadInt64(); + break; + } + case 26: { + variableInstructions_.AddEntriesFrom(ref input, _repeated_variableInstructions_codec); + break; + } + } + } + } + #endif + + } + + public sealed partial class VariableInstruction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VariableInstruction()); + 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::GatewayProtocol.ModifyProcessInstanceRequest.Descriptor.NestedTypes[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 VariableInstruction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VariableInstruction(VariableInstruction other) : this() { + variables_ = other.variables_; + scopeId_ = other.scopeId_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public VariableInstruction Clone() { + return new VariableInstruction(this); + } + + /// Field number for the "variables" field. + public const int VariablesFieldNumber = 1; + private string variables_ = ""; + /// + /// JSON document that will instantiate the variables for the root variable scope of the + /// process instance; it must be a JSON object, as variables will be mapped in a + /// key-value fashion. e.g. { "a": 1, "b": 2 } will create two variables, named "a" and + /// "b" respectively, with their associated values. [{ "a": 1, "b": 2 }] would not be a + /// valid argument, as the root of the JSON document is an array and not an object. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string Variables { + get { return variables_; } + set { + variables_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "scopeId" field. + public const int ScopeIdFieldNumber = 2; + private string scopeId_ = ""; + /// + /// the id of the element in which scope the variables should be created; + /// leave empty to create the variables in the global scope of the process instance + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string ScopeId { + get { return scopeId_; } + set { + scopeId_ = 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 VariableInstruction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(VariableInstruction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (Variables != other.Variables) return false; + if (ScopeId != other.ScopeId) 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 (Variables.Length != 0) hash ^= Variables.GetHashCode(); + if (ScopeId.Length != 0) hash ^= ScopeId.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 (Variables.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Variables); + } + if (ScopeId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ScopeId); + } + 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 (Variables.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Variables); + } + if (ScopeId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(ScopeId); + } + 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 (Variables.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Variables); + } + if (ScopeId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ScopeId); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(VariableInstruction other) { + if (other == null) { + return; + } + if (other.Variables.Length != 0) { + Variables = other.Variables; + } + if (other.ScopeId.Length != 0) { + ScopeId = other.ScopeId; + } + _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: { + Variables = input.ReadString(); + break; + } + case 18: { + ScopeId = 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: { + Variables = input.ReadString(); + break; + } + case 18: { + ScopeId = input.ReadString(); + break; + } + } + } + } + #endif + + } + + public sealed partial class TerminateInstruction : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TerminateInstruction()); + 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::GatewayProtocol.ModifyProcessInstanceRequest.Descriptor.NestedTypes[2]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TerminateInstruction() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TerminateInstruction(TerminateInstruction other) : this() { + elementInstanceKey_ = other.elementInstanceKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public TerminateInstruction Clone() { + return new TerminateInstruction(this); + } + + /// Field number for the "elementInstanceKey" field. + public const int ElementInstanceKeyFieldNumber = 1; + private long elementInstanceKey_; + /// + /// the id of the element that should be terminated + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ElementInstanceKey { + get { return elementInstanceKey_; } + set { + elementInstanceKey_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as TerminateInstruction); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(TerminateInstruction other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ElementInstanceKey != other.ElementInstanceKey) 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 (ElementInstanceKey != 0L) hash ^= ElementInstanceKey.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 (ElementInstanceKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ElementInstanceKey); + } + 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 (ElementInstanceKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ElementInstanceKey); + } + 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 (ElementInstanceKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ElementInstanceKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(TerminateInstruction other) { + if (other == null) { + return; + } + if (other.ElementInstanceKey != 0L) { + ElementInstanceKey = other.ElementInstanceKey; + } + _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: { + ElementInstanceKey = input.ReadInt64(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ElementInstanceKey = input.ReadInt64(); + break; + } + } + } + } + #endif + + } + + } + #endregion + } - public sealed partial class SetVariablesResponse : pb::IMessage + public sealed partial class ModifyProcessInstanceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SetVariablesResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModifyProcessInstanceResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public static pb::MessageParser Parser { get { return _parser; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { - get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[30]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[39]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -7938,7 +11089,7 @@ public sealed partial class SetVariablesResponse : pb::IMessageField number for the "key" field. - public const int KeyFieldNumber = 1; - private long key_; - /// - /// the unique key of the set variables command - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Key { - get { return key_; } - set { - key_ = value; - } + public ModifyProcessInstanceResponse Clone() { + return new ModifyProcessInstanceResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as SetVariablesResponse); + return Equals(other as ModifyProcessInstanceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetVariablesResponse other) { + public bool Equals(ModifyProcessInstanceResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Key != other.Key) return false; return Equals(_unknownFields, other._unknownFields); } @@ -7995,7 +11129,6 @@ public bool Equals(SetVariablesResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Key != 0L) hash ^= Key.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8014,10 +11147,6 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Key != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Key); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -8028,10 +11157,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (Key != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Key); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -8042,9 +11167,6 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (Key != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(Key); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -8053,13 +11175,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetVariablesResponse other) { + public void MergeFrom(ModifyProcessInstanceResponse other) { if (other == null) { return; } - if (other.Key != 0L) { - Key = other.Key; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8075,10 +11194,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - Key = input.ReadInt64(); - break; - } } } #endif @@ -8094,10 +11209,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - Key = input.ReadInt64(); - break; - } } } } diff --git a/Client/Impl/proto/GatewayGrpc.cs b/Client/Impl/proto/GatewayGrpc.cs index ae936acb..5a16d6d8 100644 --- a/Client/Impl/proto/GatewayGrpc.cs +++ b/Client/Impl/proto/GatewayGrpc.cs @@ -2,7 +2,7 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: gateway.proto // -#pragma warning disable 0414, 1591 +#pragma warning disable 0414, 1591, 8981 #region Designer generated code using grpc = global::Grpc.Core; @@ -70,6 +70,10 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_gateway_protocol_DeployProcessResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.DeployProcessResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_gateway_protocol_DeployResourceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.DeployResourceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_gateway_protocol_DeployResourceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.DeployResourceResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_gateway_protocol_FailJobRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.FailJobRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_gateway_protocol_FailJobResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.FailJobResponse.Parser)); @@ -97,6 +101,10 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl static readonly grpc::Marshaller __Marshaller_gateway_protocol_UpdateJobRetriesRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.UpdateJobRetriesRequest.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_gateway_protocol_UpdateJobRetriesResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.UpdateJobRetriesResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_gateway_protocol_ModifyProcessInstanceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.ModifyProcessInstanceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_gateway_protocol_ModifyProcessInstanceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.ModifyProcessInstanceResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_ActivateJobs = new grpc::Method( @@ -146,6 +154,14 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __Marshaller_gateway_protocol_DeployProcessRequest, __Marshaller_gateway_protocol_DeployProcessResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeployResource = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeployResource", + __Marshaller_gateway_protocol_DeployResourceRequest, + __Marshaller_gateway_protocol_DeployResourceResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_FailJob = new grpc::Method( grpc::MethodType.Unary, @@ -202,6 +218,14 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __Marshaller_gateway_protocol_UpdateJobRetriesRequest, __Marshaller_gateway_protocol_UpdateJobRetriesResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_ModifyProcessInstance = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "ModifyProcessInstance", + __Marshaller_gateway_protocol_ModifyProcessInstanceRequest, + __Marshaller_gateway_protocol_ModifyProcessInstanceResponse); + /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { @@ -338,6 +362,27 @@ public abstract partial class GatewayBase throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } + /// + /// + ///Deploys one or more resources (e.g. processes or decision models) to Zeebe. + ///Note that this is an atomic call, i.e. either all resources are deployed, or none of them are. + /// + ///Errors: + ///INVALID_ARGUMENT: + ///- no resources given. + ///- if at least one resource is invalid. A resource is considered invalid if: + ///- the content is not deserializable (e.g. detected as BPMN, but it's broken XML) + ///- the content is invalid (e.g. an event-based gateway has an outgoing sequence flow to a task) + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task DeployResource(global::GatewayProtocol.DeployResourceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + /// /// ///Marks the job as failed; if the retries argument is positive, then the job will be immediately @@ -474,6 +519,31 @@ public abstract partial class GatewayBase throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } + /// + /// + ///Modifies the process instance. This is done by activating and/or terminating specific elements of the instance. + /// + ///Errors: + ///NOT_FOUND: + ///- no process instance exists with the given key + /// + ///FAILED_PRECONDITION: + ///- trying to activate element inside of a multi-instance + /// + ///INVALID_ARGUMENT: + ///- activating or terminating unknown element + ///- ancestor of element for activation doesn't exist + ///- scope of variable is unknown + /// + /// The request received from the client. + /// The context of the server-side call handler being invoked. + /// The response to send back to the client (wrapped by a task). + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::System.Threading.Tasks.Task ModifyProcessInstance(global::GatewayProtocol.ModifyProcessInstanceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + } /// Client for Gateway @@ -963,6 +1033,90 @@ protected GatewayClient(ClientBaseConfiguration configuration) : base(configurat } /// /// + ///Deploys one or more resources (e.g. processes or decision models) to Zeebe. + ///Note that this is an atomic call, i.e. either all resources are deployed, or none of them are. + /// + ///Errors: + ///INVALID_ARGUMENT: + ///- no resources given. + ///- if at least one resource is invalid. A resource is considered invalid if: + ///- the content is not deserializable (e.g. detected as BPMN, but it's broken XML) + ///- the content is invalid (e.g. an event-based gateway has an outgoing sequence flow to a task) + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::GatewayProtocol.DeployResourceResponse DeployResource(global::GatewayProtocol.DeployResourceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeployResource(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// + ///Deploys one or more resources (e.g. processes or decision models) to Zeebe. + ///Note that this is an atomic call, i.e. either all resources are deployed, or none of them are. + /// + ///Errors: + ///INVALID_ARGUMENT: + ///- no resources given. + ///- if at least one resource is invalid. A resource is considered invalid if: + ///- the content is not deserializable (e.g. detected as BPMN, but it's broken XML) + ///- the content is invalid (e.g. an event-based gateway has an outgoing sequence flow to a task) + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::GatewayProtocol.DeployResourceResponse DeployResource(global::GatewayProtocol.DeployResourceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeployResource, null, options, request); + } + /// + /// + ///Deploys one or more resources (e.g. processes or decision models) to Zeebe. + ///Note that this is an atomic call, i.e. either all resources are deployed, or none of them are. + /// + ///Errors: + ///INVALID_ARGUMENT: + ///- no resources given. + ///- if at least one resource is invalid. A resource is considered invalid if: + ///- the content is not deserializable (e.g. detected as BPMN, but it's broken XML) + ///- the content is invalid (e.g. an event-based gateway has an outgoing sequence flow to a task) + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeployResourceAsync(global::GatewayProtocol.DeployResourceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeployResourceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// + ///Deploys one or more resources (e.g. processes or decision models) to Zeebe. + ///Note that this is an atomic call, i.e. either all resources are deployed, or none of them are. + /// + ///Errors: + ///INVALID_ARGUMENT: + ///- no resources given. + ///- if at least one resource is invalid. A resource is considered invalid if: + ///- the content is not deserializable (e.g. detected as BPMN, but it's broken XML) + ///- the content is invalid (e.g. an event-based gateway has an outgoing sequence flow to a task) + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall DeployResourceAsync(global::GatewayProtocol.DeployResourceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeployResource, null, options, request); + } + /// + /// ///Marks the job as failed; if the retries argument is positive, then the job will be immediately ///activatable again, and a worker could try again to process it. If it is zero or negative however, ///an incident will be raised, tagged with the given errorMessage, and the job will not be @@ -1505,6 +1659,106 @@ protected GatewayClient(ClientBaseConfiguration configuration) : base(configurat { return CallInvoker.AsyncUnaryCall(__Method_UpdateJobRetries, null, options, request); } + /// + /// + ///Modifies the process instance. This is done by activating and/or terminating specific elements of the instance. + /// + ///Errors: + ///NOT_FOUND: + ///- no process instance exists with the given key + /// + ///FAILED_PRECONDITION: + ///- trying to activate element inside of a multi-instance + /// + ///INVALID_ARGUMENT: + ///- activating or terminating unknown element + ///- ancestor of element for activation doesn't exist + ///- scope of variable is unknown + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::GatewayProtocol.ModifyProcessInstanceResponse ModifyProcessInstance(global::GatewayProtocol.ModifyProcessInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ModifyProcessInstance(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// + ///Modifies the process instance. This is done by activating and/or terminating specific elements of the instance. + /// + ///Errors: + ///NOT_FOUND: + ///- no process instance exists with the given key + /// + ///FAILED_PRECONDITION: + ///- trying to activate element inside of a multi-instance + /// + ///INVALID_ARGUMENT: + ///- activating or terminating unknown element + ///- ancestor of element for activation doesn't exist + ///- scope of variable is unknown + /// + /// The request to send to the server. + /// The options for the call. + /// The response received from the server. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual global::GatewayProtocol.ModifyProcessInstanceResponse ModifyProcessInstance(global::GatewayProtocol.ModifyProcessInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_ModifyProcessInstance, null, options, request); + } + /// + /// + ///Modifies the process instance. This is done by activating and/or terminating specific elements of the instance. + /// + ///Errors: + ///NOT_FOUND: + ///- no process instance exists with the given key + /// + ///FAILED_PRECONDITION: + ///- trying to activate element inside of a multi-instance + /// + ///INVALID_ARGUMENT: + ///- activating or terminating unknown element + ///- ancestor of element for activation doesn't exist + ///- scope of variable is unknown + /// + /// The request to send to the server. + /// The initial metadata to send with the call. This parameter is optional. + /// An optional deadline for the call. The call will be cancelled if deadline is hit. + /// An optional token for canceling the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ModifyProcessInstanceAsync(global::GatewayProtocol.ModifyProcessInstanceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return ModifyProcessInstanceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// + ///Modifies the process instance. This is done by activating and/or terminating specific elements of the instance. + /// + ///Errors: + ///NOT_FOUND: + ///- no process instance exists with the given key + /// + ///FAILED_PRECONDITION: + ///- trying to activate element inside of a multi-instance + /// + ///INVALID_ARGUMENT: + ///- activating or terminating unknown element + ///- ancestor of element for activation doesn't exist + ///- scope of variable is unknown + /// + /// The request to send to the server. + /// The options for the call. + /// The call object. + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + public virtual grpc::AsyncUnaryCall ModifyProcessInstanceAsync(global::GatewayProtocol.ModifyProcessInstanceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_ModifyProcessInstance, null, options, request); + } /// Creates a new instance of client from given ClientBaseConfiguration. [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] protected override GatewayClient NewInstance(ClientBaseConfiguration configuration) @@ -1525,16 +1779,18 @@ protected override GatewayClient NewInstance(ClientBaseConfiguration configurati .AddMethod(__Method_CreateProcessInstance, serviceImpl.CreateProcessInstance) .AddMethod(__Method_CreateProcessInstanceWithResult, serviceImpl.CreateProcessInstanceWithResult) .AddMethod(__Method_DeployProcess, serviceImpl.DeployProcess) + .AddMethod(__Method_DeployResource, serviceImpl.DeployResource) .AddMethod(__Method_FailJob, serviceImpl.FailJob) .AddMethod(__Method_ThrowError, serviceImpl.ThrowError) .AddMethod(__Method_PublishMessage, serviceImpl.PublishMessage) .AddMethod(__Method_ResolveIncident, serviceImpl.ResolveIncident) .AddMethod(__Method_SetVariables, serviceImpl.SetVariables) .AddMethod(__Method_Topology, serviceImpl.Topology) - .AddMethod(__Method_UpdateJobRetries, serviceImpl.UpdateJobRetries).Build(); + .AddMethod(__Method_UpdateJobRetries, serviceImpl.UpdateJobRetries) + .AddMethod(__Method_ModifyProcessInstance, serviceImpl.ModifyProcessInstance).Build(); } - /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. + /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. /// Note: this method is part of an experimental API that can change or be removed without any prior notice. /// Service methods will be bound by calling AddMethod on this object. /// An object implementing the server-side handling logic. @@ -1547,6 +1803,7 @@ public static void BindService(grpc::ServiceBinderBase serviceBinder, GatewayBas serviceBinder.AddMethod(__Method_CreateProcessInstance, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateProcessInstance)); serviceBinder.AddMethod(__Method_CreateProcessInstanceWithResult, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CreateProcessInstanceWithResult)); serviceBinder.AddMethod(__Method_DeployProcess, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeployProcess)); + serviceBinder.AddMethod(__Method_DeployResource, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeployResource)); serviceBinder.AddMethod(__Method_FailJob, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.FailJob)); serviceBinder.AddMethod(__Method_ThrowError, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ThrowError)); serviceBinder.AddMethod(__Method_PublishMessage, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.PublishMessage)); @@ -1554,6 +1811,7 @@ public static void BindService(grpc::ServiceBinderBase serviceBinder, GatewayBas serviceBinder.AddMethod(__Method_SetVariables, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.SetVariables)); serviceBinder.AddMethod(__Method_Topology, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.Topology)); serviceBinder.AddMethod(__Method_UpdateJobRetries, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.UpdateJobRetries)); + serviceBinder.AddMethod(__Method_ModifyProcessInstance, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.ModifyProcessInstance)); } } diff --git a/generate-grpc/gen-grpc.sh b/generate-grpc/gen-grpc.sh index 0219a97b..2e2e1fce 100755 --- a/generate-grpc/gen-grpc.sh +++ b/generate-grpc/gen-grpc.sh @@ -2,9 +2,9 @@ set -euxo pipefail os=linux_x64 -grpcVersion=2.43.0 +grpcVersion=2.51.0 packagePath=~/.nuget/packages/grpc.tools/${grpcVersion}/tools/${os}/ -zeebeVersion='1.3.0' +zeebeVersion='8.1.0' protoFile=gateway.proto gwProtoPath=./ genPath=Client/Impl/proto