// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/telemetry_alerting/v1/keyapis_telemetry_alerting_trigger_v1.proto // #pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Keyapis.TelemetryAlerting.V1 { /// Holder for reflection information generated from keyapis/telemetry_alerting/v1/keyapis_telemetry_alerting_trigger_v1.proto public static partial class KeyapisTelemetryAlertingTriggerV1Reflection { #region Descriptor /// File descriptor for keyapis/telemetry_alerting/v1/keyapis_telemetry_alerting_trigger_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisTelemetryAlertingTriggerV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CklrZXlhcGlzL3RlbGVtZXRyeV9hbGVydGluZy92MS9rZXlhcGlzX3RlbGVt", "ZXRyeV9hbGVydGluZ190cmlnZ2VyX3YxLnByb3RvEh1rZXlhcGlzLnRlbGVt", "ZXRyeV9hbGVydGluZy52MRocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90", "bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoeZ29vZ2xlL3By", "b3RvYnVmL3dyYXBwZXJzLnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0", "YW1wLnByb3RvIskBCiBHZXRUcmlnZ2VyQWxlcnREZXZpY2VMaXN0UmVxdWVz", "dBIPCgJpZBgBIAEoBUID4EECEkEKBmZpbHRlchgCIAEoCzIxLmtleWFwaXMu", "dGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLlRyaWdnZXJBbGVydEZpbHRlchJDCgZw", "YWdpbmcYAyABKAsyMS5rZXlhcGlzLnRlbGVtZXRyeV9hbGVydGluZy52MS5U", "cmlnZ2VyQWxlcnRQYWdpbmdIAEIMCgpwYWdpbmF0aW9uIpIDChJUcmlnZ2Vy", "QWxlcnRQYWdpbmcSVAoNb3JkZXJfYnlfdHlwZRgBIAEoDjI9LmtleWFwaXMu", "dGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLlRyaWdnZXJBbGVydFBhZ2luZy5PcmRl", "ckJ5VHlwZRJXCg5kaXJlY3Rpb25fdHlwZRgCIAEoDjI/LmtleWFwaXMudGVs", "ZW1ldHJ5X2FsZXJ0aW5nLnYxLlRyaWdnZXJBbGVydFBhZ2luZy5EaXJlY3Rp", "b25UeXBlEg0KBWxpbWl0GAMgASgFEg4KBm9mZnNldBgEIAEoBSJuCgtPcmRl", "ckJ5VHlwZRIZChVPUkRFUl9CWV9UWVBFX1VOS05PV04QABINCglSQUlTRURf", "QVQQARIOCgpUUklHR0VSX0lEEAISCQoFVElUTEUQAxIMCghESVNBQkxFRBAE", "EgwKCFNFVkVSSVRZEAUiPgoNRGlyZWN0aW9uVHlwZRIaChZESVJFQ1RJT05f", "VFlQRV9VTktOT1dOEAASCAoEREVTQxABEgcKA0FTQxACIjwKC0FsZXJ0RGV2", "aWNlEhUKCGFsZXJ0X2lkGAEgASgFQgPgQQISFgoJZGV2aWNlX2lkGAIgASgF", "QgPgQQIiZwohR2V0VHJpZ2dlckFsZXJ0RGV2aWNlTGlzdFJlc3BvbnNlEjoK", "BGRhdGEYASABKAsyKi5rZXlhcGlzLnRlbGVtZXRyeV9hbGVydGluZy52MS5B", "bGVydERldmljZUgAQgYKBHR5cGUiJAoRR2V0VHJpZ2dlclJlcXVlc3QSDwoC", "aWQYASABKAVCA+BBAiJUChJHZXRUcmlnZ2VyUmVzcG9uc2USNgoEZGF0YRgB", "IAEoCzImLmtleWFwaXMudGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLlRyaWdnZXJI", "AEIGCgR0eXBlIrIBChpHZXRUcmlnZ2VyQWxlcnRMaXN0UmVxdWVzdBJBCgZm", "aWx0ZXIYASABKAsyMS5rZXlhcGlzLnRlbGVtZXRyeV9hbGVydGluZy52MS5U", "cmlnZ2VyQWxlcnRGaWx0ZXISQwoGcGFnaW5nGAIgASgLMjEua2V5YXBpcy50", "ZWxlbWV0cnlfYWxlcnRpbmcudjEuVHJpZ2dlckFsZXJ0UGFnaW5nSABCDAoK", "cGFnaW5hdGlvbiJnCh5Qb3N0VHJpZ2dlckFsZXJ0RGlzYWJsZVJlcXVlc3QS", "DwoCaWQYASABKAVCA+BBAhI0Cg5jbG9zaW5nX3JlYXNvbhgCIAEoCzIcLmdv", "b2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZSIhCh9Qb3N0VHJpZ2dlckFsZXJ0", "RGlzYWJsZVJlc3BvbnNlImAKG0dldFRyaWdnZXJBbGVydENvdW50UmVxdWVz", "dBJBCgZmaWx0ZXIYASABKAsyMS5rZXlhcGlzLnRlbGVtZXRyeV9hbGVydGlu", "Zy52MS5UcmlnZ2VyQWxlcnRGaWx0ZXIiowEKFUdldFRyaWdnZXJMaXN0UmVx", "dWVzdBI8CgZmaWx0ZXIYASABKAsyLC5rZXlhcGlzLnRlbGVtZXRyeV9hbGVy", "dGluZy52MS5UcmlnZ2VyRmlsdGVyEj4KBnBhZ2luZxgCIAEoCzIsLmtleWFw", "aXMudGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLlRyaWdnZXJQYWdpbmdIAEIMCgpw", "YWdpbmF0aW9uIuwCCg1UcmlnZ2VyUGFnaW5nEk8KDW9yZGVyX2J5X3R5cGUY", "ASABKA4yOC5rZXlhcGlzLnRlbGVtZXRyeV9hbGVydGluZy52MS5UcmlnZ2Vy", "UGFnaW5nLk9yZGVyQnlUeXBlElIKDmRpcmVjdGlvbl90eXBlGAIgASgOMjou", "a2V5YXBpcy50ZWxlbWV0cnlfYWxlcnRpbmcudjEuVHJpZ2dlclBhZ2luZy5E", "aXJlY3Rpb25UeXBlEg0KBWxpbWl0GAMgASgFEg4KBm9mZnNldBgEIAEoBSJX", "CgtPcmRlckJ5VHlwZRIZChVPUkRFUl9CWV9UWVBFX1VOS05PV04QABIGCgJJ", "RBABEgkKBVRJVExFEAISDAoIRElTQUJMRUQQAxIMCghTRVZFUklUWRAEIj4K", "DURpcmVjdGlvblR5cGUSGgoWRElSRUNUSU9OX1RZUEVfVU5LTk9XThAAEggK", "BERFU0MQARIHCgNBU0MQAiKeAwoNVHJpZ2dlckZpbHRlchJLCg5zZXZlcml0", "eV90eXBlcxgBIAMoDjIzLmtleWFwaXMudGVsZW1ldHJ5X2FsZXJ0aW5nLnYx", "LlRyaWdnZXIuU2V2ZXJpdHlUeXBlEgwKBHRhZ3MYAiADKAkSRwoMbWV0cmlj", "X3R5cGVzGAMgAygOMjEua2V5YXBpcy50ZWxlbWV0cnlfYWxlcnRpbmcudjEu", "VHJpZ2dlci5NZXRyaWNUeXBlEhUKDWRldmljZV9tb2RlbHMYBCADKAkSRwoM", "ZGV2aWNlX3R5cGVzGAUgAygOMjEua2V5YXBpcy50ZWxlbWV0cnlfYWxlcnRp", "bmcudjEuVHJpZ2dlci5EZXZpY2VUeXBlElgKFW1ldHJpY19ncm91cGluZ190", "eXBlcxgGIAMoDjI5LmtleWFwaXMudGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLlRy", "aWdnZXIuTWV0cmljR3JvdXBpbmdUeXBlEi8KC2lzX2Rpc2FibGVkGAcgASgL", "MhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZSLsBAoSVHJpZ2dlckFsZXJ0", "RmlsdGVyElMKFnRyaWdnZXJfc2V2ZXJpdHlfdHlwZXMYASADKA4yMy5rZXlh", "cGlzLnRlbGVtZXRyeV9hbGVydGluZy52MS5UcmlnZ2VyLlNldmVyaXR5VHlw", "ZRIQCghmaWFzX2lkcxgCIAMoCRIMCgR0YWdzGAMgAygJEkcKDG1ldHJpY190", "eXBlcxgEIAMoDjIxLmtleWFwaXMudGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLlRy", "aWdnZXIuTWV0cmljVHlwZRIVCg1kZXZpY2VfbW9kZWxzGAUgAygJEkcKDGRl", "dmljZV90eXBlcxgGIAMoDjIxLmtleWFwaXMudGVsZW1ldHJ5X2FsZXJ0aW5n", "LnYxLlRyaWdnZXIuRGV2aWNlVHlwZRIZChFkZXZpY2VfcGFyZW50X2lkcxgH", "IAMoBRISCgpkZXZpY2VfaWRzGAggAygFEi8KC2lzX2Rpc2FibGVkGAkgASgL", "MhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZRIzCg9hZnRlcl9yYWlzZWRf", "YXQYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjQKEGJlZm9y", "ZV9yYWlzZWRfYXQYCyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", "ElgKFW1ldHJpY19ncm91cGluZ190eXBlcxgMIAMoDjI5LmtleWFwaXMudGVs", "ZW1ldHJ5X2FsZXJ0aW5nLnYxLlRyaWdnZXIuTWV0cmljR3JvdXBpbmdUeXBl", "EhMKC3RyaWdnZXJfaWRzGA0gAygFIqISCgdUcmlnZ2VyEgoKAmlkGAEgASgF", "EjMKCmNoYW5nZWRfYXQYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0", "YW1wQgPgQQMSEgoFdGl0bGUYAyABKAlCA+BBAhJPCg1jcml0ZXJpYV90eXBl", "GAQgASgOMjMua2V5YXBpcy50ZWxlbWV0cnlfYWxlcnRpbmcudjEuVHJpZ2dl", "ci5Dcml0ZXJpYVR5cGVCA+BBAhIWCgl0aHJlc2hvbGQYBSABKAJCA+BBAhIW", "CgxzbGlkaW5nX2RheXMYBiABKAVIABJTChBmaXhlZF9kYXlzX3JhbmdlGAcg", "ASgLMjcua2V5YXBpcy50ZWxlbWV0cnlfYWxlcnRpbmcudjEuVHJpZ2dlci5G", "aXhlZERheXNPZk1vbnRoSAASSwoLcGVyaW9kX3R5cGUYCCABKA4yMS5rZXlh", "cGlzLnRlbGVtZXRyeV9hbGVydGluZy52MS5UcmlnZ2VyLlBlcmlvZFR5cGVC", "A+BBAhJPCg1zZXZlcml0eV90eXBlGAkgASgOMjMua2V5YXBpcy50ZWxlbWV0", "cnlfYWxlcnRpbmcudjEuVHJpZ2dlci5TZXZlcml0eVR5cGVCA+BBAhIYCgtp", "c19kaXNhYmxlZBgKIAEoCEID4EECEjEKC2luc3RydWN0aW9uGAsgASgLMhwu", "Z29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEkcKDG1ldHJpY190eXBlcxgM", "IAMoDjIxLmtleWFwaXMudGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLlRyaWdnZXIu", "TWV0cmljVHlwZRIVCg1kZXZpY2VfbW9kZWxzGA0gAygJEkcKDGRldmljZV90", "eXBlcxgOIAMoDjIxLmtleWFwaXMudGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLlRy", "aWdnZXIuRGV2aWNlVHlwZRJXChRtZXRyaWNfZ3JvdXBpbmdfdHlwZRgPIAEo", "DjI5LmtleWFwaXMudGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLlRyaWdnZXIuTWV0", "cmljR3JvdXBpbmdUeXBlEhkKEXN1Y2Nlc3NfdGhyZXNob2xkGBAgASgFEgwK", "BHRhZ3MYESADKAkSHgoWaXNfbWFudWFsbHlfdW5jbG9zYWJsZRgSIAEoCBIl", "Ch1pc19yYW5nZV9tZXRyaWNfZXhwZWN0ZWRfZnJlcRgTIAEoCBo2ChBGaXhl", "ZERheXNPZk1vbnRoEhEKCXN0YXJ0X2RheRgBIAEoBRIPCgdlbmRfZGF5GAIg", "ASgFGsAFCgVBbGVydBIPCgJpZBgBIAEoBUID4EEDEjMKCmNoYW5nZWRfYXQY", "AiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSFwoKdHJp", "Z2dlcl9pZBgDIAEoBUID4EECEhQKB2ZpYXNfaWQYBCABKAlCA+BBAhIyCgly", "YWlzZWRfYXQYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPg", "QQISGAoLaXNfZGlzYWJsZWQYBiABKAhCA+BBAhIiChVub19hbGFybV9jaGVj", "a3NfY291bnQYByABKAVCA+BBAhJPChR0cmlnZ2VyX21ldHJpY190eXBlcxgI", "IAMoDjIxLmtleWFwaXMudGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLlRyaWdnZXIu", "TWV0cmljVHlwZRIVCg1kZXZpY2VfbW9kZWxzGAkgAygJEk8KFHRyaWdnZXJf", "ZGV2aWNlX3R5cGVzGAogAygOMjEua2V5YXBpcy50ZWxlbWV0cnlfYWxlcnRp", "bmcudjEuVHJpZ2dlci5EZXZpY2VUeXBlEjUKEGRldmljZV9wYXJlbnRfaWQY", "CyABKAsyGy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZRItCgljbG9zZWRf", "YXQYDCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhoKEmlzX21h", "bnVhbGx5X2Nsb3NlZBgNIAEoCBI0Cg5jbG9zaW5nX3JlYXNvbhgOIAEoCzIc", "Lmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRJfChx0cmlnZ2VyX21ldHJp", "Y19ncm91cGluZ190eXBlGA8gASgOMjkua2V5YXBpcy50ZWxlbWV0cnlfYWxl", "cnRpbmcudjEuVHJpZ2dlci5NZXRyaWNHcm91cGluZ1R5cGUibQoMQ3JpdGVy", "aWFUeXBlEhkKFUNSSVRFUklBX1RZUEVfVU5LTk9XThAAEhEKDU1FVFJJQ1Nf", "Q09VTlQQARISCg5ERVZJQ0VfUEVSQ0VOVBACEhsKF01FVFJJQ1NfVkFMVUVf", "REVWSUFUSU9OEAMiOQoKUGVyaW9kVHlwZRIXChNQRVJJT0RfVFlQRV9VTktO", "T1dOEAASBwoDREFZEAESCQoFTU9OVEgQAiJOCgxTZXZlcml0eVR5cGUSGQoV", "U0VWRVJJVFlfVFlQRV9VTktOT1dOEAASDAoIQ1JJVElDQUwQARILCgdXQVJO", "SU5HEAISCAoESU5GTxADImgKCk1ldHJpY1R5cGUSFwoTTUVUUklDX1RZUEVf", "VU5LTk9XThAAEg0KCUhPVF9XQVRFUhABEg4KCkNPTERfV0FURVIQAhIICgRI", "RUFUEAMSBwoDR0FTEAQSDwoLRUxFQ1RSSUNJVFkQBSLQAQoKRGV2aWNlVHlw", "ZRIXChNERVZJQ0VfVFlQRV9VTktOT1dOEAASBwoDSFVCEAESGgoWUFVMU0Vf", "Q09VTlRFUl9SRUNPUkRFUhACEh0KGVBVTFNFX0NPVU5URVJfUkVDT1JERVJf", "TFIQAxITCg9NRVRFUklOR19ERVZJQ0UQBBIXChNJTlRFUkZBQ0VfQ09OVkVS", "VEVSEAUSDQoJTV9CVVNfSFVCEAYSGwoXQ09NTVVOSUNBVElPTl9NT0RVTEVf", "TFIQBxILCgdCQVNFX0xSEAgiVAoSTWV0cmljR3JvdXBpbmdUeXBlEiAKHE1F", "VFJJQ19HUk9VUElOR19UWVBFX1VOS05PV04QABINCglQQVJFTlRfSUQQARIN", "CglERVZJQ0VfSUQQAkIHCgVyYW5nZSJYChZHZXRUcmlnZ2VyTGlzdFJlc3Bv", "bnNlEjYKBGRhdGEYASABKAsyJi5rZXlhcGlzLnRlbGVtZXRyeV9hbGVydGlu", "Zy52MS5UcmlnZ2VySABCBgoEdHlwZSJjChtHZXRUcmlnZ2VyQWxlcnRMaXN0", "UmVzcG9uc2USPAoEZGF0YRgBIAEoCzIsLmtleWFwaXMudGVsZW1ldHJ5X2Fs", "ZXJ0aW5nLnYxLlRyaWdnZXIuQWxlcnRIAEIGCgR0eXBlIlYKFkdldFRyaWdn", "ZXJDb3VudFJlcXVlc3QSPAoGZmlsdGVyGAEgASgLMiwua2V5YXBpcy50ZWxl", "bWV0cnlfYWxlcnRpbmcudjEuVHJpZ2dlckZpbHRlciIxChdHZXRUcmlnZ2Vy", "Q291bnRSZXNwb25zZRIOCgRkYXRhGAEgASgFSABCBgoEdHlwZSI2ChxHZXRU", "cmlnZ2VyQWxlcnRDb3VudFJlc3BvbnNlEg4KBGRhdGEYASABKAVIAEIGCgR0", "eXBlIk8KElBvc3RUcmlnZ2VyUmVxdWVzdBI5CgRkYXRhGAEgASgLMiYua2V5", "YXBpcy50ZWxlbWV0cnlfYWxlcnRpbmcudjEuVHJpZ2dlckID4EECIlUKE1Bv", "c3RUcmlnZ2VyUmVzcG9uc2USNgoEZGF0YRgBIAEoCzImLmtleWFwaXMudGVs", "ZW1ldHJ5X2FsZXJ0aW5nLnYxLlRyaWdnZXJIAEIGCgR0eXBlIicKFERlbGV0", "ZVRyaWdnZXJSZXF1ZXN0Eg8KAmlkGAEgASgFQgPgQQIiFwoVRGVsZXRlVHJp", "Z2dlclJlc3BvbnNlIiwKGURlbGV0ZVRyaWdnZXJBbGVydFJlcXVlc3QSDwoC", "aWQYASABKAVCA+BBAiIcChpEZWxldGVUcmlnZ2VyQWxlcnRSZXNwb25zZTKG", "DwoOVHJpZ2dlclNlcnZpY2USowEKC1Bvc3RUcmlnZ2VyEjEua2V5YXBpcy50", "ZWxlbWV0cnlfYWxlcnRpbmcudjEuUG9zdFRyaWdnZXJSZXF1ZXN0GjIua2V5", "YXBpcy50ZWxlbWV0cnlfYWxlcnRpbmcudjEuUG9zdFRyaWdnZXJSZXNwb25z", "ZSItgtPkkwInIiIvdGVsZW1ldHJ5X2FsZXJ0aW5nL2FwaS92MS90cmlnZ2Vy", "OgEqEqIBCgpHZXRUcmlnZ2VyEjAua2V5YXBpcy50ZWxlbWV0cnlfYWxlcnRp", "bmcudjEuR2V0VHJpZ2dlclJlcXVlc3QaMS5rZXlhcGlzLnRlbGVtZXRyeV9h", "bGVydGluZy52MS5HZXRUcmlnZ2VyUmVzcG9uc2UiL4LT5JMCKRInL3RlbGVt", "ZXRyeV9hbGVydGluZy9hcGkvdjEvdHJpZ2dlci97aWR9ErABCg5HZXRUcmln", "Z2VyTGlzdBI0LmtleWFwaXMudGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLkdldFRy", "aWdnZXJMaXN0UmVxdWVzdBo1LmtleWFwaXMudGVsZW1ldHJ5X2FsZXJ0aW5n", "LnYxLkdldFRyaWdnZXJMaXN0UmVzcG9uc2UiL4LT5JMCKRInL3RlbGVtZXRy", "eV9hbGVydGluZy9hcGkvdjEvdHJpZ2dlci9saXN0MAESsgEKD0dldFRyaWdn", "ZXJDb3VudBI1LmtleWFwaXMudGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLkdldFRy", "aWdnZXJDb3VudFJlcXVlc3QaNi5rZXlhcGlzLnRlbGVtZXRyeV9hbGVydGlu", "Zy52MS5HZXRUcmlnZ2VyQ291bnRSZXNwb25zZSIwgtPkkwIqEigvdGVsZW1l", "dHJ5X2FsZXJ0aW5nL2FwaS92MS90cmlnZ2VyL2NvdW50EqsBCg1EZWxldGVU", "cmlnZ2VyEjMua2V5YXBpcy50ZWxlbWV0cnlfYWxlcnRpbmcudjEuRGVsZXRl", "VHJpZ2dlclJlcXVlc3QaNC5rZXlhcGlzLnRlbGVtZXRyeV9hbGVydGluZy52", "MS5EZWxldGVUcmlnZ2VyUmVzcG9uc2UiL4LT5JMCKSonL3RlbGVtZXRyeV9h", "bGVydGluZy9hcGkvdjEvdHJpZ2dlci97aWR9EsUBChNHZXRUcmlnZ2VyQWxl", "cnRMaXN0Ejkua2V5YXBpcy50ZWxlbWV0cnlfYWxlcnRpbmcudjEuR2V0VHJp", "Z2dlckFsZXJ0TGlzdFJlcXVlc3QaOi5rZXlhcGlzLnRlbGVtZXRyeV9hbGVy", "dGluZy52MS5HZXRUcmlnZ2VyQWxlcnRMaXN0UmVzcG9uc2UiNYLT5JMCLxIt", "L3RlbGVtZXRyeV9hbGVydGluZy9hcGkvdjEvdHJpZ2dlci9hbGVydC9saXN0", "MAESxwEKFEdldFRyaWdnZXJBbGVydENvdW50Ejoua2V5YXBpcy50ZWxlbWV0", "cnlfYWxlcnRpbmcudjEuR2V0VHJpZ2dlckFsZXJ0Q291bnRSZXF1ZXN0Gjsu", "a2V5YXBpcy50ZWxlbWV0cnlfYWxlcnRpbmcudjEuR2V0VHJpZ2dlckFsZXJ0", "Q291bnRSZXNwb25zZSI2gtPkkwIwEi4vdGVsZW1ldHJ5X2FsZXJ0aW5nL2Fw", "aS92MS90cmlnZ2VyL2FsZXJ0L2NvdW50EsABChJEZWxldGVUcmlnZ2VyQWxl", "cnQSOC5rZXlhcGlzLnRlbGVtZXRyeV9hbGVydGluZy52MS5EZWxldGVUcmln", "Z2VyQWxlcnRSZXF1ZXN0Gjkua2V5YXBpcy50ZWxlbWV0cnlfYWxlcnRpbmcu", "djEuRGVsZXRlVHJpZ2dlckFsZXJ0UmVzcG9uc2UiNYLT5JMCLyotL3RlbGVt", "ZXRyeV9hbGVydGluZy9hcGkvdjEvdHJpZ2dlci9hbGVydC97aWR9EtcBChdQ", "b3N0VHJpZ2dlckFsZXJ0RGlzYWJsZRI9LmtleWFwaXMudGVsZW1ldHJ5X2Fs", "ZXJ0aW5nLnYxLlBvc3RUcmlnZ2VyQWxlcnREaXNhYmxlUmVxdWVzdBo+Lmtl", "eWFwaXMudGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLlBvc3RUcmlnZ2VyQWxlcnRE", "aXNhYmxlUmVzcG9uc2UiPYLT5JMCNyI1L3RlbGVtZXRyeV9hbGVydGluZy9h", "cGkvdjEvdHJpZ2dlci9hbGVydC97aWR9L2Rpc2FibGUS4wEKGUdldFRyaWdn", "ZXJBbGVydERldmljZUxpc3QSPy5rZXlhcGlzLnRlbGVtZXRyeV9hbGVydGlu", "Zy52MS5HZXRUcmlnZ2VyQWxlcnREZXZpY2VMaXN0UmVxdWVzdBpALmtleWFw", "aXMudGVsZW1ldHJ5X2FsZXJ0aW5nLnYxLkdldFRyaWdnZXJBbGVydERldmlj", "ZUxpc3RSZXNwb25zZSJBgtPkkwI7EjkvdGVsZW1ldHJ5X2FsZXJ0aW5nL2Fw", "aS92MS90cmlnZ2VyL2FsZXJ0L3tpZH0vZGV2aWNlL2xpc3QwAULqAQogcnUu", "a2V5YXBpcy50ZWxlbWV0cnlfYWxlcnRpbmcudjFCH0tleWFwaXNUZWxlbWV0", "cnlBbGVydGluZ1YxUHJvdG9IA1AAWh4va2V5YXBpc190ZWxlbWV0cnlfYWxl", "cnRpbmdfdjHYAQH4AQGiAhtLRVlBUElTVEVMRU1FVFJZQUxFUlRJTkdZVjGq", "AhxLZXlhcGlzLlRlbGVtZXRyeUFsZXJ0aW5nLlYxygIcS2V5YXBpc1xUZWxl", "bWV0cnlBbGVydGluZ1xWMeoCHktleWFwaXM6OlRlbGVtZXRyeUFsZXJ0aW5n", "OjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertDeviceListRequest), global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertDeviceListRequest.Parser, new[]{ "Id", "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging), global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.OrderByType), typeof(global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.DirectionType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.AlertDevice), global::Keyapis.TelemetryAlerting.V1.AlertDevice.Parser, new[]{ "AlertId", "DeviceId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertDeviceListResponse), global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertDeviceListResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.GetTriggerRequest), global::Keyapis.TelemetryAlerting.V1.GetTriggerRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.GetTriggerResponse), global::Keyapis.TelemetryAlerting.V1.GetTriggerResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertListRequest), global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.PostTriggerAlertDisableRequest), global::Keyapis.TelemetryAlerting.V1.PostTriggerAlertDisableRequest.Parser, new[]{ "Id", "ClosingReason" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.PostTriggerAlertDisableResponse), global::Keyapis.TelemetryAlerting.V1.PostTriggerAlertDisableResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertCountRequest), global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertCountRequest.Parser, new[]{ "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.GetTriggerListRequest), global::Keyapis.TelemetryAlerting.V1.GetTriggerListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.TriggerPaging), global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.OrderByType), typeof(global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.DirectionType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.TriggerFilter), global::Keyapis.TelemetryAlerting.V1.TriggerFilter.Parser, new[]{ "SeverityTypes", "Tags", "MetricTypes", "DeviceModels", "DeviceTypes", "MetricGroupingTypes", "IsDisabled" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter), global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter.Parser, new[]{ "TriggerSeverityTypes", "FiasIds", "Tags", "MetricTypes", "DeviceModels", "DeviceTypes", "DeviceParentIds", "DeviceIds", "IsDisabled", "AfterRaisedAt", "BeforeRaisedAt", "MetricGroupingTypes", "TriggerIds" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.Trigger), global::Keyapis.TelemetryAlerting.V1.Trigger.Parser, new[]{ "Id", "ChangedAt", "Title", "CriteriaType", "Threshold", "SlidingDays", "FixedDaysRange", "PeriodType", "SeverityType", "IsDisabled", "Instruction", "MetricTypes", "DeviceModels", "DeviceTypes", "MetricGroupingType", "SuccessThreshold", "Tags", "IsManuallyUnclosable", "IsRangeMetricExpectedFreq" }, new[]{ "Range" }, new[]{ typeof(global::Keyapis.TelemetryAlerting.V1.Trigger.Types.CriteriaType), typeof(global::Keyapis.TelemetryAlerting.V1.Trigger.Types.PeriodType), typeof(global::Keyapis.TelemetryAlerting.V1.Trigger.Types.SeverityType), typeof(global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricType), typeof(global::Keyapis.TelemetryAlerting.V1.Trigger.Types.DeviceType), typeof(global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.Trigger.Types.FixedDaysOfMonth), global::Keyapis.TelemetryAlerting.V1.Trigger.Types.FixedDaysOfMonth.Parser, new[]{ "StartDay", "EndDay" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.Trigger.Types.Alert), global::Keyapis.TelemetryAlerting.V1.Trigger.Types.Alert.Parser, new[]{ "Id", "ChangedAt", "TriggerId", "FiasId", "RaisedAt", "IsDisabled", "NoAlarmChecksCount", "TriggerMetricTypes", "DeviceModels", "TriggerDeviceTypes", "DeviceParentId", "ClosedAt", "IsManuallyClosed", "ClosingReason", "TriggerMetricGroupingType" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.GetTriggerListResponse), global::Keyapis.TelemetryAlerting.V1.GetTriggerListResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertListResponse), global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertListResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.GetTriggerCountRequest), global::Keyapis.TelemetryAlerting.V1.GetTriggerCountRequest.Parser, new[]{ "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.GetTriggerCountResponse), global::Keyapis.TelemetryAlerting.V1.GetTriggerCountResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertCountResponse), global::Keyapis.TelemetryAlerting.V1.GetTriggerAlertCountResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.PostTriggerRequest), global::Keyapis.TelemetryAlerting.V1.PostTriggerRequest.Parser, new[]{ "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.PostTriggerResponse), global::Keyapis.TelemetryAlerting.V1.PostTriggerResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerRequest), global::Keyapis.TelemetryAlerting.V1.DeleteTriggerRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerResponse), global::Keyapis.TelemetryAlerting.V1.DeleteTriggerResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerAlertRequest), global::Keyapis.TelemetryAlerting.V1.DeleteTriggerAlertRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryAlerting.V1.DeleteTriggerAlertResponse), global::Keyapis.TelemetryAlerting.V1.DeleteTriggerAlertResponse.Parser, null, null, null, null, null) })); } #endregion } #region Messages /// /// Запрос списка устройств, вызвавших появление алерта /// public sealed partial class GetTriggerAlertDeviceListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTriggerAlertDeviceListRequest()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertDeviceListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertDeviceListRequest(GetTriggerAlertDeviceListRequest other) : this() { id_ = other.id_; filter_ = other.filter_ != null ? other.filter_.Clone() : null; switch (other.PaginationCase) { case PaginationOneofCase.Paging: Paging = other.Paging.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertDeviceListRequest Clone() { return new GetTriggerAlertDeviceListRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор алерта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } /// Field number for the "filter" field. public const int FilterFieldNumber = 2; private global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter filter_; /// /// Параметры фильтрации алерта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter Filter { get { return filter_; } set { filter_ = value; } } /// Field number for the "paging" field. public const int PagingFieldNumber = 3; /// /// Параметры пагинации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging) pagination_ : null; } set { pagination_ = value; paginationCase_ = value == null ? PaginationOneofCase.None : PaginationOneofCase.Paging; } } private object pagination_; /// Enum of possible cases for the "pagination" oneof. public enum PaginationOneofCase { None = 0, Paging = 3, } private PaginationOneofCase paginationCase_ = PaginationOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PaginationOneofCase PaginationCase { get { return paginationCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearPagination() { paginationCase_ = PaginationOneofCase.None; pagination_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetTriggerAlertDeviceListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetTriggerAlertDeviceListRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (!object.Equals(Filter, other.Filter)) return false; if (!object.Equals(Paging, other.Paging)) return false; if (PaginationCase != other.PaginationCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (filter_ != null) hash ^= Filter.GetHashCode(); if (paginationCase_ == PaginationOneofCase.Paging) hash ^= Paging.GetHashCode(); hash ^= (int) paginationCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (filter_ != null) { output.WriteRawTag(18); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(26); output.WriteMessage(Paging); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (filter_ != null) { output.WriteRawTag(18); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(26); output.WriteMessage(Paging); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Paging); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetTriggerAlertDeviceListRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging(); } Paging.MergeFrom(other.Paging); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } case 18: { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter(); } input.ReadMessage(Filter); break; } case 26: { global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging subBuilder = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } case 18: { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter(); } input.ReadMessage(Filter); break; } case 26: { global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging subBuilder = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Параметры пагинации алертов /// public sealed partial class TriggerAlertPaging : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TriggerAlertPaging()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TriggerAlertPaging() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TriggerAlertPaging(TriggerAlertPaging other) : this() { orderByType_ = other.orderByType_; directionType_ = other.directionType_; limit_ = other.limit_; offset_ = other.offset_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TriggerAlertPaging Clone() { return new TriggerAlertPaging(this); } /// Field number for the "order_by_type" field. public const int OrderByTypeFieldNumber = 1; private global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.OrderByType orderByType_ = global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.OrderByType.Unknown; /// /// Тип значения сортировки. /// По умолчанию: ORDER_BY_TYPE_RAISED_AT /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.OrderByType OrderByType { get { return orderByType_; } set { orderByType_ = value; } } /// Field number for the "direction_type" field. public const int DirectionTypeFieldNumber = 2; private global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.DirectionType directionType_ = global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.DirectionType.Unknown; /// /// Тип направления сортировки. /// По умолчанию: DESC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.DirectionType DirectionType { get { return directionType_; } set { directionType_ = value; } } /// Field number for the "limit" field. public const int LimitFieldNumber = 3; private int limit_; /// /// Сколько элементов нужно получить за раз. /// Минимальное значение: 1. /// Максимальное значение: 100. /// По умолчанию: 20. /// Если значение 0 (не передано), то выставляем значение по умолчанию /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Limit { get { return limit_; } set { limit_ = value; } } /// Field number for the "offset" field. public const int OffsetFieldNumber = 4; private int offset_; /// /// Начальный сдвиг. /// По умолчанию: 0 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Offset { get { return offset_; } set { offset_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TriggerAlertPaging); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TriggerAlertPaging other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (OrderByType != other.OrderByType) return false; if (DirectionType != other.DirectionType) return false; if (Limit != other.Limit) return false; if (Offset != other.Offset) 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 (OrderByType != global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode(); if (DirectionType != global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.DirectionType.Unknown) hash ^= DirectionType.GetHashCode(); if (Limit != 0) hash ^= Limit.GetHashCode(); if (Offset != 0) hash ^= Offset.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 (OrderByType != global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } 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 (OrderByType != global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } 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 (OrderByType != global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.OrderByType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.DirectionType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DirectionType); } if (Limit != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit); } if (Offset != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Offset); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TriggerAlertPaging other) { if (other == null) { return; } if (other.OrderByType != global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.OrderByType.Unknown) { OrderByType = other.OrderByType; } if (other.DirectionType != global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.DirectionType.Unknown) { DirectionType = other.DirectionType; } if (other.Limit != 0) { Limit = other.Limit; } if (other.Offset != 0) { Offset = other.Offset; } _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: { OrderByType = (global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = 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: { OrderByType = (global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = input.ReadInt32(); break; } } } } #endif #region Nested types /// Container for nested types declared in the TriggerAlertPaging message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов значений сортировки /// public enum OrderByType { /// /// Значение не указано /// [pbr::OriginalName("ORDER_BY_TYPE_UNKNOWN")] Unknown = 0, /// /// По дате возникновения /// [pbr::OriginalName("RAISED_AT")] RaisedAt = 1, /// /// По идентификатору триггера /// [pbr::OriginalName("TRIGGER_ID")] TriggerId = 2, /// /// По заголовку триггера /// [pbr::OriginalName("TITLE")] Title = 3, /// /// По флагу активности триггера /// [pbr::OriginalName("DISABLED")] Disabled = 4, /// /// По триггеру /// [pbr::OriginalName("SEVERITY")] Severity = 5, } /// /// Справочник типов направлений сортировки /// public enum DirectionType { /// /// Значение не указано /// [pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0, /// /// От большего к меньшему /// [pbr::OriginalName("DESC")] Desc = 1, /// /// От меньшего к большему /// [pbr::OriginalName("ASC")] Asc = 2, } } #endregion } /// /// Факты сработки алерта на устройствах /// public sealed partial class AlertDevice : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AlertDevice()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AlertDevice() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AlertDevice(AlertDevice other) : this() { alertId_ = other.alertId_; deviceId_ = other.deviceId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AlertDevice Clone() { return new AlertDevice(this); } /// Field number for the "alert_id" field. public const int AlertIdFieldNumber = 1; private int alertId_; /// /// Идентификатор алерта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int AlertId { get { return alertId_; } set { alertId_ = value; } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 2; private int deviceId_; /// /// Идентификатор устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DeviceId { get { return deviceId_; } set { deviceId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AlertDevice); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AlertDevice other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (AlertId != other.AlertId) return false; if (DeviceId != other.DeviceId) 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 (AlertId != 0) hash ^= AlertId.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.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 (AlertId != 0) { output.WriteRawTag(8); output.WriteInt32(AlertId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } 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 (AlertId != 0) { output.WriteRawTag(8); output.WriteInt32(AlertId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } 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 (AlertId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(AlertId); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AlertDevice other) { if (other == null) { return; } if (other.AlertId != 0) { AlertId = other.AlertId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } _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: { AlertId = input.ReadInt32(); break; } case 16: { DeviceId = 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: { AlertId = input.ReadInt32(); break; } case 16: { DeviceId = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на запрос списка устройств, вызвавших появление алерта /// public sealed partial class GetTriggerAlertDeviceListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTriggerAlertDeviceListResponse()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertDeviceListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertDeviceListResponse(GetTriggerAlertDeviceListResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertDeviceListResponse Clone() { return new GetTriggerAlertDeviceListResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Факт сработки триггера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.AlertDevice Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryAlerting.V1.AlertDevice) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetTriggerAlertDeviceListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetTriggerAlertDeviceListResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) 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 (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; 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 (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } 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 (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } 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 (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetTriggerAlertDeviceListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryAlerting.V1.AlertDevice(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.TelemetryAlerting.V1.AlertDevice subBuilder = new global::Keyapis.TelemetryAlerting.V1.AlertDevice(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.TelemetryAlerting.V1.AlertDevice subBuilder = new global::Keyapis.TelemetryAlerting.V1.AlertDevice(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос на чтение триггера /// public sealed partial class GetTriggerRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTriggerRequest()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerRequest(GetTriggerRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerRequest Clone() { return new GetTriggerRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор триггера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetTriggerRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetTriggerRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetTriggerRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } _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: { Id = 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: { Id = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на чтение триггера /// public sealed partial class GetTriggerResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTriggerResponse()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerResponse(GetTriggerResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerResponse Clone() { return new GetTriggerResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Триггер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.Trigger Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryAlerting.V1.Trigger) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetTriggerResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetTriggerResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) 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 (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; 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 (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } 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 (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } 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 (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetTriggerResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryAlerting.V1.Trigger(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.TelemetryAlerting.V1.Trigger subBuilder = new global::Keyapis.TelemetryAlerting.V1.Trigger(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.TelemetryAlerting.V1.Trigger subBuilder = new global::Keyapis.TelemetryAlerting.V1.Trigger(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос получения списка алертов /// public sealed partial class GetTriggerAlertListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTriggerAlertListRequest()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertListRequest(GetTriggerAlertListRequest other) : this() { filter_ = other.filter_ != null ? other.filter_.Clone() : null; switch (other.PaginationCase) { case PaginationOneofCase.Paging: Paging = other.Paging.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertListRequest Clone() { return new GetTriggerAlertListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter filter_; /// /// Параметры фильтрации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter Filter { get { return filter_; } set { filter_ = value; } } /// Field number for the "paging" field. public const int PagingFieldNumber = 2; /// /// Параметры пагинации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging) pagination_ : null; } set { pagination_ = value; paginationCase_ = value == null ? PaginationOneofCase.None : PaginationOneofCase.Paging; } } private object pagination_; /// Enum of possible cases for the "pagination" oneof. public enum PaginationOneofCase { None = 0, Paging = 2, } private PaginationOneofCase paginationCase_ = PaginationOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PaginationOneofCase PaginationCase { get { return paginationCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearPagination() { paginationCase_ = PaginationOneofCase.None; pagination_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetTriggerAlertListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetTriggerAlertListRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Filter, other.Filter)) return false; if (!object.Equals(Paging, other.Paging)) return false; if (PaginationCase != other.PaginationCase) 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 (filter_ != null) hash ^= Filter.GetHashCode(); if (paginationCase_ == PaginationOneofCase.Paging) hash ^= Paging.GetHashCode(); hash ^= (int) paginationCase_; 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 (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(18); output.WriteMessage(Paging); } 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 (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(18); output.WriteMessage(Paging); } 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 (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Paging); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetTriggerAlertListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging(); } Paging.MergeFrom(other.Paging); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging subBuilder = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging subBuilder = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Запрос на погашение алерта /// public sealed partial class PostTriggerAlertDisableRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostTriggerAlertDisableRequest()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostTriggerAlertDisableRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostTriggerAlertDisableRequest(PostTriggerAlertDisableRequest other) : this() { id_ = other.id_; ClosingReason = other.ClosingReason; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostTriggerAlertDisableRequest Clone() { return new PostTriggerAlertDisableRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор алерта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } /// Field number for the "closing_reason" field. public const int ClosingReasonFieldNumber = 2; private static readonly pb::FieldCodec _single_closingReason_codec = pb::FieldCodec.ForClassWrapper(18); private string closingReason_; /// /// Причина принудительного закрытия, заполняется в момент принудительного закрытия /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ClosingReason { get { return closingReason_; } set { closingReason_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostTriggerAlertDisableRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostTriggerAlertDisableRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (ClosingReason != other.ClosingReason) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (closingReason_ != null) hash ^= ClosingReason.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (closingReason_ != null) { _single_closingReason_codec.WriteTagAndValue(output, ClosingReason); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (closingReason_ != null) { _single_closingReason_codec.WriteTagAndValue(ref output, ClosingReason); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (closingReason_ != null) { size += _single_closingReason_codec.CalculateSizeWithTag(ClosingReason); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostTriggerAlertDisableRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.closingReason_ != null) { if (closingReason_ == null || other.ClosingReason != "") { ClosingReason = other.ClosingReason; } } _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: { Id = input.ReadInt32(); break; } case 18: { string value = _single_closingReason_codec.Read(input); if (closingReason_ == null || value != "") { ClosingReason = value; } 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: { Id = input.ReadInt32(); break; } case 18: { string value = _single_closingReason_codec.Read(ref input); if (closingReason_ == null || value != "") { ClosingReason = value; } break; } } } } #endif } /// /// Ответ на запрос погашение алерта /// public sealed partial class PostTriggerAlertDisableResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostTriggerAlertDisableResponse()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostTriggerAlertDisableResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostTriggerAlertDisableResponse(PostTriggerAlertDisableResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostTriggerAlertDisableResponse Clone() { return new PostTriggerAlertDisableResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostTriggerAlertDisableResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostTriggerAlertDisableResponse 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(PostTriggerAlertDisableResponse 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 GetTriggerAlertCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTriggerAlertCountRequest()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertCountRequest(GetTriggerAlertCountRequest other) : this() { filter_ = other.filter_ != null ? other.filter_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertCountRequest Clone() { return new GetTriggerAlertCountRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter filter_; /// /// Параметры фильтрации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter Filter { get { return filter_; } set { filter_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetTriggerAlertCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetTriggerAlertCountRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Filter, other.Filter)) 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 (filter_ != null) hash ^= Filter.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 (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } 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 (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } 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 (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetTriggerAlertCountRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter(); } Filter.MergeFrom(other.Filter); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter(); } input.ReadMessage(Filter); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerAlertFilter(); } input.ReadMessage(Filter); break; } } } } #endif } /// /// Запрос получения списка триггеров /// public sealed partial class GetTriggerListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTriggerListRequest()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerListRequest(GetTriggerListRequest other) : this() { filter_ = other.filter_ != null ? other.filter_.Clone() : null; switch (other.PaginationCase) { case PaginationOneofCase.Paging: Paging = other.Paging.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerListRequest Clone() { return new GetTriggerListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.TelemetryAlerting.V1.TriggerFilter filter_; /// /// Параметры фильтрации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.TriggerFilter Filter { get { return filter_; } set { filter_ = value; } } /// Field number for the "paging" field. public const int PagingFieldNumber = 2; /// /// Параметры пагинации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.TriggerPaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.TelemetryAlerting.V1.TriggerPaging) pagination_ : null; } set { pagination_ = value; paginationCase_ = value == null ? PaginationOneofCase.None : PaginationOneofCase.Paging; } } private object pagination_; /// Enum of possible cases for the "pagination" oneof. public enum PaginationOneofCase { None = 0, Paging = 2, } private PaginationOneofCase paginationCase_ = PaginationOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PaginationOneofCase PaginationCase { get { return paginationCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearPagination() { paginationCase_ = PaginationOneofCase.None; pagination_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetTriggerListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetTriggerListRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Filter, other.Filter)) return false; if (!object.Equals(Paging, other.Paging)) return false; if (PaginationCase != other.PaginationCase) 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 (filter_ != null) hash ^= Filter.GetHashCode(); if (paginationCase_ == PaginationOneofCase.Paging) hash ^= Paging.GetHashCode(); hash ^= (int) paginationCase_; 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 (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(18); output.WriteMessage(Paging); } 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 (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(18); output.WriteMessage(Paging); } 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 (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Paging); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetTriggerListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.TelemetryAlerting.V1.TriggerPaging(); } Paging.MergeFrom(other.Paging); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.TelemetryAlerting.V1.TriggerPaging subBuilder = new global::Keyapis.TelemetryAlerting.V1.TriggerPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.TelemetryAlerting.V1.TriggerPaging subBuilder = new global::Keyapis.TelemetryAlerting.V1.TriggerPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Параметры пагинации триггеров /// public sealed partial class TriggerPaging : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TriggerPaging()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[11]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TriggerPaging() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TriggerPaging(TriggerPaging other) : this() { orderByType_ = other.orderByType_; directionType_ = other.directionType_; limit_ = other.limit_; offset_ = other.offset_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TriggerPaging Clone() { return new TriggerPaging(this); } /// Field number for the "order_by_type" field. public const int OrderByTypeFieldNumber = 1; private global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.OrderByType orderByType_ = global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.OrderByType.Unknown; /// /// Тип значения сортировки. /// По умолчанию: SEVERITY /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.OrderByType OrderByType { get { return orderByType_; } set { orderByType_ = value; } } /// Field number for the "direction_type" field. public const int DirectionTypeFieldNumber = 2; private global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.DirectionType directionType_ = global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.DirectionType.Unknown; /// /// Тип направления сортировки. /// По умолчанию: ASC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.DirectionType DirectionType { get { return directionType_; } set { directionType_ = value; } } /// Field number for the "limit" field. public const int LimitFieldNumber = 3; private int limit_; /// /// Сколько элементов нужно получить за раз. /// Минимальное значение: 1. /// Максимальное значение: 100. /// По умолчанию: 20. /// Если значение 0 (не передано), то выставляем значение по умолчанию /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Limit { get { return limit_; } set { limit_ = value; } } /// Field number for the "offset" field. public const int OffsetFieldNumber = 4; private int offset_; /// /// Начальный сдвиг. /// По умолчанию: 0 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Offset { get { return offset_; } set { offset_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TriggerPaging); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TriggerPaging other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (OrderByType != other.OrderByType) return false; if (DirectionType != other.DirectionType) return false; if (Limit != other.Limit) return false; if (Offset != other.Offset) 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 (OrderByType != global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode(); if (DirectionType != global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.DirectionType.Unknown) hash ^= DirectionType.GetHashCode(); if (Limit != 0) hash ^= Limit.GetHashCode(); if (Offset != 0) hash ^= Offset.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 (OrderByType != global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } 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 (OrderByType != global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } 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 (OrderByType != global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.OrderByType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.DirectionType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DirectionType); } if (Limit != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit); } if (Offset != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Offset); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TriggerPaging other) { if (other == null) { return; } if (other.OrderByType != global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.OrderByType.Unknown) { OrderByType = other.OrderByType; } if (other.DirectionType != global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.DirectionType.Unknown) { DirectionType = other.DirectionType; } if (other.Limit != 0) { Limit = other.Limit; } if (other.Offset != 0) { Offset = other.Offset; } _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: { OrderByType = (global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = 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: { OrderByType = (global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.TelemetryAlerting.V1.TriggerPaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = input.ReadInt32(); break; } } } } #endif #region Nested types /// Container for nested types declared in the TriggerPaging message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов значений сортировки /// public enum OrderByType { /// /// Значение не указано /// [pbr::OriginalName("ORDER_BY_TYPE_UNKNOWN")] Unknown = 0, /// /// По идентификатору /// [pbr::OriginalName("ID")] Id = 1, /// /// По заголовку /// [pbr::OriginalName("TITLE")] Title = 2, /// /// По флагу активности /// [pbr::OriginalName("DISABLED")] Disabled = 3, /// /// По Severity /// [pbr::OriginalName("SEVERITY")] Severity = 4, } /// /// Справочник типов направлений сортировки /// public enum DirectionType { /// /// Значение не указано /// [pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0, /// /// От большего к меньшему /// [pbr::OriginalName("DESC")] Desc = 1, /// /// От меньшего к большему /// [pbr::OriginalName("ASC")] Asc = 2, } } #endregion } /// /// Параметры фильтрации триггеров. /// При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ. /// При передаче нескольких разных параметров фильтра они работают в выборке через И /// public sealed partial class TriggerFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TriggerFilter()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TriggerFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TriggerFilter(TriggerFilter other) : this() { severityTypes_ = other.severityTypes_.Clone(); tags_ = other.tags_.Clone(); metricTypes_ = other.metricTypes_.Clone(); deviceModels_ = other.deviceModels_.Clone(); deviceTypes_ = other.deviceTypes_.Clone(); metricGroupingTypes_ = other.metricGroupingTypes_.Clone(); IsDisabled = other.IsDisabled; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TriggerFilter Clone() { return new TriggerFilter(this); } /// Field number for the "severity_types" field. public const int SeverityTypesFieldNumber = 1; private static readonly pb::FieldCodec _repeated_severityTypes_codec = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.SeverityType) x); private readonly pbc::RepeatedField severityTypes_ = new pbc::RepeatedField(); /// /// По уровням критичности /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SeverityTypes { get { return severityTypes_; } } /// Field number for the "tags" field. public const int TagsFieldNumber = 2; private static readonly pb::FieldCodec _repeated_tags_codec = pb::FieldCodec.ForString(18); private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); /// /// По тэгам /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Tags { get { return tags_; } } /// Field number for the "metric_types" field. public const int MetricTypesFieldNumber = 3; private static readonly pb::FieldCodec _repeated_metricTypes_codec = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricType) x); private readonly pbc::RepeatedField metricTypes_ = new pbc::RepeatedField(); /// /// По типам метрик триггеров /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MetricTypes { get { return metricTypes_; } } /// Field number for the "device_models" field. public const int DeviceModelsFieldNumber = 4; private static readonly pb::FieldCodec _repeated_deviceModels_codec = pb::FieldCodec.ForString(34); private readonly pbc::RepeatedField deviceModels_ = new pbc::RepeatedField(); /// /// По моделям устройств /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceModels { get { return deviceModels_; } } /// Field number for the "device_types" field. public const int DeviceTypesFieldNumber = 5; private static readonly pb::FieldCodec _repeated_deviceTypes_codec = pb::FieldCodec.ForEnum(42, x => (int) x, x => (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.DeviceType) x); private readonly pbc::RepeatedField deviceTypes_ = new pbc::RepeatedField(); /// /// По типам устройств /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceTypes { get { return deviceTypes_; } } /// Field number for the "metric_grouping_types" field. public const int MetricGroupingTypesFieldNumber = 6; private static readonly pb::FieldCodec _repeated_metricGroupingTypes_codec = pb::FieldCodec.ForEnum(50, x => (int) x, x => (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType) x); private readonly pbc::RepeatedField metricGroupingTypes_ = new pbc::RepeatedField(); /// /// По типам группировки метрик /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MetricGroupingTypes { get { return metricGroupingTypes_; } } /// Field number for the "is_disabled" field. public const int IsDisabledFieldNumber = 7; private static readonly pb::FieldCodec _single_isDisabled_codec = pb::FieldCodec.ForStructWrapper(58); private bool? isDisabled_; /// /// По признаку активности триггера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool? IsDisabled { get { return isDisabled_; } set { isDisabled_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TriggerFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TriggerFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!severityTypes_.Equals(other.severityTypes_)) return false; if(!tags_.Equals(other.tags_)) return false; if(!metricTypes_.Equals(other.metricTypes_)) return false; if(!deviceModels_.Equals(other.deviceModels_)) return false; if(!deviceTypes_.Equals(other.deviceTypes_)) return false; if(!metricGroupingTypes_.Equals(other.metricGroupingTypes_)) return false; if (IsDisabled != other.IsDisabled) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= severityTypes_.GetHashCode(); hash ^= tags_.GetHashCode(); hash ^= metricTypes_.GetHashCode(); hash ^= deviceModels_.GetHashCode(); hash ^= deviceTypes_.GetHashCode(); hash ^= metricGroupingTypes_.GetHashCode(); if (isDisabled_ != null) hash ^= IsDisabled.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 severityTypes_.WriteTo(output, _repeated_severityTypes_codec); tags_.WriteTo(output, _repeated_tags_codec); metricTypes_.WriteTo(output, _repeated_metricTypes_codec); deviceModels_.WriteTo(output, _repeated_deviceModels_codec); deviceTypes_.WriteTo(output, _repeated_deviceTypes_codec); metricGroupingTypes_.WriteTo(output, _repeated_metricGroupingTypes_codec); if (isDisabled_ != null) { _single_isDisabled_codec.WriteTagAndValue(output, IsDisabled); } 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) { severityTypes_.WriteTo(ref output, _repeated_severityTypes_codec); tags_.WriteTo(ref output, _repeated_tags_codec); metricTypes_.WriteTo(ref output, _repeated_metricTypes_codec); deviceModels_.WriteTo(ref output, _repeated_deviceModels_codec); deviceTypes_.WriteTo(ref output, _repeated_deviceTypes_codec); metricGroupingTypes_.WriteTo(ref output, _repeated_metricGroupingTypes_codec); if (isDisabled_ != null) { _single_isDisabled_codec.WriteTagAndValue(ref output, IsDisabled); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += severityTypes_.CalculateSize(_repeated_severityTypes_codec); size += tags_.CalculateSize(_repeated_tags_codec); size += metricTypes_.CalculateSize(_repeated_metricTypes_codec); size += deviceModels_.CalculateSize(_repeated_deviceModels_codec); size += deviceTypes_.CalculateSize(_repeated_deviceTypes_codec); size += metricGroupingTypes_.CalculateSize(_repeated_metricGroupingTypes_codec); if (isDisabled_ != null) { size += _single_isDisabled_codec.CalculateSizeWithTag(IsDisabled); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TriggerFilter other) { if (other == null) { return; } severityTypes_.Add(other.severityTypes_); tags_.Add(other.tags_); metricTypes_.Add(other.metricTypes_); deviceModels_.Add(other.deviceModels_); deviceTypes_.Add(other.deviceTypes_); metricGroupingTypes_.Add(other.metricGroupingTypes_); if (other.isDisabled_ != null) { if (isDisabled_ == null || other.IsDisabled != false) { IsDisabled = other.IsDisabled; } } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: case 8: { severityTypes_.AddEntriesFrom(input, _repeated_severityTypes_codec); break; } case 18: { tags_.AddEntriesFrom(input, _repeated_tags_codec); break; } case 26: case 24: { metricTypes_.AddEntriesFrom(input, _repeated_metricTypes_codec); break; } case 34: { deviceModels_.AddEntriesFrom(input, _repeated_deviceModels_codec); break; } case 42: case 40: { deviceTypes_.AddEntriesFrom(input, _repeated_deviceTypes_codec); break; } case 50: case 48: { metricGroupingTypes_.AddEntriesFrom(input, _repeated_metricGroupingTypes_codec); break; } case 58: { bool? value = _single_isDisabled_codec.Read(input); if (isDisabled_ == null || value != false) { IsDisabled = value; } break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: case 8: { severityTypes_.AddEntriesFrom(ref input, _repeated_severityTypes_codec); break; } case 18: { tags_.AddEntriesFrom(ref input, _repeated_tags_codec); break; } case 26: case 24: { metricTypes_.AddEntriesFrom(ref input, _repeated_metricTypes_codec); break; } case 34: { deviceModels_.AddEntriesFrom(ref input, _repeated_deviceModels_codec); break; } case 42: case 40: { deviceTypes_.AddEntriesFrom(ref input, _repeated_deviceTypes_codec); break; } case 50: case 48: { metricGroupingTypes_.AddEntriesFrom(ref input, _repeated_metricGroupingTypes_codec); break; } case 58: { bool? value = _single_isDisabled_codec.Read(ref input); if (isDisabled_ == null || value != false) { IsDisabled = value; } break; } } } } #endif } /// /// Параметры фильтрации алертов. /// При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ. /// При передаче нескольких разных параметров фильтра они работают в выборке через И /// public sealed partial class TriggerAlertFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TriggerAlertFilter()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TriggerAlertFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TriggerAlertFilter(TriggerAlertFilter other) : this() { triggerSeverityTypes_ = other.triggerSeverityTypes_.Clone(); fiasIds_ = other.fiasIds_.Clone(); tags_ = other.tags_.Clone(); metricTypes_ = other.metricTypes_.Clone(); deviceModels_ = other.deviceModels_.Clone(); deviceTypes_ = other.deviceTypes_.Clone(); deviceParentIds_ = other.deviceParentIds_.Clone(); deviceIds_ = other.deviceIds_.Clone(); IsDisabled = other.IsDisabled; afterRaisedAt_ = other.afterRaisedAt_ != null ? other.afterRaisedAt_.Clone() : null; beforeRaisedAt_ = other.beforeRaisedAt_ != null ? other.beforeRaisedAt_.Clone() : null; metricGroupingTypes_ = other.metricGroupingTypes_.Clone(); triggerIds_ = other.triggerIds_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TriggerAlertFilter Clone() { return new TriggerAlertFilter(this); } /// Field number for the "trigger_severity_types" field. public const int TriggerSeverityTypesFieldNumber = 1; private static readonly pb::FieldCodec _repeated_triggerSeverityTypes_codec = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.SeverityType) x); private readonly pbc::RepeatedField triggerSeverityTypes_ = new pbc::RepeatedField(); /// /// По важности триггера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField TriggerSeverityTypes { get { return triggerSeverityTypes_; } } /// Field number for the "fias_ids" field. public const int FiasIdsFieldNumber = 2; private static readonly pb::FieldCodec _repeated_fiasIds_codec = pb::FieldCodec.ForString(18); private readonly pbc::RepeatedField fiasIds_ = new pbc::RepeatedField(); /// /// По ФИАСам /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField FiasIds { get { return fiasIds_; } } /// Field number for the "tags" field. public const int TagsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_tags_codec = pb::FieldCodec.ForString(26); private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); /// /// По тэгам /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Tags { get { return tags_; } } /// Field number for the "metric_types" field. public const int MetricTypesFieldNumber = 4; private static readonly pb::FieldCodec _repeated_metricTypes_codec = pb::FieldCodec.ForEnum(34, x => (int) x, x => (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricType) x); private readonly pbc::RepeatedField metricTypes_ = new pbc::RepeatedField(); /// /// По типам метрик триггера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MetricTypes { get { return metricTypes_; } } /// Field number for the "device_models" field. public const int DeviceModelsFieldNumber = 5; private static readonly pb::FieldCodec _repeated_deviceModels_codec = pb::FieldCodec.ForString(42); private readonly pbc::RepeatedField deviceModels_ = new pbc::RepeatedField(); /// /// По моделям устройств /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceModels { get { return deviceModels_; } } /// Field number for the "device_types" field. public const int DeviceTypesFieldNumber = 6; private static readonly pb::FieldCodec _repeated_deviceTypes_codec = pb::FieldCodec.ForEnum(50, x => (int) x, x => (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.DeviceType) x); private readonly pbc::RepeatedField deviceTypes_ = new pbc::RepeatedField(); /// /// По типам устройств /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceTypes { get { return deviceTypes_; } } /// Field number for the "device_parent_ids" field. public const int DeviceParentIdsFieldNumber = 7; private static readonly pb::FieldCodec _repeated_deviceParentIds_codec = pb::FieldCodec.ForInt32(58); private readonly pbc::RepeatedField deviceParentIds_ = new pbc::RepeatedField(); /// /// По идентификаторам родительских устройств /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceParentIds { get { return deviceParentIds_; } } /// Field number for the "device_ids" field. public const int DeviceIdsFieldNumber = 8; private static readonly pb::FieldCodec _repeated_deviceIds_codec = pb::FieldCodec.ForInt32(66); private readonly pbc::RepeatedField deviceIds_ = new pbc::RepeatedField(); /// /// По идентификаторам устройств /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceIds { get { return deviceIds_; } } /// Field number for the "is_disabled" field. public const int IsDisabledFieldNumber = 9; private static readonly pb::FieldCodec _single_isDisabled_codec = pb::FieldCodec.ForStructWrapper(74); private bool? isDisabled_; /// /// По признаку активности /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool? IsDisabled { get { return isDisabled_; } set { isDisabled_ = value; } } /// Field number for the "after_raised_at" field. public const int AfterRaisedAtFieldNumber = 10; private global::Google.Protobuf.WellKnownTypes.Timestamp afterRaisedAt_; /// /// От даты возникновения включительно (>=) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp AfterRaisedAt { get { return afterRaisedAt_; } set { afterRaisedAt_ = value; } } /// Field number for the "before_raised_at" field. public const int BeforeRaisedAtFieldNumber = 11; private global::Google.Protobuf.WellKnownTypes.Timestamp beforeRaisedAt_; /// /// До даты возникновения (<) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp BeforeRaisedAt { get { return beforeRaisedAt_; } set { beforeRaisedAt_ = value; } } /// Field number for the "metric_grouping_types" field. public const int MetricGroupingTypesFieldNumber = 12; private static readonly pb::FieldCodec _repeated_metricGroupingTypes_codec = pb::FieldCodec.ForEnum(98, x => (int) x, x => (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType) x); private readonly pbc::RepeatedField metricGroupingTypes_ = new pbc::RepeatedField(); /// /// По типам группировки метрик /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MetricGroupingTypes { get { return metricGroupingTypes_; } } /// Field number for the "trigger_ids" field. public const int TriggerIdsFieldNumber = 13; private static readonly pb::FieldCodec _repeated_triggerIds_codec = pb::FieldCodec.ForInt32(106); private readonly pbc::RepeatedField triggerIds_ = new pbc::RepeatedField(); /// /// По идентификаторам триггеров /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField TriggerIds { get { return triggerIds_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as TriggerAlertFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(TriggerAlertFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!triggerSeverityTypes_.Equals(other.triggerSeverityTypes_)) return false; if(!fiasIds_.Equals(other.fiasIds_)) return false; if(!tags_.Equals(other.tags_)) return false; if(!metricTypes_.Equals(other.metricTypes_)) return false; if(!deviceModels_.Equals(other.deviceModels_)) return false; if(!deviceTypes_.Equals(other.deviceTypes_)) return false; if(!deviceParentIds_.Equals(other.deviceParentIds_)) return false; if(!deviceIds_.Equals(other.deviceIds_)) return false; if (IsDisabled != other.IsDisabled) return false; if (!object.Equals(AfterRaisedAt, other.AfterRaisedAt)) return false; if (!object.Equals(BeforeRaisedAt, other.BeforeRaisedAt)) return false; if(!metricGroupingTypes_.Equals(other.metricGroupingTypes_)) return false; if(!triggerIds_.Equals(other.triggerIds_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= triggerSeverityTypes_.GetHashCode(); hash ^= fiasIds_.GetHashCode(); hash ^= tags_.GetHashCode(); hash ^= metricTypes_.GetHashCode(); hash ^= deviceModels_.GetHashCode(); hash ^= deviceTypes_.GetHashCode(); hash ^= deviceParentIds_.GetHashCode(); hash ^= deviceIds_.GetHashCode(); if (isDisabled_ != null) hash ^= IsDisabled.GetHashCode(); if (afterRaisedAt_ != null) hash ^= AfterRaisedAt.GetHashCode(); if (beforeRaisedAt_ != null) hash ^= BeforeRaisedAt.GetHashCode(); hash ^= metricGroupingTypes_.GetHashCode(); hash ^= triggerIds_.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 triggerSeverityTypes_.WriteTo(output, _repeated_triggerSeverityTypes_codec); fiasIds_.WriteTo(output, _repeated_fiasIds_codec); tags_.WriteTo(output, _repeated_tags_codec); metricTypes_.WriteTo(output, _repeated_metricTypes_codec); deviceModels_.WriteTo(output, _repeated_deviceModels_codec); deviceTypes_.WriteTo(output, _repeated_deviceTypes_codec); deviceParentIds_.WriteTo(output, _repeated_deviceParentIds_codec); deviceIds_.WriteTo(output, _repeated_deviceIds_codec); if (isDisabled_ != null) { _single_isDisabled_codec.WriteTagAndValue(output, IsDisabled); } if (afterRaisedAt_ != null) { output.WriteRawTag(82); output.WriteMessage(AfterRaisedAt); } if (beforeRaisedAt_ != null) { output.WriteRawTag(90); output.WriteMessage(BeforeRaisedAt); } metricGroupingTypes_.WriteTo(output, _repeated_metricGroupingTypes_codec); triggerIds_.WriteTo(output, _repeated_triggerIds_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) { triggerSeverityTypes_.WriteTo(ref output, _repeated_triggerSeverityTypes_codec); fiasIds_.WriteTo(ref output, _repeated_fiasIds_codec); tags_.WriteTo(ref output, _repeated_tags_codec); metricTypes_.WriteTo(ref output, _repeated_metricTypes_codec); deviceModels_.WriteTo(ref output, _repeated_deviceModels_codec); deviceTypes_.WriteTo(ref output, _repeated_deviceTypes_codec); deviceParentIds_.WriteTo(ref output, _repeated_deviceParentIds_codec); deviceIds_.WriteTo(ref output, _repeated_deviceIds_codec); if (isDisabled_ != null) { _single_isDisabled_codec.WriteTagAndValue(ref output, IsDisabled); } if (afterRaisedAt_ != null) { output.WriteRawTag(82); output.WriteMessage(AfterRaisedAt); } if (beforeRaisedAt_ != null) { output.WriteRawTag(90); output.WriteMessage(BeforeRaisedAt); } metricGroupingTypes_.WriteTo(ref output, _repeated_metricGroupingTypes_codec); triggerIds_.WriteTo(ref output, _repeated_triggerIds_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += triggerSeverityTypes_.CalculateSize(_repeated_triggerSeverityTypes_codec); size += fiasIds_.CalculateSize(_repeated_fiasIds_codec); size += tags_.CalculateSize(_repeated_tags_codec); size += metricTypes_.CalculateSize(_repeated_metricTypes_codec); size += deviceModels_.CalculateSize(_repeated_deviceModels_codec); size += deviceTypes_.CalculateSize(_repeated_deviceTypes_codec); size += deviceParentIds_.CalculateSize(_repeated_deviceParentIds_codec); size += deviceIds_.CalculateSize(_repeated_deviceIds_codec); if (isDisabled_ != null) { size += _single_isDisabled_codec.CalculateSizeWithTag(IsDisabled); } if (afterRaisedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AfterRaisedAt); } if (beforeRaisedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(BeforeRaisedAt); } size += metricGroupingTypes_.CalculateSize(_repeated_metricGroupingTypes_codec); size += triggerIds_.CalculateSize(_repeated_triggerIds_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(TriggerAlertFilter other) { if (other == null) { return; } triggerSeverityTypes_.Add(other.triggerSeverityTypes_); fiasIds_.Add(other.fiasIds_); tags_.Add(other.tags_); metricTypes_.Add(other.metricTypes_); deviceModels_.Add(other.deviceModels_); deviceTypes_.Add(other.deviceTypes_); deviceParentIds_.Add(other.deviceParentIds_); deviceIds_.Add(other.deviceIds_); if (other.isDisabled_ != null) { if (isDisabled_ == null || other.IsDisabled != false) { IsDisabled = other.IsDisabled; } } if (other.afterRaisedAt_ != null) { if (afterRaisedAt_ == null) { AfterRaisedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } AfterRaisedAt.MergeFrom(other.AfterRaisedAt); } if (other.beforeRaisedAt_ != null) { if (beforeRaisedAt_ == null) { BeforeRaisedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } BeforeRaisedAt.MergeFrom(other.BeforeRaisedAt); } metricGroupingTypes_.Add(other.metricGroupingTypes_); triggerIds_.Add(other.triggerIds_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: case 8: { triggerSeverityTypes_.AddEntriesFrom(input, _repeated_triggerSeverityTypes_codec); break; } case 18: { fiasIds_.AddEntriesFrom(input, _repeated_fiasIds_codec); break; } case 26: { tags_.AddEntriesFrom(input, _repeated_tags_codec); break; } case 34: case 32: { metricTypes_.AddEntriesFrom(input, _repeated_metricTypes_codec); break; } case 42: { deviceModels_.AddEntriesFrom(input, _repeated_deviceModels_codec); break; } case 50: case 48: { deviceTypes_.AddEntriesFrom(input, _repeated_deviceTypes_codec); break; } case 58: case 56: { deviceParentIds_.AddEntriesFrom(input, _repeated_deviceParentIds_codec); break; } case 66: case 64: { deviceIds_.AddEntriesFrom(input, _repeated_deviceIds_codec); break; } case 74: { bool? value = _single_isDisabled_codec.Read(input); if (isDisabled_ == null || value != false) { IsDisabled = value; } break; } case 82: { if (afterRaisedAt_ == null) { AfterRaisedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(AfterRaisedAt); break; } case 90: { if (beforeRaisedAt_ == null) { BeforeRaisedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(BeforeRaisedAt); break; } case 98: case 96: { metricGroupingTypes_.AddEntriesFrom(input, _repeated_metricGroupingTypes_codec); break; } case 106: case 104: { triggerIds_.AddEntriesFrom(input, _repeated_triggerIds_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: case 8: { triggerSeverityTypes_.AddEntriesFrom(ref input, _repeated_triggerSeverityTypes_codec); break; } case 18: { fiasIds_.AddEntriesFrom(ref input, _repeated_fiasIds_codec); break; } case 26: { tags_.AddEntriesFrom(ref input, _repeated_tags_codec); break; } case 34: case 32: { metricTypes_.AddEntriesFrom(ref input, _repeated_metricTypes_codec); break; } case 42: { deviceModels_.AddEntriesFrom(ref input, _repeated_deviceModels_codec); break; } case 50: case 48: { deviceTypes_.AddEntriesFrom(ref input, _repeated_deviceTypes_codec); break; } case 58: case 56: { deviceParentIds_.AddEntriesFrom(ref input, _repeated_deviceParentIds_codec); break; } case 66: case 64: { deviceIds_.AddEntriesFrom(ref input, _repeated_deviceIds_codec); break; } case 74: { bool? value = _single_isDisabled_codec.Read(ref input); if (isDisabled_ == null || value != false) { IsDisabled = value; } break; } case 82: { if (afterRaisedAt_ == null) { AfterRaisedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(AfterRaisedAt); break; } case 90: { if (beforeRaisedAt_ == null) { BeforeRaisedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(BeforeRaisedAt); break; } case 98: case 96: { metricGroupingTypes_.AddEntriesFrom(ref input, _repeated_metricGroupingTypes_codec); break; } case 106: case 104: { triggerIds_.AddEntriesFrom(ref input, _repeated_triggerIds_codec); break; } } } } #endif } /// /// Триггер /// public sealed partial class Trigger : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Trigger()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Trigger() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Trigger(Trigger other) : this() { id_ = other.id_; changedAt_ = other.changedAt_ != null ? other.changedAt_.Clone() : null; title_ = other.title_; criteriaType_ = other.criteriaType_; threshold_ = other.threshold_; periodType_ = other.periodType_; severityType_ = other.severityType_; isDisabled_ = other.isDisabled_; Instruction = other.Instruction; metricTypes_ = other.metricTypes_.Clone(); deviceModels_ = other.deviceModels_.Clone(); deviceTypes_ = other.deviceTypes_.Clone(); metricGroupingType_ = other.metricGroupingType_; successThreshold_ = other.successThreshold_; tags_ = other.tags_.Clone(); isManuallyUnclosable_ = other.isManuallyUnclosable_; isRangeMetricExpectedFreq_ = other.isRangeMetricExpectedFreq_; switch (other.RangeCase) { case RangeOneofCase.SlidingDays: SlidingDays = other.SlidingDays; break; case RangeOneofCase.FixedDaysRange: FixedDaysRange = other.FixedDaysRange.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Trigger Clone() { return new Trigger(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } /// Field number for the "changed_at" field. public const int ChangedAtFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.Timestamp changedAt_; /// /// Дата последнего изменения. /// Заполняется и обновляется сервером. /// Заполняется при создании и изменении. /// Является версией объекта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ChangedAt { get { return changedAt_; } set { changedAt_ = value; } } /// Field number for the "title" field. public const int TitleFieldNumber = 3; private string title_ = ""; /// /// Название триггера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Title { get { return title_; } set { title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "criteria_type" field. public const int CriteriaTypeFieldNumber = 4; private global::Keyapis.TelemetryAlerting.V1.Trigger.Types.CriteriaType criteriaType_ = global::Keyapis.TelemetryAlerting.V1.Trigger.Types.CriteriaType.Unknown; /// /// Тип критерия триггера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.Trigger.Types.CriteriaType CriteriaType { get { return criteriaType_; } set { criteriaType_ = value; } } /// Field number for the "threshold" field. public const int ThresholdFieldNumber = 5; private float threshold_; /// /// Пороговое значение триггера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Threshold { get { return threshold_; } set { threshold_ = value; } } /// Field number for the "sliding_days" field. public const int SlidingDaysFieldNumber = 6; /// /// Скользящее окно относительно текущего момента. /// Начало окна это 00:00:00.000 UTC дня на sliding_days раньше текущего UTC дня. /// Конец окна - текущий момент /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int SlidingDays { get { return HasSlidingDays ? (int) range_ : 0; } set { range_ = value; rangeCase_ = RangeOneofCase.SlidingDays; } } /// Gets whether the "sliding_days" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasSlidingDays { get { return rangeCase_ == RangeOneofCase.SlidingDays; } } /// Clears the value of the oneof if it's currently set to "sliding_days" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearSlidingDays() { if (HasSlidingDays) { ClearRange(); } } /// Field number for the "fixed_days_range" field. public const int FixedDaysRangeFieldNumber = 7; /// /// Границы временного окна, в текущем или предыдущем месяце /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.Trigger.Types.FixedDaysOfMonth FixedDaysRange { get { return rangeCase_ == RangeOneofCase.FixedDaysRange ? (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.FixedDaysOfMonth) range_ : null; } set { range_ = value; rangeCase_ = value == null ? RangeOneofCase.None : RangeOneofCase.FixedDaysRange; } } /// Field number for the "period_type" field. public const int PeriodTypeFieldNumber = 8; private global::Keyapis.TelemetryAlerting.V1.Trigger.Types.PeriodType periodType_ = global::Keyapis.TelemetryAlerting.V1.Trigger.Types.PeriodType.Unknown; /// /// Тип периода контроля /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.Trigger.Types.PeriodType PeriodType { get { return periodType_; } set { periodType_ = value; } } /// Field number for the "severity_type" field. public const int SeverityTypeFieldNumber = 9; private global::Keyapis.TelemetryAlerting.V1.Trigger.Types.SeverityType severityType_ = global::Keyapis.TelemetryAlerting.V1.Trigger.Types.SeverityType.Unknown; /// /// Уровень критичности проблемы, которая описана критерием. /// Задает приоритет оповещения и реагирования /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.Trigger.Types.SeverityType SeverityType { get { return severityType_; } set { severityType_ = value; } } /// Field number for the "is_disabled" field. public const int IsDisabledFieldNumber = 10; private bool isDisabled_; /// /// Флаг активности триггера. /// При погашении триггера гасятся и все его алерты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsDisabled { get { return isDisabled_; } set { isDisabled_ = value; } } /// Field number for the "instruction" field. public const int InstructionFieldNumber = 11; private static readonly pb::FieldCodec _single_instruction_codec = pb::FieldCodec.ForClassWrapper(90); private string instruction_; /// /// Краткая инструкция по решению или эскалации проблемы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Instruction { get { return instruction_; } set { instruction_ = value; } } /// Field number for the "metric_types" field. public const int MetricTypesFieldNumber = 12; private static readonly pb::FieldCodec _repeated_metricTypes_codec = pb::FieldCodec.ForEnum(98, x => (int) x, x => (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricType) x); private readonly pbc::RepeatedField metricTypes_ = new pbc::RepeatedField(); /// /// Фильтрация метрик по типам метрик. /// При нескольких элементах фильтрация срабатывает по значениям через ИЛИ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MetricTypes { get { return metricTypes_; } } /// Field number for the "device_models" field. public const int DeviceModelsFieldNumber = 13; private static readonly pb::FieldCodec _repeated_deviceModels_codec = pb::FieldCodec.ForString(106); private readonly pbc::RepeatedField deviceModels_ = new pbc::RepeatedField(); /// /// Фильтрация метрик по значению моделей устройств. /// При нескольких элементах фильтрация срабатывает по значениям через ИЛИ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceModels { get { return deviceModels_; } } /// Field number for the "device_types" field. public const int DeviceTypesFieldNumber = 14; private static readonly pb::FieldCodec _repeated_deviceTypes_codec = pb::FieldCodec.ForEnum(114, x => (int) x, x => (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.DeviceType) x); private readonly pbc::RepeatedField deviceTypes_ = new pbc::RepeatedField(); /// /// Фильтрация метрик по значению типов устройств. /// При нескольких элементах фильтрация срабатывает по значениям через ИЛИ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceTypes { get { return deviceTypes_; } } /// Field number for the "metric_grouping_type" field. public const int MetricGroupingTypeFieldNumber = 15; private global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType metricGroupingType_ = global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType.Unknown; /// /// Тип группировки метрик при вычислении критерия /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType MetricGroupingType { get { return metricGroupingType_; } set { metricGroupingType_ = value; } } /// Field number for the "success_threshold" field. public const int SuccessThresholdFieldNumber = 16; private int successThreshold_; /// /// Количество отрицательных проверок критерия, после которого сервис отключает /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int SuccessThreshold { get { return successThreshold_; } set { successThreshold_ = value; } } /// Field number for the "tags" field. public const int TagsFieldNumber = 17; private static readonly pb::FieldCodec _repeated_tags_codec = pb::FieldCodec.ForString(138); private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); /// /// Произвольные теги для фильтрации и упорядочивания /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Tags { get { return tags_; } } /// Field number for the "is_manually_unclosable" field. public const int IsManuallyUnclosableFieldNumber = 18; private bool isManuallyUnclosable_; /// /// Флаг невозможности погашения алертов этого триггера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsManuallyUnclosable { get { return isManuallyUnclosable_; } set { isManuallyUnclosable_ = value; } } /// Field number for the "is_range_metric_expected_freq" field. public const int IsRangeMetricExpectedFreqFieldNumber = 19; private bool isRangeMetricExpectedFreq_; /// /// Признак контроля триггером временного окна выборки метрик на основе поля индикатора metric_expected_freq. /// При значении true: поля range.sliding_days, range.fixed_days_range игнорируются при работе триггера. /// При значении true: временное окно выборки метрик при работе триггера работает как sliding_days=indicator.metric_expected_freq. /// При значении true: Для случаев indicator.metric_expected_freq=null индикатор игнорируется при работе триггера, алерт по нему не создается. /// При значении true: Для случаев indicator.metric_expected_freq<=0 индикатор игнорируется при работе триггера, алерт по нему не создается /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsRangeMetricExpectedFreq { get { return isRangeMetricExpectedFreq_; } set { isRangeMetricExpectedFreq_ = value; } } private object range_; /// Enum of possible cases for the "range" oneof. public enum RangeOneofCase { None = 0, SlidingDays = 6, FixedDaysRange = 7, } private RangeOneofCase rangeCase_ = RangeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RangeOneofCase RangeCase { get { return rangeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearRange() { rangeCase_ = RangeOneofCase.None; range_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Trigger); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Trigger other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (!object.Equals(ChangedAt, other.ChangedAt)) return false; if (Title != other.Title) return false; if (CriteriaType != other.CriteriaType) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Threshold, other.Threshold)) return false; if (SlidingDays != other.SlidingDays) return false; if (!object.Equals(FixedDaysRange, other.FixedDaysRange)) return false; if (PeriodType != other.PeriodType) return false; if (SeverityType != other.SeverityType) return false; if (IsDisabled != other.IsDisabled) return false; if (Instruction != other.Instruction) return false; if(!metricTypes_.Equals(other.metricTypes_)) return false; if(!deviceModels_.Equals(other.deviceModels_)) return false; if(!deviceTypes_.Equals(other.deviceTypes_)) return false; if (MetricGroupingType != other.MetricGroupingType) return false; if (SuccessThreshold != other.SuccessThreshold) return false; if(!tags_.Equals(other.tags_)) return false; if (IsManuallyUnclosable != other.IsManuallyUnclosable) return false; if (IsRangeMetricExpectedFreq != other.IsRangeMetricExpectedFreq) return false; if (RangeCase != other.RangeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (changedAt_ != null) hash ^= ChangedAt.GetHashCode(); if (Title.Length != 0) hash ^= Title.GetHashCode(); if (CriteriaType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.CriteriaType.Unknown) hash ^= CriteriaType.GetHashCode(); if (Threshold != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Threshold); if (HasSlidingDays) hash ^= SlidingDays.GetHashCode(); if (rangeCase_ == RangeOneofCase.FixedDaysRange) hash ^= FixedDaysRange.GetHashCode(); if (PeriodType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.PeriodType.Unknown) hash ^= PeriodType.GetHashCode(); if (SeverityType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.SeverityType.Unknown) hash ^= SeverityType.GetHashCode(); if (IsDisabled != false) hash ^= IsDisabled.GetHashCode(); if (instruction_ != null) hash ^= Instruction.GetHashCode(); hash ^= metricTypes_.GetHashCode(); hash ^= deviceModels_.GetHashCode(); hash ^= deviceTypes_.GetHashCode(); if (MetricGroupingType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType.Unknown) hash ^= MetricGroupingType.GetHashCode(); if (SuccessThreshold != 0) hash ^= SuccessThreshold.GetHashCode(); hash ^= tags_.GetHashCode(); if (IsManuallyUnclosable != false) hash ^= IsManuallyUnclosable.GetHashCode(); if (IsRangeMetricExpectedFreq != false) hash ^= IsRangeMetricExpectedFreq.GetHashCode(); hash ^= (int) rangeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (changedAt_ != null) { output.WriteRawTag(18); output.WriteMessage(ChangedAt); } if (Title.Length != 0) { output.WriteRawTag(26); output.WriteString(Title); } if (CriteriaType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.CriteriaType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) CriteriaType); } if (Threshold != 0F) { output.WriteRawTag(45); output.WriteFloat(Threshold); } if (HasSlidingDays) { output.WriteRawTag(48); output.WriteInt32(SlidingDays); } if (rangeCase_ == RangeOneofCase.FixedDaysRange) { output.WriteRawTag(58); output.WriteMessage(FixedDaysRange); } if (PeriodType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.PeriodType.Unknown) { output.WriteRawTag(64); output.WriteEnum((int) PeriodType); } if (SeverityType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.SeverityType.Unknown) { output.WriteRawTag(72); output.WriteEnum((int) SeverityType); } if (IsDisabled != false) { output.WriteRawTag(80); output.WriteBool(IsDisabled); } if (instruction_ != null) { _single_instruction_codec.WriteTagAndValue(output, Instruction); } metricTypes_.WriteTo(output, _repeated_metricTypes_codec); deviceModels_.WriteTo(output, _repeated_deviceModels_codec); deviceTypes_.WriteTo(output, _repeated_deviceTypes_codec); if (MetricGroupingType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType.Unknown) { output.WriteRawTag(120); output.WriteEnum((int) MetricGroupingType); } if (SuccessThreshold != 0) { output.WriteRawTag(128, 1); output.WriteInt32(SuccessThreshold); } tags_.WriteTo(output, _repeated_tags_codec); if (IsManuallyUnclosable != false) { output.WriteRawTag(144, 1); output.WriteBool(IsManuallyUnclosable); } if (IsRangeMetricExpectedFreq != false) { output.WriteRawTag(152, 1); output.WriteBool(IsRangeMetricExpectedFreq); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (changedAt_ != null) { output.WriteRawTag(18); output.WriteMessage(ChangedAt); } if (Title.Length != 0) { output.WriteRawTag(26); output.WriteString(Title); } if (CriteriaType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.CriteriaType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) CriteriaType); } if (Threshold != 0F) { output.WriteRawTag(45); output.WriteFloat(Threshold); } if (HasSlidingDays) { output.WriteRawTag(48); output.WriteInt32(SlidingDays); } if (rangeCase_ == RangeOneofCase.FixedDaysRange) { output.WriteRawTag(58); output.WriteMessage(FixedDaysRange); } if (PeriodType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.PeriodType.Unknown) { output.WriteRawTag(64); output.WriteEnum((int) PeriodType); } if (SeverityType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.SeverityType.Unknown) { output.WriteRawTag(72); output.WriteEnum((int) SeverityType); } if (IsDisabled != false) { output.WriteRawTag(80); output.WriteBool(IsDisabled); } if (instruction_ != null) { _single_instruction_codec.WriteTagAndValue(ref output, Instruction); } metricTypes_.WriteTo(ref output, _repeated_metricTypes_codec); deviceModels_.WriteTo(ref output, _repeated_deviceModels_codec); deviceTypes_.WriteTo(ref output, _repeated_deviceTypes_codec); if (MetricGroupingType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType.Unknown) { output.WriteRawTag(120); output.WriteEnum((int) MetricGroupingType); } if (SuccessThreshold != 0) { output.WriteRawTag(128, 1); output.WriteInt32(SuccessThreshold); } tags_.WriteTo(ref output, _repeated_tags_codec); if (IsManuallyUnclosable != false) { output.WriteRawTag(144, 1); output.WriteBool(IsManuallyUnclosable); } if (IsRangeMetricExpectedFreq != false) { output.WriteRawTag(152, 1); output.WriteBool(IsRangeMetricExpectedFreq); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (changedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedAt); } if (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (CriteriaType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.CriteriaType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CriteriaType); } if (Threshold != 0F) { size += 1 + 4; } if (HasSlidingDays) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(SlidingDays); } if (rangeCase_ == RangeOneofCase.FixedDaysRange) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(FixedDaysRange); } if (PeriodType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.PeriodType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PeriodType); } if (SeverityType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.SeverityType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SeverityType); } if (IsDisabled != false) { size += 1 + 1; } if (instruction_ != null) { size += _single_instruction_codec.CalculateSizeWithTag(Instruction); } size += metricTypes_.CalculateSize(_repeated_metricTypes_codec); size += deviceModels_.CalculateSize(_repeated_deviceModels_codec); size += deviceTypes_.CalculateSize(_repeated_deviceTypes_codec); if (MetricGroupingType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MetricGroupingType); } if (SuccessThreshold != 0) { size += 2 + pb::CodedOutputStream.ComputeInt32Size(SuccessThreshold); } size += tags_.CalculateSize(_repeated_tags_codec); if (IsManuallyUnclosable != false) { size += 2 + 1; } if (IsRangeMetricExpectedFreq != false) { size += 2 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Trigger other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.changedAt_ != null) { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ChangedAt.MergeFrom(other.ChangedAt); } if (other.Title.Length != 0) { Title = other.Title; } if (other.CriteriaType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.CriteriaType.Unknown) { CriteriaType = other.CriteriaType; } if (other.Threshold != 0F) { Threshold = other.Threshold; } if (other.PeriodType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.PeriodType.Unknown) { PeriodType = other.PeriodType; } if (other.SeverityType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.SeverityType.Unknown) { SeverityType = other.SeverityType; } if (other.IsDisabled != false) { IsDisabled = other.IsDisabled; } if (other.instruction_ != null) { if (instruction_ == null || other.Instruction != "") { Instruction = other.Instruction; } } metricTypes_.Add(other.metricTypes_); deviceModels_.Add(other.deviceModels_); deviceTypes_.Add(other.deviceTypes_); if (other.MetricGroupingType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType.Unknown) { MetricGroupingType = other.MetricGroupingType; } if (other.SuccessThreshold != 0) { SuccessThreshold = other.SuccessThreshold; } tags_.Add(other.tags_); if (other.IsManuallyUnclosable != false) { IsManuallyUnclosable = other.IsManuallyUnclosable; } if (other.IsRangeMetricExpectedFreq != false) { IsRangeMetricExpectedFreq = other.IsRangeMetricExpectedFreq; } switch (other.RangeCase) { case RangeOneofCase.SlidingDays: SlidingDays = other.SlidingDays; break; case RangeOneofCase.FixedDaysRange: if (FixedDaysRange == null) { FixedDaysRange = new global::Keyapis.TelemetryAlerting.V1.Trigger.Types.FixedDaysOfMonth(); } FixedDaysRange.MergeFrom(other.FixedDaysRange); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } case 18: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 26: { Title = input.ReadString(); break; } case 32: { CriteriaType = (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.CriteriaType) input.ReadEnum(); break; } case 45: { Threshold = input.ReadFloat(); break; } case 48: { SlidingDays = input.ReadInt32(); break; } case 58: { global::Keyapis.TelemetryAlerting.V1.Trigger.Types.FixedDaysOfMonth subBuilder = new global::Keyapis.TelemetryAlerting.V1.Trigger.Types.FixedDaysOfMonth(); if (rangeCase_ == RangeOneofCase.FixedDaysRange) { subBuilder.MergeFrom(FixedDaysRange); } input.ReadMessage(subBuilder); FixedDaysRange = subBuilder; break; } case 64: { PeriodType = (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.PeriodType) input.ReadEnum(); break; } case 72: { SeverityType = (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.SeverityType) input.ReadEnum(); break; } case 80: { IsDisabled = input.ReadBool(); break; } case 90: { string value = _single_instruction_codec.Read(input); if (instruction_ == null || value != "") { Instruction = value; } break; } case 98: case 96: { metricTypes_.AddEntriesFrom(input, _repeated_metricTypes_codec); break; } case 106: { deviceModels_.AddEntriesFrom(input, _repeated_deviceModels_codec); break; } case 114: case 112: { deviceTypes_.AddEntriesFrom(input, _repeated_deviceTypes_codec); break; } case 120: { MetricGroupingType = (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType) input.ReadEnum(); break; } case 128: { SuccessThreshold = input.ReadInt32(); break; } case 138: { tags_.AddEntriesFrom(input, _repeated_tags_codec); break; } case 144: { IsManuallyUnclosable = input.ReadBool(); break; } case 152: { IsRangeMetricExpectedFreq = 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: { Id = input.ReadInt32(); break; } case 18: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 26: { Title = input.ReadString(); break; } case 32: { CriteriaType = (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.CriteriaType) input.ReadEnum(); break; } case 45: { Threshold = input.ReadFloat(); break; } case 48: { SlidingDays = input.ReadInt32(); break; } case 58: { global::Keyapis.TelemetryAlerting.V1.Trigger.Types.FixedDaysOfMonth subBuilder = new global::Keyapis.TelemetryAlerting.V1.Trigger.Types.FixedDaysOfMonth(); if (rangeCase_ == RangeOneofCase.FixedDaysRange) { subBuilder.MergeFrom(FixedDaysRange); } input.ReadMessage(subBuilder); FixedDaysRange = subBuilder; break; } case 64: { PeriodType = (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.PeriodType) input.ReadEnum(); break; } case 72: { SeverityType = (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.SeverityType) input.ReadEnum(); break; } case 80: { IsDisabled = input.ReadBool(); break; } case 90: { string value = _single_instruction_codec.Read(ref input); if (instruction_ == null || value != "") { Instruction = value; } break; } case 98: case 96: { metricTypes_.AddEntriesFrom(ref input, _repeated_metricTypes_codec); break; } case 106: { deviceModels_.AddEntriesFrom(ref input, _repeated_deviceModels_codec); break; } case 114: case 112: { deviceTypes_.AddEntriesFrom(ref input, _repeated_deviceTypes_codec); break; } case 120: { MetricGroupingType = (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType) input.ReadEnum(); break; } case 128: { SuccessThreshold = input.ReadInt32(); break; } case 138: { tags_.AddEntriesFrom(ref input, _repeated_tags_codec); break; } case 144: { IsManuallyUnclosable = input.ReadBool(); break; } case 152: { IsRangeMetricExpectedFreq = input.ReadBool(); break; } } } } #endif #region Nested types /// Container for nested types declared in the Trigger message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов критерия триггера. /// Задает параметры критерия, правила поиска проблемы и генерации алерта /// public enum CriteriaType { /// /// Значение не указано /// [pbr::OriginalName("CRITERIA_TYPE_UNKNOWN")] Unknown = 0, /// /// Количество метрик меньше порога /// [pbr::OriginalName("METRICS_COUNT")] MetricsCount = 1, /// /// Доля работающих устройств в группе меньше порога /// [pbr::OriginalName("DEVICE_PERCENT")] DevicePercent = 2, /// /// Превышение порога дисперсии значений показаний /// [pbr::OriginalName("METRICS_VALUE_DEVIATION")] MetricsValueDeviation = 3, } /// /// Справочник типов периодов контроля триггера /// public enum PeriodType { /// /// Значение не указано /// [pbr::OriginalName("PERIOD_TYPE_UNKNOWN")] Unknown = 0, /// /// День /// [pbr::OriginalName("DAY")] Day = 1, /// /// Месяц /// [pbr::OriginalName("MONTH")] Month = 2, } /// /// Справочник типов уровней критичности /// public enum SeverityType { /// /// Значение не указано /// [pbr::OriginalName("SEVERITY_TYPE_UNKNOWN")] Unknown = 0, /// /// Проблема высшего приоритета. /// Максимальное оповещение /// [pbr::OriginalName("CRITICAL")] Critical = 1, /// /// Проблема среднего приоритета. /// Оповещение по внутренним каналам /// [pbr::OriginalName("WARNING")] Warning = 2, /// /// Проблема не влияет на бизнес-пользователя. /// Отражается во внутренних интерфейсах /// [pbr::OriginalName("INFO")] Info = 3, } /// /// Справочник типов энергоресурсов, собираемых ТУ /// public enum MetricType { /// /// Значение не указано /// [pbr::OriginalName("METRIC_TYPE_UNKNOWN")] Unknown = 0, /// /// Горячая вода /// [pbr::OriginalName("HOT_WATER")] HotWater = 1, /// /// Холодная вода /// [pbr::OriginalName("COLD_WATER")] ColdWater = 2, /// /// Теплоэнергия /// [pbr::OriginalName("HEAT")] Heat = 3, /// /// Газ /// [pbr::OriginalName("GAS")] Gas = 4, /// /// Электроэнергия /// [pbr::OriginalName("ELECTRICITY")] Electricity = 5, } /// /// Справочник типов ПУ /// public enum DeviceType { /// /// Значение не указано /// [pbr::OriginalName("DEVICE_TYPE_UNKNOWN")] Unknown = 0, /// /// Коммуникационный модуль /// [pbr::OriginalName("HUB")] Hub = 1, /// /// Счетчик импульсов - регистратор /// [pbr::OriginalName("PULSE_COUNTER_RECORDER")] PulseCounterRecorder = 2, /// /// Счетчик импульсов - регистратор LoRaWAN /// [pbr::OriginalName("PULSE_COUNTER_RECORDER_LR")] PulseCounterRecorderLr = 3, /// /// Прибор учета расхода коммунальных услуг /// [pbr::OriginalName("METERING_DEVICE")] MeteringDevice = 4, /// /// Конвертер интерфейсов /// [pbr::OriginalName("INTERFACE_CONVERTER")] InterfaceConverter = 5, /// /// M-BUS концентратор /// [pbr::OriginalName("M_BUS_HUB")] MBusHub = 6, /// /// Модуль связи LoRaWAN /// [pbr::OriginalName("COMMUNICATION_MODULE_LR")] CommunicationModuleLr = 7, /// /// Базовая станция LoRaWAN /// [pbr::OriginalName("BASE_LR")] BaseLr = 8, } /// /// Типы группировок метрик при вычислении критерия /// public enum MetricGroupingType { /// /// Значение не указано /// [pbr::OriginalName("METRIC_GROUPING_TYPE_UNKNOWN")] Unknown = 0, /// /// Признак группировки метрик по идентификаторам родительского устройства(идентификатор хаба, проксирующего прибор учета) /// [pbr::OriginalName("PARENT_ID")] ParentId = 1, /// /// Признак группировки метрик по идентификатору устройства(устройство, с которого получена метрика) /// [pbr::OriginalName("DEVICE_ID")] DeviceId = 2, } /// /// Границы временного окна, в текущем или предыдущем месяце. /// Если end_day текущего месяца не наступил, то берем прошлый месяц /// public sealed partial class FixedDaysOfMonth : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FixedDaysOfMonth()); 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::Keyapis.TelemetryAlerting.V1.Trigger.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 FixedDaysOfMonth() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FixedDaysOfMonth(FixedDaysOfMonth other) : this() { startDay_ = other.startDay_; endDay_ = other.endDay_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FixedDaysOfMonth Clone() { return new FixedDaysOfMonth(this); } /// Field number for the "start_day" field. public const int StartDayFieldNumber = 1; private int startDay_; /// /// Начало окна времени. /// Номер дня месяца, момент времени 00:00:00.000 UTC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int StartDay { get { return startDay_; } set { startDay_ = value; } } /// Field number for the "end_day" field. public const int EndDayFieldNumber = 2; private int endDay_; /// /// Конец окна времени. /// Номер дня месяца, момент времени 00:00:00.000 UTC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int EndDay { get { return endDay_; } set { endDay_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as FixedDaysOfMonth); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(FixedDaysOfMonth other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (StartDay != other.StartDay) return false; if (EndDay != other.EndDay) 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 (StartDay != 0) hash ^= StartDay.GetHashCode(); if (EndDay != 0) hash ^= EndDay.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 (StartDay != 0) { output.WriteRawTag(8); output.WriteInt32(StartDay); } if (EndDay != 0) { output.WriteRawTag(16); output.WriteInt32(EndDay); } 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 (StartDay != 0) { output.WriteRawTag(8); output.WriteInt32(StartDay); } if (EndDay != 0) { output.WriteRawTag(16); output.WriteInt32(EndDay); } 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 (StartDay != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartDay); } if (EndDay != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndDay); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(FixedDaysOfMonth other) { if (other == null) { return; } if (other.StartDay != 0) { StartDay = other.StartDay; } if (other.EndDay != 0) { EndDay = other.EndDay; } _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: { StartDay = input.ReadInt32(); break; } case 16: { EndDay = 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: { StartDay = input.ReadInt32(); break; } case 16: { EndDay = input.ReadInt32(); break; } } } } #endif } /// /// Определение проблемы, сгенерированной по триггеру /// public sealed partial class Alert : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Alert()); 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::Keyapis.TelemetryAlerting.V1.Trigger.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 Alert() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Alert(Alert other) : this() { id_ = other.id_; changedAt_ = other.changedAt_ != null ? other.changedAt_.Clone() : null; triggerId_ = other.triggerId_; fiasId_ = other.fiasId_; raisedAt_ = other.raisedAt_ != null ? other.raisedAt_.Clone() : null; isDisabled_ = other.isDisabled_; noAlarmChecksCount_ = other.noAlarmChecksCount_; triggerMetricTypes_ = other.triggerMetricTypes_.Clone(); deviceModels_ = other.deviceModels_.Clone(); triggerDeviceTypes_ = other.triggerDeviceTypes_.Clone(); DeviceParentId = other.DeviceParentId; closedAt_ = other.closedAt_ != null ? other.closedAt_.Clone() : null; isManuallyClosed_ = other.isManuallyClosed_; ClosingReason = other.ClosingReason; triggerMetricGroupingType_ = other.triggerMetricGroupingType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Alert Clone() { return new Alert(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } /// Field number for the "changed_at" field. public const int ChangedAtFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.Timestamp changedAt_; /// /// Дата последнего изменения. /// Заполняется и обновляется сервером. /// Заполняется при создании и изменении. /// Является версией объекта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ChangedAt { get { return changedAt_; } set { changedAt_ = value; } } /// Field number for the "trigger_id" field. public const int TriggerIdFieldNumber = 3; private int triggerId_; /// /// Породивший триггер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int TriggerId { get { return triggerId_; } set { triggerId_ = value; } } /// Field number for the "fias_id" field. public const int FiasIdFieldNumber = 4; private string fiasId_ = ""; /// /// ФИАС /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string FiasId { get { return fiasId_; } set { fiasId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "raised_at" field. public const int RaisedAtFieldNumber = 5; private global::Google.Protobuf.WellKnownTypes.Timestamp raisedAt_; /// /// Время возникновения алерта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp RaisedAt { get { return raisedAt_; } set { raisedAt_ = value; } } /// Field number for the "is_disabled" field. public const int IsDisabledFieldNumber = 6; private bool isDisabled_; /// /// Признак погашенного алерта. /// Проставляется сервисом при no_alarm_checks_count >= success_threshold /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsDisabled { get { return isDisabled_; } set { isDisabled_ = value; } } /// Field number for the "no_alarm_checks_count" field. public const int NoAlarmChecksCountFieldNumber = 7; private int noAlarmChecksCount_; /// /// Количество проверок триггера для атрибутов данного алерта, при которых не выполнился критерий триггера. /// Увеличивается у непогашенного алерта, если при очередной проверке нет срабатывания триггера с атрибутами данного алерта. /// При увеличении проставляется changed_at /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int NoAlarmChecksCount { get { return noAlarmChecksCount_; } set { noAlarmChecksCount_ = value; } } /// Field number for the "trigger_metric_types" field. public const int TriggerMetricTypesFieldNumber = 8; private static readonly pb::FieldCodec _repeated_triggerMetricTypes_codec = pb::FieldCodec.ForEnum(66, x => (int) x, x => (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricType) x); private readonly pbc::RepeatedField triggerMetricTypes_ = new pbc::RepeatedField(); /// /// Типы метрик, по которым были отфильтрованы метрики /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField TriggerMetricTypes { get { return triggerMetricTypes_; } } /// Field number for the "device_models" field. public const int DeviceModelsFieldNumber = 9; private static readonly pb::FieldCodec _repeated_deviceModels_codec = pb::FieldCodec.ForString(74); private readonly pbc::RepeatedField deviceModels_ = new pbc::RepeatedField(); /// /// Модели устройств, по которым были отфильтрованы метрики /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceModels { get { return deviceModels_; } } /// Field number for the "trigger_device_types" field. public const int TriggerDeviceTypesFieldNumber = 10; private static readonly pb::FieldCodec _repeated_triggerDeviceTypes_codec = pb::FieldCodec.ForEnum(82, x => (int) x, x => (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.DeviceType) x); private readonly pbc::RepeatedField triggerDeviceTypes_ = new pbc::RepeatedField(); /// /// Типы устройств, по которым были отфильтрованы метрики /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField TriggerDeviceTypes { get { return triggerDeviceTypes_; } } /// Field number for the "device_parent_id" field. public const int DeviceParentIdFieldNumber = 11; private static readonly pb::FieldCodec _single_deviceParentId_codec = pb::FieldCodec.ForStructWrapper(90); private int? deviceParentId_; /// /// Идентификаторы родительских устройств, по которому были сгруппированы метрики /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? DeviceParentId { get { return deviceParentId_; } set { deviceParentId_ = value; } } /// Field number for the "closed_at" field. public const int ClosedAtFieldNumber = 12; private global::Google.Protobuf.WellKnownTypes.Timestamp closedAt_; /// /// Время погашения алерта. /// Пустой или отсутствует у непогашенного активного алерта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ClosedAt { get { return closedAt_; } set { closedAt_ = value; } } /// Field number for the "is_manually_closed" field. public const int IsManuallyClosedFieldNumber = 13; private bool isManuallyClosed_; /// /// Признак принудительного погашения алерта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsManuallyClosed { get { return isManuallyClosed_; } set { isManuallyClosed_ = value; } } /// Field number for the "closing_reason" field. public const int ClosingReasonFieldNumber = 14; private static readonly pb::FieldCodec _single_closingReason_codec = pb::FieldCodec.ForClassWrapper(114); private string closingReason_; /// /// Причина принудительного закрытия, заполняется в момент принудительного закрытия /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ClosingReason { get { return closingReason_; } set { closingReason_ = value; } } /// Field number for the "trigger_metric_grouping_type" field. public const int TriggerMetricGroupingTypeFieldNumber = 15; private global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType triggerMetricGroupingType_ = global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType.Unknown; /// /// Группировка метрик при вычислении критерия /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType TriggerMetricGroupingType { get { return triggerMetricGroupingType_; } set { triggerMetricGroupingType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Alert); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Alert other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (!object.Equals(ChangedAt, other.ChangedAt)) return false; if (TriggerId != other.TriggerId) return false; if (FiasId != other.FiasId) return false; if (!object.Equals(RaisedAt, other.RaisedAt)) return false; if (IsDisabled != other.IsDisabled) return false; if (NoAlarmChecksCount != other.NoAlarmChecksCount) return false; if(!triggerMetricTypes_.Equals(other.triggerMetricTypes_)) return false; if(!deviceModels_.Equals(other.deviceModels_)) return false; if(!triggerDeviceTypes_.Equals(other.triggerDeviceTypes_)) return false; if (DeviceParentId != other.DeviceParentId) return false; if (!object.Equals(ClosedAt, other.ClosedAt)) return false; if (IsManuallyClosed != other.IsManuallyClosed) return false; if (ClosingReason != other.ClosingReason) return false; if (TriggerMetricGroupingType != other.TriggerMetricGroupingType) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (changedAt_ != null) hash ^= ChangedAt.GetHashCode(); if (TriggerId != 0) hash ^= TriggerId.GetHashCode(); if (FiasId.Length != 0) hash ^= FiasId.GetHashCode(); if (raisedAt_ != null) hash ^= RaisedAt.GetHashCode(); if (IsDisabled != false) hash ^= IsDisabled.GetHashCode(); if (NoAlarmChecksCount != 0) hash ^= NoAlarmChecksCount.GetHashCode(); hash ^= triggerMetricTypes_.GetHashCode(); hash ^= deviceModels_.GetHashCode(); hash ^= triggerDeviceTypes_.GetHashCode(); if (deviceParentId_ != null) hash ^= DeviceParentId.GetHashCode(); if (closedAt_ != null) hash ^= ClosedAt.GetHashCode(); if (IsManuallyClosed != false) hash ^= IsManuallyClosed.GetHashCode(); if (closingReason_ != null) hash ^= ClosingReason.GetHashCode(); if (TriggerMetricGroupingType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType.Unknown) hash ^= TriggerMetricGroupingType.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (changedAt_ != null) { output.WriteRawTag(18); output.WriteMessage(ChangedAt); } if (TriggerId != 0) { output.WriteRawTag(24); output.WriteInt32(TriggerId); } if (FiasId.Length != 0) { output.WriteRawTag(34); output.WriteString(FiasId); } if (raisedAt_ != null) { output.WriteRawTag(42); output.WriteMessage(RaisedAt); } if (IsDisabled != false) { output.WriteRawTag(48); output.WriteBool(IsDisabled); } if (NoAlarmChecksCount != 0) { output.WriteRawTag(56); output.WriteInt32(NoAlarmChecksCount); } triggerMetricTypes_.WriteTo(output, _repeated_triggerMetricTypes_codec); deviceModels_.WriteTo(output, _repeated_deviceModels_codec); triggerDeviceTypes_.WriteTo(output, _repeated_triggerDeviceTypes_codec); if (deviceParentId_ != null) { _single_deviceParentId_codec.WriteTagAndValue(output, DeviceParentId); } if (closedAt_ != null) { output.WriteRawTag(98); output.WriteMessage(ClosedAt); } if (IsManuallyClosed != false) { output.WriteRawTag(104); output.WriteBool(IsManuallyClosed); } if (closingReason_ != null) { _single_closingReason_codec.WriteTagAndValue(output, ClosingReason); } if (TriggerMetricGroupingType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType.Unknown) { output.WriteRawTag(120); output.WriteEnum((int) TriggerMetricGroupingType); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (changedAt_ != null) { output.WriteRawTag(18); output.WriteMessage(ChangedAt); } if (TriggerId != 0) { output.WriteRawTag(24); output.WriteInt32(TriggerId); } if (FiasId.Length != 0) { output.WriteRawTag(34); output.WriteString(FiasId); } if (raisedAt_ != null) { output.WriteRawTag(42); output.WriteMessage(RaisedAt); } if (IsDisabled != false) { output.WriteRawTag(48); output.WriteBool(IsDisabled); } if (NoAlarmChecksCount != 0) { output.WriteRawTag(56); output.WriteInt32(NoAlarmChecksCount); } triggerMetricTypes_.WriteTo(ref output, _repeated_triggerMetricTypes_codec); deviceModels_.WriteTo(ref output, _repeated_deviceModels_codec); triggerDeviceTypes_.WriteTo(ref output, _repeated_triggerDeviceTypes_codec); if (deviceParentId_ != null) { _single_deviceParentId_codec.WriteTagAndValue(ref output, DeviceParentId); } if (closedAt_ != null) { output.WriteRawTag(98); output.WriteMessage(ClosedAt); } if (IsManuallyClosed != false) { output.WriteRawTag(104); output.WriteBool(IsManuallyClosed); } if (closingReason_ != null) { _single_closingReason_codec.WriteTagAndValue(ref output, ClosingReason); } if (TriggerMetricGroupingType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType.Unknown) { output.WriteRawTag(120); output.WriteEnum((int) TriggerMetricGroupingType); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (changedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedAt); } if (TriggerId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(TriggerId); } if (FiasId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FiasId); } if (raisedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(RaisedAt); } if (IsDisabled != false) { size += 1 + 1; } if (NoAlarmChecksCount != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(NoAlarmChecksCount); } size += triggerMetricTypes_.CalculateSize(_repeated_triggerMetricTypes_codec); size += deviceModels_.CalculateSize(_repeated_deviceModels_codec); size += triggerDeviceTypes_.CalculateSize(_repeated_triggerDeviceTypes_codec); if (deviceParentId_ != null) { size += _single_deviceParentId_codec.CalculateSizeWithTag(DeviceParentId); } if (closedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClosedAt); } if (IsManuallyClosed != false) { size += 1 + 1; } if (closingReason_ != null) { size += _single_closingReason_codec.CalculateSizeWithTag(ClosingReason); } if (TriggerMetricGroupingType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TriggerMetricGroupingType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Alert other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.changedAt_ != null) { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ChangedAt.MergeFrom(other.ChangedAt); } if (other.TriggerId != 0) { TriggerId = other.TriggerId; } if (other.FiasId.Length != 0) { FiasId = other.FiasId; } if (other.raisedAt_ != null) { if (raisedAt_ == null) { RaisedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } RaisedAt.MergeFrom(other.RaisedAt); } if (other.IsDisabled != false) { IsDisabled = other.IsDisabled; } if (other.NoAlarmChecksCount != 0) { NoAlarmChecksCount = other.NoAlarmChecksCount; } triggerMetricTypes_.Add(other.triggerMetricTypes_); deviceModels_.Add(other.deviceModels_); triggerDeviceTypes_.Add(other.triggerDeviceTypes_); if (other.deviceParentId_ != null) { if (deviceParentId_ == null || other.DeviceParentId != 0) { DeviceParentId = other.DeviceParentId; } } if (other.closedAt_ != null) { if (closedAt_ == null) { ClosedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ClosedAt.MergeFrom(other.ClosedAt); } if (other.IsManuallyClosed != false) { IsManuallyClosed = other.IsManuallyClosed; } if (other.closingReason_ != null) { if (closingReason_ == null || other.ClosingReason != "") { ClosingReason = other.ClosingReason; } } if (other.TriggerMetricGroupingType != global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType.Unknown) { TriggerMetricGroupingType = other.TriggerMetricGroupingType; } _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: { Id = input.ReadInt32(); break; } case 18: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 24: { TriggerId = input.ReadInt32(); break; } case 34: { FiasId = input.ReadString(); break; } case 42: { if (raisedAt_ == null) { RaisedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(RaisedAt); break; } case 48: { IsDisabled = input.ReadBool(); break; } case 56: { NoAlarmChecksCount = input.ReadInt32(); break; } case 66: case 64: { triggerMetricTypes_.AddEntriesFrom(input, _repeated_triggerMetricTypes_codec); break; } case 74: { deviceModels_.AddEntriesFrom(input, _repeated_deviceModels_codec); break; } case 82: case 80: { triggerDeviceTypes_.AddEntriesFrom(input, _repeated_triggerDeviceTypes_codec); break; } case 90: { int? value = _single_deviceParentId_codec.Read(input); if (deviceParentId_ == null || value != 0) { DeviceParentId = value; } break; } case 98: { if (closedAt_ == null) { ClosedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ClosedAt); break; } case 104: { IsManuallyClosed = input.ReadBool(); break; } case 114: { string value = _single_closingReason_codec.Read(input); if (closingReason_ == null || value != "") { ClosingReason = value; } break; } case 120: { TriggerMetricGroupingType = (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType) 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: { Id = input.ReadInt32(); break; } case 18: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 24: { TriggerId = input.ReadInt32(); break; } case 34: { FiasId = input.ReadString(); break; } case 42: { if (raisedAt_ == null) { RaisedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(RaisedAt); break; } case 48: { IsDisabled = input.ReadBool(); break; } case 56: { NoAlarmChecksCount = input.ReadInt32(); break; } case 66: case 64: { triggerMetricTypes_.AddEntriesFrom(ref input, _repeated_triggerMetricTypes_codec); break; } case 74: { deviceModels_.AddEntriesFrom(ref input, _repeated_deviceModels_codec); break; } case 82: case 80: { triggerDeviceTypes_.AddEntriesFrom(ref input, _repeated_triggerDeviceTypes_codec); break; } case 90: { int? value = _single_deviceParentId_codec.Read(ref input); if (deviceParentId_ == null || value != 0) { DeviceParentId = value; } break; } case 98: { if (closedAt_ == null) { ClosedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ClosedAt); break; } case 104: { IsManuallyClosed = input.ReadBool(); break; } case 114: { string value = _single_closingReason_codec.Read(ref input); if (closingReason_ == null || value != "") { ClosingReason = value; } break; } case 120: { TriggerMetricGroupingType = (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.MetricGroupingType) input.ReadEnum(); break; } } } } #endif } } #endregion } /// /// Ответ на запрос получения списка записей /// public sealed partial class GetTriggerListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTriggerListResponse()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerListResponse(GetTriggerListResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerListResponse Clone() { return new GetTriggerListResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Триггер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.Trigger Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryAlerting.V1.Trigger) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetTriggerListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetTriggerListResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) 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 (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; 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 (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } 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 (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } 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 (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetTriggerListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryAlerting.V1.Trigger(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.TelemetryAlerting.V1.Trigger subBuilder = new global::Keyapis.TelemetryAlerting.V1.Trigger(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.TelemetryAlerting.V1.Trigger subBuilder = new global::Keyapis.TelemetryAlerting.V1.Trigger(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Ответ на запрос получения списка записей /// public sealed partial class GetTriggerAlertListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTriggerAlertListResponse()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[16]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertListResponse(GetTriggerAlertListResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertListResponse Clone() { return new GetTriggerAlertListResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Алерт /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.Trigger.Types.Alert Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryAlerting.V1.Trigger.Types.Alert) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetTriggerAlertListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetTriggerAlertListResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) 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 (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; 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 (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } 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 (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } 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 (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetTriggerAlertListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryAlerting.V1.Trigger.Types.Alert(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.TelemetryAlerting.V1.Trigger.Types.Alert subBuilder = new global::Keyapis.TelemetryAlerting.V1.Trigger.Types.Alert(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.TelemetryAlerting.V1.Trigger.Types.Alert subBuilder = new global::Keyapis.TelemetryAlerting.V1.Trigger.Types.Alert(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос получения количества записей /// public sealed partial class GetTriggerCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTriggerCountRequest()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[17]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerCountRequest(GetTriggerCountRequest other) : this() { filter_ = other.filter_ != null ? other.filter_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerCountRequest Clone() { return new GetTriggerCountRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.TelemetryAlerting.V1.TriggerFilter filter_; /// /// Параметры фильтрации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.TriggerFilter Filter { get { return filter_; } set { filter_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetTriggerCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetTriggerCountRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Filter, other.Filter)) 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 (filter_ != null) hash ^= Filter.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 (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } 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 (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } 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 (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetTriggerCountRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerFilter(); } Filter.MergeFrom(other.Filter); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerFilter(); } input.ReadMessage(Filter); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.TelemetryAlerting.V1.TriggerFilter(); } input.ReadMessage(Filter); break; } } } } #endif } /// /// Ответ на запрос получения количества записей /// public sealed partial class GetTriggerCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTriggerCountResponse()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[18]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerCountResponse(GetTriggerCountResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerCountResponse Clone() { return new GetTriggerCountResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Всего записей /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Data { get { return HasData ? (int) type_ : 0; } set { type_ = value; typeCase_ = TypeOneofCase.Data; } } /// Gets whether the "data" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasData { get { return typeCase_ == TypeOneofCase.Data; } } /// Clears the value of the oneof if it's currently set to "data" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearData() { if (HasData) { ClearType(); } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetTriggerCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetTriggerCountResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Data != other.Data) return false; if (TypeCase != other.TypeCase) 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 (HasData) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; 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 (HasData) { output.WriteRawTag(8); output.WriteInt32(Data); } 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 (HasData) { output.WriteRawTag(8); output.WriteInt32(Data); } 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 (HasData) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetTriggerCountResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Data = 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: { Data = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на запрос получения количества записей /// public sealed partial class GetTriggerAlertCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetTriggerAlertCountResponse()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[19]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertCountResponse(GetTriggerAlertCountResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetTriggerAlertCountResponse Clone() { return new GetTriggerAlertCountResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Всего записей /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Data { get { return HasData ? (int) type_ : 0; } set { type_ = value; typeCase_ = TypeOneofCase.Data; } } /// Gets whether the "data" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasData { get { return typeCase_ == TypeOneofCase.Data; } } /// Clears the value of the oneof if it's currently set to "data" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearData() { if (HasData) { ClearType(); } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetTriggerAlertCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetTriggerAlertCountResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Data != other.Data) return false; if (TypeCase != other.TypeCase) 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 (HasData) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; 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 (HasData) { output.WriteRawTag(8); output.WriteInt32(Data); } 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 (HasData) { output.WriteRawTag(8); output.WriteInt32(Data); } 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 (HasData) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetTriggerAlertCountResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Data = 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: { Data = input.ReadInt32(); break; } } } } #endif } /// /// Запрос на создание триггера /// public sealed partial class PostTriggerRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostTriggerRequest()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[20]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostTriggerRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostTriggerRequest(PostTriggerRequest other) : this() { data_ = other.data_ != null ? other.data_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostTriggerRequest Clone() { return new PostTriggerRequest(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Keyapis.TelemetryAlerting.V1.Trigger data_; /// /// Триггер, который хотим создать или обновить /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.Trigger Data { get { return data_; } set { data_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostTriggerRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostTriggerRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) 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 (data_ != null) hash ^= Data.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 (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } 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 (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } 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 (data_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostTriggerRequest other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Keyapis.TelemetryAlerting.V1.Trigger(); } Data.MergeFrom(other.Data); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (data_ == null) { Data = new global::Keyapis.TelemetryAlerting.V1.Trigger(); } input.ReadMessage(Data); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (data_ == null) { Data = new global::Keyapis.TelemetryAlerting.V1.Trigger(); } input.ReadMessage(Data); break; } } } } #endif } /// /// Ответ на запрос сохранения триггера /// public sealed partial class PostTriggerResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostTriggerResponse()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[21]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostTriggerResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostTriggerResponse(PostTriggerResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostTriggerResponse Clone() { return new PostTriggerResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Триггер, созданный или обновленный /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryAlerting.V1.Trigger Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryAlerting.V1.Trigger) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostTriggerResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostTriggerResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) 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 (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; 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 (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } 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 (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } 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 (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostTriggerResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryAlerting.V1.Trigger(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.TelemetryAlerting.V1.Trigger subBuilder = new global::Keyapis.TelemetryAlerting.V1.Trigger(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.TelemetryAlerting.V1.Trigger subBuilder = new global::Keyapis.TelemetryAlerting.V1.Trigger(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос на удаление триггера /// public sealed partial class DeleteTriggerRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteTriggerRequest()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[22]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteTriggerRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteTriggerRequest(DeleteTriggerRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteTriggerRequest Clone() { return new DeleteTriggerRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор триггера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteTriggerRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteTriggerRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeleteTriggerRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } _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: { Id = 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: { Id = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на запрос удаление триггера /// public sealed partial class DeleteTriggerResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteTriggerResponse()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[23]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteTriggerResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteTriggerResponse(DeleteTriggerResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteTriggerResponse Clone() { return new DeleteTriggerResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteTriggerResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteTriggerResponse 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(DeleteTriggerResponse 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 DeleteTriggerAlertRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteTriggerAlertRequest()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[24]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteTriggerAlertRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteTriggerAlertRequest(DeleteTriggerAlertRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteTriggerAlertRequest Clone() { return new DeleteTriggerAlertRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор алерта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteTriggerAlertRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteTriggerAlertRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeleteTriggerAlertRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } _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: { Id = 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: { Id = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на запрос удаление алерта /// public sealed partial class DeleteTriggerAlertResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteTriggerAlertResponse()); 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::Keyapis.TelemetryAlerting.V1.KeyapisTelemetryAlertingTriggerV1Reflection.Descriptor.MessageTypes[25]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteTriggerAlertResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteTriggerAlertResponse(DeleteTriggerAlertResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteTriggerAlertResponse Clone() { return new DeleteTriggerAlertResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteTriggerAlertResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteTriggerAlertResponse 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(DeleteTriggerAlertResponse 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 } #endregion } #endregion Designer generated code