From 85be274323953a3dc4e900e174c3d2ee8c636af3 Mon Sep 17 00:00:00 2001 From: Christopher Zell Date: Fri, 14 Jul 2023 21:55:44 +0200 Subject: [PATCH] feat: gen new grpc protocol --- Client/Impl/proto/Gateway.cs | 9063 ++++++++++++++++++++---------- Client/Impl/proto/GatewayGrpc.cs | 369 +- generate-grpc/gen-grpc.sh | 2 +- 3 files changed, 6393 insertions(+), 3041 deletions(-) diff --git a/Client/Impl/proto/Gateway.cs b/Client/Impl/proto/Gateway.cs index 158d9c82..9fda117f 100644 --- a/Client/Impl/proto/Gateway.cs +++ b/Client/Impl/proto/Gateway.cs @@ -56,109 +56,143 @@ static GatewayReflection() { "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=")); + "VQoXRXZhbHVhdGVEZWNpc2lvblJlcXVlc3QSEwoLZGVjaXNpb25LZXkYASAB", + "KAMSEgoKZGVjaXNpb25JZBgCIAEoCRIRCgl2YXJpYWJsZXMYAyABKAkivgIK", + "GEV2YWx1YXRlRGVjaXNpb25SZXNwb25zZRITCgtkZWNpc2lvbktleRgBIAEo", + "AxISCgpkZWNpc2lvbklkGAIgASgJEhQKDGRlY2lzaW9uTmFtZRgDIAEoCRIX", + "Cg9kZWNpc2lvblZlcnNpb24YBCABKAUSHgoWZGVjaXNpb25SZXF1aXJlbWVu", + "dHNJZBgFIAEoCRIfChdkZWNpc2lvblJlcXVpcmVtZW50c0tleRgGIAEoAxIW", + "Cg5kZWNpc2lvbk91dHB1dBgHIAEoCRI/ChJldmFsdWF0ZWREZWNpc2lvbnMY", + "CCADKAsyIy5nYXRld2F5X3Byb3RvY29sLkV2YWx1YXRlZERlY2lzaW9uEhgK", + "EGZhaWxlZERlY2lzaW9uSWQYCSABKAkSFgoOZmFpbHVyZU1lc3NhZ2UYCiAB", + "KAkimQIKEUV2YWx1YXRlZERlY2lzaW9uEhMKC2RlY2lzaW9uS2V5GAEgASgD", + "EhIKCmRlY2lzaW9uSWQYAiABKAkSFAoMZGVjaXNpb25OYW1lGAMgASgJEhcK", + "D2RlY2lzaW9uVmVyc2lvbhgEIAEoBRIUCgxkZWNpc2lvblR5cGUYBSABKAkS", + "FgoOZGVjaXNpb25PdXRwdXQYBiABKAkSOwoMbWF0Y2hlZFJ1bGVzGAcgAygL", + "MiUuZ2F0ZXdheV9wcm90b2NvbC5NYXRjaGVkRGVjaXNpb25SdWxlEkEKD2V2", + "YWx1YXRlZElucHV0cxgIIAMoCzIoLmdhdGV3YXlfcHJvdG9jb2wuRXZhbHVh", + "dGVkRGVjaXNpb25JbnB1dCJQChZFdmFsdWF0ZWREZWNpc2lvbklucHV0Eg8K", + "B2lucHV0SWQYASABKAkSEQoJaW5wdXROYW1lGAIgASgJEhIKCmlucHV0VmFs", + "dWUYAyABKAkiVAoXRXZhbHVhdGVkRGVjaXNpb25PdXRwdXQSEAoIb3V0cHV0", + "SWQYASABKAkSEgoKb3V0cHV0TmFtZRgCIAEoCRITCgtvdXRwdXRWYWx1ZRgD", + "IAEoCSJ9ChNNYXRjaGVkRGVjaXNpb25SdWxlEg4KBnJ1bGVJZBgBIAEoCRIR", + "CglydWxlSW5kZXgYAiABKAUSQwoQZXZhbHVhdGVkT3V0cHV0cxgDIAMoCzIp", + "LmdhdGV3YXlfcHJvdG9jb2wuRXZhbHVhdGVkRGVjaXNpb25PdXRwdXQiVQoU", + "RGVwbG95UHJvY2Vzc1JlcXVlc3QSOQoJcHJvY2Vzc2VzGAEgAygLMiYuZ2F0", + "ZXdheV9wcm90b2NvbC5Qcm9jZXNzUmVxdWVzdE9iamVjdDoCGAEiPAoUUHJv", + "Y2Vzc1JlcXVlc3RPYmplY3QSDAoEbmFtZRgBIAEoCRISCgpkZWZpbml0aW9u", + "GAIgASgMOgIYASJeChVEZXBsb3lQcm9jZXNzUmVzcG9uc2USCwoDa2V5GAEg", + "ASgDEjQKCXByb2Nlc3NlcxgCIAMoCzIhLmdhdGV3YXlfcHJvdG9jb2wuUHJv", + "Y2Vzc01ldGFkYXRhOgIYASJGChVEZXBsb3lSZXNvdXJjZVJlcXVlc3QSLQoJ", + "cmVzb3VyY2VzGAEgAygLMhouZ2F0ZXdheV9wcm90b2NvbC5SZXNvdXJjZSIp", + "CghSZXNvdXJjZRIMCgRuYW1lGAEgASgJEg8KB2NvbnRlbnQYAiABKAwiWAoW", + "RGVwbG95UmVzb3VyY2VSZXNwb25zZRILCgNrZXkYASABKAMSMQoLZGVwbG95", + "bWVudHMYAiADKAsyHC5nYXRld2F5X3Byb3RvY29sLkRlcGxveW1lbnQi1gEK", + "CkRlcGxveW1lbnQSNAoHcHJvY2VzcxgBIAEoCzIhLmdhdGV3YXlfcHJvdG9j", + "b2wuUHJvY2Vzc01ldGFkYXRhSAASNgoIZGVjaXNpb24YAiABKAsyIi5nYXRl", + "d2F5X3Byb3RvY29sLkRlY2lzaW9uTWV0YWRhdGFIABJOChRkZWNpc2lvblJl", + "cXVpcmVtZW50cxgDIAEoCzIuLmdhdGV3YXlfcHJvdG9jb2wuRGVjaXNpb25S", + "ZXF1aXJlbWVudHNNZXRhZGF0YUgAQgoKCE1ldGFkYXRhIm0KD1Byb2Nlc3NN", + "ZXRhZGF0YRIVCg1icG1uUHJvY2Vzc0lkGAEgASgJEg8KB3ZlcnNpb24YAiAB", + "KAUSHAoUcHJvY2Vzc0RlZmluaXRpb25LZXkYAyABKAMSFAoMcmVzb3VyY2VO", + "YW1lGAQgASgJIqwBChBEZWNpc2lvbk1ldGFkYXRhEhUKDWRtbkRlY2lzaW9u", + "SWQYASABKAkSFwoPZG1uRGVjaXNpb25OYW1lGAIgASgJEg8KB3ZlcnNpb24Y", + "AyABKAUSEwoLZGVjaXNpb25LZXkYBCABKAMSIQoZZG1uRGVjaXNpb25SZXF1", + "aXJlbWVudHNJZBgFIAEoCRIfChdkZWNpc2lvblJlcXVpcmVtZW50c0tleRgG", + "IAEoAyKuAQocRGVjaXNpb25SZXF1aXJlbWVudHNNZXRhZGF0YRIhChlkbW5E", + "ZWNpc2lvblJlcXVpcmVtZW50c0lkGAEgASgJEiMKG2RtbkRlY2lzaW9uUmVx", + "dWlyZW1lbnRzTmFtZRgCIAEoCRIPCgd2ZXJzaW9uGAMgASgFEh8KF2RlY2lz", + "aW9uUmVxdWlyZW1lbnRzS2V5GAQgASgDEhQKDHJlc291cmNlTmFtZRgFIAEo", + "CSJwCg5GYWlsSm9iUmVxdWVzdBIOCgZqb2JLZXkYASABKAMSDwoHcmV0cmll", + "cxgCIAEoBRIUCgxlcnJvck1lc3NhZ2UYAyABKAkSFAoMcmV0cnlCYWNrT2Zm", + "GAQgASgDEhEKCXZhcmlhYmxlcxgFIAEoCSIRCg9GYWlsSm9iUmVzcG9uc2Ui", + "XwoRVGhyb3dFcnJvclJlcXVlc3QSDgoGam9iS2V5GAEgASgDEhEKCWVycm9y", + "Q29kZRgCIAEoCRIUCgxlcnJvck1lc3NhZ2UYAyABKAkSEQoJdmFyaWFibGVz", + "GAQgASgJIhQKElRocm93RXJyb3JSZXNwb25zZSJ3ChVQdWJsaXNoTWVzc2Fn", + "ZVJlcXVlc3QSDAoEbmFtZRgBIAEoCRIWCg5jb3JyZWxhdGlvbktleRgCIAEo", + "CRISCgp0aW1lVG9MaXZlGAMgASgDEhEKCW1lc3NhZ2VJZBgEIAEoCRIRCgl2", + "YXJpYWJsZXMYBSABKAkiJQoWUHVibGlzaE1lc3NhZ2VSZXNwb25zZRILCgNr", + "ZXkYASABKAMiLQoWUmVzb2x2ZUluY2lkZW50UmVxdWVzdBITCgtpbmNpZGVu", + "dEtleRgBIAEoAyIZChdSZXNvbHZlSW5jaWRlbnRSZXNwb25zZSIRCg9Ub3Bv", + "bG9neVJlcXVlc3QiogEKEFRvcG9sb2d5UmVzcG9uc2USLQoHYnJva2VycxgB", + "IAMoCzIcLmdhdGV3YXlfcHJvdG9jb2wuQnJva2VySW5mbxITCgtjbHVzdGVy", + "U2l6ZRgCIAEoBRIXCg9wYXJ0aXRpb25zQ291bnQYAyABKAUSGQoRcmVwbGlj", + "YXRpb25GYWN0b3IYBCABKAUSFgoOZ2F0ZXdheVZlcnNpb24YBSABKAkiegoK", + "QnJva2VySW5mbxIOCgZub2RlSWQYASABKAUSDAoEaG9zdBgCIAEoCRIMCgRw", + "b3J0GAMgASgFEi8KCnBhcnRpdGlvbnMYBCADKAsyGy5nYXRld2F5X3Byb3Rv", + "Y29sLlBhcnRpdGlvbhIPCgd2ZXJzaW9uGAUgASgJIqACCglQYXJ0aXRpb24S", + "EwoLcGFydGl0aW9uSWQYASABKAUSPQoEcm9sZRgCIAEoDjIvLmdhdGV3YXlf", + "cHJvdG9jb2wuUGFydGl0aW9uLlBhcnRpdGlvbkJyb2tlclJvbGUSQQoGaGVh", + "bHRoGAMgASgOMjEuZ2F0ZXdheV9wcm90b2NvbC5QYXJ0aXRpb24uUGFydGl0", + "aW9uQnJva2VySGVhbHRoIj0KE1BhcnRpdGlvbkJyb2tlclJvbGUSCgoGTEVB", + "REVSEAASDAoIRk9MTE9XRVIQARIMCghJTkFDVElWRRACIj0KFVBhcnRpdGlv", + "bkJyb2tlckhlYWx0aBILCgdIRUFMVEhZEAASDQoJVU5IRUFMVEhZEAESCAoE", + "REVBRBACIjoKF1VwZGF0ZUpvYlJldHJpZXNSZXF1ZXN0Eg4KBmpvYktleRgB", + "IAEoAxIPCgdyZXRyaWVzGAIgASgFIhoKGFVwZGF0ZUpvYlJldHJpZXNSZXNw", + "b25zZSJTChNTZXRWYXJpYWJsZXNSZXF1ZXN0EhoKEmVsZW1lbnRJbnN0YW5j", + "ZUtleRgBIAEoAxIRCgl2YXJpYWJsZXMYAiABKAkSDQoFbG9jYWwYAyABKAgi", + "IwoUU2V0VmFyaWFibGVzUmVzcG9uc2USCwoDa2V5GAEgASgDIqAEChxNb2Rp", + "ZnlQcm9jZXNzSW5zdGFuY2VSZXF1ZXN0EhoKEnByb2Nlc3NJbnN0YW5jZUtl", + "eRgBIAEoAxJgChRhY3RpdmF0ZUluc3RydWN0aW9ucxgCIAMoCzJCLmdhdGV3", + "YXlfcHJvdG9jb2wuTW9kaWZ5UHJvY2Vzc0luc3RhbmNlUmVxdWVzdC5BY3Rp", + "dmF0ZUluc3RydWN0aW9uEmIKFXRlcm1pbmF0ZUluc3RydWN0aW9ucxgDIAMo", + "CzJDLmdhdGV3YXlfcHJvdG9jb2wuTW9kaWZ5UHJvY2Vzc0luc3RhbmNlUmVx", + "dWVzdC5UZXJtaW5hdGVJbnN0cnVjdGlvbhquAQoTQWN0aXZhdGVJbnN0cnVj", + "dGlvbhIRCgllbGVtZW50SWQYASABKAkSIgoaYW5jZXN0b3JFbGVtZW50SW5z", + "dGFuY2VLZXkYAiABKAMSYAoUdmFyaWFibGVJbnN0cnVjdGlvbnMYAyADKAsy", + "Qi5nYXRld2F5X3Byb3RvY29sLk1vZGlmeVByb2Nlc3NJbnN0YW5jZVJlcXVl", + "c3QuVmFyaWFibGVJbnN0cnVjdGlvbho5ChNWYXJpYWJsZUluc3RydWN0aW9u", + "EhEKCXZhcmlhYmxlcxgBIAEoCRIPCgdzY29wZUlkGAIgASgJGjIKFFRlcm1p", + "bmF0ZUluc3RydWN0aW9uEhoKEmVsZW1lbnRJbnN0YW5jZUtleRgBIAEoAyIf", + "Ch1Nb2RpZnlQcm9jZXNzSW5zdGFuY2VSZXNwb25zZSIsChVEZWxldGVSZXNv", + "dXJjZVJlcXVlc3QSEwoLcmVzb3VyY2VLZXkYASABKAMiGAoWRGVsZXRlUmVz", + "b3VyY2VSZXNwb25zZSI/ChZCcm9hZGNhc3RTaWduYWxSZXF1ZXN0EhIKCnNp", + "Z25hbE5hbWUYASABKAkSEQoJdmFyaWFibGVzGAIgASgJIiYKF0Jyb2FkY2Fz", + "dFNpZ25hbFJlc3BvbnNlEgsKA2tleRgBIAEoAzKGDwoHR2F0ZXdheRJhCgxB", + "Y3RpdmF0ZUpvYnMSJS5nYXRld2F5X3Byb3RvY29sLkFjdGl2YXRlSm9ic1Jl", + "cXVlc3QaJi5nYXRld2F5X3Byb3RvY29sLkFjdGl2YXRlSm9ic1Jlc3BvbnNl", + "IgAwARJ6ChVDYW5jZWxQcm9jZXNzSW5zdGFuY2USLi5nYXRld2F5X3Byb3Rv", + "Y29sLkNhbmNlbFByb2Nlc3NJbnN0YW5jZVJlcXVlc3QaLy5nYXRld2F5X3By", + "b3RvY29sLkNhbmNlbFByb2Nlc3NJbnN0YW5jZVJlc3BvbnNlIgASXAoLQ29t", + "cGxldGVKb2ISJC5nYXRld2F5X3Byb3RvY29sLkNvbXBsZXRlSm9iUmVxdWVz", + "dBolLmdhdGV3YXlfcHJvdG9jb2wuQ29tcGxldGVKb2JSZXNwb25zZSIAEnoK", + "FUNyZWF0ZVByb2Nlc3NJbnN0YW5jZRIuLmdhdGV3YXlfcHJvdG9jb2wuQ3Jl", + "YXRlUHJvY2Vzc0luc3RhbmNlUmVxdWVzdBovLmdhdGV3YXlfcHJvdG9jb2wu", + "Q3JlYXRlUHJvY2Vzc0luc3RhbmNlUmVzcG9uc2UiABKYAQofQ3JlYXRlUHJv", + "Y2Vzc0luc3RhbmNlV2l0aFJlc3VsdBI4LmdhdGV3YXlfcHJvdG9jb2wuQ3Jl", + "YXRlUHJvY2Vzc0luc3RhbmNlV2l0aFJlc3VsdFJlcXVlc3QaOS5nYXRld2F5", + "X3Byb3RvY29sLkNyZWF0ZVByb2Nlc3NJbnN0YW5jZVdpdGhSZXN1bHRSZXNw", + "b25zZSIAEmsKEEV2YWx1YXRlRGVjaXNpb24SKS5nYXRld2F5X3Byb3RvY29s", + "LkV2YWx1YXRlRGVjaXNpb25SZXF1ZXN0GiouZ2F0ZXdheV9wcm90b2NvbC5F", + "dmFsdWF0ZURlY2lzaW9uUmVzcG9uc2UiABJlCg1EZXBsb3lQcm9jZXNzEiYu", + "Z2F0ZXdheV9wcm90b2NvbC5EZXBsb3lQcm9jZXNzUmVxdWVzdBonLmdhdGV3", + "YXlfcHJvdG9jb2wuRGVwbG95UHJvY2Vzc1Jlc3BvbnNlIgOIAgESZQoORGVw", + "bG95UmVzb3VyY2USJy5nYXRld2F5X3Byb3RvY29sLkRlcGxveVJlc291cmNl", + "UmVxdWVzdBooLmdhdGV3YXlfcHJvdG9jb2wuRGVwbG95UmVzb3VyY2VSZXNw", + "b25zZSIAElAKB0ZhaWxKb2ISIC5nYXRld2F5X3Byb3RvY29sLkZhaWxKb2JS", + "ZXF1ZXN0GiEuZ2F0ZXdheV9wcm90b2NvbC5GYWlsSm9iUmVzcG9uc2UiABJZ", + "CgpUaHJvd0Vycm9yEiMuZ2F0ZXdheV9wcm90b2NvbC5UaHJvd0Vycm9yUmVx", + "dWVzdBokLmdhdGV3YXlfcHJvdG9jb2wuVGhyb3dFcnJvclJlc3BvbnNlIgAS", + "ZQoOUHVibGlzaE1lc3NhZ2USJy5nYXRld2F5X3Byb3RvY29sLlB1Ymxpc2hN", + "ZXNzYWdlUmVxdWVzdBooLmdhdGV3YXlfcHJvdG9jb2wuUHVibGlzaE1lc3Nh", + "Z2VSZXNwb25zZSIAEmgKD1Jlc29sdmVJbmNpZGVudBIoLmdhdGV3YXlfcHJv", + "dG9jb2wuUmVzb2x2ZUluY2lkZW50UmVxdWVzdBopLmdhdGV3YXlfcHJvdG9j", + "b2wuUmVzb2x2ZUluY2lkZW50UmVzcG9uc2UiABJfCgxTZXRWYXJpYWJsZXMS", + "JS5nYXRld2F5X3Byb3RvY29sLlNldFZhcmlhYmxlc1JlcXVlc3QaJi5nYXRl", + "d2F5X3Byb3RvY29sLlNldFZhcmlhYmxlc1Jlc3BvbnNlIgASUwoIVG9wb2xv", + "Z3kSIS5nYXRld2F5X3Byb3RvY29sLlRvcG9sb2d5UmVxdWVzdBoiLmdhdGV3", + "YXlfcHJvdG9jb2wuVG9wb2xvZ3lSZXNwb25zZSIAEmsKEFVwZGF0ZUpvYlJl", + "dHJpZXMSKS5nYXRld2F5X3Byb3RvY29sLlVwZGF0ZUpvYlJldHJpZXNSZXF1", + "ZXN0GiouZ2F0ZXdheV9wcm90b2NvbC5VcGRhdGVKb2JSZXRyaWVzUmVzcG9u", + "c2UiABJ6ChVNb2RpZnlQcm9jZXNzSW5zdGFuY2USLi5nYXRld2F5X3Byb3Rv", + "Y29sLk1vZGlmeVByb2Nlc3NJbnN0YW5jZVJlcXVlc3QaLy5nYXRld2F5X3By", + "b3RvY29sLk1vZGlmeVByb2Nlc3NJbnN0YW5jZVJlc3BvbnNlIgASZQoORGVs", + "ZXRlUmVzb3VyY2USJy5nYXRld2F5X3Byb3RvY29sLkRlbGV0ZVJlc291cmNl", + "UmVxdWVzdBooLmdhdGV3YXlfcHJvdG9jb2wuRGVsZXRlUmVzb3VyY2VSZXNw", + "b25zZSIAEmgKD0Jyb2FkY2FzdFNpZ25hbBIoLmdhdGV3YXlfcHJvdG9jb2wu", + "QnJvYWRjYXN0U2lnbmFsUmVxdWVzdBopLmdhdGV3YXlfcHJvdG9jb2wuQnJv", + "YWRjYXN0U2lnbmFsUmVzcG9uc2UiAEIsCiFpby5jYW11bmRhLnplZWJlLmdh", + "dGV3YXkucHJvdG9jb2xQAFoFLi87cGJiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { @@ -174,6 +208,12 @@ static GatewayReflection() { 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.EvaluateDecisionRequest), global::GatewayProtocol.EvaluateDecisionRequest.Parser, new[]{ "DecisionKey", "DecisionId", "Variables" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.EvaluateDecisionResponse), global::GatewayProtocol.EvaluateDecisionResponse.Parser, new[]{ "DecisionKey", "DecisionId", "DecisionName", "DecisionVersion", "DecisionRequirementsId", "DecisionRequirementsKey", "DecisionOutput", "EvaluatedDecisions", "FailedDecisionId", "FailureMessage" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.EvaluatedDecision), global::GatewayProtocol.EvaluatedDecision.Parser, new[]{ "DecisionKey", "DecisionId", "DecisionName", "DecisionVersion", "DecisionType", "DecisionOutput", "MatchedRules", "EvaluatedInputs" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.EvaluatedDecisionInput), global::GatewayProtocol.EvaluatedDecisionInput.Parser, new[]{ "InputId", "InputName", "InputValue" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.EvaluatedDecisionOutput), global::GatewayProtocol.EvaluatedDecisionOutput.Parser, new[]{ "OutputId", "OutputName", "OutputValue" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.MatchedDecisionRule), global::GatewayProtocol.MatchedDecisionRule.Parser, new[]{ "RuleId", "RuleIndex", "EvaluatedOutputs" }, 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), @@ -184,9 +224,9 @@ static GatewayReflection() { 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.FailJobRequest), global::GatewayProtocol.FailJobRequest.Parser, new[]{ "JobKey", "Retries", "ErrorMessage", "RetryBackOff", "Variables" }, 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), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.ThrowErrorRequest), global::GatewayProtocol.ThrowErrorRequest.Parser, new[]{ "JobKey", "ErrorCode", "ErrorMessage", "Variables" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.ThrowErrorResponse), global::GatewayProtocol.ThrowErrorResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.PublishMessageRequest), global::GatewayProtocol.PublishMessageRequest.Parser, new[]{ "Name", "CorrelationKey", "TimeToLive", "MessageId", "Variables" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.PublishMessageResponse), global::GatewayProtocol.PublishMessageResponse.Parser, new[]{ "Key" }, null, null, null, null), @@ -203,7 +243,11 @@ static GatewayReflection() { 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) + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.ModifyProcessInstanceResponse), global::GatewayProtocol.ModifyProcessInstanceResponse.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.DeleteResourceRequest), global::GatewayProtocol.DeleteResourceRequest.Parser, new[]{ "ResourceKey" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.DeleteResourceResponse), global::GatewayProtocol.DeleteResourceResponse.Parser, null, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.BroadcastSignalRequest), global::GatewayProtocol.BroadcastSignalRequest.Parser, new[]{ "SignalName", "Variables" }, null, null, null, null), + new pbr::GeneratedClrTypeInfo(typeof(global::GatewayProtocol.BroadcastSignalResponse), global::GatewayProtocol.BroadcastSignalResponse.Parser, new[]{ "Key" }, null, null, null, null) })); } #endregion @@ -3660,17 +3704,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - [global::System.ObsoleteAttribute] - public sealed partial class DeployProcessRequest : pb::IMessage + public sealed partial class EvaluateDecisionRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeployProcessRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EvaluateDecisionRequest()); 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)] @@ -3686,7 +3729,7 @@ public sealed partial class DeployProcessRequest : pb::IMessageField number for the "processes" field. - public const int ProcessesFieldNumber = 1; - private static readonly pb::FieldCodec _repeated_processes_codec - = pb::FieldCodec.ForMessage(10, global::GatewayProtocol.ProcessRequestObject.Parser); - private readonly pbc::RepeatedField processes_ = new pbc::RepeatedField(); + /// Field number for the "decisionKey" field. + public const int DecisionKeyFieldNumber = 1; + private long decisionKey_; /// - /// List of process resources to deploy + /// the unique key identifying the decision to be evaluated (e.g. returned + /// from a decision in the DeployResourceResponse message) /// - [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Processes { - get { return processes_; } + public long DecisionKey { + get { return decisionKey_; } + set { + decisionKey_ = value; + } + } + + /// Field number for the "decisionId" field. + public const int DecisionIdFieldNumber = 2; + private string decisionId_ = ""; + /// + /// the ID of the decision to be evaluated + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DecisionId { + get { return decisionId_; } + set { + decisionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "variables" field. + public const int VariablesFieldNumber = 3; + private string variables_ = ""; + /// + /// JSON document that will instantiate the variables for the decision to be + /// evaluated; 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"); + } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DeployProcessRequest); + return Equals(other as EvaluateDecisionRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeployProcessRequest other) { + public bool Equals(EvaluateDecisionRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!processes_.Equals(other.processes_)) return false; + if (DecisionKey != other.DecisionKey) return false; + if (DecisionId != other.DecisionId) return false; + if (Variables != other.Variables) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3743,7 +3826,9 @@ public bool Equals(DeployProcessRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= processes_.GetHashCode(); + if (DecisionKey != 0L) hash ^= DecisionKey.GetHashCode(); + if (DecisionId.Length != 0) hash ^= DecisionId.GetHashCode(); + if (Variables.Length != 0) hash ^= Variables.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3762,7 +3847,18 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - processes_.WriteTo(output, _repeated_processes_codec); + if (DecisionKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(DecisionKey); + } + if (DecisionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DecisionId); + } + if (Variables.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Variables); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -3773,7 +3869,18 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - processes_.WriteTo(ref output, _repeated_processes_codec); + if (DecisionKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(DecisionKey); + } + if (DecisionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DecisionId); + } + if (Variables.Length != 0) { + output.WriteRawTag(26); + output.WriteString(Variables); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -3784,7 +3891,15 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += processes_.CalculateSize(_repeated_processes_codec); + if (DecisionKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DecisionKey); + } + if (DecisionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DecisionId); + } + if (Variables.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Variables); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -3793,11 +3908,19 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeployProcessRequest other) { + public void MergeFrom(EvaluateDecisionRequest other) { if (other == null) { return; } - processes_.Add(other.processes_); + if (other.DecisionKey != 0L) { + DecisionKey = other.DecisionKey; + } + if (other.DecisionId.Length != 0) { + DecisionId = other.DecisionId; + } + if (other.Variables.Length != 0) { + Variables = other.Variables; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -3813,8 +3936,16 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - processes_.AddEntriesFrom(input, _repeated_processes_codec); + case 8: { + DecisionKey = input.ReadInt64(); + break; + } + case 18: { + DecisionId = input.ReadString(); + break; + } + case 26: { + Variables = input.ReadString(); break; } } @@ -3832,8 +3963,16 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - processes_.AddEntriesFrom(ref input, _repeated_processes_codec); + case 8: { + DecisionKey = input.ReadInt64(); + break; + } + case 18: { + DecisionId = input.ReadString(); + break; + } + case 26: { + Variables = input.ReadString(); break; } } @@ -3843,17 +3982,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - [global::System.ObsoleteAttribute] - public sealed partial class ProcessRequestObject : pb::IMessage + public sealed partial class EvaluateDecisionResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProcessRequestObject()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EvaluateDecisionResponse()); 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)] @@ -3869,7 +4007,7 @@ public sealed partial class ProcessRequestObject : pb::IMessageField number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; + /// Field number for the "decisionKey" field. + public const int DecisionKeyFieldNumber = 1; + private long decisionKey_; /// - /// the resource basename, e.g. myProcess.bpmn + /// the unique key identifying the decision which was evaluated (e.g. returned + /// from a decision in the DeployResourceResponse message) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } + public long DecisionKey { + get { return decisionKey_; } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + decisionKey_ = value; } } - /// Field number for the "definition" field. - public const int DefinitionFieldNumber = 2; - private pb::ByteString definition_ = pb::ByteString.Empty; + /// Field number for the "decisionId" field. + public const int DecisionIdFieldNumber = 2; + private string decisionId_ = ""; /// - /// the process definition as a UTF8-encoded string + /// the ID of the decision which was evaluated /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Definition { - get { return definition_; } + public string DecisionId { + get { return decisionId_; } set { - definition_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + decisionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "decisionName" field. + public const int DecisionNameFieldNumber = 3; + private string decisionName_ = ""; + /// + /// the name of the decision which was evaluated + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DecisionName { + get { return decisionName_; } + set { + decisionName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "decisionVersion" field. + public const int DecisionVersionFieldNumber = 4; + private int decisionVersion_; + /// + /// the version of the decision which was evaluated + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DecisionVersion { + get { return decisionVersion_; } + set { + decisionVersion_ = value; + } + } + + /// Field number for the "decisionRequirementsId" field. + public const int DecisionRequirementsIdFieldNumber = 5; + private string decisionRequirementsId_ = ""; + /// + /// the ID of the decision requirements graph that the decision which was + /// evaluated is part of. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DecisionRequirementsId { + get { return decisionRequirementsId_; } + set { + decisionRequirementsId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "decisionRequirementsKey" field. + public const int DecisionRequirementsKeyFieldNumber = 6; + private long decisionRequirementsKey_; + /// + /// the unique key identifying the decision requirements graph that the + /// decision which was evaluated is part of. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long DecisionRequirementsKey { + get { return decisionRequirementsKey_; } + set { + decisionRequirementsKey_ = value; + } + } + + /// Field number for the "decisionOutput" field. + public const int DecisionOutputFieldNumber = 7; + private string decisionOutput_ = ""; + /// + /// JSON document that will instantiate the result of the decision which was + /// evaluated; it will be a JSON object, as the result output will be mapped + /// in a key-value fashion, e.g. { "a": 1 }. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DecisionOutput { + get { return decisionOutput_; } + set { + decisionOutput_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "evaluatedDecisions" field. + public const int EvaluatedDecisionsFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_evaluatedDecisions_codec + = pb::FieldCodec.ForMessage(66, global::GatewayProtocol.EvaluatedDecision.Parser); + private readonly pbc::RepeatedField evaluatedDecisions_ = new pbc::RepeatedField(); + /// + /// a list of decisions that were evaluated within the requested decision evaluation + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EvaluatedDecisions { + get { return evaluatedDecisions_; } + } + + /// Field number for the "failedDecisionId" field. + public const int FailedDecisionIdFieldNumber = 9; + private string failedDecisionId_ = ""; + /// + /// an optional string indicating the ID of the decision which + /// failed during evaluation + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FailedDecisionId { + get { return failedDecisionId_; } + set { + failedDecisionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "failureMessage" field. + public const int FailureMessageFieldNumber = 10; + private string failureMessage_ = ""; + /// + /// an optional message describing why the decision which was evaluated failed + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string FailureMessage { + get { return failureMessage_; } + set { + failureMessage_ = 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 ProcessRequestObject); + return Equals(other as EvaluateDecisionResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProcessRequestObject other) { + public bool Equals(EvaluateDecisionResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Name != other.Name) return false; - if (Definition != other.Definition) return false; + if (DecisionKey != other.DecisionKey) return false; + if (DecisionId != other.DecisionId) return false; + if (DecisionName != other.DecisionName) return false; + if (DecisionVersion != other.DecisionVersion) return false; + if (DecisionRequirementsId != other.DecisionRequirementsId) return false; + if (DecisionRequirementsKey != other.DecisionRequirementsKey) return false; + if (DecisionOutput != other.DecisionOutput) return false; + if(!evaluatedDecisions_.Equals(other.evaluatedDecisions_)) return false; + if (FailedDecisionId != other.FailedDecisionId) return false; + if (FailureMessage != other.FailureMessage) return false; return Equals(_unknownFields, other._unknownFields); } @@ -3943,8 +4222,16 @@ public bool Equals(ProcessRequestObject other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Definition.Length != 0) hash ^= Definition.GetHashCode(); + if (DecisionKey != 0L) hash ^= DecisionKey.GetHashCode(); + if (DecisionId.Length != 0) hash ^= DecisionId.GetHashCode(); + if (DecisionName.Length != 0) hash ^= DecisionName.GetHashCode(); + if (DecisionVersion != 0) hash ^= DecisionVersion.GetHashCode(); + if (DecisionRequirementsId.Length != 0) hash ^= DecisionRequirementsId.GetHashCode(); + if (DecisionRequirementsKey != 0L) hash ^= DecisionRequirementsKey.GetHashCode(); + if (DecisionOutput.Length != 0) hash ^= DecisionOutput.GetHashCode(); + hash ^= evaluatedDecisions_.GetHashCode(); + if (FailedDecisionId.Length != 0) hash ^= FailedDecisionId.GetHashCode(); + if (FailureMessage.Length != 0) hash ^= FailureMessage.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -3963,13 +4250,42 @@ 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 (DecisionKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(DecisionKey); } - if (Definition.Length != 0) { + if (DecisionId.Length != 0) { output.WriteRawTag(18); - output.WriteBytes(Definition); + output.WriteString(DecisionId); + } + if (DecisionName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DecisionName); + } + if (DecisionVersion != 0) { + output.WriteRawTag(32); + output.WriteInt32(DecisionVersion); + } + if (DecisionRequirementsId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DecisionRequirementsId); + } + if (DecisionRequirementsKey != 0L) { + output.WriteRawTag(48); + output.WriteInt64(DecisionRequirementsKey); + } + if (DecisionOutput.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DecisionOutput); + } + evaluatedDecisions_.WriteTo(output, _repeated_evaluatedDecisions_codec); + if (FailedDecisionId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(FailedDecisionId); + } + if (FailureMessage.Length != 0) { + output.WriteRawTag(82); + output.WriteString(FailureMessage); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -3981,13 +4297,42 @@ 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) { - output.WriteRawTag(10); - output.WriteString(Name); + if (DecisionKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(DecisionKey); } - if (Definition.Length != 0) { + if (DecisionId.Length != 0) { output.WriteRawTag(18); - output.WriteBytes(Definition); + output.WriteString(DecisionId); + } + if (DecisionName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DecisionName); + } + if (DecisionVersion != 0) { + output.WriteRawTag(32); + output.WriteInt32(DecisionVersion); + } + if (DecisionRequirementsId.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DecisionRequirementsId); + } + if (DecisionRequirementsKey != 0L) { + output.WriteRawTag(48); + output.WriteInt64(DecisionRequirementsKey); + } + if (DecisionOutput.Length != 0) { + output.WriteRawTag(58); + output.WriteString(DecisionOutput); + } + evaluatedDecisions_.WriteTo(ref output, _repeated_evaluatedDecisions_codec); + if (FailedDecisionId.Length != 0) { + output.WriteRawTag(74); + output.WriteString(FailedDecisionId); + } + if (FailureMessage.Length != 0) { + output.WriteRawTag(82); + output.WriteString(FailureMessage); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -3999,11 +4344,33 @@ 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 (DecisionKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DecisionKey); } - if (Definition.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Definition); + if (DecisionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DecisionId); + } + if (DecisionName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DecisionName); + } + if (DecisionVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DecisionVersion); + } + if (DecisionRequirementsId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DecisionRequirementsId); + } + if (DecisionRequirementsKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DecisionRequirementsKey); + } + if (DecisionOutput.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DecisionOutput); + } + size += evaluatedDecisions_.CalculateSize(_repeated_evaluatedDecisions_codec); + if (FailedDecisionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FailedDecisionId); + } + if (FailureMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(FailureMessage); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -4013,15 +4380,37 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProcessRequestObject other) { + public void MergeFrom(EvaluateDecisionResponse other) { if (other == null) { return; } - if (other.Name.Length != 0) { - Name = other.Name; + if (other.DecisionKey != 0L) { + DecisionKey = other.DecisionKey; } - if (other.Definition.Length != 0) { - Definition = other.Definition; + if (other.DecisionId.Length != 0) { + DecisionId = other.DecisionId; + } + if (other.DecisionName.Length != 0) { + DecisionName = other.DecisionName; + } + if (other.DecisionVersion != 0) { + DecisionVersion = other.DecisionVersion; + } + if (other.DecisionRequirementsId.Length != 0) { + DecisionRequirementsId = other.DecisionRequirementsId; + } + if (other.DecisionRequirementsKey != 0L) { + DecisionRequirementsKey = other.DecisionRequirementsKey; + } + if (other.DecisionOutput.Length != 0) { + DecisionOutput = other.DecisionOutput; + } + evaluatedDecisions_.Add(other.evaluatedDecisions_); + if (other.FailedDecisionId.Length != 0) { + FailedDecisionId = other.FailedDecisionId; + } + if (other.FailureMessage.Length != 0) { + FailureMessage = other.FailureMessage; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4038,12 +4427,44 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - Name = input.ReadString(); + case 8: { + DecisionKey = input.ReadInt64(); break; } case 18: { - Definition = input.ReadBytes(); + DecisionId = input.ReadString(); + break; + } + case 26: { + DecisionName = input.ReadString(); + break; + } + case 32: { + DecisionVersion = input.ReadInt32(); + break; + } + case 42: { + DecisionRequirementsId = input.ReadString(); + break; + } + case 48: { + DecisionRequirementsKey = input.ReadInt64(); + break; + } + case 58: { + DecisionOutput = input.ReadString(); + break; + } + case 66: { + evaluatedDecisions_.AddEntriesFrom(input, _repeated_evaluatedDecisions_codec); + break; + } + case 74: { + FailedDecisionId = input.ReadString(); + break; + } + case 82: { + FailureMessage = input.ReadString(); break; } } @@ -4061,12 +4482,44 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - Name = input.ReadString(); + case 8: { + DecisionKey = input.ReadInt64(); break; } case 18: { - Definition = input.ReadBytes(); + DecisionId = input.ReadString(); + break; + } + case 26: { + DecisionName = input.ReadString(); + break; + } + case 32: { + DecisionVersion = input.ReadInt32(); + break; + } + case 42: { + DecisionRequirementsId = input.ReadString(); + break; + } + case 48: { + DecisionRequirementsKey = input.ReadInt64(); + break; + } + case 58: { + DecisionOutput = input.ReadString(); + break; + } + case 66: { + evaluatedDecisions_.AddEntriesFrom(ref input, _repeated_evaluatedDecisions_codec); + break; + } + case 74: { + FailedDecisionId = input.ReadString(); + break; + } + case 82: { + FailureMessage = input.ReadString(); break; } } @@ -4076,17 +4529,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - [global::System.ObsoleteAttribute] - public sealed partial class DeployProcessResponse : pb::IMessage + public sealed partial class EvaluatedDecision : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeployProcessResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EvaluatedDecision()); 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)] @@ -4102,7 +4554,7 @@ public sealed partial class DeployProcessResponse : pb::IMessageField number for the "key" field. - public const int KeyFieldNumber = 1; - private long key_; + /// Field number for the "decisionKey" field. + public const int DecisionKeyFieldNumber = 1; + private long decisionKey_; /// - /// the unique key identifying the deployment + /// the unique key identifying the decision which was evaluated (e.g. returned + /// from a decision in the DeployResourceResponse message) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Key { - get { return key_; } + public long DecisionKey { + get { return decisionKey_; } set { - key_ = value; + decisionKey_ = value; } } - /// Field number for the "processes" field. - public const int ProcessesFieldNumber = 2; - private static readonly pb::FieldCodec _repeated_processes_codec - = pb::FieldCodec.ForMessage(18, global::GatewayProtocol.ProcessMetadata.Parser); - private readonly pbc::RepeatedField processes_ = new pbc::RepeatedField(); + /// Field number for the "decisionId" field. + public const int DecisionIdFieldNumber = 2; + private string decisionId_ = ""; /// - /// a list of deployed processes + /// the ID of the decision which was evaluated /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Processes { - get { return processes_; } + public string DecisionId { + get { return decisionId_; } + set { + decisionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "decisionName" field. + public const int DecisionNameFieldNumber = 3; + private string decisionName_ = ""; + /// + /// the name of the decision which was evaluated + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DecisionName { + get { return decisionName_; } + set { + decisionName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "decisionVersion" field. + public const int DecisionVersionFieldNumber = 4; + private int decisionVersion_; + /// + /// the version of the decision which was evaluated + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int DecisionVersion { + get { return decisionVersion_; } + set { + decisionVersion_ = value; + } + } + + /// Field number for the "decisionType" field. + public const int DecisionTypeFieldNumber = 5; + private string decisionType_ = ""; + /// + /// the type of the decision which was evaluated + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DecisionType { + get { return decisionType_; } + set { + decisionType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "decisionOutput" field. + public const int DecisionOutputFieldNumber = 6; + private string decisionOutput_ = ""; + /// + /// JSON document that will instantiate the result of the decision which was + /// evaluated; it will be a JSON object, as the result output will be mapped + /// in a key-value fashion, e.g. { "a": 1 }. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string DecisionOutput { + get { return decisionOutput_; } + set { + decisionOutput_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "matchedRules" field. + public const int MatchedRulesFieldNumber = 7; + private static readonly pb::FieldCodec _repeated_matchedRules_codec + = pb::FieldCodec.ForMessage(58, global::GatewayProtocol.MatchedDecisionRule.Parser); + private readonly pbc::RepeatedField matchedRules_ = new pbc::RepeatedField(); + /// + /// the decision rules that matched within this decision evaluation + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField MatchedRules { + get { return matchedRules_; } + } + + /// Field number for the "evaluatedInputs" field. + public const int EvaluatedInputsFieldNumber = 8; + private static readonly pb::FieldCodec _repeated_evaluatedInputs_codec + = pb::FieldCodec.ForMessage(66, global::GatewayProtocol.EvaluatedDecisionInput.Parser); + private readonly pbc::RepeatedField evaluatedInputs_ = new pbc::RepeatedField(); + /// + /// the decision inputs that were evaluated within this decision evaluation + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EvaluatedInputs { + get { return evaluatedInputs_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DeployProcessResponse); + return Equals(other as EvaluatedDecision); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeployProcessResponse other) { + public bool Equals(EvaluatedDecision other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Key != other.Key) return false; - if(!processes_.Equals(other.processes_)) return false; + if (DecisionKey != other.DecisionKey) return false; + if (DecisionId != other.DecisionId) return false; + if (DecisionName != other.DecisionName) return false; + if (DecisionVersion != other.DecisionVersion) return false; + if (DecisionType != other.DecisionType) return false; + if (DecisionOutput != other.DecisionOutput) return false; + if(!matchedRules_.Equals(other.matchedRules_)) return false; + if(!evaluatedInputs_.Equals(other.evaluatedInputs_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4175,8 +4731,14 @@ public bool Equals(DeployProcessResponse other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Key != 0L) hash ^= Key.GetHashCode(); - hash ^= processes_.GetHashCode(); + if (DecisionKey != 0L) hash ^= DecisionKey.GetHashCode(); + if (DecisionId.Length != 0) hash ^= DecisionId.GetHashCode(); + if (DecisionName.Length != 0) hash ^= DecisionName.GetHashCode(); + if (DecisionVersion != 0) hash ^= DecisionVersion.GetHashCode(); + if (DecisionType.Length != 0) hash ^= DecisionType.GetHashCode(); + if (DecisionOutput.Length != 0) hash ^= DecisionOutput.GetHashCode(); + hash ^= matchedRules_.GetHashCode(); + hash ^= evaluatedInputs_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4195,11 +4757,32 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Key != 0L) { + if (DecisionKey != 0L) { output.WriteRawTag(8); - output.WriteInt64(Key); + output.WriteInt64(DecisionKey); } - processes_.WriteTo(output, _repeated_processes_codec); + if (DecisionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DecisionId); + } + if (DecisionName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DecisionName); + } + if (DecisionVersion != 0) { + output.WriteRawTag(32); + output.WriteInt32(DecisionVersion); + } + if (DecisionType.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DecisionType); + } + if (DecisionOutput.Length != 0) { + output.WriteRawTag(50); + output.WriteString(DecisionOutput); + } + matchedRules_.WriteTo(output, _repeated_matchedRules_codec); + evaluatedInputs_.WriteTo(output, _repeated_evaluatedInputs_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4210,11 +4793,32 @@ 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) { + if (DecisionKey != 0L) { output.WriteRawTag(8); - output.WriteInt64(Key); + output.WriteInt64(DecisionKey); } - processes_.WriteTo(ref output, _repeated_processes_codec); + if (DecisionId.Length != 0) { + output.WriteRawTag(18); + output.WriteString(DecisionId); + } + if (DecisionName.Length != 0) { + output.WriteRawTag(26); + output.WriteString(DecisionName); + } + if (DecisionVersion != 0) { + output.WriteRawTag(32); + output.WriteInt32(DecisionVersion); + } + if (DecisionType.Length != 0) { + output.WriteRawTag(42); + output.WriteString(DecisionType); + } + if (DecisionOutput.Length != 0) { + output.WriteRawTag(50); + output.WriteString(DecisionOutput); + } + matchedRules_.WriteTo(ref output, _repeated_matchedRules_codec); + evaluatedInputs_.WriteTo(ref output, _repeated_evaluatedInputs_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4225,10 +4829,26 @@ 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 (DecisionKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(DecisionKey); } - size += processes_.CalculateSize(_repeated_processes_codec); + if (DecisionId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DecisionId); + } + if (DecisionName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DecisionName); + } + if (DecisionVersion != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(DecisionVersion); + } + if (DecisionType.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DecisionType); + } + if (DecisionOutput.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(DecisionOutput); + } + size += matchedRules_.CalculateSize(_repeated_matchedRules_codec); + size += evaluatedInputs_.CalculateSize(_repeated_evaluatedInputs_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4237,14 +4857,30 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeployProcessResponse other) { + public void MergeFrom(EvaluatedDecision other) { if (other == null) { return; } - if (other.Key != 0L) { - Key = other.Key; + if (other.DecisionKey != 0L) { + DecisionKey = other.DecisionKey; } - processes_.Add(other.processes_); + if (other.DecisionId.Length != 0) { + DecisionId = other.DecisionId; + } + if (other.DecisionName.Length != 0) { + DecisionName = other.DecisionName; + } + if (other.DecisionVersion != 0) { + DecisionVersion = other.DecisionVersion; + } + if (other.DecisionType.Length != 0) { + DecisionType = other.DecisionType; + } + if (other.DecisionOutput.Length != 0) { + DecisionOutput = other.DecisionOutput; + } + matchedRules_.Add(other.matchedRules_); + evaluatedInputs_.Add(other.evaluatedInputs_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4261,34 +4897,82 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - Key = input.ReadInt64(); + DecisionKey = input.ReadInt64(); break; } case 18: { - processes_.AddEntriesFrom(input, _repeated_processes_codec); + DecisionId = 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) { + case 26: { + DecisionName = input.ReadString(); + break; + } + case 32: { + DecisionVersion = input.ReadInt32(); + break; + } + case 42: { + DecisionType = input.ReadString(); + break; + } + case 50: { + DecisionOutput = input.ReadString(); + break; + } + case 58: { + matchedRules_.AddEntriesFrom(input, _repeated_matchedRules_codec); + break; + } + case 66: { + evaluatedInputs_.AddEntriesFrom(input, _repeated_evaluatedInputs_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - Key = input.ReadInt64(); + DecisionKey = input.ReadInt64(); break; } case 18: { - processes_.AddEntriesFrom(ref input, _repeated_processes_codec); + DecisionId = input.ReadString(); + break; + } + case 26: { + DecisionName = input.ReadString(); + break; + } + case 32: { + DecisionVersion = input.ReadInt32(); + break; + } + case 42: { + DecisionType = input.ReadString(); + break; + } + case 50: { + DecisionOutput = input.ReadString(); + break; + } + case 58: { + matchedRules_.AddEntriesFrom(ref input, _repeated_matchedRules_codec); + break; + } + case 66: { + evaluatedInputs_.AddEntriesFrom(ref input, _repeated_evaluatedInputs_codec); break; } } @@ -4298,16 +4982,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DeployResourceRequest : pb::IMessage + public sealed partial class EvaluatedDecisionInput : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeployResourceRequest()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EvaluatedDecisionInput()); 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)] @@ -4323,7 +5007,7 @@ public sealed partial class DeployResourceRequest : pb::IMessageField 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(); + /// Field number for the "inputId" field. + public const int InputIdFieldNumber = 1; + private string inputId_ = ""; /// - /// list of resources to deploy + /// the id of the evaluated decision input /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Resources { - get { return resources_; } + public string InputId { + get { return inputId_; } + set { + inputId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "inputName" field. + public const int InputNameFieldNumber = 2; + private string inputName_ = ""; + /// + /// the name of the evaluated decision input + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string InputName { + get { return inputName_; } + set { + inputName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "inputValue" field. + public const int InputValueFieldNumber = 3; + private string inputValue_ = ""; + /// + /// the value of the evaluated decision input + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string InputValue { + get { return inputValue_; } + set { + inputValue_ = 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 DeployResourceRequest); + return Equals(other as EvaluatedDecisionInput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeployResourceRequest other) { + public bool Equals(EvaluatedDecisionInput other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if(!resources_.Equals(other.resources_)) return false; + if (InputId != other.InputId) return false; + if (InputName != other.InputName) return false; + if (InputValue != other.InputValue) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4379,7 +5098,9 @@ public bool Equals(DeployResourceRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - hash ^= resources_.GetHashCode(); + if (InputId.Length != 0) hash ^= InputId.GetHashCode(); + if (InputName.Length != 0) hash ^= InputName.GetHashCode(); + if (InputValue.Length != 0) hash ^= InputValue.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4398,7 +5119,18 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - resources_.WriteTo(output, _repeated_resources_codec); + if (InputId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(InputId); + } + if (InputName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(InputName); + } + if (InputValue.Length != 0) { + output.WriteRawTag(26); + output.WriteString(InputValue); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4409,7 +5141,18 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - resources_.WriteTo(ref output, _repeated_resources_codec); + if (InputId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(InputId); + } + if (InputName.Length != 0) { + output.WriteRawTag(18); + output.WriteString(InputName); + } + if (InputValue.Length != 0) { + output.WriteRawTag(26); + output.WriteString(InputValue); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4420,7 +5163,15 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - size += resources_.CalculateSize(_repeated_resources_codec); + if (InputId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InputId); + } + if (InputName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InputName); + } + if (InputValue.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(InputValue); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4429,11 +5180,19 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeployResourceRequest other) { + public void MergeFrom(EvaluatedDecisionInput other) { if (other == null) { return; } - resources_.Add(other.resources_); + if (other.InputId.Length != 0) { + InputId = other.InputId; + } + if (other.InputName.Length != 0) { + InputName = other.InputName; + } + if (other.InputValue.Length != 0) { + InputValue = other.InputValue; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4450,7 +5209,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - resources_.AddEntriesFrom(input, _repeated_resources_codec); + InputId = input.ReadString(); + break; + } + case 18: { + InputName = input.ReadString(); + break; + } + case 26: { + InputValue = input.ReadString(); break; } } @@ -4469,7 +5236,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - resources_.AddEntriesFrom(ref input, _repeated_resources_codec); + InputId = input.ReadString(); + break; + } + case 18: { + InputName = input.ReadString(); + break; + } + case 26: { + InputValue = input.ReadString(); break; } } @@ -4479,16 +5254,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class Resource : pb::IMessage + public sealed partial class EvaluatedDecisionOutput : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Resource()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EvaluatedDecisionOutput()); 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)] @@ -4504,7 +5279,7 @@ public sealed partial class Resource : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Resource() { + public EvaluatedDecisionOutput() { OnConstruction(); } @@ -4512,65 +5287,82 @@ public Resource() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Resource(Resource other) : this() { - name_ = other.name_; - content_ = other.content_; + public EvaluatedDecisionOutput(EvaluatedDecisionOutput other) : this() { + outputId_ = other.outputId_; + outputName_ = other.outputName_; + outputValue_ = other.outputValue_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Resource Clone() { - return new Resource(this); + public EvaluatedDecisionOutput Clone() { + return new EvaluatedDecisionOutput(this); } - /// Field number for the "name" field. - public const int NameFieldNumber = 1; - private string name_ = ""; + /// Field number for the "outputId" field. + public const int OutputIdFieldNumber = 1; + private string outputId_ = ""; /// - /// the resource name, e.g. myProcess.bpmn or myDecision.dmn + /// the id of the evaluated decision output /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Name { - get { return name_; } + public string OutputId { + get { return outputId_; } set { - name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + outputId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "content" field. - public const int ContentFieldNumber = 2; - private pb::ByteString content_ = pb::ByteString.Empty; + /// Field number for the "outputName" field. + public const int OutputNameFieldNumber = 2; + private string outputName_ = ""; /// - /// the file content as a UTF8-encoded string + /// the name of the evaluated decision output /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pb::ByteString Content { - get { return content_; } + public string OutputName { + get { return outputName_; } set { - content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + outputName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } + + /// Field number for the "outputValue" field. + public const int OutputValueFieldNumber = 3; + private string outputValue_ = ""; + /// + /// the value of the evaluated decision output + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string OutputValue { + get { return outputValue_; } + set { + outputValue_ = 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 Resource); + return Equals(other as EvaluatedDecisionOutput); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Resource other) { + public bool Equals(EvaluatedDecisionOutput other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Name != other.Name) return false; - if (Content != other.Content) return false; + if (OutputId != other.OutputId) return false; + if (OutputName != other.OutputName) return false; + if (OutputValue != other.OutputValue) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4578,8 +5370,9 @@ public bool Equals(Resource other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (Name.Length != 0) hash ^= Name.GetHashCode(); - if (Content.Length != 0) hash ^= Content.GetHashCode(); + if (OutputId.Length != 0) hash ^= OutputId.GetHashCode(); + if (OutputName.Length != 0) hash ^= OutputName.GetHashCode(); + if (OutputValue.Length != 0) hash ^= OutputValue.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4598,13 +5391,17 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (Name.Length != 0) { + if (OutputId.Length != 0) { output.WriteRawTag(10); - output.WriteString(Name); + output.WriteString(OutputId); } - if (Content.Length != 0) { + if (OutputName.Length != 0) { output.WriteRawTag(18); - output.WriteBytes(Content); + output.WriteString(OutputName); + } + if (OutputValue.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OutputValue); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -4616,13 +5413,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 (Name.Length != 0) { + if (OutputId.Length != 0) { output.WriteRawTag(10); - output.WriteString(Name); + output.WriteString(OutputId); } - if (Content.Length != 0) { + if (OutputName.Length != 0) { output.WriteRawTag(18); - output.WriteBytes(Content); + output.WriteString(OutputName); + } + if (OutputValue.Length != 0) { + output.WriteRawTag(26); + output.WriteString(OutputValue); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -4634,11 +5435,14 @@ 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 (OutputId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputId); } - if (Content.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeBytesSize(Content); + if (OutputName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputName); + } + if (OutputValue.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputValue); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -4648,15 +5452,18 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Resource other) { + public void MergeFrom(EvaluatedDecisionOutput other) { if (other == null) { return; } - if (other.Name.Length != 0) { - Name = other.Name; + if (other.OutputId.Length != 0) { + OutputId = other.OutputId; } - if (other.Content.Length != 0) { - Content = other.Content; + if (other.OutputName.Length != 0) { + OutputName = other.OutputName; + } + if (other.OutputValue.Length != 0) { + OutputValue = other.OutputValue; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4674,11 +5481,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { - Name = input.ReadString(); + OutputId = input.ReadString(); break; } case 18: { - Content = input.ReadBytes(); + OutputName = input.ReadString(); + break; + } + case 26: { + OutputValue = input.ReadString(); break; } } @@ -4697,11 +5508,15 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { - Name = input.ReadString(); + OutputId = input.ReadString(); break; } case 18: { - Content = input.ReadBytes(); + OutputName = input.ReadString(); + break; + } + case 26: { + OutputValue = input.ReadString(); break; } } @@ -4711,16 +5526,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DeployResourceResponse : pb::IMessage + public sealed partial class MatchedDecisionRule : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeployResourceResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MatchedDecisionRule()); 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)] @@ -4736,7 +5551,7 @@ public sealed partial class DeployResourceResponse : pb::IMessageField number for the "key" field. - public const int KeyFieldNumber = 1; - private long key_; + /// Field number for the "ruleId" field. + public const int RuleIdFieldNumber = 1; + private string ruleId_ = ""; /// - /// the unique key identifying the deployment + /// the id of the matched rule /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Key { - get { return key_; } + public string RuleId { + get { return ruleId_; } set { - key_ = value; + ruleId_ = pb::ProtoPreconditions.CheckNotNull(value, "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(); + /// Field number for the "ruleIndex" field. + public const int RuleIndexFieldNumber = 2; + private int ruleIndex_; /// - /// a list of deployed resources, e.g. processes + /// the index of the matched rule /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField Deployments { - get { return deployments_; } + public int RuleIndex { + get { return ruleIndex_; } + set { + ruleIndex_ = value; + } + } + + /// Field number for the "evaluatedOutputs" field. + public const int EvaluatedOutputsFieldNumber = 3; + private static readonly pb::FieldCodec _repeated_evaluatedOutputs_codec + = pb::FieldCodec.ForMessage(26, global::GatewayProtocol.EvaluatedDecisionOutput.Parser); + private readonly pbc::RepeatedField evaluatedOutputs_ = new pbc::RepeatedField(); + /// + /// the evaluated decision outputs + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public pbc::RepeatedField EvaluatedOutputs { + get { return evaluatedOutputs_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as DeployResourceResponse); + return Equals(other as MatchedDecisionRule); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DeployResourceResponse other) { + public bool Equals(MatchedDecisionRule 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; + if (RuleId != other.RuleId) return false; + if (RuleIndex != other.RuleIndex) return false; + if(!evaluatedOutputs_.Equals(other.evaluatedOutputs_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -4809,8 +5641,9 @@ public bool Equals(DeployResourceResponse 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 (RuleId.Length != 0) hash ^= RuleId.GetHashCode(); + if (RuleIndex != 0) hash ^= RuleIndex.GetHashCode(); + hash ^= evaluatedOutputs_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -4829,11 +5662,15 @@ 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 (RuleId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RuleId); } - deployments_.WriteTo(output, _repeated_deployments_codec); + if (RuleIndex != 0) { + output.WriteRawTag(16); + output.WriteInt32(RuleIndex); + } + evaluatedOutputs_.WriteTo(output, _repeated_evaluatedOutputs_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -4844,11 +5681,15 @@ 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 (RuleId.Length != 0) { + output.WriteRawTag(10); + output.WriteString(RuleId); } - deployments_.WriteTo(ref output, _repeated_deployments_codec); + if (RuleIndex != 0) { + output.WriteRawTag(16); + output.WriteInt32(RuleIndex); + } + evaluatedOutputs_.WriteTo(ref output, _repeated_evaluatedOutputs_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -4859,10 +5700,13 @@ 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 (RuleId.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(RuleId); } - size += deployments_.CalculateSize(_repeated_deployments_codec); + if (RuleIndex != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(RuleIndex); + } + size += evaluatedOutputs_.CalculateSize(_repeated_evaluatedOutputs_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -4871,14 +5715,17 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DeployResourceResponse other) { + public void MergeFrom(MatchedDecisionRule other) { if (other == null) { return; } - if (other.Key != 0L) { - Key = other.Key; + if (other.RuleId.Length != 0) { + RuleId = other.RuleId; } - deployments_.Add(other.deployments_); + if (other.RuleIndex != 0) { + RuleIndex = other.RuleIndex; + } + evaluatedOutputs_.Add(other.evaluatedOutputs_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -4894,12 +5741,16 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - Key = input.ReadInt64(); + case 10: { + RuleId = input.ReadString(); break; } - case 18: { - deployments_.AddEntriesFrom(input, _repeated_deployments_codec); + case 16: { + RuleIndex = input.ReadInt32(); + break; + } + case 26: { + evaluatedOutputs_.AddEntriesFrom(input, _repeated_evaluatedOutputs_codec); break; } } @@ -4917,12 +5768,16 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - Key = input.ReadInt64(); + case 10: { + RuleId = input.ReadString(); break; } - case 18: { - deployments_.AddEntriesFrom(ref input, _repeated_deployments_codec); + case 16: { + RuleIndex = input.ReadInt32(); + break; + } + case 26: { + evaluatedOutputs_.AddEntriesFrom(ref input, _repeated_evaluatedOutputs_codec); break; } } @@ -4932,16 +5787,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class Deployment : pb::IMessage + [global::System.ObsoleteAttribute] + public sealed partial class DeployProcessRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Deployment()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeployProcessRequest()); 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)] @@ -4957,7 +5813,7 @@ public sealed partial class Deployment : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Deployment() { + public DeployProcessRequest() { OnConstruction(); } @@ -4965,114 +5821,48 @@ public Deployment() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - 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; - } - + public DeployProcessRequest(DeployProcessRequest other) : this() { + processes_ = other.processes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Deployment Clone() { - return new Deployment(this); - } - - /// Field number for the "process" field. - public const int ProcessFieldNumber = 1; - /// - /// metadata of a deployed process - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::GatewayProtocol.ProcessMetadata Process { - get { return metadataCase_ == MetadataOneofCase.Process ? (global::GatewayProtocol.ProcessMetadata) metadata_ : null; } - set { - metadata_ = value; - metadataCase_ = value == null ? MetadataOneofCase.None : MetadataOneofCase.Process; - } - } - - /// Field number for the "decision" field. - public const int DecisionFieldNumber = 2; - /// - /// metadata of a deployed decision - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::GatewayProtocol.DecisionMetadata Decision { - get { return metadataCase_ == MetadataOneofCase.Decision ? (global::GatewayProtocol.DecisionMetadata) metadata_ : null; } - set { - metadata_ = value; - metadataCase_ = value == null ? MetadataOneofCase.None : MetadataOneofCase.Decision; - } + public DeployProcessRequest Clone() { + return new DeployProcessRequest(this); } - /// Field number for the "decisionRequirements" field. - public const int DecisionRequirementsFieldNumber = 3; + /// Field number for the "processes" field. + public const int ProcessesFieldNumber = 1; + private static readonly pb::FieldCodec _repeated_processes_codec + = pb::FieldCodec.ForMessage(10, global::GatewayProtocol.ProcessRequestObject.Parser); + private readonly pbc::RepeatedField processes_ = new pbc::RepeatedField(); /// - /// metadata of a deployed decision requirements + /// List of process resources to deploy /// + [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::GatewayProtocol.DecisionRequirementsMetadata DecisionRequirements { - get { return metadataCase_ == MetadataOneofCase.DecisionRequirements ? (global::GatewayProtocol.DecisionRequirementsMetadata) metadata_ : null; } - set { - 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; + public pbc::RepeatedField Processes { + get { return processes_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { - return Equals(other as Deployment); + return Equals(other as DeployProcessRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Deployment other) { + public bool Equals(DeployProcessRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - 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; + if(!processes_.Equals(other.processes_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5080,10 +5870,7 @@ public bool Equals(Deployment other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (metadataCase_ == MetadataOneofCase.Process) hash ^= Process.GetHashCode(); - if (metadataCase_ == MetadataOneofCase.Decision) hash ^= Decision.GetHashCode(); - if (metadataCase_ == MetadataOneofCase.DecisionRequirements) hash ^= DecisionRequirements.GetHashCode(); - hash ^= (int) metadataCase_; + hash ^= processes_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5102,18 +5889,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (metadataCase_ == MetadataOneofCase.Process) { - output.WriteRawTag(10); - output.WriteMessage(Process); - } - if (metadataCase_ == MetadataOneofCase.Decision) { - output.WriteRawTag(18); - output.WriteMessage(Decision); - } - if (metadataCase_ == MetadataOneofCase.DecisionRequirements) { - output.WriteRawTag(26); - output.WriteMessage(DecisionRequirements); - } + processes_.WriteTo(output, _repeated_processes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -5124,18 +5900,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 (metadataCase_ == MetadataOneofCase.Process) { - output.WriteRawTag(10); - output.WriteMessage(Process); - } - if (metadataCase_ == MetadataOneofCase.Decision) { - output.WriteRawTag(18); - output.WriteMessage(Decision); - } - if (metadataCase_ == MetadataOneofCase.DecisionRequirements) { - output.WriteRawTag(26); - output.WriteMessage(DecisionRequirements); - } + processes_.WriteTo(ref output, _repeated_processes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5146,15 +5911,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (metadataCase_ == MetadataOneofCase.Process) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Process); - } - if (metadataCase_ == MetadataOneofCase.Decision) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(Decision); - } - if (metadataCase_ == MetadataOneofCase.DecisionRequirements) { - size += 1 + pb::CodedOutputStream.ComputeMessageSize(DecisionRequirements); - } + size += processes_.CalculateSize(_repeated_processes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -5163,31 +5920,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Deployment other) { + public void MergeFrom(DeployProcessRequest other) { if (other == null) { return; } - 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; - } - + processes_.Add(other.processes_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5204,30 +5941,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; 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: { - global::GatewayProtocol.DecisionMetadata subBuilder = new global::GatewayProtocol.DecisionMetadata(); - if (metadataCase_ == MetadataOneofCase.Decision) { - subBuilder.MergeFrom(Decision); - } - input.ReadMessage(subBuilder); - Decision = subBuilder; - break; - } - case 26: { - global::GatewayProtocol.DecisionRequirementsMetadata subBuilder = new global::GatewayProtocol.DecisionRequirementsMetadata(); - if (metadataCase_ == MetadataOneofCase.DecisionRequirements) { - subBuilder.MergeFrom(DecisionRequirements); - } - input.ReadMessage(subBuilder); - DecisionRequirements = subBuilder; + processes_.AddEntriesFrom(input, _repeated_processes_codec); break; } } @@ -5246,30 +5960,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; 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: { - global::GatewayProtocol.DecisionMetadata subBuilder = new global::GatewayProtocol.DecisionMetadata(); - if (metadataCase_ == MetadataOneofCase.Decision) { - subBuilder.MergeFrom(Decision); - } - input.ReadMessage(subBuilder); - Decision = subBuilder; - break; - } - case 26: { - global::GatewayProtocol.DecisionRequirementsMetadata subBuilder = new global::GatewayProtocol.DecisionRequirementsMetadata(); - if (metadataCase_ == MetadataOneofCase.DecisionRequirements) { - subBuilder.MergeFrom(DecisionRequirements); - } - input.ReadMessage(subBuilder); - DecisionRequirements = subBuilder; + processes_.AddEntriesFrom(ref input, _repeated_processes_codec); break; } } @@ -5279,16 +5970,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ProcessMetadata : pb::IMessage + [global::System.ObsoleteAttribute] + public sealed partial class ProcessRequestObject : 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 ProcessRequestObject()); 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)] @@ -5304,7 +5996,7 @@ public sealed partial class ProcessMetadata : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProcessMetadata() { + public ProcessRequestObject() { OnConstruction(); } @@ -5312,101 +6004,65 @@ 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 ProcessRequestObject(ProcessRequestObject other) : this() { + name_ = other.name_; + definition_ = other.definition_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ProcessMetadata Clone() { - return new ProcessMetadata(this); - } - - /// Field 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 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 int Version { - get { return version_; } - set { - version_ = value; - } + public ProcessRequestObject Clone() { + return new ProcessRequestObject(this); } - /// Field number for the "processDefinitionKey" field. - public const int ProcessDefinitionKeyFieldNumber = 3; - private long processDefinitionKey_; + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; /// - /// the assigned key, which acts as a unique identifier for this process + /// the resource basename, e.g. myProcess.bpmn /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ProcessDefinitionKey { - get { return processDefinitionKey_; } + public string Name { + get { return name_; } set { - processDefinitionKey_ = value; + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "resourceName" field. - public const int ResourceNameFieldNumber = 4; - private string resourceName_ = ""; + /// Field number for the "definition" field. + public const int DefinitionFieldNumber = 2; + private pb::ByteString definition_ = pb::ByteString.Empty; /// - /// the resource name (see: ProcessRequestObject.name) from which this process was - /// parsed + /// the process definition as a UTF8-encoded string /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string ResourceName { - get { return resourceName_; } + public pb::ByteString Definition { + get { return definition_; } set { - resourceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + definition_ = 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); + return Equals(other as ProcessRequestObject); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ProcessMetadata other) { + public bool Equals(ProcessRequestObject 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; + if (Name != other.Name) return false; + if (Definition != other.Definition) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5414,10 +6070,8 @@ public bool Equals(ProcessMetadata other) { [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 (Name.Length != 0) hash ^= Name.GetHashCode(); + if (Definition.Length != 0) hash ^= Definition.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5436,21 +6090,13 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (BpmnProcessId.Length != 0) { + if (Name.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); + output.WriteString(Name); } - if (ResourceName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ResourceName); + if (Definition.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Definition); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -5462,21 +6108,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 (BpmnProcessId.Length != 0) { + if (Name.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); + output.WriteString(Name); } - if (ResourceName.Length != 0) { - output.WriteRawTag(34); - output.WriteString(ResourceName); + if (Definition.Length != 0) { + output.WriteRawTag(18); + output.WriteBytes(Definition); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -5488,17 +6126,11 @@ 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (ResourceName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceName); + if (Definition.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeBytesSize(Definition); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -5508,21 +6140,15 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ProcessMetadata other) { + public void MergeFrom(ProcessRequestObject 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.Name.Length != 0) { + Name = other.Name; } - if (other.ResourceName.Length != 0) { - ResourceName = other.ResourceName; + if (other.Definition.Length != 0) { + Definition = other.Definition; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5540,19 +6166,11 @@ 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(); + Name = input.ReadString(); break; } - case 34: { - ResourceName = input.ReadString(); + case 18: { + Definition = input.ReadBytes(); break; } } @@ -5571,19 +6189,11 @@ 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(); + Name = input.ReadString(); break; } - case 34: { - ResourceName = input.ReadString(); + case 18: { + Definition = input.ReadBytes(); break; } } @@ -5593,16 +6203,17 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DecisionMetadata : pb::IMessage + [global::System.ObsoleteAttribute] + public sealed partial class DeployProcessResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DecisionMetadata()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeployProcessResponse()); 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)] @@ -5618,7 +6229,7 @@ public sealed partial class DecisionMetadata : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DecisionMetadata() { + public DeployProcessResponse() { OnConstruction(); } @@ -5626,137 +6237,64 @@ public DecisionMetadata() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DecisionMetadata(DecisionMetadata other) : this() { - dmnDecisionId_ = other.dmnDecisionId_; - dmnDecisionName_ = other.dmnDecisionName_; - version_ = other.version_; - decisionKey_ = other.decisionKey_; - dmnDecisionRequirementsId_ = other.dmnDecisionRequirementsId_; - decisionRequirementsKey_ = other.decisionRequirementsKey_; + public DeployProcessResponse(DeployProcessResponse other) : this() { + key_ = other.key_; + processes_ = other.processes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public DecisionMetadata Clone() { - return new DecisionMetadata(this); + public DeployProcessResponse Clone() { + return new DeployProcessResponse(this); } - /// Field number for the "dmnDecisionId" field. - public const int DmnDecisionIdFieldNumber = 1; - private string dmnDecisionId_ = ""; + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private long key_; /// - /// the dmn decision ID, as parsed during deployment; together with the - /// versions forms a unique identifier for a specific decision + /// the unique key identifying the deployment /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DmnDecisionId { - get { return dmnDecisionId_; } + public long Key { + get { return key_; } set { - dmnDecisionId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + key_ = value; } } - /// Field number for the "dmnDecisionName" field. - public const int DmnDecisionNameFieldNumber = 2; - private string dmnDecisionName_ = ""; + /// Field number for the "processes" field. + public const int ProcessesFieldNumber = 2; + private static readonly pb::FieldCodec _repeated_processes_codec + = pb::FieldCodec.ForMessage(18, global::GatewayProtocol.ProcessMetadata.Parser); + private readonly pbc::RepeatedField processes_ = new pbc::RepeatedField(); /// - /// the dmn name of the decision, as parsed during deployment + /// a list of deployed processes /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DmnDecisionName { - get { return dmnDecisionName_; } - set { - dmnDecisionName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public pbc::RepeatedField Processes { + get { return processes_; } } - /// Field number for the "version" field. - public const int VersionFieldNumber = 3; - private int version_; - /// - /// the assigned decision 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 DeployProcessResponse); } - /// Field number for the "decisionKey" field. - public const int DecisionKeyFieldNumber = 4; - private long decisionKey_; - /// - /// 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 long DecisionKey { - get { return decisionKey_; } - set { - decisionKey_ = value; - } - } - - /// Field number for the "dmnDecisionRequirementsId" field. - public const int DmnDecisionRequirementsIdFieldNumber = 5; - private string dmnDecisionRequirementsId_ = ""; - /// - /// 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 DmnDecisionRequirementsId { - get { return dmnDecisionRequirementsId_; } - set { - 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 DecisionMetadata); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DecisionMetadata other) { - if (ReferenceEquals(other, null)) { - return false; + public bool Equals(DeployProcessResponse other) { + if (ReferenceEquals(other, null)) { + return false; } if (ReferenceEquals(other, this)) { return true; } - 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; + if (Key != other.Key) return false; + if(!processes_.Equals(other.processes_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -5764,12 +6302,8 @@ public bool Equals(DecisionMetadata other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - 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 (Key != 0L) hash ^= Key.GetHashCode(); + hash ^= processes_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -5788,30 +6322,11 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (DmnDecisionId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DmnDecisionId); - } - if (DmnDecisionName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DmnDecisionName); - } - if (Version != 0) { - output.WriteRawTag(24); - output.WriteInt32(Version); - } - if (DecisionKey != 0L) { - output.WriteRawTag(32); - output.WriteInt64(DecisionKey); - } - if (DmnDecisionRequirementsId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DmnDecisionRequirementsId); - } - if (DecisionRequirementsKey != 0L) { - output.WriteRawTag(48); - output.WriteInt64(DecisionRequirementsKey); + if (Key != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Key); } + processes_.WriteTo(output, _repeated_processes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -5822,30 +6337,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 (DmnDecisionId.Length != 0) { - output.WriteRawTag(10); - output.WriteString(DmnDecisionId); - } - if (DmnDecisionName.Length != 0) { - output.WriteRawTag(18); - output.WriteString(DmnDecisionName); - } - if (Version != 0) { - output.WriteRawTag(24); - output.WriteInt32(Version); - } - if (DecisionKey != 0L) { - output.WriteRawTag(32); - output.WriteInt64(DecisionKey); - } - if (DmnDecisionRequirementsId.Length != 0) { - output.WriteRawTag(42); - output.WriteString(DmnDecisionRequirementsId); - } - if (DecisionRequirementsKey != 0L) { - output.WriteRawTag(48); - output.WriteInt64(DecisionRequirementsKey); + if (Key != 0L) { + output.WriteRawTag(8); + output.WriteInt64(Key); } + processes_.WriteTo(ref output, _repeated_processes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -5856,24 +6352,10 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (DmnDecisionId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DmnDecisionId); - } - if (DmnDecisionName.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DmnDecisionName); - } - if (Version != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Version); - } - if (DecisionKey != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(DecisionKey); - } - if (DmnDecisionRequirementsId.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(DmnDecisionRequirementsId); - } - if (DecisionRequirementsKey != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(DecisionRequirementsKey); + if (Key != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Key); } + size += processes_.CalculateSize(_repeated_processes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -5882,28 +6364,14 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DecisionMetadata other) { + public void MergeFrom(DeployProcessResponse other) { if (other == null) { return; } - if (other.DmnDecisionId.Length != 0) { - DmnDecisionId = other.DmnDecisionId; - } - if (other.DmnDecisionName.Length != 0) { - DmnDecisionName = other.DmnDecisionName; - } - if (other.Version != 0) { - Version = other.Version; - } - if (other.DecisionKey != 0L) { - DecisionKey = other.DecisionKey; - } - if (other.DmnDecisionRequirementsId.Length != 0) { - DmnDecisionRequirementsId = other.DmnDecisionRequirementsId; - } - if (other.DecisionRequirementsKey != 0L) { - DecisionRequirementsKey = other.DecisionRequirementsKey; + if (other.Key != 0L) { + Key = other.Key; } + processes_.Add(other.processes_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -5919,28 +6387,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 10: { - DmnDecisionId = input.ReadString(); + case 8: { + Key = input.ReadInt64(); break; } case 18: { - DmnDecisionName = input.ReadString(); - break; - } - case 24: { - Version = input.ReadInt32(); - break; - } - case 32: { - DecisionKey = input.ReadInt64(); - break; - } - case 42: { - DmnDecisionRequirementsId = input.ReadString(); - break; - } - case 48: { - DecisionRequirementsKey = input.ReadInt64(); + processes_.AddEntriesFrom(input, _repeated_processes_codec); break; } } @@ -5958,28 +6410,12 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 10: { - DmnDecisionId = input.ReadString(); + case 8: { + Key = input.ReadInt64(); break; } case 18: { - DmnDecisionName = input.ReadString(); - break; - } - case 24: { - Version = input.ReadInt32(); - break; - } - case 32: { - DecisionKey = input.ReadInt64(); - break; - } - case 42: { - DmnDecisionRequirementsId = input.ReadString(); - break; - } - case 48: { - DecisionRequirementsKey = input.ReadInt64(); + processes_.AddEntriesFrom(ref input, _repeated_processes_codec); break; } } @@ -5989,16 +6425,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class DecisionRequirementsMetadata : 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 DecisionRequirementsMetadata()); + 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)] @@ -6014,7 +6450,7 @@ public sealed partial class DecisionRequirementsMetadata : pb::IMessageField number for the "dmnDecisionRequirementsId" field. - public const int DmnDecisionRequirementsIdFieldNumber = 1; - private string dmnDecisionRequirementsId_ = ""; + /// 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 dmn decision requirements ID, as parsed during deployment; together - /// with the versions forms a unique identifier for a specific decision + /// list of resources to deploy /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string DmnDecisionRequirementsId { - get { return dmnDecisionRequirementsId_; } - set { - dmnDecisionRequirementsId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public pbc::RepeatedField Resources { + get { return resources_; } } - /// 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 DecisionRequirementsMetadata); + public override bool Equals(object other) { + return Equals(other as DeployResourceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(DecisionRequirementsMetadata other) { + public bool Equals(DeployResourceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - 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; + if(!resources_.Equals(other.resources_)) return false; return Equals(_unknownFields, other._unknownFields); } @@ -6142,11 +6506,7 @@ public bool Equals(DecisionRequirementsMetadata other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - 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(); + hash ^= resources_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -6165,26 +6525,7 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - 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); - } + resources_.WriteTo(output, _repeated_resources_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -6195,26 +6536,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 (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); - } + resources_.WriteTo(ref output, _repeated_resources_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -6225,21 +6547,7 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - 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); - } + size += resources_.CalculateSize(_repeated_resources_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -6248,25 +6556,11 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(DecisionRequirementsMetadata other) { + public void MergeFrom(DeployResourceRequest other) { if (other == null) { return; } - 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; - } + resources_.Add(other.resources_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6283,23 +6577,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; 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(); + resources_.AddEntriesFrom(input, _repeated_resources_codec); break; } } @@ -6318,23 +6596,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; 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(); + resources_.AddEntriesFrom(ref input, _repeated_resources_codec); break; } } @@ -6344,16 +6606,16 @@ 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)] @@ -6369,7 +6631,7 @@ public sealed partial class FailJobRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FailJobRequest() { + public Resource() { OnConstruction(); } @@ -6377,112 +6639,74 @@ 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); + public Resource Clone() { + return new Resource(this); } - /// Field number for the "jobKey" field. - public const int JobKeyFieldNumber = 1; - private long jobKey_; + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; /// - /// the unique job identifier, as obtained when activating the job + /// the resource name, e.g. myProcess.bpmn or myDecision.dmn /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long JobKey { - get { return jobKey_; } + public string Name { + get { return name_; } set { - jobKey_ = value; + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "retries" field. - public const int RetriesFieldNumber = 2; - private int retries_; + /// Field number for the "content" field. + public const int ContentFieldNumber = 2; + private pb::ByteString content_ = pb::ByteString.Empty; /// - /// the amount of retries the job should have left + /// the file content as a UTF8-encoded string /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Retries { - get { return retries_; } + public pb::ByteString Content { + get { return content_; } set { - retries_ = value; + content_ = pb::ProtoPreconditions.CheckNotNull(value, "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 string ErrorMessage { - get { return errorMessage_; } - set { - errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); - } + public override bool Equals(object other) { + return Equals(other as Resource); } - /// 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; + public bool Equals(Resource other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; } - } - - [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 (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); + if (Name != other.Name) return false; + if (Content != other.Content) 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 (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(); } @@ -6501,21 +6725,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); @@ -6527,21 +6743,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); @@ -6553,17 +6761,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(); @@ -6573,21 +6775,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.Retries != 0) { - Retries = other.Retries; - } - if (other.ErrorMessage.Length != 0) { - ErrorMessage = other.ErrorMessage; + if (other.Name.Length != 0) { + Name = other.Name; } - if (other.RetryBackOff != 0L) { - RetryBackOff = other.RetryBackOff; + if (other.Content.Length != 0) { + Content = other.Content; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -6604,20 +6800,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; } } @@ -6635,20 +6823,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; } } @@ -6658,16 +6838,16 @@ 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)] @@ -6683,7 +6863,7 @@ public sealed partial class FailJobResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public FailJobResponse() { + public DeployResourceResponse() { OnConstruction(); } @@ -6691,31 +6871,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); } @@ -6723,6 +6936,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(); } @@ -6741,6 +6956,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); } @@ -6751,6 +6971,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); } @@ -6761,6 +6986,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(); } @@ -6769,10 +6998,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); } @@ -6788,6 +7021,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 @@ -6803,6 +7044,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; + } } } } @@ -6810,16 +7059,16 @@ 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)] @@ -6835,7 +7084,7 @@ public sealed partial class ThrowErrorRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ThrowErrorRequest() { + public Deployment() { OnConstruction(); } @@ -6843,82 +7092,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); } @@ -6926,9 +7207,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(); } @@ -6947,17 +7229,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); @@ -6969,17 +7251,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); @@ -6991,14 +7273,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(); @@ -7008,19 +7290,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); } @@ -7036,16 +7330,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; } } @@ -7063,16 +7372,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; } } @@ -7082,16 +7406,16 @@ 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)] @@ -7107,7 +7431,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); } + /// 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 override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); + public long ProcessDefinitionKey { + get { return processDefinitionKey_; } + set { + processDefinitionKey_ = value; } - return hash; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + /// 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(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } @@ -7165,6 +7563,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); } @@ -7175,6 +7589,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); } @@ -7185,6 +7615,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(); } @@ -7193,10 +7635,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); } @@ -7212,6 +7666,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 @@ -7227,6 +7697,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; + } } } } @@ -7234,16 +7720,16 @@ 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)] @@ -7259,7 +7745,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 override bool Equals(object other) { - return Equals(other as PublishMessageRequest); - } - - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + public long DecisionRequirementsKey { + get { return decisionRequirementsKey_; } + set { + decisionRequirementsKey_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(PublishMessageRequest other) { + public override bool Equals(object other) { + return Equals(other as DecisionMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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); } @@ -7386,11 +7891,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(); } @@ -7409,25 +7915,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); @@ -7439,25 +7949,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); @@ -7469,20 +7983,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(); @@ -7492,24 +8009,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); } @@ -7527,23 +8047,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; } } @@ -7562,23 +8086,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; } } @@ -7588,16 +8116,16 @@ 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)] @@ -7613,7 +8141,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 override bool Equals(object other) { - return Equals(other as PublishMessageResponse); + 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 bool Equals(PublishMessageResponse other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; + public int Version { + get { return version_; } + set { + version_ = value; } - if (Key != other.Key) return false; - return Equals(_unknownFields, other._unknownFields); } + /// 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 override int GetHashCode() { - int hash = 1; - if (Key != 0L) hash ^= Key.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); + public long DecisionRequirementsKey { + get { return decisionRequirementsKey_; } + set { + decisionRequirementsKey_ = value; } - return hash; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { + /// 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 DecisionRequirementsMetadata); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DecisionRequirementsMetadata other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + 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(); + } + return hash; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } @@ -7689,9 +8292,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); @@ -7703,9 +8322,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); @@ -7717,8 +8352,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(); @@ -7728,12 +8375,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); } @@ -7750,8 +8409,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; } } @@ -7769,8 +8444,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; } } @@ -7780,16 +8471,16 @@ 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)] @@ -7805,7 +8496,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) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; + public string ErrorMessage { + get { return errorMessage_; } + set { + errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } - if (IncidentKey != other.IncidentKey) return false; - return Equals(_unknownFields, other._unknownFields); } + /// 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 override int GetHashCode() { - int hash = 1; - if (IncidentKey != 0L) hash ^= IncidentKey.GetHashCode(); - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); - } - return hash; - } + public long RetryBackOff { + get { return retryBackOff_; } + set { + retryBackOff_ = value; + } + } + + /// Field number for the "variables" field. + public const int VariablesFieldNumber = 5; + private string variables_ = ""; + /// + /// JSON document that will instantiate the variables at the local scope of the + /// job's associated task; 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"); + } + } + + [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 (JobKey != other.JobKey) return false; + if (Retries != other.Retries) return false; + if (ErrorMessage != other.ErrorMessage) return false; + if (RetryBackOff != other.RetryBackOff) 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 (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 (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)] @@ -7881,9 +8650,25 @@ 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 (Variables.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Variables); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -7895,9 +8680,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 (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 (Variables.Length != 0) { + output.WriteRawTag(42); + output.WriteString(Variables); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -7909,8 +8710,20 @@ 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 (Variables.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Variables); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -7920,12 +8733,24 @@ 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; + } + if (other.Variables.Length != 0) { + Variables = other.Variables; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -7943,7 +8768,23 @@ 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; + } + case 42: { + Variables = input.ReadString(); break; } } @@ -7962,7 +8803,23 @@ 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; + } + case 42: { + Variables = input.ReadString(); break; } } @@ -7972,16 +8829,16 @@ 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)] @@ -7997,7 +8854,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)] @@ -8149,7 +9006,7 @@ public sealed partial class TopologyRequest : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TopologyRequest() { + public ThrowErrorRequest() { OnConstruction(); } @@ -8157,46 +9014,122 @@ 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_; + variables_ = other.variables_; _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 override bool Equals(object other) { - return Equals(other as TopologyRequest); + 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 bool Equals(TopologyRequest other) { - if (ReferenceEquals(other, null)) { - return false; - } - if (ReferenceEquals(other, this)) { - return true; + public string ErrorCode { + get { return errorCode_; } + set { + errorCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } - return Equals(_unknownFields, other._unknownFields); } + /// 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 override int GetHashCode() { - int hash = 1; - if (_unknownFields != null) { - hash ^= _unknownFields.GetHashCode(); + public string ErrorMessage { + get { return errorMessage_; } + set { + errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } - return hash; } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + /// Field number for the "variables" field. + public const int VariablesFieldNumber = 4; + private string variables_ = ""; + /// + /// JSON document that will instantiate the variables at the local scope of the + /// error catch event that catches the thrown error; 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"); + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as ThrowErrorRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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; + 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 (JobKey != 0L) hash ^= JobKey.GetHashCode(); + if (ErrorCode.Length != 0) hash ^= ErrorCode.GetHashCode(); + if (ErrorMessage.Length != 0) hash ^= ErrorMessage.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); } @@ -8207,6 +9140,22 @@ 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 (Variables.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Variables); + } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -8217,6 +9166,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 (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 (Variables.Length != 0) { + output.WriteRawTag(34); + output.WriteString(Variables); + } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -8227,6 +9192,18 @@ 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 (ErrorCode.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorCode); + } + if (ErrorMessage.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); + } + if (Variables.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Variables); + } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -8235,10 +9212,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TopologyRequest other) { + 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; + } + if (other.Variables.Length != 0) { + Variables = other.Variables; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8254,6 +9243,22 @@ public void MergeFrom(pb::CodedInputStream input) { 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; + } + case 34: { + Variables = input.ReadString(); + break; + } } } #endif @@ -8269,6 +9274,22 @@ public void MergeFrom(pb::CodedInputStream input) { 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; + } + case 34: { + Variables = input.ReadString(); + break; + } } } } @@ -8276,16 +9297,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class TopologyResponse : pb::IMessage + 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 TopologyResponse()); + 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; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -8301,7 +9322,7 @@ public sealed partial class TopologyResponse : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TopologyResponse() { + public ThrowErrorResponse() { OnConstruction(); } @@ -8309,115 +9330,31 @@ 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 ThrowErrorResponse(ThrowErrorResponse other) : this() { _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"); - } + 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 TopologyResponse); + return Equals(other as ThrowErrorResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(TopologyResponse other) { + public bool Equals(ThrowErrorResponse 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); } @@ -8425,11 +9362,6 @@ 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 (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -8448,23 +9380,6 @@ 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); } @@ -8475,23 +9390,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) { - 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); } @@ -8502,19 +9400,6 @@ 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 (ReplicationFactor != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReplicationFactor); - } - if (GatewayVersion.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(GatewayVersion); - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -8523,23 +9408,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(TopologyResponse other) { + public void MergeFrom(ThrowErrorResponse 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); } @@ -8555,26 +9427,6 @@ public void MergeFrom(pb::CodedInputStream input) { 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 @@ -8590,26 +9442,6 @@ public void MergeFrom(pb::CodedInputStream input) { 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; - } } } } @@ -8617,16 +9449,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class BrokerInfo : pb::IMessage + 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 BrokerInfo()); + 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; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -8642,7 +9474,7 @@ public sealed partial class BrokerInfo : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public BrokerInfo() { + public PublishMessageRequest() { OnConstruction(); } @@ -8650,115 +9482,118 @@ 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 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 BrokerInfo Clone() { - return new BrokerInfo(this); + public PublishMessageRequest Clone() { + return new PublishMessageRequest(this); } - /// Field number for the "nodeId" field. - public const int NodeIdFieldNumber = 1; - private int nodeId_; + /// Field number for the "name" field. + public const int NameFieldNumber = 1; + private string name_ = ""; /// - /// unique (within a cluster) node ID for the broker + /// the name of the message /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int NodeId { - get { return nodeId_; } + public string Name { + get { return name_; } set { - nodeId_ = value; + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "host" field. - public const int HostFieldNumber = 2; - private string host_ = ""; + /// Field number for the "correlationKey" field. + public const int CorrelationKeyFieldNumber = 2; + private string correlationKey_ = ""; /// - /// hostname of the broker + /// the correlation key of the message /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public string Host { - get { return host_; } + public string CorrelationKey { + get { return correlationKey_; } set { - host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + correlationKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } - /// Field number for the "port" field. - public const int PortFieldNumber = 3; - private int port_; + /// Field number for the "timeToLive" field. + public const int TimeToLiveFieldNumber = 3; + private long timeToLive_; /// - /// port for the broker + /// how long the message should be buffered on the broker, in milliseconds /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Port { - get { return port_; } + public long TimeToLive { + get { return timeToLive_; } set { - port_ = value; + timeToLive_ = 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(); + /// Field number for the "messageId" field. + public const int MessageIdFieldNumber = 4; + private string messageId_ = ""; /// - /// list of partitions managed or replicated on this broker + /// 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 pbc::RepeatedField Partitions { - get { return partitions_; } + public string MessageId { + get { return messageId_; } + set { + messageId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } - /// Field number for the "version" field. - public const int VersionFieldNumber = 5; - private string version_ = ""; + /// Field number for the "variables" field. + public const int VariablesFieldNumber = 5; + private string variables_ = ""; /// - /// broker version + /// 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 Version { - get { return version_; } + public string Variables { + get { return variables_; } set { - version_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + 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 BrokerInfo); + return Equals(other as PublishMessageRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(BrokerInfo other) { + public bool Equals(PublishMessageRequest 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 (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); } @@ -8766,11 +9601,11 @@ 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 (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(); } @@ -8789,22 +9624,25 @@ 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 (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); } - if (Host.Length != 0) { + if (CorrelationKey.Length != 0) { output.WriteRawTag(18); - output.WriteString(Host); + output.WriteString(CorrelationKey); } - if (Port != 0) { + if (TimeToLive != 0L) { output.WriteRawTag(24); - output.WriteInt32(Port); + output.WriteInt64(TimeToLive); } - partitions_.WriteTo(output, _repeated_partitions_codec); - if (Version.Length != 0) { + if (MessageId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MessageId); + } + if (Variables.Length != 0) { output.WriteRawTag(42); - output.WriteString(Version); + output.WriteString(Variables); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -8816,22 +9654,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 (NodeId != 0) { - output.WriteRawTag(8); - output.WriteInt32(NodeId); + if (Name.Length != 0) { + output.WriteRawTag(10); + output.WriteString(Name); } - if (Host.Length != 0) { + if (CorrelationKey.Length != 0) { output.WriteRawTag(18); - output.WriteString(Host); + output.WriteString(CorrelationKey); } - if (Port != 0) { + if (TimeToLive != 0L) { output.WriteRawTag(24); - output.WriteInt32(Port); + output.WriteInt64(TimeToLive); } - partitions_.WriteTo(ref output, _repeated_partitions_codec); - if (Version.Length != 0) { + if (MessageId.Length != 0) { + output.WriteRawTag(34); + output.WriteString(MessageId); + } + if (Variables.Length != 0) { output.WriteRawTag(42); - output.WriteString(Version); + output.WriteString(Variables); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -8843,18 +9684,20 @@ 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 (Name.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } - if (Host.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); + if (CorrelationKey.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(CorrelationKey); } - if (Port != 0) { - size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); + if (TimeToLive != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeToLive); } - size += partitions_.CalculateSize(_repeated_partitions_codec); - if (Version.Length != 0) { - size += 1 + pb::CodedOutputStream.ComputeStringSize(Version); + 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(); @@ -8864,22 +9707,24 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(BrokerInfo other) { + public void MergeFrom(PublishMessageRequest other) { if (other == null) { return; } - if (other.NodeId != 0) { - NodeId = other.NodeId; + if (other.Name.Length != 0) { + Name = other.Name; } - if (other.Host.Length != 0) { - Host = other.Host; + if (other.CorrelationKey.Length != 0) { + CorrelationKey = other.CorrelationKey; } - if (other.Port != 0) { - Port = other.Port; + if (other.TimeToLive != 0L) { + TimeToLive = other.TimeToLive; } - partitions_.Add(other.partitions_); - if (other.Version.Length != 0) { - Version = other.Version; + if (other.MessageId.Length != 0) { + MessageId = other.MessageId; + } + if (other.Variables.Length != 0) { + Variables = other.Variables; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -8896,24 +9741,24 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - NodeId = input.ReadInt32(); + case 10: { + Name = input.ReadString(); break; } case 18: { - Host = input.ReadString(); + CorrelationKey = input.ReadString(); break; } case 24: { - Port = input.ReadInt32(); + TimeToLive = input.ReadInt64(); break; } case 34: { - partitions_.AddEntriesFrom(input, _repeated_partitions_codec); + MessageId = input.ReadString(); break; } case 42: { - Version = input.ReadString(); + Variables = input.ReadString(); break; } } @@ -8931,24 +9776,24 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - NodeId = input.ReadInt32(); + case 10: { + Name = input.ReadString(); break; } case 18: { - Host = input.ReadString(); + CorrelationKey = input.ReadString(); break; } case 24: { - Port = input.ReadInt32(); + TimeToLive = input.ReadInt64(); break; } case 34: { - partitions_.AddEntriesFrom(ref input, _repeated_partitions_codec); + MessageId = input.ReadString(); break; } case 42: { - Version = input.ReadString(); + Variables = input.ReadString(); break; } } @@ -8958,16 +9803,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class Partition : pb::IMessage + 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 Partition()); + 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; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -8983,7 +9828,7 @@ public sealed partial class Partition : pb::IMessage [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public Partition() { + public PublishMessageResponse() { OnConstruction(); } @@ -8991,82 +9836,48 @@ 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 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 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; - } + public PublishMessageResponse Clone() { + return new PublishMessageResponse(this); } - /// Field number for the "health" field. - public const int HealthFieldNumber = 3; - private global::GatewayProtocol.Partition.Types.PartitionBrokerHealth health_ = global::GatewayProtocol.Partition.Types.PartitionBrokerHealth.Healthy; + /// Field number for the "key" field. + public const int KeyFieldNumber = 1; + private long key_; /// - /// the health of this partition + /// the unique ID of the message that was published /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public global::GatewayProtocol.Partition.Types.PartitionBrokerHealth Health { - get { return health_; } + public long Key { + get { return key_; } set { - health_ = value; + key_ = value; } } [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 PublishMessageResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(Partition other) { + public bool Equals(PublishMessageResponse 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; + if (Key != other.Key) return false; return Equals(_unknownFields, other._unknownFields); } @@ -9074,9 +9885,7 @@ 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 (Key != 0L) hash ^= Key.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9095,17 +9904,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (PartitionId != 0) { + if (Key != 0L) { 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); + output.WriteInt64(Key); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -9117,17 +9918,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (PartitionId != 0) { + if (Key != 0L) { 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); + output.WriteInt64(Key); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -9139,14 +9932,8 @@ 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 (Key != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(Key); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -9156,18 +9943,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(Partition other) { + public void MergeFrom(PublishMessageResponse 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; + if (other.Key != 0L) { + Key = other.Key; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -9185,15 +9966,7 @@ public void MergeFrom(pb::CodedInputStream input) { _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(); + Key = input.ReadInt64(); break; } } @@ -9212,15 +9985,7 @@ public void MergeFrom(pb::CodedInputStream input) { _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(); + Key = input.ReadInt64(); break; } } @@ -9228,44 +9993,18 @@ 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 UpdateJobRetriesRequest : pb::IMessage + 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 UpdateJobRetriesRequest()); + 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; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -9281,7 +10020,7 @@ public sealed partial class UpdateJobRetriesRequest : pb::IMessageField number for the "jobKey" field. - public const int JobKeyFieldNumber = 1; - private long jobKey_; - /// - /// the unique job identifier, as obtained through ActivateJobs - /// - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long JobKey { - get { return jobKey_; } - set { - jobKey_ = value; - } + public ResolveIncidentRequest Clone() { + return new ResolveIncidentRequest(this); } - /// Field number for the "retries" field. - public const int RetriesFieldNumber = 2; - private int retries_; + /// Field number for the "incidentKey" field. + public const int IncidentKeyFieldNumber = 1; + private long incidentKey_; /// - /// the new amount of retries for the job; must be positive + /// the unique ID of the incident to resolve /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public int Retries { - get { return retries_; } + public long IncidentKey { + get { return incidentKey_; } set { - retries_ = value; + incidentKey_ = 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 ResolveIncidentRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(UpdateJobRetriesRequest other) { + public bool Equals(ResolveIncidentRequest 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 (IncidentKey != other.IncidentKey) return false; return Equals(_unknownFields, other._unknownFields); } @@ -9355,8 +10077,7 @@ 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 (IncidentKey != 0L) hash ^= IncidentKey.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9375,13 +10096,9 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (JobKey != 0L) { + if (IncidentKey != 0L) { output.WriteRawTag(8); - output.WriteInt64(JobKey); - } - if (Retries != 0) { - output.WriteRawTag(16); - output.WriteInt32(Retries); + output.WriteInt64(IncidentKey); } if (_unknownFields != null) { _unknownFields.WriteTo(output); @@ -9393,13 +10110,9 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { - if (JobKey != 0L) { + if (IncidentKey != 0L) { output.WriteRawTag(8); - output.WriteInt64(JobKey); - } - if (Retries != 0) { - output.WriteRawTag(16); - output.WriteInt32(Retries); + output.WriteInt64(IncidentKey); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); @@ -9411,11 +10124,8 @@ 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 (IncidentKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(IncidentKey); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); @@ -9425,15 +10135,12 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(UpdateJobRetriesRequest other) { + public void MergeFrom(ResolveIncidentRequest other) { if (other == null) { return; } - if (other.JobKey != 0L) { - JobKey = other.JobKey; - } - if (other.Retries != 0) { - Retries = other.Retries; + if (other.IncidentKey != 0L) { + IncidentKey = other.IncidentKey; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -9451,11 +10158,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - JobKey = input.ReadInt64(); - break; - } - case 16: { - Retries = input.ReadInt32(); + IncidentKey = input.ReadInt64(); break; } } @@ -9474,11 +10177,7 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - JobKey = input.ReadInt64(); - break; - } - case 16: { - Retries = input.ReadInt32(); + IncidentKey = input.ReadInt64(); break; } } @@ -9488,16 +10187,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class UpdateJobRetriesResponse : pb::IMessage + 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 UpdateJobRetriesResponse()); + 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; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -9513,7 +10212,7 @@ public sealed partial class UpdateJobRetriesResponse : pb::IMessage + 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 SetVariablesRequest()); + 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; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -9665,7 +10364,7 @@ public sealed partial class SetVariablesRequest : pb::IMessageField number for the "elementInstanceKey" field. - public const int ElementInstanceKeyFieldNumber = 1; - private long elementInstanceKey_; - /// - /// 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 ElementInstanceKey { - get { return elementInstanceKey_; } - set { - elementInstanceKey_ = value; - } - } - - /// Field number for the "variables" field. - public const int VariablesFieldNumber = 2; - private string variables_ = ""; - /// - /// 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 bool Local { - get { return local_; } - set { - local_ = value; - } + 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 SetVariablesRequest); + return Equals(other as TopologyRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetVariablesRequest other) { + public bool Equals(TopologyRequest 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; return Equals(_unknownFields, other._unknownFields); } @@ -9765,9 +10404,6 @@ 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 (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } @@ -9786,18 +10422,6 @@ 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 (Variables.Length != 0) { - output.WriteRawTag(18); - output.WriteString(Variables); - } - if (Local != false) { - output.WriteRawTag(24); - output.WriteBool(Local); - } if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -9808,18 +10432,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 (ElementInstanceKey != 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); - } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -9830,15 +10442,6 @@ public void WriteTo(pb::CodedOutputStream output) { [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; - } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -9847,19 +10450,10 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetVariablesRequest other) { + public void MergeFrom(TopologyRequest 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; - } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -9875,18 +10469,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - ElementInstanceKey = input.ReadInt64(); - break; - } - case 18: { - Variables = input.ReadString(); - break; - } - case 24: { - Local = input.ReadBool(); - break; - } } } #endif @@ -9902,18 +10484,6 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - ElementInstanceKey = input.ReadInt64(); - break; - } - case 18: { - Variables = input.ReadString(); - break; - } - case 24: { - Local = input.ReadBool(); - break; - } } } } @@ -9921,16 +10491,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class SetVariablesResponse : pb::IMessage + 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 SetVariablesResponse()); + 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; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -9946,7 +10516,7 @@ public sealed partial class SetVariablesResponse : pb::IMessageField number for the "key" field. - public const int KeyFieldNumber = 1; - private long key_; + /// 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(); /// - /// the unique key of the set variables command + /// list of brokers part of this cluster /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long Key { - get { return key_; } + 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 { - key_ = value; + 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 SetVariablesResponse); + return Equals(other as TopologyResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(SetVariablesResponse other) { + public bool Equals(TopologyResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (Key != other.Key) return false; + 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); } @@ -10003,7 +10640,11 @@ 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(); + 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(); } @@ -10022,9 +10663,22 @@ 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); + 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); @@ -10036,9 +10690,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 (Key != 0L) { - output.WriteRawTag(8); - output.WriteInt64(Key); + 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); @@ -10050,8 +10717,18 @@ 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 += 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(); @@ -10061,12 +10738,22 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(SetVariablesResponse other) { + public void MergeFrom(TopologyResponse other) { if (other == null) { return; } - if (other.Key != 0L) { - Key = other.Key; + 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); } @@ -10083,8 +10770,24 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; - case 8: { - Key = input.ReadInt64(); + 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; } } @@ -10102,8 +10805,24 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; - case 8: { - Key = input.ReadInt64(); + 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; } } @@ -10113,16 +10832,16 @@ public void MergeFrom(pb::CodedInputStream input) { } - public sealed partial class ModifyProcessInstanceRequest : pb::IMessage + 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 ModifyProcessInstanceRequest()); + 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; } } + public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] @@ -10138,7 +10857,7 @@ public sealed partial class ModifyProcessInstanceRequest : pb::IMessageField number for the "processInstanceKey" field. - public const int ProcessInstanceKeyFieldNumber = 1; - private long processInstanceKey_; + /// Field number for the "nodeId" field. + public const int NodeIdFieldNumber = 1; + private int nodeId_; /// - /// the key of the process instance that should be modified + /// unique (within a cluster) node ID for the broker /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public long ProcessInstanceKey { - get { return processInstanceKey_; } + public int NodeId { + get { return nodeId_; } set { - processInstanceKey_ = value; + nodeId_ = value; } } - /// 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(); + /// Field number for the "host" field. + public const int HostFieldNumber = 2; + private string host_ = ""; /// - /// instructions describing which elements should be activated in which scopes, - /// and which variables should be created + /// hostname of the broker /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField ActivateInstructions { - get { return activateInstructions_; } + public string Host { + get { return host_; } + set { + host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } } - /// 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(); + /// Field number for the "port" field. + public const int PortFieldNumber = 3; + private int port_; /// - /// instructions describing which elements should be terminated + /// port for the broker /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public pbc::RepeatedField TerminateInstructions { - get { return terminateInstructions_; } + 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 ModifyProcessInstanceRequest); + return Equals(other as BrokerInfo); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ModifyProcessInstanceRequest other) { + public bool Equals(BrokerInfo other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } - if (ProcessInstanceKey != other.ProcessInstanceKey) return false; - if(!activateInstructions_.Equals(other.activateInstructions_)) return false; - if(!terminateInstructions_.Equals(other.terminateInstructions_)) return false; + 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); } @@ -10228,9 +10981,11 @@ public bool Equals(ModifyProcessInstanceRequest other) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; - if (ProcessInstanceKey != 0L) hash ^= ProcessInstanceKey.GetHashCode(); - hash ^= activateInstructions_.GetHashCode(); - hash ^= terminateInstructions_.GetHashCode(); + 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(); } @@ -10249,12 +11004,23 @@ public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else - if (ProcessInstanceKey != 0L) { + if (NodeId != 0) { output.WriteRawTag(8); - output.WriteInt64(ProcessInstanceKey); + 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); } - activateInstructions_.WriteTo(output, _repeated_activateInstructions_codec); - terminateInstructions_.WriteTo(output, _repeated_terminateInstructions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } @@ -10265,12 +11031,23 @@ 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 (ProcessInstanceKey != 0L) { + if (NodeId != 0) { output.WriteRawTag(8); - output.WriteInt64(ProcessInstanceKey); + 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); } - activateInstructions_.WriteTo(ref output, _repeated_activateInstructions_codec); - terminateInstructions_.WriteTo(ref output, _repeated_terminateInstructions_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } @@ -10281,11 +11058,19 @@ public void WriteTo(pb::CodedOutputStream output) { [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; - if (ProcessInstanceKey != 0L) { - size += 1 + pb::CodedOutputStream.ComputeInt64Size(ProcessInstanceKey); + 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); } - size += activateInstructions_.CalculateSize(_repeated_activateInstructions_codec); - size += terminateInstructions_.CalculateSize(_repeated_terminateInstructions_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } @@ -10294,15 +11079,23 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ModifyProcessInstanceRequest other) { + public void MergeFrom(BrokerInfo other) { if (other == null) { return; } - if (other.ProcessInstanceKey != 0L) { - ProcessInstanceKey = other.ProcessInstanceKey; + 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; } - activateInstructions_.Add(other.activateInstructions_); - terminateInstructions_.Add(other.terminateInstructions_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -10319,15 +11112,23 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { - ProcessInstanceKey = input.ReadInt64(); + NodeId = input.ReadInt32(); break; } case 18: { - activateInstructions_.AddEntriesFrom(input, _repeated_activateInstructions_codec); + Host = input.ReadString(); break; } - case 26: { - terminateInstructions_.AddEntriesFrom(input, _repeated_terminateInstructions_codec); + case 24: { + Port = input.ReadInt32(); + break; + } + case 34: { + partitions_.AddEntriesFrom(input, _repeated_partitions_codec); + break; + } + case 42: { + Version = input.ReadString(); break; } } @@ -10346,15 +11147,23 @@ public void MergeFrom(pb::CodedInputStream input) { _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { - ProcessInstanceKey = input.ReadInt64(); + NodeId = input.ReadInt32(); break; } case 18: { - activateInstructions_.AddEntriesFrom(ref input, _repeated_activateInstructions_codec); + Host = input.ReadString(); break; } - case 26: { - terminateInstructions_.AddEntriesFrom(ref input, _repeated_terminateInstructions_codec); + case 24: { + Port = input.ReadInt32(); + break; + } + case 34: { + partitions_.AddEntriesFrom(ref input, _repeated_partitions_codec); + break; + } + case 42: { + Version = input.ReadString(); break; } } @@ -10362,723 +11171,2859 @@ public void MergeFrom(pb::CodedInputStream input) { } #endif - #region Nested types - /// Container for nested types declared in the ModifyProcessInstanceRequest message type. + } + + 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 Partition()); + private pb::UnknownFieldSet _unknownFields; [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; } } + 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)] + public static pbr::MessageDescriptor Descriptor { + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[39]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public ActivateInstruction() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public Partition() { + OnConstruction(); + } - partial void 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 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 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; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as Partition); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(Partition 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); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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(); + } + 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 (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); + } + #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 (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); + } + } + #endif + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(Partition 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); + } + + [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: { + 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 + } + + #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: { + 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 + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + 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; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[40]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateJobRetriesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 UpdateJobRetriesRequest Clone() { + return new UpdateJobRetriesRequest(this); + } + + /// Field number for the "jobKey" field. + public const int JobKeyFieldNumber = 1; + private long jobKey_; + /// + /// the unique job identifier, as obtained through ActivateJobs + /// + [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 new amount of retries for the job; must be positive + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int Retries { + get { return retries_; } + set { + retries_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as UpdateJobRetriesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateJobRetriesRequest 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; + return Equals(_unknownFields, other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [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 (_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 (JobKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(JobKey); + } + if (Retries != 0) { + output.WriteRawTag(16); + output.WriteInt32(Retries); + } + 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 (JobKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(JobKey); + } + if (Retries != 0) { + output.WriteRawTag(16); + output.WriteInt32(Retries); + } + 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 (Retries != 0) { + size += 1 + pb::CodedOutputStream.ComputeInt32Size(Retries); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(UpdateJobRetriesRequest other) { + if (other == null) { + return; + } + if (other.JobKey != 0L) { + JobKey = other.JobKey; + } + if (other.Retries != 0) { + Retries = other.Retries; + } + _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 16: { + Retries = input.ReadInt32(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + JobKey = input.ReadInt64(); + break; + } + case 16: { + Retries = input.ReadInt32(); + break; + } + } + } + } + #endif + + } + + 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 UpdateJobRetriesResponse()); + 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[41]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateJobRetriesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public UpdateJobRetriesResponse(UpdateJobRetriesResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 UpdateJobRetriesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(UpdateJobRetriesResponse 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(UpdateJobRetriesResponse 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 SetVariablesRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + 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; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[42]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetVariablesRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetVariablesRequest(SetVariablesRequest other) : this() { + elementInstanceKey_ = other.elementInstanceKey_; + variables_ = other.variables_; + local_ = other.local_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetVariablesRequest Clone() { + return new SetVariablesRequest(this); + } + + /// Field number for the "elementInstanceKey" field. + public const int ElementInstanceKeyFieldNumber = 1; + private long elementInstanceKey_; + /// + /// 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 ElementInstanceKey { + get { return elementInstanceKey_; } + set { + elementInstanceKey_ = value; + } + } + + /// Field number for the "variables" field. + public const int VariablesFieldNumber = 2; + private string variables_ = ""; + /// + /// 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 bool Local { + get { return local_; } + set { + local_ = value; + } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as SetVariablesRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(SetVariablesRequest 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; + 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 (Variables.Length != 0) hash ^= Variables.GetHashCode(); + if (Local != false) hash ^= Local.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 (Variables.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Variables); + } + if (Local != false) { + output.WriteRawTag(24); + output.WriteBool(Local); + } + 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 (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); + } + } + #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; + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(SetVariablesRequest 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; + } + _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; + } + case 18: { + Variables = input.ReadString(); + break; + } + case 24: { + Local = input.ReadBool(); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ElementInstanceKey = input.ReadInt64(); + break; + } + case 18: { + Variables = input.ReadString(); + break; + } + case 24: { + Local = input.ReadBool(); + break; + } + } + } + } + #endif + + } + + 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 SetVariablesResponse()); + 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[43]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetVariablesResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetVariablesResponse(SetVariablesResponse other) : this() { + key_ = other.key_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public SetVariablesResponse Clone() { + return new SetVariablesResponse(this); + } + + /// Field 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 SetVariablesResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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); + } + + [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(SetVariablesResponse 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 ModifyProcessInstanceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + 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; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[44]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModifyProcessInstanceRequest() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModifyProcessInstanceRequest(ModifyProcessInstanceRequest other) : this() { + processInstanceKey_ = other.processInstanceKey_; + activateInstructions_ = other.activateInstructions_.Clone(); + terminateInstructions_ = other.terminateInstructions_.Clone(); + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModifyProcessInstanceRequest Clone() { + return new ModifyProcessInstanceRequest(this); + } + + /// Field number for the "processInstanceKey" field. + public const int ProcessInstanceKeyFieldNumber = 1; + private long processInstanceKey_; + /// + /// the key of the process instance that should be modified + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ProcessInstanceKey { + get { return processInstanceKey_; } + set { + processInstanceKey_ = value; + } + } + + /// 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(); + /// + /// 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 pbc::RepeatedField ActivateInstructions { + get { return activateInstructions_; } + } + + /// 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(); + /// + /// instructions describing which elements should be terminated + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 ModifyProcessInstanceRequest); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ModifyProcessInstanceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + 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); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override int GetHashCode() { + int hash = 1; + if (ProcessInstanceKey != 0L) hash ^= ProcessInstanceKey.GetHashCode(); + hash ^= activateInstructions_.GetHashCode(); + hash ^= terminateInstructions_.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 (ProcessInstanceKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ProcessInstanceKey); + } + activateInstructions_.WriteTo(output, _repeated_activateInstructions_codec); + terminateInstructions_.WriteTo(output, _repeated_terminateInstructions_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 (ProcessInstanceKey != 0L) { + output.WriteRawTag(8); + 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 (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(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(ModifyProcessInstanceRequest other) { + if (other == null) { + return; + } + if (other.ProcessInstanceKey != 0L) { + ProcessInstanceKey = other.ProcessInstanceKey; + } + activateInstructions_.Add(other.activateInstructions_); + terminateInstructions_.Add(other.terminateInstructions_); + _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: { + ProcessInstanceKey = input.ReadInt64(); + break; + } + case 18: { + activateInstructions_.AddEntriesFrom(input, _repeated_activateInstructions_codec); + break; + } + case 26: { + terminateInstructions_.AddEntriesFrom(input, _repeated_terminateInstructions_codec); + break; + } + } + } + #endif + } + + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { + uint tag; + while ((tag = input.ReadTag()) != 0) { + switch(tag) { + default: + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); + break; + case 8: { + ProcessInstanceKey = input.ReadInt64(); + break; + } + case 18: { + activateInstructions_.AddEntriesFrom(ref input, _repeated_activateInstructions_codec); + break; + } + case 26: { + terminateInstructions_.AddEntriesFrom(ref input, _repeated_terminateInstructions_codec); + break; + } + } + } + } + #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 ActivateInstruction Clone() { - return new ActivateInstruction(this); + public int CalculateSize() { + int size = 0; + if (ElementInstanceKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ElementInstanceKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; } - /// 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"); + public void MergeFrom(TerminateInstruction other) { + if (other == null) { + return; + } + if (other.ElementInstanceKey != 0L) { + ElementInstanceKey = other.ElementInstanceKey; } + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } - /// 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; + 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 ModifyProcessInstanceResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + 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; } } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[45]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModifyProcessInstanceResponse() { + OnConstruction(); + } + + partial void OnConstruction(); + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public ModifyProcessInstanceResponse(ModifyProcessInstanceResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + 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 ModifyProcessInstanceResponse); + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(ModifyProcessInstanceResponse 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(ModifyProcessInstanceResponse 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 DeleteResourceRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteResourceRequest()); + 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[46]; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteResourceRequest() { + OnConstruction(); + } - /// 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_; } - } + partial void OnConstruction(); - [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 DeleteResourceRequest(DeleteResourceRequest other) : this() { + resourceKey_ = other.resourceKey_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [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 DeleteResourceRequest Clone() { + return new DeleteResourceRequest(this); + } - [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; - } + /// Field number for the "resourceKey" field. + public const int ResourceKeyFieldNumber = 1; + private long resourceKey_; + /// + /// The key of the resource that should be deleted. This can either be the key + /// of a process definition, or the key of a decision requirements definition. + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public long ResourceKey { + get { return resourceKey_; } + set { + resourceKey_ = value; + } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public override string ToString() { - return pb::JsonFormatter.ToDiagnosticString(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as DeleteResourceRequest); + } - [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 - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public bool Equals(DeleteResourceRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (ResourceKey != other.ResourceKey) return false; + return Equals(_unknownFields, other._unknownFields); + } - #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 override int GetHashCode() { + int hash = 1; + if (ResourceKey != 0L) hash ^= ResourceKey.GetHashCode(); + if (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [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 override string ToString() { + return pb::JsonFormatter.ToDiagnosticString(this); + } - [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 WriteTo(pb::CodedOutputStream output) { + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + output.WriteRawMessage(this); + #else + if (ResourceKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ResourceKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } - [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.InternalWriteTo(ref pb::WriteContext output) { + if (ResourceKey != 0L) { + output.WriteRawTag(8); + output.WriteInt64(ResourceKey); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref output); + } + } + #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; - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public int CalculateSize() { + int size = 0; + if (ResourceKey != 0L) { + size += 1 + pb::CodedOutputStream.ComputeInt64Size(ResourceKey); + } + if (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } + + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public void MergeFrom(DeleteResourceRequest other) { + if (other == null) { + return; + } + if (other.ResourceKey != 0L) { + ResourceKey = other.ResourceKey; + } + _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: { + ResourceKey = input.ReadInt64(); + break; } } - #endif + } + #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: { + ResourceKey = input.ReadInt64(); + 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]; } - } + public sealed partial class DeleteResourceResponse : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteResourceResponse()); + 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)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pbr::MessageDescriptor Descriptor { + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[47]; } + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VariableInstruction() { - OnConstruction(); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + pbr::MessageDescriptor pb::IMessage.Descriptor { + get { return Descriptor; } + } - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteResourceResponse() { + 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); - } + partial void OnConstruction(); - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public VariableInstruction Clone() { - return new VariableInstruction(this); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteResourceResponse(DeleteResourceResponse other) : this() { + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - /// 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"); - } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public DeleteResourceResponse Clone() { + return new DeleteResourceResponse(this); + } - /// 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 DeleteResourceResponse); + } - [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(DeleteResourceResponse 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 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 (_unknownFields != null) { + hash ^= _unknownFields.GetHashCode(); + } + return hash; + } - [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 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 + } - [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 (_unknownFields != null) { + _unknownFields.WriteTo(ref 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 (_unknownFields != null) { + size += _unknownFields.CalculateSize(); + } + return size; + } - [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(DeleteResourceResponse 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(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; } + } + #endif + } - [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; } + } + } + #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 BroadcastSignalRequest : pb::IMessage + #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE + , pb::IBufferMessage + #endif + { + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BroadcastSignalRequest()); + private pb::UnknownFieldSet _unknownFields; + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public static pb::MessageParser Parser { get { return _parser; } } - 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.GatewayReflection.Descriptor.MessageTypes[48]; } + } - [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)] - pbr::MessageDescriptor pb::IMessage.Descriptor { - get { return Descriptor; } - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BroadcastSignalRequest() { + OnConstruction(); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TerminateInstruction() { - OnConstruction(); - } + partial void OnConstruction(); - partial void OnConstruction(); + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public BroadcastSignalRequest(BroadcastSignalRequest other) : this() { + signalName_ = other.signalName_; + variables_ = other.variables_; + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); + } - [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 BroadcastSignalRequest Clone() { + return new BroadcastSignalRequest(this); + } - [global::System.Diagnostics.DebuggerNonUserCodeAttribute] - [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public TerminateInstruction Clone() { - return new TerminateInstruction(this); - } + /// Field number for the "signalName" field. + public const int SignalNameFieldNumber = 1; + private string signalName_ = ""; + /// + /// The name of the signal + /// + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public string SignalName { + get { return signalName_; } + set { + signalName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); + } + } - /// 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; - } - } + /// Field number for the "variables" field. + public const int VariablesFieldNumber = 2; + private string variables_ = ""; + /// + /// the signal 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 TerminateInstruction); - } + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] + [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] + public override bool Equals(object other) { + return Equals(other as BroadcastSignalRequest); + } - [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 bool Equals(BroadcastSignalRequest other) { + if (ReferenceEquals(other, null)) { + return false; + } + if (ReferenceEquals(other, this)) { + return true; + } + if (SignalName != other.SignalName) 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 (SignalName.Length != 0) hash ^= SignalName.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 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 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 (SignalName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SignalName); + } + if (Variables.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Variables); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(output); + } + #endif + } - [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 (SignalName.Length != 0) { + output.WriteRawTag(10); + output.WriteString(SignalName); + } + if (Variables.Length != 0) { + output.WriteRawTag(18); + output.WriteString(Variables); + } + if (_unknownFields != null) { + _unknownFields.WriteTo(ref 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 (SignalName.Length != 0) { + size += 1 + pb::CodedOutputStream.ComputeStringSize(SignalName); + } + 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 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(BroadcastSignalRequest other) { + if (other == null) { + return; + } + if (other.SignalName.Length != 0) { + SignalName = other.SignalName; + } + 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(TerminateInstruction other) { - if (other == null) { - return; + [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: { + SignalName = input.ReadString(); + break; } - if (other.ElementInstanceKey != 0L) { - ElementInstanceKey = other.ElementInstanceKey; + case 18: { + Variables = input.ReadString(); + break; } - _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } + } + #endif + } - [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; - } - } + #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: { + SignalName = 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: { - ElementInstanceKey = input.ReadInt64(); - break; - } - } + case 18: { + Variables = input.ReadString(); + break; } } - #endif - } - } - #endregion + #endif } - public sealed partial class ModifyProcessInstanceResponse : pb::IMessage + public sealed partial class BroadcastSignalResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { - private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ModifyProcessInstanceResponse()); + private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BroadcastSignalResponse()); 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[39]; } + get { return global::GatewayProtocol.GatewayReflection.Descriptor.MessageTypes[49]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] @@ -11089,7 +14034,7 @@ public sealed partial class ModifyProcessInstanceResponse : pb::IMessageField number for the "key" field. + public const int KeyFieldNumber = 1; + private long key_; + /// + /// the unique ID of the signal that was broadcasted. + /// + [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 ModifyProcessInstanceResponse); + return Equals(other as BroadcastSignalResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public bool Equals(ModifyProcessInstanceResponse other) { + public bool Equals(BroadcastSignalResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } + if (Key != other.Key) return false; return Equals(_unknownFields, other._unknownFields); } @@ -11129,6 +14091,7 @@ public bool Equals(ModifyProcessInstanceResponse 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(); } @@ -11147,6 +14110,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); } @@ -11157,6 +14124,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); } @@ -11167,6 +14138,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(); } @@ -11175,10 +14149,13 @@ public int CalculateSize() { [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] - public void MergeFrom(ModifyProcessInstanceResponse other) { + public void MergeFrom(BroadcastSignalResponse other) { if (other == null) { return; } + if (other.Key != 0L) { + Key = other.Key; + } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } @@ -11194,6 +14171,10 @@ public void MergeFrom(pb::CodedInputStream input) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; + case 8: { + Key = input.ReadInt64(); + break; + } } } #endif @@ -11209,6 +14190,10 @@ 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 5a16d6d8..99e1eea2 100644 --- a/Client/Impl/proto/GatewayGrpc.cs +++ b/Client/Impl/proto/GatewayGrpc.cs @@ -66,6 +66,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_CreateProcessInstanceWithResultResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.CreateProcessInstanceWithResultResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_gateway_protocol_EvaluateDecisionRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.EvaluateDecisionRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_gateway_protocol_EvaluateDecisionResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.EvaluateDecisionResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Marshaller __Marshaller_gateway_protocol_DeployProcessRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.DeployProcessRequest.Parser)); [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)); @@ -105,6 +109,14 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl 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::Marshaller __Marshaller_gateway_protocol_DeleteResourceRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.DeleteResourceRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_gateway_protocol_DeleteResourceResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.DeleteResourceResponse.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_gateway_protocol_BroadcastSignalRequest = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.BroadcastSignalRequest.Parser)); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Marshaller __Marshaller_gateway_protocol_BroadcastSignalResponse = grpc::Marshallers.Create(__Helper_SerializeMessage, context => __Helper_DeserializeMessage(context, global::GatewayProtocol.BroadcastSignalResponse.Parser)); [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_ActivateJobs = new grpc::Method( @@ -146,6 +158,14 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __Marshaller_gateway_protocol_CreateProcessInstanceWithResultRequest, __Marshaller_gateway_protocol_CreateProcessInstanceWithResultResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_EvaluateDecision = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "EvaluateDecision", + __Marshaller_gateway_protocol_EvaluateDecisionRequest, + __Marshaller_gateway_protocol_EvaluateDecisionResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] static readonly grpc::Method __Method_DeployProcess = new grpc::Method( grpc::MethodType.Unary, @@ -226,6 +246,22 @@ static T __Helper_DeserializeMessage(grpc::DeserializationContext context, gl __Marshaller_gateway_protocol_ModifyProcessInstanceRequest, __Marshaller_gateway_protocol_ModifyProcessInstanceResponse); + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_DeleteResource = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "DeleteResource", + __Marshaller_gateway_protocol_DeleteResourceRequest, + __Marshaller_gateway_protocol_DeleteResourceResponse); + + [global::System.CodeDom.Compiler.GeneratedCode("grpc_csharp_plugin", null)] + static readonly grpc::Method __Method_BroadcastSignal = new grpc::Method( + grpc::MethodType.Unary, + __ServiceName, + "BroadcastSignal", + __Marshaller_gateway_protocol_BroadcastSignalRequest, + __Marshaller_gateway_protocol_BroadcastSignalResponse); + /// Service descriptor public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor { @@ -341,6 +377,28 @@ public abstract partial class GatewayBase throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } + /// + /// + ///Evaluates a decision. The decision to evaluate can be specified either by + ///using its unique key (as returned by DeployResource), or using the decision + ///ID. When using the decision ID, the latest deployed version of the decision + ///is used. + /// + ///Errors: + ///INVALID_ARGUMENT: + ///- no decision with the given key exists (if decisionKey was given) + ///- no decision with the given decision ID exists (if decisionId was given) + ///- both decision ID and decision KEY were provided, or are missing + /// + /// 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 EvaluateDecision(global::GatewayProtocol.EvaluateDecisionRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + /// /// ///Deploys one or more processes to Zeebe. Note that this is an atomic call, @@ -544,6 +602,49 @@ public abstract partial class GatewayBase throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); } + /// + /// + ///Deletes a resource from the state. Once a resource has been deleted it cannot + ///be recovered. If the resource needs to be available again, a new deployment + ///of the resource is required. + /// + ///Deleting a process will cancel any running instances of this process + ///definition. New instances of a deleted process are created using + ///the lastest version that hasn't been deleted. Creating a new + ///process instance is impossible when all versions have been + ///deleted. + /// + ///Deleting a decision requirement definitions could cause incidents in process + ///instances referencing these decisions in a business rule task. A decision + ///will be evaluated with the latest version that hasn't been deleted. If all + ///versions of a decision have been deleted the evaluation is rejected. + /// + ///Errors: + ///NOT_FOUND: + ///- No resource exists with the given key + /// + /// 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 DeleteResource(global::GatewayProtocol.DeleteResourceRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + + /// + /// + ///Broadcasts a signal. + /// + /// 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 BroadcastSignal(global::GatewayProtocol.BroadcastSignalRequest request, grpc::ServerCallContext context) + { + throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); + } + } /// Client for Gateway @@ -949,6 +1050,94 @@ protected GatewayClient(ClientBaseConfiguration configuration) : base(configurat } /// /// + ///Evaluates a decision. The decision to evaluate can be specified either by + ///using its unique key (as returned by DeployResource), or using the decision + ///ID. When using the decision ID, the latest deployed version of the decision + ///is used. + /// + ///Errors: + ///INVALID_ARGUMENT: + ///- no decision with the given key exists (if decisionKey was given) + ///- no decision with the given decision ID exists (if decisionId was given) + ///- both decision ID and decision KEY were provided, or are missing + /// + /// 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.EvaluateDecisionResponse EvaluateDecision(global::GatewayProtocol.EvaluateDecisionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return EvaluateDecision(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// + ///Evaluates a decision. The decision to evaluate can be specified either by + ///using its unique key (as returned by DeployResource), or using the decision + ///ID. When using the decision ID, the latest deployed version of the decision + ///is used. + /// + ///Errors: + ///INVALID_ARGUMENT: + ///- no decision with the given key exists (if decisionKey was given) + ///- no decision with the given decision ID exists (if decisionId was given) + ///- both decision ID and decision KEY were provided, or are missing + /// + /// 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.EvaluateDecisionResponse EvaluateDecision(global::GatewayProtocol.EvaluateDecisionRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_EvaluateDecision, null, options, request); + } + /// + /// + ///Evaluates a decision. The decision to evaluate can be specified either by + ///using its unique key (as returned by DeployResource), or using the decision + ///ID. When using the decision ID, the latest deployed version of the decision + ///is used. + /// + ///Errors: + ///INVALID_ARGUMENT: + ///- no decision with the given key exists (if decisionKey was given) + ///- no decision with the given decision ID exists (if decisionId was given) + ///- both decision ID and decision KEY were provided, or are missing + /// + /// 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 EvaluateDecisionAsync(global::GatewayProtocol.EvaluateDecisionRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return EvaluateDecisionAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// + ///Evaluates a decision. The decision to evaluate can be specified either by + ///using its unique key (as returned by DeployResource), or using the decision + ///ID. When using the decision ID, the latest deployed version of the decision + ///is used. + /// + ///Errors: + ///INVALID_ARGUMENT: + ///- no decision with the given key exists (if decisionKey was given) + ///- no decision with the given decision ID exists (if decisionId was given) + ///- both decision ID and decision KEY were provided, or are missing + /// + /// 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 EvaluateDecisionAsync(global::GatewayProtocol.EvaluateDecisionRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_EvaluateDecision, null, options, request); + } + /// + /// ///Deploys one or more processes to Zeebe. Note that this is an atomic call, ///i.e. either all processes are deployed, or none of them are. /// @@ -1759,6 +1948,178 @@ protected GatewayClient(ClientBaseConfiguration configuration) : base(configurat { return CallInvoker.AsyncUnaryCall(__Method_ModifyProcessInstance, null, options, request); } + /// + /// + ///Deletes a resource from the state. Once a resource has been deleted it cannot + ///be recovered. If the resource needs to be available again, a new deployment + ///of the resource is required. + /// + ///Deleting a process will cancel any running instances of this process + ///definition. New instances of a deleted process are created using + ///the lastest version that hasn't been deleted. Creating a new + ///process instance is impossible when all versions have been + ///deleted. + /// + ///Deleting a decision requirement definitions could cause incidents in process + ///instances referencing these decisions in a business rule task. A decision + ///will be evaluated with the latest version that hasn't been deleted. If all + ///versions of a decision have been deleted the evaluation is rejected. + /// + ///Errors: + ///NOT_FOUND: + ///- No resource exists with the given key + /// + /// 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.DeleteResourceResponse DeleteResource(global::GatewayProtocol.DeleteResourceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteResource(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// + ///Deletes a resource from the state. Once a resource has been deleted it cannot + ///be recovered. If the resource needs to be available again, a new deployment + ///of the resource is required. + /// + ///Deleting a process will cancel any running instances of this process + ///definition. New instances of a deleted process are created using + ///the lastest version that hasn't been deleted. Creating a new + ///process instance is impossible when all versions have been + ///deleted. + /// + ///Deleting a decision requirement definitions could cause incidents in process + ///instances referencing these decisions in a business rule task. A decision + ///will be evaluated with the latest version that hasn't been deleted. If all + ///versions of a decision have been deleted the evaluation is rejected. + /// + ///Errors: + ///NOT_FOUND: + ///- No resource exists with the given key + /// + /// 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.DeleteResourceResponse DeleteResource(global::GatewayProtocol.DeleteResourceRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_DeleteResource, null, options, request); + } + /// + /// + ///Deletes a resource from the state. Once a resource has been deleted it cannot + ///be recovered. If the resource needs to be available again, a new deployment + ///of the resource is required. + /// + ///Deleting a process will cancel any running instances of this process + ///definition. New instances of a deleted process are created using + ///the lastest version that hasn't been deleted. Creating a new + ///process instance is impossible when all versions have been + ///deleted. + /// + ///Deleting a decision requirement definitions could cause incidents in process + ///instances referencing these decisions in a business rule task. A decision + ///will be evaluated with the latest version that hasn't been deleted. If all + ///versions of a decision have been deleted the evaluation is rejected. + /// + ///Errors: + ///NOT_FOUND: + ///- No resource exists with the given key + /// + /// 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 DeleteResourceAsync(global::GatewayProtocol.DeleteResourceRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return DeleteResourceAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// + ///Deletes a resource from the state. Once a resource has been deleted it cannot + ///be recovered. If the resource needs to be available again, a new deployment + ///of the resource is required. + /// + ///Deleting a process will cancel any running instances of this process + ///definition. New instances of a deleted process are created using + ///the lastest version that hasn't been deleted. Creating a new + ///process instance is impossible when all versions have been + ///deleted. + /// + ///Deleting a decision requirement definitions could cause incidents in process + ///instances referencing these decisions in a business rule task. A decision + ///will be evaluated with the latest version that hasn't been deleted. If all + ///versions of a decision have been deleted the evaluation is rejected. + /// + ///Errors: + ///NOT_FOUND: + ///- No resource exists with the given key + /// + /// 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 DeleteResourceAsync(global::GatewayProtocol.DeleteResourceRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_DeleteResource, null, options, request); + } + /// + /// + ///Broadcasts a signal. + /// + /// 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.BroadcastSignalResponse BroadcastSignal(global::GatewayProtocol.BroadcastSignalRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return BroadcastSignal(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// + ///Broadcasts a signal. + /// + /// 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.BroadcastSignalResponse BroadcastSignal(global::GatewayProtocol.BroadcastSignalRequest request, grpc::CallOptions options) + { + return CallInvoker.BlockingUnaryCall(__Method_BroadcastSignal, null, options, request); + } + /// + /// + ///Broadcasts a signal. + /// + /// 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 BroadcastSignalAsync(global::GatewayProtocol.BroadcastSignalRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) + { + return BroadcastSignalAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); + } + /// + /// + ///Broadcasts a signal. + /// + /// 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 BroadcastSignalAsync(global::GatewayProtocol.BroadcastSignalRequest request, grpc::CallOptions options) + { + return CallInvoker.AsyncUnaryCall(__Method_BroadcastSignal, 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) @@ -1778,6 +2139,7 @@ protected override GatewayClient NewInstance(ClientBaseConfiguration configurati .AddMethod(__Method_CompleteJob, serviceImpl.CompleteJob) .AddMethod(__Method_CreateProcessInstance, serviceImpl.CreateProcessInstance) .AddMethod(__Method_CreateProcessInstanceWithResult, serviceImpl.CreateProcessInstanceWithResult) + .AddMethod(__Method_EvaluateDecision, serviceImpl.EvaluateDecision) .AddMethod(__Method_DeployProcess, serviceImpl.DeployProcess) .AddMethod(__Method_DeployResource, serviceImpl.DeployResource) .AddMethod(__Method_FailJob, serviceImpl.FailJob) @@ -1787,7 +2149,9 @@ protected override GatewayClient NewInstance(ClientBaseConfiguration configurati .AddMethod(__Method_SetVariables, serviceImpl.SetVariables) .AddMethod(__Method_Topology, serviceImpl.Topology) .AddMethod(__Method_UpdateJobRetries, serviceImpl.UpdateJobRetries) - .AddMethod(__Method_ModifyProcessInstance, serviceImpl.ModifyProcessInstance).Build(); + .AddMethod(__Method_ModifyProcessInstance, serviceImpl.ModifyProcessInstance) + .AddMethod(__Method_DeleteResource, serviceImpl.DeleteResource) + .AddMethod(__Method_BroadcastSignal, serviceImpl.BroadcastSignal).Build(); } /// Register service method with a service binder with or without implementation. Useful when customizing the service binding logic. @@ -1802,6 +2166,7 @@ public static void BindService(grpc::ServiceBinderBase serviceBinder, GatewayBas serviceBinder.AddMethod(__Method_CompleteJob, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.CompleteJob)); 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_EvaluateDecision, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.EvaluateDecision)); 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)); @@ -1812,6 +2177,8 @@ public static void BindService(grpc::ServiceBinderBase serviceBinder, GatewayBas 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)); + serviceBinder.AddMethod(__Method_DeleteResource, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.DeleteResource)); + serviceBinder.AddMethod(__Method_BroadcastSignal, serviceImpl == null ? null : new grpc::UnaryServerMethod(serviceImpl.BroadcastSignal)); } } diff --git a/generate-grpc/gen-grpc.sh b/generate-grpc/gen-grpc.sh index 2e2e1fce..c65f1ee6 100755 --- a/generate-grpc/gen-grpc.sh +++ b/generate-grpc/gen-grpc.sh @@ -4,7 +4,7 @@ set -euxo pipefail os=linux_x64 grpcVersion=2.51.0 packagePath=~/.nuget/packages/grpc.tools/${grpcVersion}/tools/${os}/ -zeebeVersion='8.1.0' +zeebeVersion='8.2.8' protoFile=gateway.proto gwProtoPath=./ genPath=Client/Impl/proto