// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/telemetry_control/v1/keyapis_telemetry_control_device_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.TelemetryControl.V1 { /// Holder for reflection information generated from keyapis/telemetry_control/v1/keyapis_telemetry_control_device_v1.proto public static partial class KeyapisTelemetryControlDeviceV1Reflection { #region Descriptor /// File descriptor for keyapis/telemetry_control/v1/keyapis_telemetry_control_device_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisTelemetryControlDeviceV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CkZrZXlhcGlzL3RlbGVtZXRyeV9jb250cm9sL3YxL2tleWFwaXNfdGVsZW1l", "dHJ5X2NvbnRyb2xfZGV2aWNlX3YxLnByb3RvEhxrZXlhcGlzLnRlbGVtZXRy", "eV9jb250cm9sLnYxGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGh9n", "b29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGh5nb29nbGUvcHJvdG9i", "dWYvd3JhcHBlcnMucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAu", "cHJvdG8aG2dvb2dsZS9hcGkvdmlzaWJpbGl0eS5wcm90byImChNEZWxldGVE", "ZXZpY2VSZXF1ZXN0Eg8KAmlkGAEgASgFQgPgQQIiFgoURGVsZXRlRGV2aWNl", "UmVzcG9uc2UiYwobUHV0RGV2aWNlR3JvdXBBdHRhY2hSZXF1ZXN0EkQKDGRl", "dmljZV9ncm91cBgBIAEoCzIpLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wu", "djEuRGV2aWNlR3JvdXBCA+BBAiIeChxQdXREZXZpY2VHcm91cEF0dGFjaFJl", "c3BvbnNlIq0BChlHZXREZXZpY2VHcm91cExpc3RSZXF1ZXN0Ej8KBmZpbHRl", "chgBIAEoCzIvLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuRGV2aWNl", "R3JvdXBGaWx0ZXISQQoGcGFnaW5nGAIgASgLMi8ua2V5YXBpcy50ZWxlbWV0", "cnlfY29udHJvbC52MS5EZXZpY2VHcm91cFBhZ2luZ0gAQgwKCnBhZ2luYXRp", "b24i5AIKEURldmljZUdyb3VwUGFnaW5nElIKDW9yZGVyX2J5X3R5cGUYASAB", "KA4yOy5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLkRldmljZUdyb3Vw", "UGFnaW5nLk9yZGVyQnlUeXBlElUKDmRpcmVjdGlvbl90eXBlGAIgASgOMj0u", "a2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5EZXZpY2VHcm91cFBhZ2lu", "Zy5EaXJlY3Rpb25UeXBlEg0KBWxpbWl0GAMgASgFEg4KBm9mZnNldBgEIAEo", "BSJFCgtPcmRlckJ5VHlwZRIZChVPUkRFUl9CWV9UWVBFX1VOS05PV04QABIM", "CghHUk9VUF9JRBABEg0KCURFVklDRV9JRBACIj4KDURpcmVjdGlvblR5cGUS", "GgoWRElSRUNUSU9OX1RZUEVfVU5LTk9XThAAEggKBERFU0MQARIHCgNBU0MQ", "AiJfChpHZXREZXZpY2VHcm91cExpc3RSZXNwb25zZRI5CgRkYXRhGAEgASgL", "Mikua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5EZXZpY2VHcm91cEgA", "QgYKBHR5cGUiXQoaR2V0RGV2aWNlR3JvdXBDb3VudFJlcXVlc3QSPwoGZmls", "dGVyGAEgASgLMi8ua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5EZXZp", "Y2VHcm91cEZpbHRlciI6ChFEZXZpY2VHcm91cEZpbHRlchIRCglncm91cF9p", "ZHMYASADKAkSEgoKZGV2aWNlX2lkcxgCIAMoBSI1ChtHZXREZXZpY2VHcm91", "cENvdW50UmVzcG9uc2USDgoEZGF0YRgBIAEoBUgAQgYKBHR5cGUiYwobUHV0", "RGV2aWNlR3JvdXBEZXRhY2hSZXF1ZXN0EkQKDGRldmljZV9ncm91cBgBIAEo", "CzIpLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuRGV2aWNlR3JvdXBC", "A+BBAiIeChxQdXREZXZpY2VHcm91cERldGFjaFJlc3BvbnNlIjwKC0Rldmlj", "ZUdyb3VwEhUKCGdyb3VwX2lkGAEgASgJQgPgQQISFgoJZGV2aWNlX2lkGAIg", "ASgFQgPgQQIiWAoaUG9zdERldmljZUluZGljYXRvclJlcXVlc3QSOgoEZGF0", "YRgBIAEoCzInLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuSW5kaWNh", "dG9yQgPgQQIikgIKG1Bvc3REZXZpY2VJbmRpY2F0b3JSZXNwb25zZRI3CgRk", "YXRhGAEgASgLMicua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5JbmRp", "Y2F0b3JIABJQCgVlcnJvchgCIAEoCzI/LmtleWFwaXMudGVsZW1ldHJ5X2Nv", "bnRyb2wudjEuUG9zdERldmljZUluZGljYXRvclJlc3BvbnNlLkVycm9ySAAa", "YAoFRXJyb3ISTQoKdmFsaWRhdGlvbhgBIAEoCzI3LmtleWFwaXMudGVsZW1l", "dHJ5X2NvbnRyb2wudjEuSW5kaWNhdG9yLlZhbGlkYXRpb25FcnJvckgAQggK", "BnJlYXNvbkIGCgR0eXBlIiwKGUdldERldmljZUluZGljYXRvclJlcXVlc3QS", "DwoCaWQYASABKAVCA+BBAiJdChpHZXREZXZpY2VJbmRpY2F0b3JSZXNwb25z", "ZRI3CgRkYXRhGAEgASgLMicua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52", "MS5JbmRpY2F0b3JIAEIGCgR0eXBlIiMKEEdldERldmljZVJlcXVlc3QSDwoC", "aWQYASABKAVCA+BBAiJRChFHZXREZXZpY2VSZXNwb25zZRI0CgRkYXRhGAEg", "ASgLMiQua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5EZXZpY2VIAEIG", "CgR0eXBlIq0BCh1HZXREZXZpY2VJbmRpY2F0b3JMaXN0UmVxdWVzdBI9CgZm", "aWx0ZXIYASABKAsyLS5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLklu", "ZGljYXRvckZpbHRlchI/CgZwYWdpbmcYAiABKAsyLS5rZXlhcGlzLnRlbGVt", "ZXRyeV9jb250cm9sLnYxLkluZGljYXRvclBhZ2luZ0gAQgwKCnBhZ2luYXRp", "b24i8gQKD0luZGljYXRvclBhZ2luZxJQCg1vcmRlcl9ieV90eXBlGAEgASgO", "Mjkua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5JbmRpY2F0b3JQYWdp", "bmcuT3JkZXJCeVR5cGUSUwoOZGlyZWN0aW9uX3R5cGUYAiABKA4yOy5rZXlh", "cGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLkluZGljYXRvclBhZ2luZy5EaXJl", "Y3Rpb25UeXBlEg0KBWxpbWl0GAMgASgFEg4KBm9mZnNldBgEIAEoBRr4AQoP", "VmFsaWRhdGlvbkVycm9yElsKBWxpbWl0GAEgASgLMkoua2V5YXBpcy50ZWxl", "bWV0cnlfY29udHJvbC52MS5JbmRpY2F0b3JQYWdpbmcuVmFsaWRhdGlvbkVy", "cm9yLkxpbWl0SW52YWxpZEgAEl0KBm9mZnNldBgCIAEoCzJLLmtleWFwaXMu", "dGVsZW1ldHJ5X2NvbnRyb2wudjEuSW5kaWNhdG9yUGFnaW5nLlZhbGlkYXRp", "b25FcnJvci5PZmZzZXRJbnZhbGlkSAAaDgoMTGltaXRJbnZhbGlkGg8KDU9m", "ZnNldEludmFsaWRCCAoGcmVhc29uIl4KC09yZGVyQnlUeXBlEhkKFU9SREVS", "X0JZX1RZUEVfVU5LTk9XThAAEgYKAklEEAESDQoJU0lHTl9UWVBFEAISDQoJ", "REVWSUNFX0lEEAMSDgoKQ1JFQVRFRF9BVBAEIj4KDURpcmVjdGlvblR5cGUS", "GgoWRElSRUNUSU9OX1RZUEVfVU5LTk9XThAAEggKBERFU0MQARIHCgNBU0MQ", "AiKQAwoeR2V0RGV2aWNlSW5kaWNhdG9yTGlzdFJlc3BvbnNlEjcKBGRhdGEY", "ASABKAsyJy5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLkluZGljYXRv", "ckgAElMKBWVycm9yGAIgASgLMkIua2V5YXBpcy50ZWxlbWV0cnlfY29udHJv", "bC52MS5HZXREZXZpY2VJbmRpY2F0b3JMaXN0UmVzcG9uc2UuRXJyb3JIABrX", "AQoFRXJyb3ISYQoYZGV2aWNlX2ZpbHRlcl92YWxpZGF0aW9uGAEgASgLMj0u", "a2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5JbmRpY2F0b3JGaWx0ZXIu", "VmFsaWRhdGlvbkVycm9ySAASYQoYZGV2aWNlX3BhZ2luZ192YWxpZGF0aW9u", "GAIgASgLMj0ua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5JbmRpY2F0", "b3JQYWdpbmcuVmFsaWRhdGlvbkVycm9ySABCCAoGcmVhc29uQgYKBHR5cGUi", "mAMKD0luZGljYXRvckZpbHRlchISCgpkZXZpY2VfaWRzGAEgAygFEkQKCnNp", "Z25fdHlwZXMYAiADKA4yMC5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYx", "LkluZGljYXRvci5TaWduVHlwZRIhCgNpZHMYAyADKAVCFBgB+tLkkwIMEgpE", "RVBSRUNBVEVEEh0KFWRldmljZV9zZXJpYWxfbnVtYmVycxgEIAMoCRIUCgxi", "dWlsZGluZ19pZHMYBSADKAUSFAoMcm9vbV9udW1iZXJzGAYgAygJEhMKC3Jv", "b21fbGFiZWxzGAcgAygJEhgKEG1ldHJpY19wb2ludF9pZHMYCCADKAkSUgoW", "aW5kaWNhdG9yX3ZlbmRvcl90eXBlcxgJIAMoDjIyLmtleWFwaXMudGVsZW1l", "dHJ5X2NvbnRyb2wudjEuSW5kaWNhdG9yLlZlbmRvclR5cGUaOgoPVmFsaWRh", "dGlvbkVycm9yEhEKBHBhdGgYASABKAlCA+BBAhIUCgdtZXNzYWdlGAIgASgJ", "QgPgQQIiXwoeR2V0RGV2aWNlSW5kaWNhdG9yQ291bnRSZXF1ZXN0Ej0KBmZp", "bHRlchgBIAEoCzItLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuSW5k", "aWNhdG9yRmlsdGVyIoUCCh9HZXREZXZpY2VJbmRpY2F0b3JDb3VudFJlc3Bv", "bnNlEg4KBGRhdGEYASABKAVIABJUCgVlcnJvchgCIAEoCzJDLmtleWFwaXMu", "dGVsZW1ldHJ5X2NvbnRyb2wudjEuR2V0RGV2aWNlSW5kaWNhdG9yQ291bnRS", "ZXNwb25zZS5FcnJvckgAGnQKBUVycm9yEmEKGGRldmljZV9maWx0ZXJfdmFs", "aWRhdGlvbhgBIAEoCzI9LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEu", "SW5kaWNhdG9yRmlsdGVyLlZhbGlkYXRpb25FcnJvckgAQggKBnJlYXNvbkIG", "CgR0eXBlIi8KHERlbGV0ZURldmljZUluZGljYXRvclJlcXVlc3QSDwoCaWQY", "ASABKAVCA+BBAiIfCh1EZWxldGVEZXZpY2VJbmRpY2F0b3JSZXNwb25zZSLT", "CAobUG9zdERldmljZUZ1bGxEdXBsZXhSZXF1ZXN0EhcKCnJlcXVlc3RfaWQY", "ASABKAlCA+BBAhKCAQorcG9zdF9kZXZpY2VfZnVsbF9kdXBsZXhfZGV2aWNl", "X2FzeW5jX3N0YXR1cxgCIAEoCzJLLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRy", "b2wudjEuUG9zdERldmljZUZ1bGxEdXBsZXhSZXF1ZXN0LkRldmljZUFzeW5j", "U3RhdHVzSAAajQcKEURldmljZUFzeW5jU3RhdHVzEhYKCWRldmljZV9pZBgB", "IAEoBUID4EECEmMKBGRhdGEYAiABKAsyUy5rZXlhcGlzLnRlbGVtZXRyeV9j", "b250cm9sLnYxLlBvc3REZXZpY2VGdWxsRHVwbGV4UmVxdWVzdC5EZXZpY2VB", "c3luY1N0YXR1cy5TdWNjZXNzSAASYgoFZXJyb3IYAyABKAsyUS5rZXlhcGlz", "LnRlbGVtZXRyeV9jb250cm9sLnYxLlBvc3REZXZpY2VGdWxsRHVwbGV4UmVx", "dWVzdC5EZXZpY2VBc3luY1N0YXR1cy5FcnJvckgAGgkKB1N1Y2Nlc3MagwUK", "BUVycm9yEoUBChtwb3N0X2RldmljZV9yZXF1ZXN0X3Vua25vd24YASABKAsy", "Xi5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLlBvc3REZXZpY2VGdWxs", "RHVwbGV4UmVxdWVzdC5EZXZpY2VBc3luY1N0YXR1cy5FcnJvci5Vbmtub3du", "RXJyb3JIABJ7ChZwb3N0X2RldmljZV9yZXF1ZXN0X2lwGAIgASgLMlkua2V5", "YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5Qb3N0RGV2aWNlRnVsbER1cGxl", "eFJlcXVlc3QuRGV2aWNlQXN5bmNTdGF0dXMuRXJyb3IuSXBFcnJvckgAEn8K", "GHBvc3RfZGV2aWNlX3JlcXVlc3RfcG9ydBgDIAEoCzJbLmtleWFwaXMudGVs", "ZW1ldHJ5X2NvbnRyb2wudjEuUG9zdERldmljZUZ1bGxEdXBsZXhSZXF1ZXN0", "LkRldmljZUFzeW5jU3RhdHVzLkVycm9yLlBvcnRFcnJvckgAEpQBCiNwb3N0", "X2RldmljZV9yZXF1ZXN0X25ldHdvcmtfYWRkcmVzcxgEIAEoCzJlLmtleWFw", "aXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuUG9zdERldmljZUZ1bGxEdXBsZXhS", "ZXF1ZXN0LkRldmljZUFzeW5jU3RhdHVzLkVycm9yLk5ldHdvcmtBZGRyZXNz", "RXJyb3JIABokCgxVbmtub3duRXJyb3ISFAoHbWVzc2FnZRgBIAEoCUID4EEC", "GgkKB0lwRXJyb3IaCwoJUG9ydEVycm9yGhUKE05ldHdvcmtBZGRyZXNzRXJy", "b3JCCAoGcmVhc29uQgYKBHR5cGVCBgoEdGFzayJOChFQb3N0RGV2aWNlUmVx", "dWVzdBI5CgZkZXZpY2UYASABKAsyJC5rZXlhcGlzLnRlbGVtZXRyeV9jb250", "cm9sLnYxLkRldmljZUID4EECInUKGFBvc3REZXZpY2VSZXBsYWNlUmVxdWVz", "dBIeChFyZXBsYWNlX2RldmljZV9pZBgBIAEoBUID4EECEjkKBmRldmljZRgC", "IAEoCzIkLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuRGV2aWNlQgPg", "QQIiwgcKGVBvc3REZXZpY2VSZXBsYWNlUmVzcG9uc2USNAoEZGF0YRgBIAEo", "CzIkLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuRGV2aWNlSAASTgoF", "ZXJyb3IYAiABKAsyPS5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLlBv", "c3REZXZpY2VSZXBsYWNlUmVzcG9uc2UuRXJyb3JIABqWBgoFRXJyb3ISSgoK", "dmFsaWRhdGlvbhgBIAEoCzI0LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wu", "djEuRGV2aWNlLlZhbGlkYXRpb25FcnJvckgAEncKGHJlcGxhY2VfZGV2aWNl", "X25vdF9mb3VuZBgCIAEoCzJTLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wu", "djEuUG9zdERldmljZVJlcGxhY2VSZXNwb25zZS5FcnJvci5SZXBsYWNlRGV2", "aWNlTm90Rm91bmRIABJ0ChZjcmVhdGVfaW5kaWNhdG9yc19mYWlsGAMgASgL", "MlIua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5Qb3N0RGV2aWNlUmVw", "bGFjZVJlc3BvbnNlLkVycm9yLkNyZWF0ZUluZGljYXRvcnNGYWlsSAASeQoZ", "bXVsdGlfbGlua2VkX21ldHJpY19wb2ludBgEIAEoCzJULmtleWFwaXMudGVs", "ZW1ldHJ5X2NvbnRyb2wudjEuUG9zdERldmljZVJlcGxhY2VSZXNwb25zZS5F", "cnJvci5NdWx0aUxpbmtlZE1ldHJpY1BvaW50SAASZQoOd3JvbmdfYnVpbGRp", "bmcYBSABKAsySy5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLlBvc3RE", "ZXZpY2VSZXBsYWNlUmVzcG9uc2UuRXJyb3IuV3JvbmdCdWlsZGluZ0gAEnMK", "Fm1ldHJpY19wb2ludF9ub3RfZm91bmQYBiABKAsyUS5rZXlhcGlzLnRlbGVt", "ZXRyeV9jb250cm9sLnYxLlBvc3REZXZpY2VSZXBsYWNlUmVzcG9uc2UuRXJy", "b3IuTWV0cmljUG9pbnROb3RGb3VuZEgAGhcKFVJlcGxhY2VEZXZpY2VOb3RG", "b3VuZBoWChRDcmVhdGVJbmRpY2F0b3JzRmFpbBoYChZNdWx0aUxpbmtlZE1l", "dHJpY1BvaW50Gg8KDVdyb25nQnVpbGRpbmcaFQoTTWV0cmljUG9pbnROb3RG", "b3VuZEIICgZyZWFzb25CBgoEdHlwZSKJAQocUG9zdERldmljZUZ1bGxEdXBs", "ZXhSZXNwb25zZRIXCgpyZXF1ZXN0X2lkGAEgASgJQgPgQQISRwoLcG9zdF9k", "ZXZpY2UYAiABKAsyMC5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLlBv", "c3REZXZpY2VSZXNwb25zZUgAQgcKBWV2ZW50IvoBChJQb3N0RGV2aWNlUmVz", "cG9uc2USNAoEZGF0YRgBIAEoCzIkLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRy", "b2wudjEuRGV2aWNlSAASRwoFZXJyb3IYAiABKAsyNi5rZXlhcGlzLnRlbGVt", "ZXRyeV9jb250cm9sLnYxLlBvc3REZXZpY2VSZXNwb25zZS5FcnJvckgAGl0K", "BUVycm9yEkoKCnZhbGlkYXRpb24YASABKAsyNC5rZXlhcGlzLnRlbGVtZXRy", "eV9jb250cm9sLnYxLkRldmljZS5WYWxpZGF0aW9uRXJyb3JIAEIICgZyZWFz", "b25CBgoEdHlwZSLLDAoJSW5kaWNhdG9yEgoKAmlkGAEgASgFEhYKCWRldmlj", "ZV9pZBgCIAEoBUID4EECEhIKBXRpdGxlGAMgASgJQgPgQQISSAoJdW5pdF90", "eXBlGAQgASgOMjAua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5JbmRp", "Y2F0b3IuVW5pdFR5cGVCA+BBAhJICglzaWduX3R5cGUYBSABKA4yMC5rZXlh", "cGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLkluZGljYXRvci5TaWduVHlwZUID", "4EECEjMKCmNyZWF0ZWRfYXQYBiABKAsyGi5nb29nbGUucHJvdG9idWYuVGlt", "ZXN0YW1wQgPgQQMSMwoKY2hhbmdlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90", "b2J1Zi5UaW1lc3RhbXBCA+BBAxIVCg1pc19pbmRpdmlkdWFsGAggASgIEjgK", "EmNvbXBhdGliaWxpdHlfY29kZRgJIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5T", "dHJpbmdWYWx1ZRJJCgxhcmNoaXZlX3R5cGUYCiABKA4yMy5rZXlhcGlzLnRl", "bGVtZXRyeV9jb250cm9sLnYxLkluZGljYXRvci5BcmNoaXZlVHlwZRJQChZw", "cmVzZW50YXRpb25fdW5pdF90eXBlGAsgASgOMjAua2V5YXBpcy50ZWxlbWV0", "cnlfY29udHJvbC52MS5JbmRpY2F0b3IuVW5pdFR5cGUSMAoLY29lZmZpY2ll", "bnQYDCABKAsyGy5nb29nbGUucHJvdG9idWYuRmxvYXRWYWx1ZRIqCgVzaGlm", "dBgNIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5GbG9hdFZhbHVlEjkKFHJvdW5k", "X2RlY2ltYWxfZGlnaXRzGA4gASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMy", "VmFsdWUSHAoUbWV0cmljX2V4cGVjdGVkX2ZyZXEYDyABKAUSNAoOY2hhbm5l", "bF9udW1iZXIYECABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUS", "MgoNY2hhbm5lbF9vcmRlchgRIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQz", "MlZhbHVlEkcKC3ZlbmRvcl90eXBlGBIgASgOMjIua2V5YXBpcy50ZWxlbWV0", "cnlfY29udHJvbC52MS5JbmRpY2F0b3IuVmVuZG9yVHlwZRo6Cg9WYWxpZGF0", "aW9uRXJyb3ISEQoEcGF0aBgBIAEoCUID4EECEhQKB21lc3NhZ2UYAiABKAlC", "A+BBAiJHCgpWZW5kb3JUeXBlEhcKE1ZFTkRPUl9UWVBFX1VOS05PV04QABIK", "CgZFTlZJUk8QARILCgdMQVJURUNIEAISBwoDUlRLEAMikQIKCFVuaXRUeXBl", "EhUKEVVOSVRfVFlQRV9VTktOT1dOEAASCwoHUEVSQ0VOVBABEgUKAUMQAhIG", "CgJXVBADEggKBEdLQUwQBBIJCgVWQUxVRRAFEgcKA0tXSBAGEgoKBktHX0NN", "MhAHEgsKB0tHRl9DTTIQCBIGCgJNMxAJEggKBE0zX0gQChIHCgNNUEEQCxIG", "CgJNUxAMEgsKB0JPT0xFQU4QDRIFCgFUEA4SBwoDVF9IEA8SBQoBSBAQEhIK", "Dk5PTl9NRUFTVVJBQkxFEBESBwoDSU1QEBISBQoBShATEgYKAktKEBQSBgoC", "R0oQFRIHCgNXVEgQFhIHCgNLV1QQFxIHCgNNSU4QGBIFCgFTEBkiqgEKCFNp", "Z25UeXBlEhUKEVNJR05fVFlQRV9VTktOT1dOEAASDwoLQUJTT0xVVEVfRFMQ", "ARIPCgtBQlNPTFVURV9SQxACEg8KC0lOVEVSVkFMX0RTEAMSDwoLSU5URVJW", "QUxfUkMQBBIOCgpDVVJSRU5UX0RTEAUSDgoKQ1VSUkVOVF9SUxAGEgoKBlZP", "TFVNRRAHEg0KCVBBUkFNRVRFUhAIEggKBEZMQUcQCSJqCgtBcmNoaXZlVHlw", "ZRIYChRBUkNISVZFX1RZUEVfVU5LTk9XThAAEgsKB0NVUlJFTlQQARIMCghI", "QUxGSE9VUhACEggKBEhPVVIQAxIHCgNEQVkQBBIJCgVNT05USBAFEggKBFlF", "QVIQBiKNHwoGRGV2aWNlEgoKAmlkGAEgASgFEkAKCmluZGljYXRvcnMYAiAD", "KAsyJy5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLkluZGljYXRvckID", "4EEDElwKDG1ldHJpY19wb2ludBgDIAEoCzIwLmtleWFwaXMudGVsZW1ldHJ5", "X2NvbnRyb2wudjEuRGV2aWNlLk1ldHJpY1BvaW50QhQYAfrS5JMCDBIKREVQ", "UkVDQVRFRBIzCgpjcmVhdGVkX2F0GAQgASgLMhouZ29vZ2xlLnByb3RvYnVm", "LlRpbWVzdGFtcEID4EEDEjMKCmNoYW5nZWRfYXQYBSABKAsyGi5nb29nbGUu", "cHJvdG9idWYuVGltZXN0YW1wQgPgQQMSPAoEdHlwZRgGIAEoDjIpLmtleWFw", "aXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuRGV2aWNlLlR5cGVCA+BBAhIaCg1z", "ZXJpYWxfbnVtYmVyGAcgASgJQgPgQQISEgoFbW9kZWwYCCABKAlCA+BBAhIl", "CgR5ZWFyGAkgASgFQhcYAeBBAvrS5JMCDBIKREVQUkVDQVRFRBIoCgdmaWFz", "X2lkGAogASgJQhcYAeBBAvrS5JMCDBIKREVQUkVDQVRFRBIyChFyZXNvdXJj", "ZV9vd25lcl9pZBgLIAEoCUIXGAHgQQP60uSTAgwSCkRFUFJFQ0FURUQSRAoL", "c3RhdHVzX3R5cGUYDCABKA4yLy5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9s", "LnYxLkRldmljZS5TdGF0dXNUeXBlEjAKDGluc3RhbGxlZF9hdBgNIAEoCzIa", "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLgoKcmVtb3ZlZF9hdBgOIAEo", "CzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLAoIY2hlY2tfYXQYDyAB", "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjEKDW5leHRfY2hlY2tf", "YXQYECABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjEKC2V4dGVy", "bmFsX2lkGBEgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEkAK", "CXBsYW5fdHlwZRgSIAEoDjItLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wu", "djEuRGV2aWNlLlBsYW5UeXBlEi4KCXBhcmVudF9pZBgTIAEoCzIbLmdvb2ds", "ZS5wcm90b2J1Zi5JbnQzMlZhbHVlEkAKCXBpcGVfdHlwZRgUIAEoDjItLmtl", "eWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuRGV2aWNlLlBpcGVUeXBlEi0K", "B2Rldl9ldWkYFSABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUS", "KQoDbWFjGBYgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEikK", "BHBvcnQYFyABKAsyGy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZRI1Cg9u", "ZXR3b3JrX2FkZHJlc3MYGCABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5n", "VmFsdWUSMgoMY29tbV9jaGFubmVsGBkgASgLMhwuZ29vZ2xlLnByb3RvYnVm", "LlN0cmluZ1ZhbHVlEjAKCnNpbV9udW1iZXIYGiABKAsyHC5nb29nbGUucHJv", "dG9idWYuU3RyaW5nVmFsdWUSMAoKc2ltX3NlcmlhbBgbIAEoCzIcLmdvb2ds", "ZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRI0Cg5pcF9hZGRyZXNzX3NpbRgcIAEo", "CzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRIvCglwbGFjZW1lbnQY", "HSABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSOAoSaW5zdGFs", "bGF0aW9uX3BsYWNlGB4gASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1Zh", "bHVlEkIKBmFwcGtleRgfIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdW", "YWx1ZUIUGAH60uSTAgwSCkRFUFJFQ0FURUQSQgoGYXBwZXVpGCAgASgLMhwu", "Z29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlQhQYAfrS5JMCDBIKREVQUkVD", "QVRFRBI5ChNwcm90b2NvbF90eXBlX2xhYmVsGCEgASgLMhwuZ29vZ2xlLnBy", "b3RvYnVmLlN0cmluZ1ZhbHVlEkkKDmNoYW5uZWxfbnVtYmVyGCIgASgLMhsu", "Z29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWVCFBgB+tLkkwIMEgpERVBSRUNB", "VEVEEjQKDndpcmVfaW50ZXJmYWNlGCMgASgLMhwuZ29vZ2xlLnByb3RvYnVm", "LlN0cmluZ1ZhbHVlEhMKC2J1aWxkaW5nX2lkGCQgASgFEjUKEG1hbnVmYWN0", "dXJlX3llYXIYJSABKAsyGy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZRJR", "ChVpbmRpY2F0b3JfdmVuZG9yX3R5cGUYJiABKA4yMi5rZXlhcGlzLnRlbGVt", "ZXRyeV9jb250cm9sLnYxLkluZGljYXRvci5WZW5kb3JUeXBlGjoKD1ZhbGlk", "YXRpb25FcnJvchIRCgRwYXRoGAEgASgJQgPgQQISFAoHbWVzc2FnZRgCIAEo", "CUID4EECGt0KCgtNZXRyaWNQb2ludBIKCgJpZBgBIAEoCRJVCgttZXRyaWNf", "dHlwZRgCIAEoDjI7LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuRGV2", "aWNlLk1ldHJpY1BvaW50Lk1ldHJpY1R5cGVCA+BBAhIYCgtyb29tX251bWJl", "chgDIAEoCUID4EECEhcKCnJvb21fbGFiZWwYBCABKAlCA+BBAhIwCgp6b25l", "X2xhYmVsGAUgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlElUK", "C3N0YXR1c190eXBlGAYgASgOMjsua2V5YXBpcy50ZWxlbWV0cnlfY29udHJv", "bC52MS5EZXZpY2UuTWV0cmljUG9pbnQuU3RhdHVzVHlwZUID4EECEl0KD2Fj", "Y291bnRpbmdfdHlwZRgHIAEoDjI/LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRy", "b2wudjEuRGV2aWNlLk1ldHJpY1BvaW50LkFjY291bnRpbmdUeXBlQgPgQQIS", "MwoKY3JlYXRlZF9hdBgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", "bXBCA+BBAxJhChRwcmltYXJ5X2N1cnJlbnRfdHlwZRgJIAEoDjJDLmtleWFw", "aXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuRGV2aWNlLk1ldHJpY1BvaW50LlBy", "aW1hcnlDdXJyZW50VHlwZRJZChZzZWNvbmRhcnlfY3VycmVudF90eXBlGAog", "ASgOMjkua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5EZXZpY2UuU2Vj", "b25kYXJ5Q3VycmVudFR5cGUSGAoLYnVpbGRpbmdfaWQYCyABKAVCA+BBAhIz", "CgpjaGFuZ2VkX2F0GAwgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", "cEID4EEDEhYKDmJ1aWxkaW5nX2xldmVsGA0gASgFEhgKEGJ1aWxkaW5nX3Nl", "Y3Rpb24YDiABKAUiaAoKTWV0cmljVHlwZRIXChNNRVRSSUNfVFlQRV9VTktO", "T1dOEAASDQoJSE9UX1dBVEVSEAESDgoKQ09MRF9XQVRFUhACEggKBEhFQVQQ", "AxIHCgNHQVMQBBIPCgtFTEVDVFJJQ0lUWRAFIl8KClN0YXR1c1R5cGUSFwoT", "U1RBVFVTX1RZUEVfVU5LTk9XThAAEgoKBkFDVElWRRABEh8KBVdST05HEAIa", "FAgB+tLkkwIMEgpERVBSRUNBVEVEEgsKB0FSQ0hJVkUQAyJMCg5BY2NvdW50", "aW5nVHlwZRIbChdBQ0NPVU5USU5HX1RZUEVfVU5LTk9XThAAEg4KCkNPTU1F", "UkNJQUwQARINCglURUNITklDQUwQAiLCAgoSUHJpbWFyeUN1cnJlbnRUeXBl", "EiAKHFBSSU1BUllfQ1VSUkVOVF9UWVBFX1VOS05PV04QABIICgRUVDFBEAES", "CAoEVFQ1QRACEgkKBVRUMTBBEAMSCQoFVFQxNUEQBBIJCgVUVDIwQRAFEgkK", "BVRUMzBBEAYSCQoFVFQ0MEEQBxIJCgVUVDUwQRAIEgkKBVRUNzVBEAkSCQoF", "VFQ4MEEQChIKCgZUVDEwMEEQCxIKCgZUVDE1MEEQDBIKCgZUVDIwMEEQDRIK", "CgZUVDMwMEEQDhIKCgZUVDQwMEEQDxIKCgZUVDUwMEEQEBIKCgZUVDYwMEEQ", "ERIKCgZUVDc1MEEQEhIKCgZUVDgwMEEQExILCgdUVDEwMDBBEBQSCwoHVFQx", "MjAwQRAVEgsKB1RUMTUwMEEQFhILCgdUVDIwMDBBEBciWAoUU2Vjb25kYXJ5", "Q3VycmVudFR5cGUSIgoeU0VDT05EQVJZX0NVUlJFTlRfVFlQRV9VTktOT1dO", "EAASCAoEVFQxQRABEggKBFRUMkEQAhIICgRUVDVBEAMiwwEKBFR5cGUSEAoM", "VFlQRV9VTktOT1dOEAASBwoDSFVCEAESGgoWUFVMU0VfQ09VTlRFUl9SRUNP", "UkRFUhACEh0KGVBVTFNFX0NPVU5URVJfUkVDT1JERVJfTFIQAxITCg9NRVRF", "UklOR19ERVZJQ0UQBBIXChNJTlRFUkZBQ0VfQ09OVkVSVEVSEAUSDQoJTV9C", "VVNfSFVCEAYSGwoXQ09NTVVOSUNBVElPTl9NT0RVTEVfTFIQBxILCgdCQVNF", "X0xSEAgibwoKU3RhdHVzVHlwZRIXChNTVEFUVVNfVFlQRV9VTktOT1dOEAAS", "DAoIUkVDRUlWRUQQARIKCgZBQ1RJVkUQAhIJCgVXUk9ORxADEgsKB0FSQ0hJ", "VkUQBBIKCgZERUxFVEUQBRIKCgZVTkxJTksQBiJFCghQbGFuVHlwZRIVChFQ", "TEFOX1RZUEVfVU5LTk9XThAAEgoKBlNJTkdMRRABEgoKBkRPVUJMRRACEgoK", "BlRSSVBMRRADIj4KCFBpcGVUeXBlEhUKEVBJUEVfVFlQRV9VTktOT1dOEAAS", "CgoGSU5GRUVEEAESDwoLQ0lSQ1VMQVRJTkcQAiKeAQoUR2V0RGV2aWNlTGlz", "dFJlcXVlc3QSOgoGZmlsdGVyGAEgASgLMioua2V5YXBpcy50ZWxlbWV0cnlf", "Y29udHJvbC52MS5EZXZpY2VGaWx0ZXISPAoGcGFnaW5nGAIgASgLMioua2V5", "YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5EZXZpY2VQYWdpbmdIAEIMCgpw", "YWdpbmF0aW9uIrUECgxEZXZpY2VQYWdpbmcSTQoNb3JkZXJfYnlfdHlwZRgB", "IAEoDjI2LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuRGV2aWNlUGFn", "aW5nLk9yZGVyQnlUeXBlElAKDmRpcmVjdGlvbl90eXBlGAIgASgOMjgua2V5", "YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5EZXZpY2VQYWdpbmcuRGlyZWN0", "aW9uVHlwZRINCgVsaW1pdBgDIAEoBRIOCgZvZmZzZXQYBCABKAUa8gEKD1Zh", "bGlkYXRpb25FcnJvchJYCgVsaW1pdBgBIAEoCzJHLmtleWFwaXMudGVsZW1l", "dHJ5X2NvbnRyb2wudjEuRGV2aWNlUGFnaW5nLlZhbGlkYXRpb25FcnJvci5M", "aW1pdEludmFsaWRIABJaCgZvZmZzZXQYAiABKAsySC5rZXlhcGlzLnRlbGVt", "ZXRyeV9jb250cm9sLnYxLkRldmljZVBhZ2luZy5WYWxpZGF0aW9uRXJyb3Iu", "T2Zmc2V0SW52YWxpZEgAGg4KDExpbWl0SW52YWxpZBoPCg1PZmZzZXRJbnZh", "bGlkQggKBnJlYXNvbiIwCgtPcmRlckJ5VHlwZRIZChVPUkRFUl9CWV9UWVBF", "X1VOS05PV04QABIGCgJJRBABIj4KDURpcmVjdGlvblR5cGUSGgoWRElSRUNU", "SU9OX1RZUEVfVU5LTk9XThAAEggKBERFU0MQARIHCgNBU0MQAiL1AgoVR2V0", "RGV2aWNlTGlzdFJlc3BvbnNlEjQKBGRhdGEYASABKAsyJC5rZXlhcGlzLnRl", "bGVtZXRyeV9jb250cm9sLnYxLkRldmljZUgAEkoKBWVycm9yGAIgASgLMjku", "a2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5HZXREZXZpY2VMaXN0UmVz", "cG9uc2UuRXJyb3JIABrRAQoFRXJyb3ISXgoYZGV2aWNlX2ZpbHRlcl92YWxp", "ZGF0aW9uGAEgASgLMjoua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5E", "ZXZpY2VGaWx0ZXIuVmFsaWRhdGlvbkVycm9ySAASXgoYZGV2aWNlX3BhZ2lu", "Z192YWxpZGF0aW9uGAIgASgLMjoua2V5YXBpcy50ZWxlbWV0cnlfY29udHJv", "bC52MS5EZXZpY2VQYWdpbmcuVmFsaWRhdGlvbkVycm9ySABCCAoGcmVhc29u", "QgYKBHR5cGUi7wQKDERldmljZUZpbHRlchIQCghmaWFzX2lkcxgBIAMoCRI4", "CgV0eXBlcxgCIAMoDjIpLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEu", "RGV2aWNlLlR5cGUSRQoMc3RhdHVzX3R5cGVzGAMgAygOMi8ua2V5YXBpcy50", "ZWxlbWV0cnlfY29udHJvbC52MS5EZXZpY2UuU3RhdHVzVHlwZRIOCgZtb2Rl", "bHMYBCADKAkSXgoZbWV0cmljX3BvaW50X21ldHJpY190eXBlcxgFIAMoDjI7", "LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuRGV2aWNlLk1ldHJpY1Bv", "aW50Lk1ldHJpY1R5cGUSFAoMcm9vbV9udW1iZXJzGAYgAygJEhMKC3Jvb21f", "bGFiZWxzGAcgAygJEhIKCnBhcmVudF9pZHMYCCADKAUSIQoDaWRzGAkgAygF", "QhQYAfrS5JMCDBIKREVQUkVDQVRFRBIUCgxidWlsZGluZ19pZHMYCiADKAUS", "FgoOc2VyaWFsX251bWJlcnMYCyADKAkSGAoQbWV0cmljX3BvaW50X2lkcxgM", "IAMoCRISCgpzZXJpYWxfaWRzGA0gAygJEg4KBm9ycG9ucxgOIAMoAxJSChZp", "bmRpY2F0b3JfdmVuZG9yX3R5cGVzGA8gAygOMjIua2V5YXBpcy50ZWxlbWV0", "cnlfY29udHJvbC52MS5JbmRpY2F0b3IuVmVuZG9yVHlwZRo6Cg9WYWxpZGF0", "aW9uRXJyb3ISEQoEcGF0aBgBIAEoCUID4EECEhQKB21lc3NhZ2UYAiABKAlC", "A+BBAiJTChVHZXREZXZpY2VDb3VudFJlcXVlc3QSOgoGZmlsdGVyGAEgASgL", "Mioua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5EZXZpY2VGaWx0ZXIi", "8AEKFkdldERldmljZUNvdW50UmVzcG9uc2USDgoEZGF0YRgBIAEoBUgAEksK", "BWVycm9yGAIgASgLMjoua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5H", "ZXREZXZpY2VDb3VudFJlc3BvbnNlLkVycm9ySAAacQoFRXJyb3ISXgoYZGV2", "aWNlX2ZpbHRlcl92YWxpZGF0aW9uGAEgASgLMjoua2V5YXBpcy50ZWxlbWV0", "cnlfY29udHJvbC52MS5EZXZpY2VGaWx0ZXIuVmFsaWRhdGlvbkVycm9ySABC", "CAoGcmVhc29uQgYKBHR5cGUi2gEKKEdldERldmljZUluZGljYXRvck1ldHJp", "Y1BvaW50TGlzdFJlcXVlc3QSTgoGZmlsdGVyGAEgASgLMj4ua2V5YXBpcy50", "ZWxlbWV0cnlfY29udHJvbC52MS5EZXZpY2VJbmRpY2F0b3JNZXRyaWNQb2lu", "dEZpbHRlchJQCgZwYWdpbmcYAiABKAsyPi5rZXlhcGlzLnRlbGVtZXRyeV9j", "b250cm9sLnYxLkRldmljZUluZGljYXRvck1ldHJpY1BvaW50UGFnaW5nSABC", "DAoKcGFnaW5hdGlvbiJRCiBEZXZpY2VJbmRpY2F0b3JNZXRyaWNQb2ludEZp", "bHRlchIUCgxpbmRpY2F0b3JfaWQYASADKAUSFwoPbWV0cmljX3BvaW50X2lk", "GAIgAygJIpsDCiBEZXZpY2VJbmRpY2F0b3JNZXRyaWNQb2ludFBhZ2luZxJh", "Cg1vcmRlcl9ieV90eXBlGAEgASgOMkoua2V5YXBpcy50ZWxlbWV0cnlfY29u", "dHJvbC52MS5EZXZpY2VJbmRpY2F0b3JNZXRyaWNQb2ludFBhZ2luZy5PcmRl", "ckJ5VHlwZRJkCg5kaXJlY3Rpb25fdHlwZRgCIAEoDjJMLmtleWFwaXMudGVs", "ZW1ldHJ5X2NvbnRyb2wudjEuRGV2aWNlSW5kaWNhdG9yTWV0cmljUG9pbnRQ", "YWdpbmcuRGlyZWN0aW9uVHlwZRINCgVsaW1pdBgDIAEoBRIOCgZvZmZzZXQY", "BCABKAUiTwoLT3JkZXJCeVR5cGUSGQoVT1JERVJfQllfVFlQRV9VTktOT1dO", "EAASEAoMSU5ESUNBVE9SX0lEEAESEwoPTUVUUklDX1BPSU5UX0lEEAIiPgoN", "RGlyZWN0aW9uVHlwZRIaChZESVJFQ1RJT05fVFlQRV9VTktOT1dOEAASCAoE", "REVTQxABEgcKA0FTQxACIn0KKUdldERldmljZUluZGljYXRvck1ldHJpY1Bv", "aW50TGlzdFJlc3BvbnNlEkgKBGRhdGEYASABKAsyOC5rZXlhcGlzLnRlbGVt", "ZXRyeV9jb250cm9sLnYxLkRldmljZUluZGljYXRvck1ldHJpY1BvaW50SABC", "BgoEdHlwZSJVChpEZXZpY2VJbmRpY2F0b3JNZXRyaWNQb2ludBIZCgxpbmRp", "Y2F0b3JfaWQYASABKAVCA+BBAhIcCg9tZXRyaWNfcG9pbnRfaWQYAiABKAlC", "A+BBAiJ7CilHZXREZXZpY2VJbmRpY2F0b3JNZXRyaWNQb2ludENvdW50UmVx", "dWVzdBJOCgZmaWx0ZXIYASABKAsyPi5rZXlhcGlzLnRlbGVtZXRyeV9jb250", "cm9sLnYxLkRldmljZUluZGljYXRvck1ldHJpY1BvaW50RmlsdGVyIkQKKkdl", "dERldmljZUluZGljYXRvck1ldHJpY1BvaW50Q291bnRSZXNwb25zZRIOCgRk", "YXRhGAEgASgFSABCBgoEdHlwZSKSAQoqUHV0RGV2aWNlSW5kaWNhdG9yTWV0", "cmljUG9pbnRBdHRhY2hSZXF1ZXN0EmQKHWRldmljZV9pbmRpY2F0b3JfbWV0", "cmljX3BvaW50GAEgASgLMjgua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52", "MS5EZXZpY2VJbmRpY2F0b3JNZXRyaWNQb2ludEID4EECIi0KK1B1dERldmlj", "ZUluZGljYXRvck1ldHJpY1BvaW50QXR0YWNoUmVzcG9uc2UikgEKKlB1dERl", "dmljZUluZGljYXRvck1ldHJpY1BvaW50RGV0YWNoUmVxdWVzdBJkCh1kZXZp", "Y2VfaW5kaWNhdG9yX21ldHJpY19wb2ludBgBIAEoCzI4LmtleWFwaXMudGVs", "ZW1ldHJ5X2NvbnRyb2wudjEuRGV2aWNlSW5kaWNhdG9yTWV0cmljUG9pbnRC", "A+BBAiItCitQdXREZXZpY2VJbmRpY2F0b3JNZXRyaWNQb2ludERldGFjaFJl", "c3BvbnNlMtQhCg1EZXZpY2VTZXJ2aWNlEpMBChRQb3N0RGV2aWNlRnVsbER1", "cGxleBI5LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuUG9zdERldmlj", "ZUZ1bGxEdXBsZXhSZXF1ZXN0Gjoua2V5YXBpcy50ZWxlbWV0cnlfY29udHJv", "bC52MS5Qb3N0RGV2aWNlRnVsbER1cGxleFJlc3BvbnNlIgAoATABEpsBCglH", "ZXREZXZpY2USLi5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLkdldERl", "dmljZVJlcXVlc3QaLy5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLkdl", "dERldmljZVJlc3BvbnNlIi2C0+STAicSJS90ZWxlbWV0cnlfY29udHJvbC9h", "cGkvdjEvZGV2aWNlL3tpZH0SqQEKDUdldERldmljZUxpc3QSMi5rZXlhcGlz", "LnRlbGVtZXRyeV9jb250cm9sLnYxLkdldERldmljZUxpc3RSZXF1ZXN0GjMu", "a2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5HZXREZXZpY2VMaXN0UmVz", "cG9uc2UiLYLT5JMCJxIlL3RlbGVtZXRyeV9jb250cm9sL2FwaS92MS9kZXZp", "Y2UvbGlzdDABEqsBCg5HZXREZXZpY2VDb3VudBIzLmtleWFwaXMudGVsZW1l", "dHJ5X2NvbnRyb2wudjEuR2V0RGV2aWNlQ291bnRSZXF1ZXN0GjQua2V5YXBp", "cy50ZWxlbWV0cnlfY29udHJvbC52MS5HZXREZXZpY2VDb3VudFJlc3BvbnNl", "Ii6C0+STAigSJi90ZWxlbWV0cnlfY29udHJvbC9hcGkvdjEvZGV2aWNlL2Nv", "dW50ErkBChFQb3N0RGV2aWNlUmVwbGFjZRI2LmtleWFwaXMudGVsZW1ldHJ5", "X2NvbnRyb2wudjEuUG9zdERldmljZVJlcGxhY2VSZXF1ZXN0Gjcua2V5YXBp", "cy50ZWxlbWV0cnlfY29udHJvbC52MS5Qb3N0RGV2aWNlUmVwbGFjZVJlc3Bv", "bnNlIjOC0+STAi0iKC90ZWxlbWV0cnlfY29udHJvbC9hcGkvdjEvZGV2aWNl", "L3JlcGxhY2U6ASoSnAEKClBvc3REZXZpY2USLy5rZXlhcGlzLnRlbGVtZXRy", "eV9jb250cm9sLnYxLlBvc3REZXZpY2VSZXF1ZXN0GjAua2V5YXBpcy50ZWxl", "bWV0cnlfY29udHJvbC52MS5Qb3N0RGV2aWNlUmVzcG9uc2UiK4LT5JMCJSIg", "L3RlbGVtZXRyeV9jb250cm9sL2FwaS92MS9kZXZpY2U6ASoSpAEKDERlbGV0", "ZURldmljZRIxLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuRGVsZXRl", "RGV2aWNlUmVxdWVzdBoyLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEu", "RGVsZXRlRGV2aWNlUmVzcG9uc2UiLYLT5JMCJyolL3RlbGVtZXRyeV9jb250", "cm9sL2FwaS92MS9kZXZpY2Uve2lkfRLBAQoTUG9zdERldmljZUluZGljYXRv", "chI4LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuUG9zdERldmljZUlu", "ZGljYXRvclJlcXVlc3QaOS5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYx", "LlBvc3REZXZpY2VJbmRpY2F0b3JSZXNwb25zZSI1gtPkkwIvIiovdGVsZW1l", "dHJ5X2NvbnRyb2wvYXBpL3YxL2RldmljZS9pbmRpY2F0b3I6ASoSwAEKEkdl", "dERldmljZUluZGljYXRvchI3LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wu", "djEuR2V0RGV2aWNlSW5kaWNhdG9yUmVxdWVzdBo4LmtleWFwaXMudGVsZW1l", "dHJ5X2NvbnRyb2wudjEuR2V0RGV2aWNlSW5kaWNhdG9yUmVzcG9uc2UiN4LT", "5JMCMRIvL3RlbGVtZXRyeV9jb250cm9sL2FwaS92MS9kZXZpY2UvaW5kaWNh", "dG9yL3tpZH0SzgEKFkdldERldmljZUluZGljYXRvckxpc3QSOy5rZXlhcGlz", "LnRlbGVtZXRyeV9jb250cm9sLnYxLkdldERldmljZUluZGljYXRvckxpc3RS", "ZXF1ZXN0Gjwua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5HZXREZXZp", "Y2VJbmRpY2F0b3JMaXN0UmVzcG9uc2UiN4LT5JMCMRIvL3RlbGVtZXRyeV9j", "b250cm9sL2FwaS92MS9kZXZpY2UvaW5kaWNhdG9yL2xpc3QwARLQAQoXR2V0", "RGV2aWNlSW5kaWNhdG9yQ291bnQSPC5rZXlhcGlzLnRlbGVtZXRyeV9jb250", "cm9sLnYxLkdldERldmljZUluZGljYXRvckNvdW50UmVxdWVzdBo9LmtleWFw", "aXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuR2V0RGV2aWNlSW5kaWNhdG9yQ291", "bnRSZXNwb25zZSI4gtPkkwIyEjAvdGVsZW1ldHJ5X2NvbnRyb2wvYXBpL3Yx", "L2RldmljZS9pbmRpY2F0b3IvY291bnQSyQEKFURlbGV0ZURldmljZUluZGlj", "YXRvchI6LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuRGVsZXRlRGV2", "aWNlSW5kaWNhdG9yUmVxdWVzdBo7LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRy", "b2wudjEuRGVsZXRlRGV2aWNlSW5kaWNhdG9yUmVzcG9uc2UiN4LT5JMCMSov", "L3RlbGVtZXRyeV9jb250cm9sL2FwaS92MS9kZXZpY2UvaW5kaWNhdG9yL3tp", "ZH0S/AEKIUdldERldmljZUluZGljYXRvck1ldHJpY1BvaW50TGlzdBJGLmtl", "eWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuR2V0RGV2aWNlSW5kaWNhdG9y", "TWV0cmljUG9pbnRMaXN0UmVxdWVzdBpHLmtleWFwaXMudGVsZW1ldHJ5X2Nv", "bnRyb2wudjEuR2V0RGV2aWNlSW5kaWNhdG9yTWV0cmljUG9pbnRMaXN0UmVz", "cG9uc2UiRILT5JMCPhI8L3RlbGVtZXRyeV9jb250cm9sL2FwaS92MS9kZXZp", "Y2UvaW5kaWNhdG9yL21ldHJpY19wb2ludC9saXN0MAES/gEKIkdldERldmlj", "ZUluZGljYXRvck1ldHJpY1BvaW50Q291bnQSRy5rZXlhcGlzLnRlbGVtZXRy", "eV9jb250cm9sLnYxLkdldERldmljZUluZGljYXRvck1ldHJpY1BvaW50Q291", "bnRSZXF1ZXN0Gkgua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5HZXRE", "ZXZpY2VJbmRpY2F0b3JNZXRyaWNQb2ludENvdW50UmVzcG9uc2UiRYLT5JMC", "PxI9L3RlbGVtZXRyeV9jb250cm9sL2FwaS92MS9kZXZpY2UvaW5kaWNhdG9y", "L21ldHJpY19wb2ludC9jb3VudBLiAgojUHV0RGV2aWNlSW5kaWNhdG9yTWV0", "cmljUG9pbnRBdHRhY2gSSC5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYx", "LlB1dERldmljZUluZGljYXRvck1ldHJpY1BvaW50QXR0YWNoUmVxdWVzdBpJ", "LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuUHV0RGV2aWNlSW5kaWNh", "dG9yTWV0cmljUG9pbnRBdHRhY2hSZXNwb25zZSKlAYLT5JMCngEamwEvdGVs", "ZW1ldHJ5X2NvbnRyb2wvYXBpL3YxL2RldmljZS9pbmRpY2F0b3Ive2Rldmlj", "ZV9pbmRpY2F0b3JfbWV0cmljX3BvaW50LmluZGljYXRvcl9pZH0vbWV0cmlj", "X3BvaW50L3tkZXZpY2VfaW5kaWNhdG9yX21ldHJpY19wb2ludC5tZXRyaWNf", "cG9pbnRfaWR9L2F0dGFjaBLiAgojUHV0RGV2aWNlSW5kaWNhdG9yTWV0cmlj", "UG9pbnREZXRhY2gSSC5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLlB1", "dERldmljZUluZGljYXRvck1ldHJpY1BvaW50RGV0YWNoUmVxdWVzdBpJLmtl", "eWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuUHV0RGV2aWNlSW5kaWNhdG9y", "TWV0cmljUG9pbnREZXRhY2hSZXNwb25zZSKlAYLT5JMCngEamwEvdGVsZW1l", "dHJ5X2NvbnRyb2wvYXBpL3YxL2RldmljZS9pbmRpY2F0b3Ive2RldmljZV9p", "bmRpY2F0b3JfbWV0cmljX3BvaW50LmluZGljYXRvcl9pZH0vbWV0cmljX3Bv", "aW50L3tkZXZpY2VfaW5kaWNhdG9yX21ldHJpY19wb2ludC5tZXRyaWNfcG9p", "bnRfaWR9L2RldGFjaBK+AQoSR2V0RGV2aWNlR3JvdXBMaXN0Ejcua2V5YXBp", "cy50ZWxlbWV0cnlfY29udHJvbC52MS5HZXREZXZpY2VHcm91cExpc3RSZXF1", "ZXN0Gjgua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5HZXREZXZpY2VH", "cm91cExpc3RSZXNwb25zZSIzgtPkkwItEisvdGVsZW1ldHJ5X2NvbnRyb2wv", "YXBpL3YxL2RldmljZS9ncm91cC9saXN0MAESwAEKE0dldERldmljZUdyb3Vw", "Q291bnQSOC5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLkdldERldmlj", "ZUdyb3VwQ291bnRSZXF1ZXN0Gjkua2V5YXBpcy50ZWxlbWV0cnlfY29udHJv", "bC52MS5HZXREZXZpY2VHcm91cENvdW50UmVzcG9uc2UiNILT5JMCLhIsL3Rl", "bGVtZXRyeV9jb250cm9sL2FwaS92MS9kZXZpY2UvZ3JvdXAvY291bnQS9QEK", "FFB1dERldmljZUdyb3VwQXR0YWNoEjkua2V5YXBpcy50ZWxlbWV0cnlfY29u", "dHJvbC52MS5QdXREZXZpY2VHcm91cEF0dGFjaFJlcXVlc3QaOi5rZXlhcGlz", "LnRlbGVtZXRyeV9jb250cm9sLnYxLlB1dERldmljZUdyb3VwQXR0YWNoUmVz", "cG9uc2UiZoLT5JMCYBpeL3RlbGVtZXRyeV9jb250cm9sL2FwaS92MS9kZXZp", "Y2Uve2RldmljZV9ncm91cC5kZXZpY2VfaWR9L2dyb3VwL3tkZXZpY2VfZ3Jv", "dXAuZ3JvdXBfaWR9L2F0dGFjaBL1AQoUUHV0RGV2aWNlR3JvdXBEZXRhY2gS", "OS5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLlB1dERldmljZUdyb3Vw", "RGV0YWNoUmVxdWVzdBo6LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEu", "UHV0RGV2aWNlR3JvdXBEZXRhY2hSZXNwb25zZSJmgtPkkwJgGl4vdGVsZW1l", "dHJ5X2NvbnRyb2wvYXBpL3YxL2RldmljZS97ZGV2aWNlX2dyb3VwLmRldmlj", "ZV9pZH0vZ3JvdXAve2RldmljZV9ncm91cC5ncm91cF9pZH0vZGV0YWNoQuIB", "Ch9ydS5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxQh5LZXlhcGlzVGVs", "ZW1ldHJ5Q29udHJvbFYxUHJvdG9IA1AAWh0va2V5YXBpc190ZWxlbWV0cnlf", "Y29udHJvbF92MdgBAfgBAaICGUtFWUFQSVNURUxFTUVUUllDT05UUk9MVjGq", "AhtLZXlhcGlzLlRlbGVtZXRyeUNvbnRyb2wuVjHKAhtLZXlhcGlzXFRlbGVt", "ZXRyeUNvbnRyb2xcVjHqAh1LZXlhcGlzOjpUZWxlbWV0cnlDb250cm9sOjpW", "MWIGcHJvdG8z")); 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, global::Google.Api.VisibilityReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DeleteDeviceRequest), global::Keyapis.TelemetryControl.V1.DeleteDeviceRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DeleteDeviceResponse), global::Keyapis.TelemetryControl.V1.DeleteDeviceResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PutDeviceGroupAttachRequest), global::Keyapis.TelemetryControl.V1.PutDeviceGroupAttachRequest.Parser, new[]{ "DeviceGroup" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PutDeviceGroupAttachResponse), global::Keyapis.TelemetryControl.V1.PutDeviceGroupAttachResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceGroupListRequest), global::Keyapis.TelemetryControl.V1.GetDeviceGroupListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DeviceGroupPaging), global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.Types.OrderByType), typeof(global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.Types.DirectionType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceGroupListResponse), global::Keyapis.TelemetryControl.V1.GetDeviceGroupListResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceGroupCountRequest), global::Keyapis.TelemetryControl.V1.GetDeviceGroupCountRequest.Parser, new[]{ "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DeviceGroupFilter), global::Keyapis.TelemetryControl.V1.DeviceGroupFilter.Parser, new[]{ "GroupIds", "DeviceIds" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceGroupCountResponse), global::Keyapis.TelemetryControl.V1.GetDeviceGroupCountResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PutDeviceGroupDetachRequest), global::Keyapis.TelemetryControl.V1.PutDeviceGroupDetachRequest.Parser, new[]{ "DeviceGroup" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PutDeviceGroupDetachResponse), global::Keyapis.TelemetryControl.V1.PutDeviceGroupDetachResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DeviceGroup), global::Keyapis.TelemetryControl.V1.DeviceGroup.Parser, new[]{ "GroupId", "DeviceId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceIndicatorRequest), global::Keyapis.TelemetryControl.V1.PostDeviceIndicatorRequest.Parser, new[]{ "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceIndicatorResponse), global::Keyapis.TelemetryControl.V1.PostDeviceIndicatorResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceIndicatorResponse.Types.Error), global::Keyapis.TelemetryControl.V1.PostDeviceIndicatorResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorRequest), global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorResponse), global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceRequest), global::Keyapis.TelemetryControl.V1.GetDeviceRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceResponse), global::Keyapis.TelemetryControl.V1.GetDeviceResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorListRequest), global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.IndicatorPaging), global::Keyapis.TelemetryControl.V1.IndicatorPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.OrderByType), typeof(global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.DirectionType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError), global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Parser, new[]{ "Limit", "Offset" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.LimitInvalid), global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.LimitInvalid.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.OffsetInvalid), global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.OffsetInvalid.Parser, null, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorListResponse), global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorListResponse.Types.Error), global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorListResponse.Types.Error.Parser, new[]{ "DeviceFilterValidation", "DevicePagingValidation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.IndicatorFilter), global::Keyapis.TelemetryControl.V1.IndicatorFilter.Parser, new[]{ "DeviceIds", "SignTypes", "Ids", "DeviceSerialNumbers", "BuildingIds", "RoomNumbers", "RoomLabels", "MetricPointIds", "IndicatorVendorTypes" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.IndicatorFilter.Types.ValidationError), global::Keyapis.TelemetryControl.V1.IndicatorFilter.Types.ValidationError.Parser, new[]{ "Path", "Message" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorCountRequest), global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorCountRequest.Parser, new[]{ "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorCountResponse), global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorCountResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorCountResponse.Types.Error), global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorCountResponse.Types.Error.Parser, new[]{ "DeviceFilterValidation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DeleteDeviceIndicatorRequest), global::Keyapis.TelemetryControl.V1.DeleteDeviceIndicatorRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DeleteDeviceIndicatorResponse), global::Keyapis.TelemetryControl.V1.DeleteDeviceIndicatorResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest), global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Parser, new[]{ "RequestId", "PostDeviceFullDuplexDeviceAsyncStatus" }, new[]{ "Task" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus), global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Parser, new[]{ "DeviceId", "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Success), global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Success.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error), global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Parser, new[]{ "PostDeviceRequestUnknown", "PostDeviceRequestIp", "PostDeviceRequestPort", "PostDeviceRequestNetworkAddress" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.UnknownError), global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.UnknownError.Parser, new[]{ "Message" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.IpError), global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.IpError.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.PortError), global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.PortError.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.NetworkAddressError), global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.NetworkAddressError.Parser, null, null, null, null, null)})})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceRequest), global::Keyapis.TelemetryControl.V1.PostDeviceRequest.Parser, new[]{ "Device" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceReplaceRequest), global::Keyapis.TelemetryControl.V1.PostDeviceReplaceRequest.Parser, new[]{ "ReplaceDeviceId", "Device" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse), global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error), global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Parser, new[]{ "Validation", "ReplaceDeviceNotFound", "CreateIndicatorsFail", "MultiLinkedMetricPoint", "WrongBuilding", "MetricPointNotFound" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.ReplaceDeviceNotFound), global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.ReplaceDeviceNotFound.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.CreateIndicatorsFail), global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.CreateIndicatorsFail.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MultiLinkedMetricPoint), global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MultiLinkedMetricPoint.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.WrongBuilding), global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.WrongBuilding.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MetricPointNotFound), global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MetricPointNotFound.Parser, null, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexResponse), global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexResponse.Parser, new[]{ "RequestId", "PostDevice" }, new[]{ "Event" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceResponse), global::Keyapis.TelemetryControl.V1.PostDeviceResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostDeviceResponse.Types.Error), global::Keyapis.TelemetryControl.V1.PostDeviceResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.Indicator), global::Keyapis.TelemetryControl.V1.Indicator.Parser, new[]{ "Id", "DeviceId", "Title", "UnitType", "SignType", "CreatedAt", "ChangedAt", "IsIndividual", "CompatibilityCode", "ArchiveType", "PresentationUnitType", "Coefficient", "Shift", "RoundDecimalDigits", "MetricExpectedFreq", "ChannelNumber", "ChannelOrder", "VendorType" }, null, new[]{ typeof(global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType), typeof(global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType), typeof(global::Keyapis.TelemetryControl.V1.Indicator.Types.SignType), typeof(global::Keyapis.TelemetryControl.V1.Indicator.Types.ArchiveType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.Indicator.Types.ValidationError), global::Keyapis.TelemetryControl.V1.Indicator.Types.ValidationError.Parser, new[]{ "Path", "Message" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.Device), global::Keyapis.TelemetryControl.V1.Device.Parser, new[]{ "Id", "Indicators", "MetricPoint", "CreatedAt", "ChangedAt", "Type", "SerialNumber", "Model", "Year", "FiasId", "ResourceOwnerId", "StatusType", "InstalledAt", "RemovedAt", "CheckAt", "NextCheckAt", "ExternalId", "PlanType", "ParentId", "PipeType", "DevEui", "Mac", "Port", "NetworkAddress", "CommChannel", "SimNumber", "SimSerial", "IpAddressSim", "Placement", "InstallationPlace", "Appkey", "Appeui", "ProtocolTypeLabel", "ChannelNumber", "WireInterface", "BuildingId", "ManufactureYear", "IndicatorVendorType" }, null, new[]{ typeof(global::Keyapis.TelemetryControl.V1.Device.Types.SecondaryCurrentType), typeof(global::Keyapis.TelemetryControl.V1.Device.Types.Type), typeof(global::Keyapis.TelemetryControl.V1.Device.Types.StatusType), typeof(global::Keyapis.TelemetryControl.V1.Device.Types.PlanType), typeof(global::Keyapis.TelemetryControl.V1.Device.Types.PipeType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.Device.Types.ValidationError), global::Keyapis.TelemetryControl.V1.Device.Types.ValidationError.Parser, new[]{ "Path", "Message" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint), global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Parser, new[]{ "Id", "MetricType", "RoomNumber", "RoomLabel", "ZoneLabel", "StatusType", "AccountingType", "CreatedAt", "PrimaryCurrentType", "SecondaryCurrentType", "BuildingId", "ChangedAt", "BuildingLevel", "BuildingSection" }, null, new[]{ typeof(global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.MetricType), typeof(global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.StatusType), typeof(global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.AccountingType), typeof(global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.PrimaryCurrentType) }, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceListRequest), global::Keyapis.TelemetryControl.V1.GetDeviceListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DevicePaging), global::Keyapis.TelemetryControl.V1.DevicePaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.TelemetryControl.V1.DevicePaging.Types.OrderByType), typeof(global::Keyapis.TelemetryControl.V1.DevicePaging.Types.DirectionType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError), global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Parser, new[]{ "Limit", "Offset" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.LimitInvalid), global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.LimitInvalid.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.OffsetInvalid), global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.OffsetInvalid.Parser, null, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceListResponse), global::Keyapis.TelemetryControl.V1.GetDeviceListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceListResponse.Types.Error), global::Keyapis.TelemetryControl.V1.GetDeviceListResponse.Types.Error.Parser, new[]{ "DeviceFilterValidation", "DevicePagingValidation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DeviceFilter), global::Keyapis.TelemetryControl.V1.DeviceFilter.Parser, new[]{ "FiasIds", "Types_", "StatusTypes", "Models", "MetricPointMetricTypes", "RoomNumbers", "RoomLabels", "ParentIds", "Ids", "BuildingIds", "SerialNumbers", "MetricPointIds", "SerialIds", "Orpons", "IndicatorVendorTypes" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DeviceFilter.Types.ValidationError), global::Keyapis.TelemetryControl.V1.DeviceFilter.Types.ValidationError.Parser, new[]{ "Path", "Message" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceCountRequest), global::Keyapis.TelemetryControl.V1.GetDeviceCountRequest.Parser, new[]{ "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceCountResponse), global::Keyapis.TelemetryControl.V1.GetDeviceCountResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceCountResponse.Types.Error), global::Keyapis.TelemetryControl.V1.GetDeviceCountResponse.Types.Error.Parser, new[]{ "DeviceFilterValidation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorMetricPointListRequest), global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorMetricPointListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointFilter), global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointFilter.Parser, new[]{ "IndicatorId", "MetricPointId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging), global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.OrderByType), typeof(global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.DirectionType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorMetricPointListResponse), global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorMetricPointListResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint), global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint.Parser, new[]{ "IndicatorId", "MetricPointId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorMetricPointCountRequest), global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorMetricPointCountRequest.Parser, new[]{ "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorMetricPointCountResponse), global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorMetricPointCountResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PutDeviceIndicatorMetricPointAttachRequest), global::Keyapis.TelemetryControl.V1.PutDeviceIndicatorMetricPointAttachRequest.Parser, new[]{ "DeviceIndicatorMetricPoint" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PutDeviceIndicatorMetricPointAttachResponse), global::Keyapis.TelemetryControl.V1.PutDeviceIndicatorMetricPointAttachResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PutDeviceIndicatorMetricPointDetachRequest), global::Keyapis.TelemetryControl.V1.PutDeviceIndicatorMetricPointDetachRequest.Parser, new[]{ "DeviceIndicatorMetricPoint" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PutDeviceIndicatorMetricPointDetachResponse), global::Keyapis.TelemetryControl.V1.PutDeviceIndicatorMetricPointDetachResponse.Parser, null, null, null, null, null) })); } #endregion } #region Messages /// /// Запрос удаления прибора учета /// public sealed partial class DeleteDeviceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 DeleteDeviceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceRequest(DeleteDeviceRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceRequest Clone() { return new DeleteDeviceRequest(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 DeleteDeviceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteDeviceRequest 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(DeleteDeviceRequest 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 DeleteDeviceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 DeleteDeviceResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceResponse(DeleteDeviceResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceResponse Clone() { return new DeleteDeviceResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteDeviceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteDeviceResponse 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(DeleteDeviceResponse 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 PutDeviceGroupAttachRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PutDeviceGroupAttachRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 PutDeviceGroupAttachRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceGroupAttachRequest(PutDeviceGroupAttachRequest other) : this() { deviceGroup_ = other.deviceGroup_ != null ? other.deviceGroup_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceGroupAttachRequest Clone() { return new PutDeviceGroupAttachRequest(this); } /// Field number for the "device_group" field. public const int DeviceGroupFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.DeviceGroup deviceGroup_; /// /// Связь ПУ и группы пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceGroup DeviceGroup { get { return deviceGroup_; } set { deviceGroup_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PutDeviceGroupAttachRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PutDeviceGroupAttachRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(DeviceGroup, other.DeviceGroup)) 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 (deviceGroup_ != null) hash ^= DeviceGroup.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 (deviceGroup_ != null) { output.WriteRawTag(10); output.WriteMessage(DeviceGroup); } 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 (deviceGroup_ != null) { output.WriteRawTag(10); output.WriteMessage(DeviceGroup); } 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 (deviceGroup_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceGroup); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PutDeviceGroupAttachRequest other) { if (other == null) { return; } if (other.deviceGroup_ != null) { if (deviceGroup_ == null) { DeviceGroup = new global::Keyapis.TelemetryControl.V1.DeviceGroup(); } DeviceGroup.MergeFrom(other.DeviceGroup); } _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 (deviceGroup_ == null) { DeviceGroup = new global::Keyapis.TelemetryControl.V1.DeviceGroup(); } input.ReadMessage(DeviceGroup); 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 (deviceGroup_ == null) { DeviceGroup = new global::Keyapis.TelemetryControl.V1.DeviceGroup(); } input.ReadMessage(DeviceGroup); break; } } } } #endif } /// /// Ответ на запрос сохранения связи ПУ и группы пользователя /// public sealed partial class PutDeviceGroupAttachResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PutDeviceGroupAttachResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 PutDeviceGroupAttachResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceGroupAttachResponse(PutDeviceGroupAttachResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceGroupAttachResponse Clone() { return new PutDeviceGroupAttachResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PutDeviceGroupAttachResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PutDeviceGroupAttachResponse 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(PutDeviceGroupAttachResponse 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 GetDeviceGroupListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceGroupListRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 GetDeviceGroupListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceGroupListRequest(GetDeviceGroupListRequest 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 GetDeviceGroupListRequest Clone() { return new GetDeviceGroupListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.DeviceGroupFilter filter_; /// /// Фильтр связей ПУ и группы пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceGroupFilter 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.TelemetryControl.V1.DeviceGroupPaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.TelemetryControl.V1.DeviceGroupPaging) 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 GetDeviceGroupListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceGroupListRequest 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(GetDeviceGroupListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.TelemetryControl.V1.DeviceGroupFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.TelemetryControl.V1.DeviceGroupPaging(); } 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.TelemetryControl.V1.DeviceGroupFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.TelemetryControl.V1.DeviceGroupPaging subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceGroupPaging(); 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.TelemetryControl.V1.DeviceGroupFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.TelemetryControl.V1.DeviceGroupPaging subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceGroupPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Пагинация связей ПУ и группы пользователя /// public sealed partial class DeviceGroupPaging : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceGroupPaging()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 DeviceGroupPaging() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceGroupPaging(DeviceGroupPaging 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 DeviceGroupPaging Clone() { return new DeviceGroupPaging(this); } /// Field number for the "order_by_type" field. public const int OrderByTypeFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.Types.OrderByType orderByType_ = global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.Types.OrderByType.Unknown; /// /// Тип значения сортировки. /// По умолчанию: GROUP_ID /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.Types.OrderByType OrderByType { get { return orderByType_; } set { orderByType_ = value; } } /// Field number for the "direction_type" field. public const int DirectionTypeFieldNumber = 2; private global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.Types.DirectionType directionType_ = global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.Types.DirectionType.Unknown; /// /// Тип направления сортировки. /// По умолчанию: DESC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.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 DeviceGroupPaging); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceGroupPaging 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.TelemetryControl.V1.DeviceGroupPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode(); if (DirectionType != global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.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.TelemetryControl.V1.DeviceGroupPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.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.TelemetryControl.V1.DeviceGroupPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.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.TelemetryControl.V1.DeviceGroupPaging.Types.OrderByType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.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(DeviceGroupPaging other) { if (other == null) { return; } if (other.OrderByType != global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.Types.OrderByType.Unknown) { OrderByType = other.OrderByType; } if (other.DirectionType != global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.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.TelemetryControl.V1.DeviceGroupPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.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.TelemetryControl.V1.DeviceGroupPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.TelemetryControl.V1.DeviceGroupPaging.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 DeviceGroupPaging 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("GROUP_ID")] GroupId = 1, /// /// По ПУ /// [pbr::OriginalName("DEVICE_ID")] DeviceId = 2, } /// /// Справочник типов направлений сортировки /// 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 GetDeviceGroupListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceGroupListResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 GetDeviceGroupListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceGroupListResponse(GetDeviceGroupListResponse 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 GetDeviceGroupListResponse Clone() { return new GetDeviceGroupListResponse(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.TelemetryControl.V1.DeviceGroup Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryControl.V1.DeviceGroup) 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 GetDeviceGroupListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceGroupListResponse 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(GetDeviceGroupListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryControl.V1.DeviceGroup(); } 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.TelemetryControl.V1.DeviceGroup subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceGroup(); 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.TelemetryControl.V1.DeviceGroup subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceGroup(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос получения количества связей ПУ и группы пользователя /// public sealed partial class GetDeviceGroupCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceGroupCountRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 GetDeviceGroupCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceGroupCountRequest(GetDeviceGroupCountRequest 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 GetDeviceGroupCountRequest Clone() { return new GetDeviceGroupCountRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.DeviceGroupFilter filter_; /// /// Фильтр связей ПУ и группы пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceGroupFilter 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 GetDeviceGroupCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceGroupCountRequest 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(GetDeviceGroupCountRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.TelemetryControl.V1.DeviceGroupFilter(); } 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.TelemetryControl.V1.DeviceGroupFilter(); } 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.TelemetryControl.V1.DeviceGroupFilter(); } input.ReadMessage(Filter); break; } } } } #endif } /// /// Фильтр для запроса связей ПУ и группы пользователя. /// При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ. /// При передаче нескольких разных параметров фильтра они работают в выборке через И /// public sealed partial class DeviceGroupFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceGroupFilter()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 DeviceGroupFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceGroupFilter(DeviceGroupFilter other) : this() { groupIds_ = other.groupIds_.Clone(); deviceIds_ = other.deviceIds_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceGroupFilter Clone() { return new DeviceGroupFilter(this); } /// Field number for the "group_ids" field. public const int GroupIdsFieldNumber = 1; private static readonly pb::FieldCodec _repeated_groupIds_codec = pb::FieldCodec.ForString(10); private readonly pbc::RepeatedField groupIds_ = new pbc::RepeatedField(); /// /// По Идентификатору группы пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField GroupIds { get { return groupIds_; } } /// Field number for the "device_ids" field. public const int DeviceIdsFieldNumber = 2; private static readonly pb::FieldCodec _repeated_deviceIds_codec = pb::FieldCodec.ForInt32(18); 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_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeviceGroupFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceGroupFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!groupIds_.Equals(other.groupIds_)) return false; if(!deviceIds_.Equals(other.deviceIds_)) 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 ^= groupIds_.GetHashCode(); hash ^= deviceIds_.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 groupIds_.WriteTo(output, _repeated_groupIds_codec); deviceIds_.WriteTo(output, _repeated_deviceIds_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) { groupIds_.WriteTo(ref output, _repeated_groupIds_codec); deviceIds_.WriteTo(ref output, _repeated_deviceIds_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 += groupIds_.CalculateSize(_repeated_groupIds_codec); size += deviceIds_.CalculateSize(_repeated_deviceIds_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceGroupFilter other) { if (other == null) { return; } groupIds_.Add(other.groupIds_); deviceIds_.Add(other.deviceIds_); _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: { groupIds_.AddEntriesFrom(input, _repeated_groupIds_codec); break; } case 18: case 16: { deviceIds_.AddEntriesFrom(input, _repeated_deviceIds_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: { groupIds_.AddEntriesFrom(ref input, _repeated_groupIds_codec); break; } case 18: case 16: { deviceIds_.AddEntriesFrom(ref input, _repeated_deviceIds_codec); break; } } } } #endif } /// /// Ответ на запрос получения количества связей ПУ и группы пользователя /// public sealed partial class GetDeviceGroupCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceGroupCountResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 GetDeviceGroupCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceGroupCountResponse(GetDeviceGroupCountResponse 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 GetDeviceGroupCountResponse Clone() { return new GetDeviceGroupCountResponse(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 GetDeviceGroupCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceGroupCountResponse 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(GetDeviceGroupCountResponse 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 PutDeviceGroupDetachRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PutDeviceGroupDetachRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 PutDeviceGroupDetachRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceGroupDetachRequest(PutDeviceGroupDetachRequest other) : this() { deviceGroup_ = other.deviceGroup_ != null ? other.deviceGroup_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceGroupDetachRequest Clone() { return new PutDeviceGroupDetachRequest(this); } /// Field number for the "device_group" field. public const int DeviceGroupFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.DeviceGroup deviceGroup_; /// /// Связь ПУ и группы пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceGroup DeviceGroup { get { return deviceGroup_; } set { deviceGroup_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PutDeviceGroupDetachRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PutDeviceGroupDetachRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(DeviceGroup, other.DeviceGroup)) 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 (deviceGroup_ != null) hash ^= DeviceGroup.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 (deviceGroup_ != null) { output.WriteRawTag(10); output.WriteMessage(DeviceGroup); } 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 (deviceGroup_ != null) { output.WriteRawTag(10); output.WriteMessage(DeviceGroup); } 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 (deviceGroup_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceGroup); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PutDeviceGroupDetachRequest other) { if (other == null) { return; } if (other.deviceGroup_ != null) { if (deviceGroup_ == null) { DeviceGroup = new global::Keyapis.TelemetryControl.V1.DeviceGroup(); } DeviceGroup.MergeFrom(other.DeviceGroup); } _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 (deviceGroup_ == null) { DeviceGroup = new global::Keyapis.TelemetryControl.V1.DeviceGroup(); } input.ReadMessage(DeviceGroup); 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 (deviceGroup_ == null) { DeviceGroup = new global::Keyapis.TelemetryControl.V1.DeviceGroup(); } input.ReadMessage(DeviceGroup); break; } } } } #endif } /// /// Ответ на запрос удаления связи ПУ и группы пользователя /// public sealed partial class PutDeviceGroupDetachResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PutDeviceGroupDetachResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 PutDeviceGroupDetachResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceGroupDetachResponse(PutDeviceGroupDetachResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceGroupDetachResponse Clone() { return new PutDeviceGroupDetachResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PutDeviceGroupDetachResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PutDeviceGroupDetachResponse 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(PutDeviceGroupDetachResponse 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 } /// /// Связка ПУ и группы пользователя. /// Задает область ресурсов (resource scope), доступную пользователю. /// Используется для контроля доступа к ПУ /// public sealed partial class DeviceGroup : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceGroup()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 DeviceGroup() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceGroup(DeviceGroup other) : this() { groupId_ = other.groupId_; deviceId_ = other.deviceId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceGroup Clone() { return new DeviceGroup(this); } /// Field number for the "group_id" field. public const int GroupIdFieldNumber = 1; private string groupId_ = ""; /// /// Идентификатор группы. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string GroupId { get { return groupId_; } set { groupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 2; private int deviceId_; /// /// Идентификатор ПУ. /// # Диапазон: 0..2147483647 /// [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 DeviceGroup); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceGroup other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (GroupId != other.GroupId) 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 (GroupId.Length != 0) hash ^= GroupId.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 (GroupId.Length != 0) { output.WriteRawTag(10); output.WriteString(GroupId); } 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 (GroupId.Length != 0) { output.WriteRawTag(10); output.WriteString(GroupId); } 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 (GroupId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(GroupId); } 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(DeviceGroup other) { if (other == null) { return; } if (other.GroupId.Length != 0) { GroupId = other.GroupId; } 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 10: { GroupId = input.ReadString(); 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 10: { GroupId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } } } } #endif } /// /// Запрос сохранения индикатора /// public sealed partial class PostDeviceIndicatorRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceIndicatorRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 PostDeviceIndicatorRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceIndicatorRequest(PostDeviceIndicatorRequest 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 PostDeviceIndicatorRequest Clone() { return new PostDeviceIndicatorRequest(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.Indicator data_; /// /// Индикатор /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Indicator 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 PostDeviceIndicatorRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceIndicatorRequest 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(PostDeviceIndicatorRequest other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Keyapis.TelemetryControl.V1.Indicator(); } 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.TelemetryControl.V1.Indicator(); } 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.TelemetryControl.V1.Indicator(); } input.ReadMessage(Data); break; } } } } #endif } /// /// Ответ на запрос сохранения индикатора /// public sealed partial class PostDeviceIndicatorResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceIndicatorResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 PostDeviceIndicatorResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceIndicatorResponse(PostDeviceIndicatorResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceIndicatorResponse Clone() { return new PostDeviceIndicatorResponse(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.TelemetryControl.V1.Indicator Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryControl.V1.Indicator) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceIndicatorResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.TelemetryControl.V1.PostDeviceIndicatorResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } 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 PostDeviceIndicatorResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceIndicatorResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) 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(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceIndicatorResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryControl.V1.Indicator(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.TelemetryControl.V1.PostDeviceIndicatorResponse.Types.Error(); } Error.MergeFrom(other.Error); 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.TelemetryControl.V1.Indicator subBuilder = new global::Keyapis.TelemetryControl.V1.Indicator(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceIndicatorResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceIndicatorResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = 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.TelemetryControl.V1.Indicator subBuilder = new global::Keyapis.TelemetryControl.V1.Indicator(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceIndicatorResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceIndicatorResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostDeviceIndicatorResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса сохранения индикатора /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); 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.TelemetryControl.V1.PostDeviceIndicatorResponse.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 Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Indicator.Types.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.TelemetryControl.V1.Indicator.Types.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; 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 (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } 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 (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } 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 (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.TelemetryControl.V1.Indicator.Types.ValidationError(); } Validation.MergeFrom(other.Validation); 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.TelemetryControl.V1.Indicator.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.Indicator.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = 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.TelemetryControl.V1.Indicator.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.Indicator.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения индикатора /// public sealed partial class GetDeviceIndicatorRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceIndicatorRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 GetDeviceIndicatorRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorRequest(GetDeviceIndicatorRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorRequest Clone() { return new GetDeviceIndicatorRequest(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 GetDeviceIndicatorRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceIndicatorRequest 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(GetDeviceIndicatorRequest 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 GetDeviceIndicatorResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceIndicatorResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 GetDeviceIndicatorResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorResponse(GetDeviceIndicatorResponse 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 GetDeviceIndicatorResponse Clone() { return new GetDeviceIndicatorResponse(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.TelemetryControl.V1.Indicator Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryControl.V1.Indicator) 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 GetDeviceIndicatorResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceIndicatorResponse 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(GetDeviceIndicatorResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryControl.V1.Indicator(); } 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.TelemetryControl.V1.Indicator subBuilder = new global::Keyapis.TelemetryControl.V1.Indicator(); 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.TelemetryControl.V1.Indicator subBuilder = new global::Keyapis.TelemetryControl.V1.Indicator(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос получения ПУ /// public sealed partial class GetDeviceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 GetDeviceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceRequest(GetDeviceRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceRequest Clone() { return new GetDeviceRequest(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 GetDeviceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceRequest 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(GetDeviceRequest 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 GetDeviceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 GetDeviceResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceResponse(GetDeviceResponse 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 GetDeviceResponse Clone() { return new GetDeviceResponse(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.TelemetryControl.V1.Device Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryControl.V1.Device) 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 GetDeviceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceResponse 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(GetDeviceResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryControl.V1.Device(); } 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.TelemetryControl.V1.Device subBuilder = new global::Keyapis.TelemetryControl.V1.Device(); 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.TelemetryControl.V1.Device subBuilder = new global::Keyapis.TelemetryControl.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос получения списка /// public sealed partial class GetDeviceIndicatorListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceIndicatorListRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 GetDeviceIndicatorListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorListRequest(GetDeviceIndicatorListRequest 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 GetDeviceIndicatorListRequest Clone() { return new GetDeviceIndicatorListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.IndicatorFilter filter_; /// /// Фильтр индикаторов /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.IndicatorFilter 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.TelemetryControl.V1.IndicatorPaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.TelemetryControl.V1.IndicatorPaging) 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 GetDeviceIndicatorListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceIndicatorListRequest 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(GetDeviceIndicatorListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.TelemetryControl.V1.IndicatorFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.TelemetryControl.V1.IndicatorPaging(); } 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.TelemetryControl.V1.IndicatorFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.TelemetryControl.V1.IndicatorPaging subBuilder = new global::Keyapis.TelemetryControl.V1.IndicatorPaging(); 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.TelemetryControl.V1.IndicatorFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.TelemetryControl.V1.IndicatorPaging subBuilder = new global::Keyapis.TelemetryControl.V1.IndicatorPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Пагинация индикаторов /// public sealed partial class IndicatorPaging : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IndicatorPaging()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 IndicatorPaging() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public IndicatorPaging(IndicatorPaging 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 IndicatorPaging Clone() { return new IndicatorPaging(this); } /// Field number for the "order_by_type" field. public const int OrderByTypeFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.OrderByType orderByType_ = global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.OrderByType.Unknown; /// /// Тип значения сортировки. /// По умолчанию: ID /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.OrderByType OrderByType { get { return orderByType_; } set { orderByType_ = value; } } /// Field number for the "direction_type" field. public const int DirectionTypeFieldNumber = 2; private global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.DirectionType directionType_ = global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.DirectionType.Unknown; /// /// Тип направления сортировки. /// По умолчанию: DESC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.IndicatorPaging.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 IndicatorPaging); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(IndicatorPaging 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.TelemetryControl.V1.IndicatorPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode(); if (DirectionType != global::Keyapis.TelemetryControl.V1.IndicatorPaging.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.TelemetryControl.V1.IndicatorPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryControl.V1.IndicatorPaging.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.TelemetryControl.V1.IndicatorPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryControl.V1.IndicatorPaging.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.TelemetryControl.V1.IndicatorPaging.Types.OrderByType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryControl.V1.IndicatorPaging.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(IndicatorPaging other) { if (other == null) { return; } if (other.OrderByType != global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.OrderByType.Unknown) { OrderByType = other.OrderByType; } if (other.DirectionType != global::Keyapis.TelemetryControl.V1.IndicatorPaging.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.TelemetryControl.V1.IndicatorPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.TelemetryControl.V1.IndicatorPaging.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.TelemetryControl.V1.IndicatorPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.TelemetryControl.V1.IndicatorPaging.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 IndicatorPaging 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("SIGN_TYPE")] SignType = 2, /// /// По Прибору учета /// [pbr::OriginalName("DEVICE_ID")] DeviceId = 3, /// /// По Дате создания /// [pbr::OriginalName("CREATED_AT")] CreatedAt = 4, } /// /// Справочник типов направлений сортировки /// public enum DirectionType { /// /// Значение не указано /// [pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0, /// /// От большего к меньшему /// [pbr::OriginalName("DESC")] Desc = 1, /// /// От меньшего к большему /// [pbr::OriginalName("ASC")] Asc = 2, } /// /// Ошибка валидации постраничной пагинации по индикаторам. /// Эти проверки выполняются до обращения в базу данных /// public sealed partial class ValidationError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidationError()); 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.TelemetryControl.V1.IndicatorPaging.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 ValidationError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError(ValidationError other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Limit: Limit = other.Limit.Clone(); break; case ReasonOneofCase.Offset: Offset = other.Offset.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError Clone() { return new ValidationError(this); } /// Field number for the "limit" field. public const int LimitFieldNumber = 1; /// /// Количество передано некорректно /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.LimitInvalid Limit { get { return reasonCase_ == ReasonOneofCase.Limit ? (global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.LimitInvalid) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Limit; } } /// Field number for the "offset" field. public const int OffsetFieldNumber = 2; /// /// Сдвиг передан некорректно /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.OffsetInvalid Offset { get { return reasonCase_ == ReasonOneofCase.Offset ? (global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.OffsetInvalid) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Offset; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Limit = 1, Offset = 2, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ValidationError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ValidationError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Limit, other.Limit)) return false; if (!object.Equals(Offset, other.Offset)) return false; if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.Limit) hash ^= Limit.GetHashCode(); if (reasonCase_ == ReasonOneofCase.Offset) hash ^= Offset.GetHashCode(); hash ^= (int) reasonCase_; 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 (reasonCase_ == ReasonOneofCase.Limit) { output.WriteRawTag(10); output.WriteMessage(Limit); } if (reasonCase_ == ReasonOneofCase.Offset) { output.WriteRawTag(18); output.WriteMessage(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 (reasonCase_ == ReasonOneofCase.Limit) { output.WriteRawTag(10); output.WriteMessage(Limit); } if (reasonCase_ == ReasonOneofCase.Offset) { output.WriteRawTag(18); output.WriteMessage(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 (reasonCase_ == ReasonOneofCase.Limit) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Limit); } if (reasonCase_ == ReasonOneofCase.Offset) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Offset); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ValidationError other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Limit: if (Limit == null) { Limit = new global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.LimitInvalid(); } Limit.MergeFrom(other.Limit); break; case ReasonOneofCase.Offset: if (Offset == null) { Offset = new global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.OffsetInvalid(); } Offset.MergeFrom(other.Offset); 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.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.LimitInvalid subBuilder = new global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.LimitInvalid(); if (reasonCase_ == ReasonOneofCase.Limit) { subBuilder.MergeFrom(Limit); } input.ReadMessage(subBuilder); Limit = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.OffsetInvalid subBuilder = new global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.OffsetInvalid(); if (reasonCase_ == ReasonOneofCase.Offset) { subBuilder.MergeFrom(Offset); } input.ReadMessage(subBuilder); Offset = 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.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.LimitInvalid subBuilder = new global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.LimitInvalid(); if (reasonCase_ == ReasonOneofCase.Limit) { subBuilder.MergeFrom(Limit); } input.ReadMessage(subBuilder); Limit = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.OffsetInvalid subBuilder = new global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.Types.OffsetInvalid(); if (reasonCase_ == ReasonOneofCase.Offset) { subBuilder.MergeFrom(Offset); } input.ReadMessage(subBuilder); Offset = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the ValidationError message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Причины: /// - Значение количества < 0 или > 100 /// public sealed partial class LimitInvalid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LimitInvalid()); 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.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.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 LimitInvalid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LimitInvalid(LimitInvalid other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LimitInvalid Clone() { return new LimitInvalid(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as LimitInvalid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(LimitInvalid 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(LimitInvalid 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 } /// /// Причины: /// - Значение сдвига < 0 /// public sealed partial class OffsetInvalid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OffsetInvalid()); 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.TelemetryControl.V1.IndicatorPaging.Types.ValidationError.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 OffsetInvalid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OffsetInvalid(OffsetInvalid other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OffsetInvalid Clone() { return new OffsetInvalid(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as OffsetInvalid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(OffsetInvalid 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(OffsetInvalid 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 } /// /// Ответ на запрос получения списка индикаторов /// public sealed partial class GetDeviceIndicatorListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceIndicatorListResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 GetDeviceIndicatorListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorListResponse(GetDeviceIndicatorListResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorListResponse Clone() { return new GetDeviceIndicatorListResponse(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.TelemetryControl.V1.Indicator Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryControl.V1.Indicator) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorListResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorListResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } 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 GetDeviceIndicatorListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceIndicatorListResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) 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(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceIndicatorListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryControl.V1.Indicator(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorListResponse.Types.Error(); } Error.MergeFrom(other.Error); 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.TelemetryControl.V1.Indicator subBuilder = new global::Keyapis.TelemetryControl.V1.Indicator(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorListResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorListResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = 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.TelemetryControl.V1.Indicator subBuilder = new global::Keyapis.TelemetryControl.V1.Indicator(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorListResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorListResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetDeviceIndicatorListResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса получения списка индикаторов /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); 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.TelemetryControl.V1.GetDeviceIndicatorListResponse.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 Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.DeviceFilterValidation: DeviceFilterValidation = other.DeviceFilterValidation.Clone(); break; case ReasonOneofCase.DevicePagingValidation: DevicePagingValidation = other.DevicePagingValidation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "device_filter_validation" field. public const int DeviceFilterValidationFieldNumber = 1; /// /// Ошибка фильтрации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.IndicatorFilter.Types.ValidationError DeviceFilterValidation { get { return reasonCase_ == ReasonOneofCase.DeviceFilterValidation ? (global::Keyapis.TelemetryControl.V1.IndicatorFilter.Types.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.DeviceFilterValidation; } } /// Field number for the "device_paging_validation" field. public const int DevicePagingValidationFieldNumber = 2; /// /// Ошибка пагинации по страницам /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError DevicePagingValidation { get { return reasonCase_ == ReasonOneofCase.DevicePagingValidation ? (global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.DevicePagingValidation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, DeviceFilterValidation = 1, DevicePagingValidation = 2, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(DeviceFilterValidation, other.DeviceFilterValidation)) return false; if (!object.Equals(DevicePagingValidation, other.DevicePagingValidation)) return false; if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) hash ^= DeviceFilterValidation.GetHashCode(); if (reasonCase_ == ReasonOneofCase.DevicePagingValidation) hash ^= DevicePagingValidation.GetHashCode(); hash ^= (int) reasonCase_; 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { output.WriteRawTag(10); output.WriteMessage(DeviceFilterValidation); } if (reasonCase_ == ReasonOneofCase.DevicePagingValidation) { output.WriteRawTag(18); output.WriteMessage(DevicePagingValidation); } 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { output.WriteRawTag(10); output.WriteMessage(DeviceFilterValidation); } if (reasonCase_ == ReasonOneofCase.DevicePagingValidation) { output.WriteRawTag(18); output.WriteMessage(DevicePagingValidation); } 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceFilterValidation); } if (reasonCase_ == ReasonOneofCase.DevicePagingValidation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DevicePagingValidation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.DeviceFilterValidation: if (DeviceFilterValidation == null) { DeviceFilterValidation = new global::Keyapis.TelemetryControl.V1.IndicatorFilter.Types.ValidationError(); } DeviceFilterValidation.MergeFrom(other.DeviceFilterValidation); break; case ReasonOneofCase.DevicePagingValidation: if (DevicePagingValidation == null) { DevicePagingValidation = new global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError(); } DevicePagingValidation.MergeFrom(other.DevicePagingValidation); 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.TelemetryControl.V1.IndicatorFilter.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.IndicatorFilter.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { subBuilder.MergeFrom(DeviceFilterValidation); } input.ReadMessage(subBuilder); DeviceFilterValidation = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.DevicePagingValidation) { subBuilder.MergeFrom(DevicePagingValidation); } input.ReadMessage(subBuilder); DevicePagingValidation = 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.TelemetryControl.V1.IndicatorFilter.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.IndicatorFilter.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { subBuilder.MergeFrom(DeviceFilterValidation); } input.ReadMessage(subBuilder); DeviceFilterValidation = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.IndicatorPaging.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.DevicePagingValidation) { subBuilder.MergeFrom(DevicePagingValidation); } input.ReadMessage(subBuilder); DevicePagingValidation = subBuilder; break; } } } } #endif } } #endregion } /// /// Фильтр для запроса индикаторов. /// При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ. /// При передаче нескольких разных параметров фильтра они работают в выборке через И /// public sealed partial class IndicatorFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IndicatorFilter()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 IndicatorFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public IndicatorFilter(IndicatorFilter other) : this() { deviceIds_ = other.deviceIds_.Clone(); signTypes_ = other.signTypes_.Clone(); ids_ = other.ids_.Clone(); deviceSerialNumbers_ = other.deviceSerialNumbers_.Clone(); buildingIds_ = other.buildingIds_.Clone(); roomNumbers_ = other.roomNumbers_.Clone(); roomLabels_ = other.roomLabels_.Clone(); metricPointIds_ = other.metricPointIds_.Clone(); indicatorVendorTypes_ = other.indicatorVendorTypes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public IndicatorFilter Clone() { return new IndicatorFilter(this); } /// Field number for the "device_ids" field. public const int DeviceIdsFieldNumber = 1; private static readonly pb::FieldCodec _repeated_deviceIds_codec = pb::FieldCodec.ForInt32(10); 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 "sign_types" field. public const int SignTypesFieldNumber = 2; private static readonly pb::FieldCodec _repeated_signTypes_codec = pb::FieldCodec.ForEnum(18, x => (int) x, x => (global::Keyapis.TelemetryControl.V1.Indicator.Types.SignType) x); private readonly pbc::RepeatedField signTypes_ = new pbc::RepeatedField(); /// /// По типам измерений /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SignTypes { get { return signTypes_; } } /// Field number for the "ids" field. public const int IdsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_ids_codec = pb::FieldCodec.ForInt32(26); private readonly pbc::RepeatedField ids_ = new pbc::RepeatedField(); /// /// По списку ключей индикаторов. /// Устарело, использовать метод GetDeviceIndicator /// [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Ids { get { return ids_; } } /// Field number for the "device_serial_numbers" field. public const int DeviceSerialNumbersFieldNumber = 4; private static readonly pb::FieldCodec _repeated_deviceSerialNumbers_codec = pb::FieldCodec.ForString(34); private readonly pbc::RepeatedField deviceSerialNumbers_ = new pbc::RepeatedField(); /// /// По серийным номерам привязанных ПУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceSerialNumbers { get { return deviceSerialNumbers_; } } /// Field number for the "building_ids" field. public const int BuildingIdsFieldNumber = 5; private static readonly pb::FieldCodec _repeated_buildingIds_codec = pb::FieldCodec.ForInt32(42); private readonly pbc::RepeatedField buildingIds_ = new pbc::RepeatedField(); /// /// По идентификаторам объектов строительства, привязанных ТУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField BuildingIds { get { return buildingIds_; } } /// Field number for the "room_numbers" field. public const int RoomNumbersFieldNumber = 6; private static readonly pb::FieldCodec _repeated_roomNumbers_codec = pb::FieldCodec.ForString(50); private readonly pbc::RepeatedField roomNumbers_ = new pbc::RepeatedField(); /// /// По Номерам помещений, привязанных ТУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RoomNumbers { get { return roomNumbers_; } } /// Field number for the "room_labels" field. public const int RoomLabelsFieldNumber = 7; private static readonly pb::FieldCodec _repeated_roomLabels_codec = pb::FieldCodec.ForString(58); private readonly pbc::RepeatedField roomLabels_ = new pbc::RepeatedField(); /// /// По Лейблам помещений, привязанных ТУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RoomLabels { get { return roomLabels_; } } /// Field number for the "metric_point_ids" field. public const int MetricPointIdsFieldNumber = 8; private static readonly pb::FieldCodec _repeated_metricPointIds_codec = pb::FieldCodec.ForString(66); private readonly pbc::RepeatedField metricPointIds_ = new pbc::RepeatedField(); /// /// По ID привязанных точек учета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MetricPointIds { get { return metricPointIds_; } } /// Field number for the "indicator_vendor_types" field. public const int IndicatorVendorTypesFieldNumber = 9; private static readonly pb::FieldCodec _repeated_indicatorVendorTypes_codec = pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType) x); private readonly pbc::RepeatedField indicatorVendorTypes_ = new pbc::RepeatedField(); /// /// По посреднику получения показаний /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField IndicatorVendorTypes { get { return indicatorVendorTypes_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as IndicatorFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(IndicatorFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!deviceIds_.Equals(other.deviceIds_)) return false; if(!signTypes_.Equals(other.signTypes_)) return false; if(!ids_.Equals(other.ids_)) return false; if(!deviceSerialNumbers_.Equals(other.deviceSerialNumbers_)) return false; if(!buildingIds_.Equals(other.buildingIds_)) return false; if(!roomNumbers_.Equals(other.roomNumbers_)) return false; if(!roomLabels_.Equals(other.roomLabels_)) return false; if(!metricPointIds_.Equals(other.metricPointIds_)) return false; if(!indicatorVendorTypes_.Equals(other.indicatorVendorTypes_)) 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 ^= deviceIds_.GetHashCode(); hash ^= signTypes_.GetHashCode(); hash ^= ids_.GetHashCode(); hash ^= deviceSerialNumbers_.GetHashCode(); hash ^= buildingIds_.GetHashCode(); hash ^= roomNumbers_.GetHashCode(); hash ^= roomLabels_.GetHashCode(); hash ^= metricPointIds_.GetHashCode(); hash ^= indicatorVendorTypes_.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 deviceIds_.WriteTo(output, _repeated_deviceIds_codec); signTypes_.WriteTo(output, _repeated_signTypes_codec); ids_.WriteTo(output, _repeated_ids_codec); deviceSerialNumbers_.WriteTo(output, _repeated_deviceSerialNumbers_codec); buildingIds_.WriteTo(output, _repeated_buildingIds_codec); roomNumbers_.WriteTo(output, _repeated_roomNumbers_codec); roomLabels_.WriteTo(output, _repeated_roomLabels_codec); metricPointIds_.WriteTo(output, _repeated_metricPointIds_codec); indicatorVendorTypes_.WriteTo(output, _repeated_indicatorVendorTypes_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) { deviceIds_.WriteTo(ref output, _repeated_deviceIds_codec); signTypes_.WriteTo(ref output, _repeated_signTypes_codec); ids_.WriteTo(ref output, _repeated_ids_codec); deviceSerialNumbers_.WriteTo(ref output, _repeated_deviceSerialNumbers_codec); buildingIds_.WriteTo(ref output, _repeated_buildingIds_codec); roomNumbers_.WriteTo(ref output, _repeated_roomNumbers_codec); roomLabels_.WriteTo(ref output, _repeated_roomLabels_codec); metricPointIds_.WriteTo(ref output, _repeated_metricPointIds_codec); indicatorVendorTypes_.WriteTo(ref output, _repeated_indicatorVendorTypes_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 += deviceIds_.CalculateSize(_repeated_deviceIds_codec); size += signTypes_.CalculateSize(_repeated_signTypes_codec); size += ids_.CalculateSize(_repeated_ids_codec); size += deviceSerialNumbers_.CalculateSize(_repeated_deviceSerialNumbers_codec); size += buildingIds_.CalculateSize(_repeated_buildingIds_codec); size += roomNumbers_.CalculateSize(_repeated_roomNumbers_codec); size += roomLabels_.CalculateSize(_repeated_roomLabels_codec); size += metricPointIds_.CalculateSize(_repeated_metricPointIds_codec); size += indicatorVendorTypes_.CalculateSize(_repeated_indicatorVendorTypes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(IndicatorFilter other) { if (other == null) { return; } deviceIds_.Add(other.deviceIds_); signTypes_.Add(other.signTypes_); ids_.Add(other.ids_); deviceSerialNumbers_.Add(other.deviceSerialNumbers_); buildingIds_.Add(other.buildingIds_); roomNumbers_.Add(other.roomNumbers_); roomLabels_.Add(other.roomLabels_); metricPointIds_.Add(other.metricPointIds_); indicatorVendorTypes_.Add(other.indicatorVendorTypes_); _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: { deviceIds_.AddEntriesFrom(input, _repeated_deviceIds_codec); break; } case 18: case 16: { signTypes_.AddEntriesFrom(input, _repeated_signTypes_codec); break; } case 26: case 24: { ids_.AddEntriesFrom(input, _repeated_ids_codec); break; } case 34: { deviceSerialNumbers_.AddEntriesFrom(input, _repeated_deviceSerialNumbers_codec); break; } case 42: case 40: { buildingIds_.AddEntriesFrom(input, _repeated_buildingIds_codec); break; } case 50: { roomNumbers_.AddEntriesFrom(input, _repeated_roomNumbers_codec); break; } case 58: { roomLabels_.AddEntriesFrom(input, _repeated_roomLabels_codec); break; } case 66: { metricPointIds_.AddEntriesFrom(input, _repeated_metricPointIds_codec); break; } case 74: case 72: { indicatorVendorTypes_.AddEntriesFrom(input, _repeated_indicatorVendorTypes_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: { deviceIds_.AddEntriesFrom(ref input, _repeated_deviceIds_codec); break; } case 18: case 16: { signTypes_.AddEntriesFrom(ref input, _repeated_signTypes_codec); break; } case 26: case 24: { ids_.AddEntriesFrom(ref input, _repeated_ids_codec); break; } case 34: { deviceSerialNumbers_.AddEntriesFrom(ref input, _repeated_deviceSerialNumbers_codec); break; } case 42: case 40: { buildingIds_.AddEntriesFrom(ref input, _repeated_buildingIds_codec); break; } case 50: { roomNumbers_.AddEntriesFrom(ref input, _repeated_roomNumbers_codec); break; } case 58: { roomLabels_.AddEntriesFrom(ref input, _repeated_roomLabels_codec); break; } case 66: { metricPointIds_.AddEntriesFrom(ref input, _repeated_metricPointIds_codec); break; } case 74: case 72: { indicatorVendorTypes_.AddEntriesFrom(ref input, _repeated_indicatorVendorTypes_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the IndicatorFilter message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибки валидации. /// Эти проверки выполняются до обращения в базу данных /// public sealed partial class ValidationError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidationError()); 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.TelemetryControl.V1.IndicatorFilter.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 ValidationError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError(ValidationError other) : this() { path_ = other.path_; message_ = other.message_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError Clone() { return new ValidationError(this); } /// Field number for the "path" field. public const int PathFieldNumber = 1; private string path_ = ""; /// /// Путь к полю в формате наименования protobuf /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "message" field. public const int MessageFieldNumber = 2; private string message_ = ""; /// /// Валидационное сообщение /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { get { return message_; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ValidationError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ValidationError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Path != other.Path) return false; if (Message != other.Message) 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 (Path.Length != 0) hash ^= Path.GetHashCode(); if (Message.Length != 0) hash ^= Message.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 (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } 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 (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } 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 (Path.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); } if (Message.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ValidationError other) { if (other == null) { return; } if (other.Path.Length != 0) { Path = other.Path; } if (other.Message.Length != 0) { Message = other.Message; } _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: { Path = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Path = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Запрос получения количества индикаторов /// public sealed partial class GetDeviceIndicatorCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceIndicatorCountRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 GetDeviceIndicatorCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorCountRequest(GetDeviceIndicatorCountRequest 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 GetDeviceIndicatorCountRequest Clone() { return new GetDeviceIndicatorCountRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.IndicatorFilter filter_; /// /// Фильтр по индикаторам /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.IndicatorFilter 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 GetDeviceIndicatorCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceIndicatorCountRequest 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(GetDeviceIndicatorCountRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.TelemetryControl.V1.IndicatorFilter(); } 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.TelemetryControl.V1.IndicatorFilter(); } 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.TelemetryControl.V1.IndicatorFilter(); } input.ReadMessage(Filter); break; } } } } #endif } /// /// Ответ на запрос получения количества индикаторов /// public sealed partial class GetDeviceIndicatorCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceIndicatorCountResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 GetDeviceIndicatorCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorCountResponse(GetDeviceIndicatorCountResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorCountResponse Clone() { return new GetDeviceIndicatorCountResponse(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(); } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorCountResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorCountResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } 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 GetDeviceIndicatorCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceIndicatorCountResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Data != other.Data) return false; if (!object.Equals(Error, other.Error)) 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(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceIndicatorCountResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorCountResponse.Types.Error(); } Error.MergeFrom(other.Error); 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; } case 18: { global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorCountResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorCountResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = 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: { Data = input.ReadInt32(); break; } case 18: { global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorCountResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.GetDeviceIndicatorCountResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetDeviceIndicatorCountResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса получения количества индикаторов /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); 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.TelemetryControl.V1.GetDeviceIndicatorCountResponse.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 Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.DeviceFilterValidation: DeviceFilterValidation = other.DeviceFilterValidation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "device_filter_validation" field. public const int DeviceFilterValidationFieldNumber = 1; /// /// Ошибка фильтрации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.IndicatorFilter.Types.ValidationError DeviceFilterValidation { get { return reasonCase_ == ReasonOneofCase.DeviceFilterValidation ? (global::Keyapis.TelemetryControl.V1.IndicatorFilter.Types.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.DeviceFilterValidation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, DeviceFilterValidation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(DeviceFilterValidation, other.DeviceFilterValidation)) return false; if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) hash ^= DeviceFilterValidation.GetHashCode(); hash ^= (int) reasonCase_; 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { output.WriteRawTag(10); output.WriteMessage(DeviceFilterValidation); } 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { output.WriteRawTag(10); output.WriteMessage(DeviceFilterValidation); } 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceFilterValidation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.DeviceFilterValidation: if (DeviceFilterValidation == null) { DeviceFilterValidation = new global::Keyapis.TelemetryControl.V1.IndicatorFilter.Types.ValidationError(); } DeviceFilterValidation.MergeFrom(other.DeviceFilterValidation); 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.TelemetryControl.V1.IndicatorFilter.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.IndicatorFilter.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { subBuilder.MergeFrom(DeviceFilterValidation); } input.ReadMessage(subBuilder); DeviceFilterValidation = 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.TelemetryControl.V1.IndicatorFilter.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.IndicatorFilter.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { subBuilder.MergeFrom(DeviceFilterValidation); } input.ReadMessage(subBuilder); DeviceFilterValidation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос удаления индикатора /// public sealed partial class DeleteDeviceIndicatorRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceIndicatorRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.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 DeleteDeviceIndicatorRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceIndicatorRequest(DeleteDeviceIndicatorRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceIndicatorRequest Clone() { return new DeleteDeviceIndicatorRequest(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 DeleteDeviceIndicatorRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteDeviceIndicatorRequest 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(DeleteDeviceIndicatorRequest 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 DeleteDeviceIndicatorResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceIndicatorResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[26]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceIndicatorResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceIndicatorResponse(DeleteDeviceIndicatorResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceIndicatorResponse Clone() { return new DeleteDeviceIndicatorResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteDeviceIndicatorResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteDeviceIndicatorResponse 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(DeleteDeviceIndicatorResponse 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 PostDeviceFullDuplexRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceFullDuplexRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[27]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceFullDuplexRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceFullDuplexRequest(PostDeviceFullDuplexRequest other) : this() { requestId_ = other.requestId_; switch (other.TaskCase) { case TaskOneofCase.PostDeviceFullDuplexDeviceAsyncStatus: PostDeviceFullDuplexDeviceAsyncStatus = other.PostDeviceFullDuplexDeviceAsyncStatus.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceFullDuplexRequest Clone() { return new PostDeviceFullDuplexRequest(this); } /// Field number for the "request_id" field. public const int RequestIdFieldNumber = 1; private string requestId_ = ""; /// /// Идентификатор запроса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RequestId { get { return requestId_; } set { requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "post_device_full_duplex_device_async_status" field. public const int PostDeviceFullDuplexDeviceAsyncStatusFieldNumber = 2; /// /// Результат обработки устройства на клиенте /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus PostDeviceFullDuplexDeviceAsyncStatus { get { return taskCase_ == TaskOneofCase.PostDeviceFullDuplexDeviceAsyncStatus ? (global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus) task_ : null; } set { task_ = value; taskCase_ = value == null ? TaskOneofCase.None : TaskOneofCase.PostDeviceFullDuplexDeviceAsyncStatus; } } private object task_; /// Enum of possible cases for the "task" oneof. public enum TaskOneofCase { None = 0, PostDeviceFullDuplexDeviceAsyncStatus = 2, } private TaskOneofCase taskCase_ = TaskOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TaskOneofCase TaskCase { get { return taskCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearTask() { taskCase_ = TaskOneofCase.None; task_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostDeviceFullDuplexRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceFullDuplexRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (!object.Equals(PostDeviceFullDuplexDeviceAsyncStatus, other.PostDeviceFullDuplexDeviceAsyncStatus)) return false; if (TaskCase != other.TaskCase) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (taskCase_ == TaskOneofCase.PostDeviceFullDuplexDeviceAsyncStatus) hash ^= PostDeviceFullDuplexDeviceAsyncStatus.GetHashCode(); hash ^= (int) taskCase_; 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (taskCase_ == TaskOneofCase.PostDeviceFullDuplexDeviceAsyncStatus) { output.WriteRawTag(18); output.WriteMessage(PostDeviceFullDuplexDeviceAsyncStatus); } 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (taskCase_ == TaskOneofCase.PostDeviceFullDuplexDeviceAsyncStatus) { output.WriteRawTag(18); output.WriteMessage(PostDeviceFullDuplexDeviceAsyncStatus); } 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 (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (taskCase_ == TaskOneofCase.PostDeviceFullDuplexDeviceAsyncStatus) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PostDeviceFullDuplexDeviceAsyncStatus); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceFullDuplexRequest other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } switch (other.TaskCase) { case TaskOneofCase.PostDeviceFullDuplexDeviceAsyncStatus: if (PostDeviceFullDuplexDeviceAsyncStatus == null) { PostDeviceFullDuplexDeviceAsyncStatus = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus(); } PostDeviceFullDuplexDeviceAsyncStatus.MergeFrom(other.PostDeviceFullDuplexDeviceAsyncStatus); 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: { RequestId = input.ReadString(); break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus(); if (taskCase_ == TaskOneofCase.PostDeviceFullDuplexDeviceAsyncStatus) { subBuilder.MergeFrom(PostDeviceFullDuplexDeviceAsyncStatus); } input.ReadMessage(subBuilder); PostDeviceFullDuplexDeviceAsyncStatus = 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: { RequestId = input.ReadString(); break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus(); if (taskCase_ == TaskOneofCase.PostDeviceFullDuplexDeviceAsyncStatus) { subBuilder.MergeFrom(PostDeviceFullDuplexDeviceAsyncStatus); } input.ReadMessage(subBuilder); PostDeviceFullDuplexDeviceAsyncStatus = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostDeviceFullDuplexRequest message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Результат обработки устройства на клиенте /// public sealed partial class DeviceAsyncStatus : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceAsyncStatus()); 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.TelemetryControl.V1.PostDeviceFullDuplexRequest.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 DeviceAsyncStatus() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceAsyncStatus(DeviceAsyncStatus other) : this() { deviceId_ = other.deviceId_; switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceAsyncStatus Clone() { return new DeviceAsyncStatus(this); } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 1; private int deviceId_; /// /// Идентификатор ПУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DeviceId { get { return deviceId_; } set { deviceId_ = value; } } /// Field number for the "data" field. public const int DataFieldNumber = 2; /// /// Успех /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Success Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Success) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 3; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 2, Error = 3, } 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 DeviceAsyncStatus); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceAsyncStatus other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (DeviceId != other.DeviceId) return false; if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.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 (DeviceId != 0) { output.WriteRawTag(8); output.WriteInt32(DeviceId); } if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(18); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(26); output.WriteMessage(Error); } 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 (DeviceId != 0) { output.WriteRawTag(8); output.WriteInt32(DeviceId); } if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(18); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(26); output.WriteMessage(Error); } 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 (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceAsyncStatus other) { if (other == null) { return; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Success(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error(); } Error.MergeFrom(other.Error); 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: { DeviceId = input.ReadInt32(); break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Success subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Success(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 26: { global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = 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: { DeviceId = input.ReadInt32(); break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Success subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Success(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 26: { global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the DeviceAsyncStatus message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Команда принята /// public sealed partial class Success : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Success()); 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.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.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 Success() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Success(Success other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Success Clone() { return new Success(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Success); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Success 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(Success 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 Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); 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.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.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 Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.PostDeviceRequestUnknown: PostDeviceRequestUnknown = other.PostDeviceRequestUnknown.Clone(); break; case ReasonOneofCase.PostDeviceRequestIp: PostDeviceRequestIp = other.PostDeviceRequestIp.Clone(); break; case ReasonOneofCase.PostDeviceRequestPort: PostDeviceRequestPort = other.PostDeviceRequestPort.Clone(); break; case ReasonOneofCase.PostDeviceRequestNetworkAddress: PostDeviceRequestNetworkAddress = other.PostDeviceRequestNetworkAddress.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "post_device_request_unknown" field. public const int PostDeviceRequestUnknownFieldNumber = 1; /// /// Неизвестная ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.UnknownError PostDeviceRequestUnknown { get { return reasonCase_ == ReasonOneofCase.PostDeviceRequestUnknown ? (global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.UnknownError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.PostDeviceRequestUnknown; } } /// Field number for the "post_device_request_ip" field. public const int PostDeviceRequestIpFieldNumber = 2; /// /// Неверный IP /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.IpError PostDeviceRequestIp { get { return reasonCase_ == ReasonOneofCase.PostDeviceRequestIp ? (global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.IpError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.PostDeviceRequestIp; } } /// Field number for the "post_device_request_port" field. public const int PostDeviceRequestPortFieldNumber = 3; /// /// Неверный порт /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.PortError PostDeviceRequestPort { get { return reasonCase_ == ReasonOneofCase.PostDeviceRequestPort ? (global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.PortError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.PostDeviceRequestPort; } } /// Field number for the "post_device_request_network_address" field. public const int PostDeviceRequestNetworkAddressFieldNumber = 4; /// /// Неверный сетевой адрес /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.NetworkAddressError PostDeviceRequestNetworkAddress { get { return reasonCase_ == ReasonOneofCase.PostDeviceRequestNetworkAddress ? (global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.NetworkAddressError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.PostDeviceRequestNetworkAddress; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, PostDeviceRequestUnknown = 1, PostDeviceRequestIp = 2, PostDeviceRequestPort = 3, PostDeviceRequestNetworkAddress = 4, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(PostDeviceRequestUnknown, other.PostDeviceRequestUnknown)) return false; if (!object.Equals(PostDeviceRequestIp, other.PostDeviceRequestIp)) return false; if (!object.Equals(PostDeviceRequestPort, other.PostDeviceRequestPort)) return false; if (!object.Equals(PostDeviceRequestNetworkAddress, other.PostDeviceRequestNetworkAddress)) return false; if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.PostDeviceRequestUnknown) hash ^= PostDeviceRequestUnknown.GetHashCode(); if (reasonCase_ == ReasonOneofCase.PostDeviceRequestIp) hash ^= PostDeviceRequestIp.GetHashCode(); if (reasonCase_ == ReasonOneofCase.PostDeviceRequestPort) hash ^= PostDeviceRequestPort.GetHashCode(); if (reasonCase_ == ReasonOneofCase.PostDeviceRequestNetworkAddress) hash ^= PostDeviceRequestNetworkAddress.GetHashCode(); hash ^= (int) reasonCase_; 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 (reasonCase_ == ReasonOneofCase.PostDeviceRequestUnknown) { output.WriteRawTag(10); output.WriteMessage(PostDeviceRequestUnknown); } if (reasonCase_ == ReasonOneofCase.PostDeviceRequestIp) { output.WriteRawTag(18); output.WriteMessage(PostDeviceRequestIp); } if (reasonCase_ == ReasonOneofCase.PostDeviceRequestPort) { output.WriteRawTag(26); output.WriteMessage(PostDeviceRequestPort); } if (reasonCase_ == ReasonOneofCase.PostDeviceRequestNetworkAddress) { output.WriteRawTag(34); output.WriteMessage(PostDeviceRequestNetworkAddress); } 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 (reasonCase_ == ReasonOneofCase.PostDeviceRequestUnknown) { output.WriteRawTag(10); output.WriteMessage(PostDeviceRequestUnknown); } if (reasonCase_ == ReasonOneofCase.PostDeviceRequestIp) { output.WriteRawTag(18); output.WriteMessage(PostDeviceRequestIp); } if (reasonCase_ == ReasonOneofCase.PostDeviceRequestPort) { output.WriteRawTag(26); output.WriteMessage(PostDeviceRequestPort); } if (reasonCase_ == ReasonOneofCase.PostDeviceRequestNetworkAddress) { output.WriteRawTag(34); output.WriteMessage(PostDeviceRequestNetworkAddress); } 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 (reasonCase_ == ReasonOneofCase.PostDeviceRequestUnknown) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PostDeviceRequestUnknown); } if (reasonCase_ == ReasonOneofCase.PostDeviceRequestIp) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PostDeviceRequestIp); } if (reasonCase_ == ReasonOneofCase.PostDeviceRequestPort) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PostDeviceRequestPort); } if (reasonCase_ == ReasonOneofCase.PostDeviceRequestNetworkAddress) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PostDeviceRequestNetworkAddress); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.PostDeviceRequestUnknown: if (PostDeviceRequestUnknown == null) { PostDeviceRequestUnknown = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.UnknownError(); } PostDeviceRequestUnknown.MergeFrom(other.PostDeviceRequestUnknown); break; case ReasonOneofCase.PostDeviceRequestIp: if (PostDeviceRequestIp == null) { PostDeviceRequestIp = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.IpError(); } PostDeviceRequestIp.MergeFrom(other.PostDeviceRequestIp); break; case ReasonOneofCase.PostDeviceRequestPort: if (PostDeviceRequestPort == null) { PostDeviceRequestPort = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.PortError(); } PostDeviceRequestPort.MergeFrom(other.PostDeviceRequestPort); break; case ReasonOneofCase.PostDeviceRequestNetworkAddress: if (PostDeviceRequestNetworkAddress == null) { PostDeviceRequestNetworkAddress = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.NetworkAddressError(); } PostDeviceRequestNetworkAddress.MergeFrom(other.PostDeviceRequestNetworkAddress); 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.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.UnknownError subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.UnknownError(); if (reasonCase_ == ReasonOneofCase.PostDeviceRequestUnknown) { subBuilder.MergeFrom(PostDeviceRequestUnknown); } input.ReadMessage(subBuilder); PostDeviceRequestUnknown = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.IpError subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.IpError(); if (reasonCase_ == ReasonOneofCase.PostDeviceRequestIp) { subBuilder.MergeFrom(PostDeviceRequestIp); } input.ReadMessage(subBuilder); PostDeviceRequestIp = subBuilder; break; } case 26: { global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.PortError subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.PortError(); if (reasonCase_ == ReasonOneofCase.PostDeviceRequestPort) { subBuilder.MergeFrom(PostDeviceRequestPort); } input.ReadMessage(subBuilder); PostDeviceRequestPort = subBuilder; break; } case 34: { global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.NetworkAddressError subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.NetworkAddressError(); if (reasonCase_ == ReasonOneofCase.PostDeviceRequestNetworkAddress) { subBuilder.MergeFrom(PostDeviceRequestNetworkAddress); } input.ReadMessage(subBuilder); PostDeviceRequestNetworkAddress = 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.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.UnknownError subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.UnknownError(); if (reasonCase_ == ReasonOneofCase.PostDeviceRequestUnknown) { subBuilder.MergeFrom(PostDeviceRequestUnknown); } input.ReadMessage(subBuilder); PostDeviceRequestUnknown = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.IpError subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.IpError(); if (reasonCase_ == ReasonOneofCase.PostDeviceRequestIp) { subBuilder.MergeFrom(PostDeviceRequestIp); } input.ReadMessage(subBuilder); PostDeviceRequestIp = subBuilder; break; } case 26: { global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.PortError subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.PortError(); if (reasonCase_ == ReasonOneofCase.PostDeviceRequestPort) { subBuilder.MergeFrom(PostDeviceRequestPort); } input.ReadMessage(subBuilder); PostDeviceRequestPort = subBuilder; break; } case 34: { global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.NetworkAddressError subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Types.NetworkAddressError(); if (reasonCase_ == ReasonOneofCase.PostDeviceRequestNetworkAddress) { subBuilder.MergeFrom(PostDeviceRequestNetworkAddress); } input.ReadMessage(subBuilder); PostDeviceRequestNetworkAddress = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the Error message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Неизвестная ошибка на стороне клиента /// public sealed partial class UnknownError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnknownError()); 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.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.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 UnknownError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnknownError(UnknownError other) : this() { message_ = other.message_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnknownError Clone() { return new UnknownError(this); } /// Field number for the "message" field. public const int MessageFieldNumber = 1; private string message_ = ""; /// /// Произвольный текст ошибки на стороне клиента. /// Отправляется в случае если в спецификации нет подходящей ошибки. /// После анализа таких ошибок в спецификацию добавляется специальный тип под эту ошибку /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { get { return message_; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UnknownError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UnknownError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Message != other.Message) 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 (Message.Length != 0) hash ^= Message.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 (Message.Length != 0) { output.WriteRawTag(10); output.WriteString(Message); } 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 (Message.Length != 0) { output.WriteRawTag(10); output.WriteString(Message); } 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 (Message.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UnknownError other) { if (other == null) { return; } if (other.Message.Length != 0) { Message = other.Message; } _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: { Message = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Message = input.ReadString(); break; } } } } #endif } /// /// Причины: /// - Устройство не найденно на данном IP адресе /// public sealed partial class IpError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new IpError()); 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.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.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 IpError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public IpError(IpError other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public IpError Clone() { return new IpError(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as IpError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(IpError 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(IpError 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 PortError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PortError()); 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.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Descriptor.NestedTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PortError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PortError(PortError other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PortError Clone() { return new PortError(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PortError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PortError 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(PortError 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 NetworkAddressError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NetworkAddressError()); 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.TelemetryControl.V1.PostDeviceFullDuplexRequest.Types.DeviceAsyncStatus.Types.Error.Descriptor.NestedTypes[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 NetworkAddressError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NetworkAddressError(NetworkAddressError other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NetworkAddressError Clone() { return new NetworkAddressError(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as NetworkAddressError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(NetworkAddressError 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(NetworkAddressError 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 } } #endregion } /// /// Запрос сохранения ПУ /// public sealed partial class PostDeviceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[28]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceRequest(PostDeviceRequest other) : this() { device_ = other.device_ != null ? other.device_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceRequest Clone() { return new PostDeviceRequest(this); } /// Field number for the "device" field. public const int DeviceFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.Device device_; /// /// Прибор учета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device Device { get { return device_; } set { device_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostDeviceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Device, other.Device)) 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 (device_ != null) hash ^= Device.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 (device_ != null) { output.WriteRawTag(10); output.WriteMessage(Device); } 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 (device_ != null) { output.WriteRawTag(10); output.WriteMessage(Device); } 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 (device_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceRequest other) { if (other == null) { return; } if (other.device_ != null) { if (device_ == null) { Device = new global::Keyapis.TelemetryControl.V1.Device(); } Device.MergeFrom(other.Device); } _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 (device_ == null) { Device = new global::Keyapis.TelemetryControl.V1.Device(); } input.ReadMessage(Device); 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 (device_ == null) { Device = new global::Keyapis.TelemetryControl.V1.Device(); } input.ReadMessage(Device); break; } } } } #endif } /// /// Запрос замены прибора учета /// public sealed partial class PostDeviceReplaceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceReplaceRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[29]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReplaceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReplaceRequest(PostDeviceReplaceRequest other) : this() { replaceDeviceId_ = other.replaceDeviceId_; device_ = other.device_ != null ? other.device_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReplaceRequest Clone() { return new PostDeviceReplaceRequest(this); } /// Field number for the "replace_device_id" field. public const int ReplaceDeviceIdFieldNumber = 1; private int replaceDeviceId_; /// /// Идентификатор заменяемого прибора учета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ReplaceDeviceId { get { return replaceDeviceId_; } set { replaceDeviceId_ = value; } } /// Field number for the "device" field. public const int DeviceFieldNumber = 2; private global::Keyapis.TelemetryControl.V1.Device device_; /// /// Создаваемый прибор учета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device Device { get { return device_; } set { device_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostDeviceReplaceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceReplaceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ReplaceDeviceId != other.ReplaceDeviceId) return false; if (!object.Equals(Device, other.Device)) 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 (ReplaceDeviceId != 0) hash ^= ReplaceDeviceId.GetHashCode(); if (device_ != null) hash ^= Device.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 (ReplaceDeviceId != 0) { output.WriteRawTag(8); output.WriteInt32(ReplaceDeviceId); } if (device_ != null) { output.WriteRawTag(18); output.WriteMessage(Device); } 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 (ReplaceDeviceId != 0) { output.WriteRawTag(8); output.WriteInt32(ReplaceDeviceId); } if (device_ != null) { output.WriteRawTag(18); output.WriteMessage(Device); } 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 (ReplaceDeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ReplaceDeviceId); } if (device_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceReplaceRequest other) { if (other == null) { return; } if (other.ReplaceDeviceId != 0) { ReplaceDeviceId = other.ReplaceDeviceId; } if (other.device_ != null) { if (device_ == null) { Device = new global::Keyapis.TelemetryControl.V1.Device(); } Device.MergeFrom(other.Device); } _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: { ReplaceDeviceId = input.ReadInt32(); break; } case 18: { if (device_ == null) { Device = new global::Keyapis.TelemetryControl.V1.Device(); } input.ReadMessage(Device); 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: { ReplaceDeviceId = input.ReadInt32(); break; } case 18: { if (device_ == null) { Device = new global::Keyapis.TelemetryControl.V1.Device(); } input.ReadMessage(Device); break; } } } } #endif } /// /// Ответ на замену прибора учета /// public sealed partial class PostDeviceReplaceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceReplaceResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[30]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReplaceResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReplaceResponse(PostDeviceReplaceResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReplaceResponse Clone() { return new PostDeviceReplaceResponse(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.TelemetryControl.V1.Device Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryControl.V1.Device) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } 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 PostDeviceReplaceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceReplaceResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) 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(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceReplaceResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryControl.V1.Device(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error(); } Error.MergeFrom(other.Error); 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.TelemetryControl.V1.Device subBuilder = new global::Keyapis.TelemetryControl.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = 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.TelemetryControl.V1.Device subBuilder = new global::Keyapis.TelemetryControl.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostDeviceReplaceResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка замены ПУ /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); 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.TelemetryControl.V1.PostDeviceReplaceResponse.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 Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; case ReasonOneofCase.ReplaceDeviceNotFound: ReplaceDeviceNotFound = other.ReplaceDeviceNotFound.Clone(); break; case ReasonOneofCase.CreateIndicatorsFail: CreateIndicatorsFail = other.CreateIndicatorsFail.Clone(); break; case ReasonOneofCase.MultiLinkedMetricPoint: MultiLinkedMetricPoint = other.MultiLinkedMetricPoint.Clone(); break; case ReasonOneofCase.WrongBuilding: WrongBuilding = other.WrongBuilding.Clone(); break; case ReasonOneofCase.MetricPointNotFound: MetricPointNotFound = other.MetricPointNotFound.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device.Types.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.TelemetryControl.V1.Device.Types.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } /// Field number for the "replace_device_not_found" field. public const int ReplaceDeviceNotFoundFieldNumber = 2; /// /// Не найден заменяемый ПУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.ReplaceDeviceNotFound ReplaceDeviceNotFound { get { return reasonCase_ == ReasonOneofCase.ReplaceDeviceNotFound ? (global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.ReplaceDeviceNotFound) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.ReplaceDeviceNotFound; } } /// Field number for the "create_indicators_fail" field. public const int CreateIndicatorsFailFieldNumber = 3; /// /// Не удалось создать индикаторы нового ПУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.CreateIndicatorsFail CreateIndicatorsFail { get { return reasonCase_ == ReasonOneofCase.CreateIndicatorsFail ? (global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.CreateIndicatorsFail) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.CreateIndicatorsFail; } } /// Field number for the "multi_linked_metric_point" field. public const int MultiLinkedMetricPointFieldNumber = 4; /// /// Попытка замены ПУ, привязанного ко многим ТУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MultiLinkedMetricPoint MultiLinkedMetricPoint { get { return reasonCase_ == ReasonOneofCase.MultiLinkedMetricPoint ? (global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MultiLinkedMetricPoint) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.MultiLinkedMetricPoint; } } /// Field number for the "wrong_building" field. public const int WrongBuildingFieldNumber = 5; /// /// Заменяющий ПУ не привязан к дому заменяемого ПУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.WrongBuilding WrongBuilding { get { return reasonCase_ == ReasonOneofCase.WrongBuilding ? (global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.WrongBuilding) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.WrongBuilding; } } /// Field number for the "metric_point_not_found" field. public const int MetricPointNotFoundFieldNumber = 6; /// /// Заменяемый ПУ не привязан к ТУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MetricPointNotFound MetricPointNotFound { get { return reasonCase_ == ReasonOneofCase.MetricPointNotFound ? (global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MetricPointNotFound) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.MetricPointNotFound; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, ReplaceDeviceNotFound = 2, CreateIndicatorsFail = 3, MultiLinkedMetricPoint = 4, WrongBuilding = 5, MetricPointNotFound = 6, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (!object.Equals(ReplaceDeviceNotFound, other.ReplaceDeviceNotFound)) return false; if (!object.Equals(CreateIndicatorsFail, other.CreateIndicatorsFail)) return false; if (!object.Equals(MultiLinkedMetricPoint, other.MultiLinkedMetricPoint)) return false; if (!object.Equals(WrongBuilding, other.WrongBuilding)) return false; if (!object.Equals(MetricPointNotFound, other.MetricPointNotFound)) return false; if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); if (reasonCase_ == ReasonOneofCase.ReplaceDeviceNotFound) hash ^= ReplaceDeviceNotFound.GetHashCode(); if (reasonCase_ == ReasonOneofCase.CreateIndicatorsFail) hash ^= CreateIndicatorsFail.GetHashCode(); if (reasonCase_ == ReasonOneofCase.MultiLinkedMetricPoint) hash ^= MultiLinkedMetricPoint.GetHashCode(); if (reasonCase_ == ReasonOneofCase.WrongBuilding) hash ^= WrongBuilding.GetHashCode(); if (reasonCase_ == ReasonOneofCase.MetricPointNotFound) hash ^= MetricPointNotFound.GetHashCode(); hash ^= (int) reasonCase_; 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 (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (reasonCase_ == ReasonOneofCase.ReplaceDeviceNotFound) { output.WriteRawTag(18); output.WriteMessage(ReplaceDeviceNotFound); } if (reasonCase_ == ReasonOneofCase.CreateIndicatorsFail) { output.WriteRawTag(26); output.WriteMessage(CreateIndicatorsFail); } if (reasonCase_ == ReasonOneofCase.MultiLinkedMetricPoint) { output.WriteRawTag(34); output.WriteMessage(MultiLinkedMetricPoint); } if (reasonCase_ == ReasonOneofCase.WrongBuilding) { output.WriteRawTag(42); output.WriteMessage(WrongBuilding); } if (reasonCase_ == ReasonOneofCase.MetricPointNotFound) { output.WriteRawTag(50); output.WriteMessage(MetricPointNotFound); } 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 (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (reasonCase_ == ReasonOneofCase.ReplaceDeviceNotFound) { output.WriteRawTag(18); output.WriteMessage(ReplaceDeviceNotFound); } if (reasonCase_ == ReasonOneofCase.CreateIndicatorsFail) { output.WriteRawTag(26); output.WriteMessage(CreateIndicatorsFail); } if (reasonCase_ == ReasonOneofCase.MultiLinkedMetricPoint) { output.WriteRawTag(34); output.WriteMessage(MultiLinkedMetricPoint); } if (reasonCase_ == ReasonOneofCase.WrongBuilding) { output.WriteRawTag(42); output.WriteMessage(WrongBuilding); } if (reasonCase_ == ReasonOneofCase.MetricPointNotFound) { output.WriteRawTag(50); output.WriteMessage(MetricPointNotFound); } 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 (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (reasonCase_ == ReasonOneofCase.ReplaceDeviceNotFound) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReplaceDeviceNotFound); } if (reasonCase_ == ReasonOneofCase.CreateIndicatorsFail) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateIndicatorsFail); } if (reasonCase_ == ReasonOneofCase.MultiLinkedMetricPoint) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(MultiLinkedMetricPoint); } if (reasonCase_ == ReasonOneofCase.WrongBuilding) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(WrongBuilding); } if (reasonCase_ == ReasonOneofCase.MetricPointNotFound) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(MetricPointNotFound); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.TelemetryControl.V1.Device.Types.ValidationError(); } Validation.MergeFrom(other.Validation); break; case ReasonOneofCase.ReplaceDeviceNotFound: if (ReplaceDeviceNotFound == null) { ReplaceDeviceNotFound = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.ReplaceDeviceNotFound(); } ReplaceDeviceNotFound.MergeFrom(other.ReplaceDeviceNotFound); break; case ReasonOneofCase.CreateIndicatorsFail: if (CreateIndicatorsFail == null) { CreateIndicatorsFail = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.CreateIndicatorsFail(); } CreateIndicatorsFail.MergeFrom(other.CreateIndicatorsFail); break; case ReasonOneofCase.MultiLinkedMetricPoint: if (MultiLinkedMetricPoint == null) { MultiLinkedMetricPoint = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MultiLinkedMetricPoint(); } MultiLinkedMetricPoint.MergeFrom(other.MultiLinkedMetricPoint); break; case ReasonOneofCase.WrongBuilding: if (WrongBuilding == null) { WrongBuilding = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.WrongBuilding(); } WrongBuilding.MergeFrom(other.WrongBuilding); break; case ReasonOneofCase.MetricPointNotFound: if (MetricPointNotFound == null) { MetricPointNotFound = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MetricPointNotFound(); } MetricPointNotFound.MergeFrom(other.MetricPointNotFound); 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.TelemetryControl.V1.Device.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.Device.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.ReplaceDeviceNotFound subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.ReplaceDeviceNotFound(); if (reasonCase_ == ReasonOneofCase.ReplaceDeviceNotFound) { subBuilder.MergeFrom(ReplaceDeviceNotFound); } input.ReadMessage(subBuilder); ReplaceDeviceNotFound = subBuilder; break; } case 26: { global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.CreateIndicatorsFail subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.CreateIndicatorsFail(); if (reasonCase_ == ReasonOneofCase.CreateIndicatorsFail) { subBuilder.MergeFrom(CreateIndicatorsFail); } input.ReadMessage(subBuilder); CreateIndicatorsFail = subBuilder; break; } case 34: { global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MultiLinkedMetricPoint subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MultiLinkedMetricPoint(); if (reasonCase_ == ReasonOneofCase.MultiLinkedMetricPoint) { subBuilder.MergeFrom(MultiLinkedMetricPoint); } input.ReadMessage(subBuilder); MultiLinkedMetricPoint = subBuilder; break; } case 42: { global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.WrongBuilding subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.WrongBuilding(); if (reasonCase_ == ReasonOneofCase.WrongBuilding) { subBuilder.MergeFrom(WrongBuilding); } input.ReadMessage(subBuilder); WrongBuilding = subBuilder; break; } case 50: { global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MetricPointNotFound subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MetricPointNotFound(); if (reasonCase_ == ReasonOneofCase.MetricPointNotFound) { subBuilder.MergeFrom(MetricPointNotFound); } input.ReadMessage(subBuilder); MetricPointNotFound = 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.TelemetryControl.V1.Device.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.Device.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.ReplaceDeviceNotFound subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.ReplaceDeviceNotFound(); if (reasonCase_ == ReasonOneofCase.ReplaceDeviceNotFound) { subBuilder.MergeFrom(ReplaceDeviceNotFound); } input.ReadMessage(subBuilder); ReplaceDeviceNotFound = subBuilder; break; } case 26: { global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.CreateIndicatorsFail subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.CreateIndicatorsFail(); if (reasonCase_ == ReasonOneofCase.CreateIndicatorsFail) { subBuilder.MergeFrom(CreateIndicatorsFail); } input.ReadMessage(subBuilder); CreateIndicatorsFail = subBuilder; break; } case 34: { global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MultiLinkedMetricPoint subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MultiLinkedMetricPoint(); if (reasonCase_ == ReasonOneofCase.MultiLinkedMetricPoint) { subBuilder.MergeFrom(MultiLinkedMetricPoint); } input.ReadMessage(subBuilder); MultiLinkedMetricPoint = subBuilder; break; } case 42: { global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.WrongBuilding subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.WrongBuilding(); if (reasonCase_ == ReasonOneofCase.WrongBuilding) { subBuilder.MergeFrom(WrongBuilding); } input.ReadMessage(subBuilder); WrongBuilding = subBuilder; break; } case 50: { global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MetricPointNotFound subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Types.MetricPointNotFound(); if (reasonCase_ == ReasonOneofCase.MetricPointNotFound) { subBuilder.MergeFrom(MetricPointNotFound); } input.ReadMessage(subBuilder); MetricPointNotFound = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the Error message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Не найден заменяемый ПУ /// public sealed partial class ReplaceDeviceNotFound : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReplaceDeviceNotFound()); 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.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.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 ReplaceDeviceNotFound() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReplaceDeviceNotFound(ReplaceDeviceNotFound other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReplaceDeviceNotFound Clone() { return new ReplaceDeviceNotFound(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ReplaceDeviceNotFound); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ReplaceDeviceNotFound 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(ReplaceDeviceNotFound 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 CreateIndicatorsFail : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateIndicatorsFail()); 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.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.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 CreateIndicatorsFail() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateIndicatorsFail(CreateIndicatorsFail other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateIndicatorsFail Clone() { return new CreateIndicatorsFail(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CreateIndicatorsFail); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CreateIndicatorsFail 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(CreateIndicatorsFail 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 MultiLinkedMetricPoint : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MultiLinkedMetricPoint()); 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.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Descriptor.NestedTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MultiLinkedMetricPoint() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MultiLinkedMetricPoint(MultiLinkedMetricPoint other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MultiLinkedMetricPoint Clone() { return new MultiLinkedMetricPoint(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MultiLinkedMetricPoint); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MultiLinkedMetricPoint 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(MultiLinkedMetricPoint 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 WrongBuilding : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new WrongBuilding()); 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.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Descriptor.NestedTypes[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 WrongBuilding() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public WrongBuilding(WrongBuilding other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public WrongBuilding Clone() { return new WrongBuilding(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as WrongBuilding); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(WrongBuilding 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(WrongBuilding 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 MetricPointNotFound : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetricPointNotFound()); 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.TelemetryControl.V1.PostDeviceReplaceResponse.Types.Error.Descriptor.NestedTypes[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 MetricPointNotFound() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MetricPointNotFound(MetricPointNotFound other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MetricPointNotFound Clone() { return new MetricPointNotFound(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MetricPointNotFound); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MetricPointNotFound 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(MetricPointNotFound 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 } /// /// Событие изменения ПУ на сервера /// public sealed partial class PostDeviceFullDuplexResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceFullDuplexResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[31]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceFullDuplexResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceFullDuplexResponse(PostDeviceFullDuplexResponse other) : this() { requestId_ = other.requestId_; switch (other.EventCase) { case EventOneofCase.PostDevice: PostDevice = other.PostDevice.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceFullDuplexResponse Clone() { return new PostDeviceFullDuplexResponse(this); } /// Field number for the "request_id" field. public const int RequestIdFieldNumber = 1; private string requestId_ = ""; /// /// Идентификатор запроса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RequestId { get { return requestId_; } set { requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "post_device" field. public const int PostDeviceFieldNumber = 2; /// /// Измененние ПУ на сервере /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceResponse PostDevice { get { return eventCase_ == EventOneofCase.PostDevice ? (global::Keyapis.TelemetryControl.V1.PostDeviceResponse) event_ : null; } set { event_ = value; eventCase_ = value == null ? EventOneofCase.None : EventOneofCase.PostDevice; } } private object event_; /// Enum of possible cases for the "event" oneof. public enum EventOneofCase { None = 0, PostDevice = 2, } private EventOneofCase eventCase_ = EventOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EventOneofCase EventCase { get { return eventCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearEvent() { eventCase_ = EventOneofCase.None; event_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostDeviceFullDuplexResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceFullDuplexResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (!object.Equals(PostDevice, other.PostDevice)) return false; if (EventCase != other.EventCase) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (eventCase_ == EventOneofCase.PostDevice) hash ^= PostDevice.GetHashCode(); hash ^= (int) eventCase_; 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (eventCase_ == EventOneofCase.PostDevice) { output.WriteRawTag(18); output.WriteMessage(PostDevice); } 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (eventCase_ == EventOneofCase.PostDevice) { output.WriteRawTag(18); output.WriteMessage(PostDevice); } 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 (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (eventCase_ == EventOneofCase.PostDevice) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PostDevice); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceFullDuplexResponse other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } switch (other.EventCase) { case EventOneofCase.PostDevice: if (PostDevice == null) { PostDevice = new global::Keyapis.TelemetryControl.V1.PostDeviceResponse(); } PostDevice.MergeFrom(other.PostDevice); 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: { RequestId = input.ReadString(); break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceResponse subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceResponse(); if (eventCase_ == EventOneofCase.PostDevice) { subBuilder.MergeFrom(PostDevice); } input.ReadMessage(subBuilder); PostDevice = 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: { RequestId = input.ReadString(); break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceResponse subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceResponse(); if (eventCase_ == EventOneofCase.PostDevice) { subBuilder.MergeFrom(PostDevice); } input.ReadMessage(subBuilder); PostDevice = subBuilder; break; } } } } #endif } /// /// Ответ на изменение ПУ на сервере /// public sealed partial class PostDeviceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[32]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceResponse(PostDeviceResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceResponse Clone() { return new PostDeviceResponse(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.TelemetryControl.V1.Device Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryControl.V1.Device) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostDeviceResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.TelemetryControl.V1.PostDeviceResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } 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 PostDeviceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) 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(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryControl.V1.Device(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.TelemetryControl.V1.PostDeviceResponse.Types.Error(); } Error.MergeFrom(other.Error); 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.TelemetryControl.V1.Device subBuilder = new global::Keyapis.TelemetryControl.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = 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.TelemetryControl.V1.Device subBuilder = new global::Keyapis.TelemetryControl.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.PostDeviceResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.PostDeviceResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostDeviceResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса сохранения ПУ /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); 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.TelemetryControl.V1.PostDeviceResponse.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 Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device.Types.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.TelemetryControl.V1.Device.Types.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; 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 (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } 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 (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } 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 (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.TelemetryControl.V1.Device.Types.ValidationError(); } Validation.MergeFrom(other.Validation); 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.TelemetryControl.V1.Device.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.Device.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = 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.TelemetryControl.V1.Device.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.Device.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Индикатор /// public sealed partial class Indicator : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Indicator()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[33]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Indicator() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Indicator(Indicator other) : this() { id_ = other.id_; deviceId_ = other.deviceId_; title_ = other.title_; unitType_ = other.unitType_; signType_ = other.signType_; createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; changedAt_ = other.changedAt_ != null ? other.changedAt_.Clone() : null; isIndividual_ = other.isIndividual_; CompatibilityCode = other.CompatibilityCode; archiveType_ = other.archiveType_; presentationUnitType_ = other.presentationUnitType_; Coefficient = other.Coefficient; Shift = other.Shift; RoundDecimalDigits = other.RoundDecimalDigits; metricExpectedFreq_ = other.metricExpectedFreq_; ChannelNumber = other.ChannelNumber; ChannelOrder = other.ChannelOrder; vendorType_ = other.vendorType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Indicator Clone() { return new Indicator(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 "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; } } /// 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 "unit_type" field. public const int UnitTypeFieldNumber = 4; private global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType unitType_ = global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType.Unknown; /// /// Тип единицы измерения, в которой интерпретировано, получаемое измерение /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType UnitType { get { return unitType_; } set { unitType_ = value; } } /// Field number for the "sign_type" field. public const int SignTypeFieldNumber = 5; private global::Keyapis.TelemetryControl.V1.Indicator.Types.SignType signType_ = global::Keyapis.TelemetryControl.V1.Indicator.Types.SignType.Unknown; /// /// Тип измерения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Indicator.Types.SignType SignType { get { return signType_; } set { signType_ = value; } } /// Field number for the "created_at" field. public const int CreatedAtFieldNumber = 6; private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; /// /// Дата создания /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { get { return createdAt_; } set { createdAt_ = value; } } /// Field number for the "changed_at" field. public const int ChangedAtFieldNumber = 7; 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 "is_individual" field. public const int IsIndividualFieldNumber = 8; private bool isIndividual_; /// /// Флаг видимости индикатора для клиента /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsIndividual { get { return isIndividual_; } set { isIndividual_ = value; } } /// Field number for the "compatibility_code" field. public const int CompatibilityCodeFieldNumber = 9; private static readonly pb::FieldCodec _single_compatibilityCode_codec = pb::FieldCodec.ForClassWrapper(74); private string compatibilityCode_; /// /// Код для совместимости с поставщиком метрик /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CompatibilityCode { get { return compatibilityCode_; } set { compatibilityCode_ = value; } } /// Field number for the "archive_type" field. public const int ArchiveTypeFieldNumber = 10; private global::Keyapis.TelemetryControl.V1.Indicator.Types.ArchiveType archiveType_ = global::Keyapis.TelemetryControl.V1.Indicator.Types.ArchiveType.Unknown; /// /// Тип архивности показаний /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Indicator.Types.ArchiveType ArchiveType { get { return archiveType_; } set { archiveType_ = value; } } /// Field number for the "presentation_unit_type" field. public const int PresentationUnitTypeFieldNumber = 11; private global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType presentationUnitType_ = global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType.Unknown; /// /// Тип единицы измерения для отображения измерения. /// При UNIT_TYPE_UNKNOWN отображаемые единицы совпадают с единицами источников значений, преобразования единиц не происходит. /// Применяется после коэффициента /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType PresentationUnitType { get { return presentationUnitType_; } set { presentationUnitType_ = value; } } /// Field number for the "coefficient" field. public const int CoefficientFieldNumber = 12; private static readonly pb::FieldCodec _single_coefficient_codec = pb::FieldCodec.ForStructWrapper(98); private float? coefficient_; /// /// Коэффициент, на который умножается отображаемое значение. /// Применяется перед преобразованием единиц измерений к presentation_unit_type и после применения поправки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float? Coefficient { get { return coefficient_; } set { coefficient_ = value; } } /// Field number for the "shift" field. public const int ShiftFieldNumber = 13; private static readonly pb::FieldCodec _single_shift_codec = pb::FieldCodec.ForStructWrapper(106); private float? shift_; /// /// Величина поправки к отображаемому значению. /// Применяется перед применением коэффициента /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float? Shift { get { return shift_; } set { shift_ = value; } } /// Field number for the "round_decimal_digits" field. public const int RoundDecimalDigitsFieldNumber = 14; private static readonly pb::FieldCodec _single_roundDecimalDigits_codec = pb::FieldCodec.ForStructWrapper(114); private int? roundDecimalDigits_; /// /// Количество возвращаемых десятичных знаков при округлении итогового значения. /// При пустом параметре округления не происходит. /// Применяется после преобразования единиц измерения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? RoundDecimalDigits { get { return roundDecimalDigits_; } set { roundDecimalDigits_ = value; } } /// Field number for the "metric_expected_freq" field. public const int MetricExpectedFreqFieldNumber = 15; private int metricExpectedFreq_; /// /// Ожидаемая частота поступления показаний в днях /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int MetricExpectedFreq { get { return metricExpectedFreq_; } set { metricExpectedFreq_ = value; } } /// Field number for the "channel_number" field. public const int ChannelNumberFieldNumber = 16; private static readonly pb::FieldCodec _single_channelNumber_codec = pb::FieldCodec.ForClassWrapper(130); private string channelNumber_; /// /// Номер канала для многоканального ПУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ChannelNumber { get { return channelNumber_; } set { channelNumber_ = value; } } /// Field number for the "channel_order" field. public const int ChannelOrderFieldNumber = 17; private static readonly pb::FieldCodec _single_channelOrder_codec = pb::FieldCodec.ForStructWrapper(138); private int? channelOrder_; /// /// Порядковый номер канала для многоканального ПУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? ChannelOrder { get { return channelOrder_; } set { channelOrder_ = value; } } /// Field number for the "vendor_type" field. public const int VendorTypeFieldNumber = 18; private global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType vendorType_ = global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType.Unknown; /// /// Посредник получения показаний /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType VendorType { get { return vendorType_; } set { vendorType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Indicator); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Indicator other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (DeviceId != other.DeviceId) return false; if (Title != other.Title) return false; if (UnitType != other.UnitType) return false; if (SignType != other.SignType) return false; if (!object.Equals(CreatedAt, other.CreatedAt)) return false; if (!object.Equals(ChangedAt, other.ChangedAt)) return false; if (IsIndividual != other.IsIndividual) return false; if (CompatibilityCode != other.CompatibilityCode) return false; if (ArchiveType != other.ArchiveType) return false; if (PresentationUnitType != other.PresentationUnitType) return false; if (!pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.Equals(Coefficient, other.Coefficient)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.Equals(Shift, other.Shift)) return false; if (RoundDecimalDigits != other.RoundDecimalDigits) return false; if (MetricExpectedFreq != other.MetricExpectedFreq) return false; if (ChannelNumber != other.ChannelNumber) return false; if (ChannelOrder != other.ChannelOrder) return false; if (VendorType != other.VendorType) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (Title.Length != 0) hash ^= Title.GetHashCode(); if (UnitType != global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType.Unknown) hash ^= UnitType.GetHashCode(); if (SignType != global::Keyapis.TelemetryControl.V1.Indicator.Types.SignType.Unknown) hash ^= SignType.GetHashCode(); if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); if (changedAt_ != null) hash ^= ChangedAt.GetHashCode(); if (IsIndividual != false) hash ^= IsIndividual.GetHashCode(); if (compatibilityCode_ != null) hash ^= CompatibilityCode.GetHashCode(); if (ArchiveType != global::Keyapis.TelemetryControl.V1.Indicator.Types.ArchiveType.Unknown) hash ^= ArchiveType.GetHashCode(); if (PresentationUnitType != global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType.Unknown) hash ^= PresentationUnitType.GetHashCode(); if (coefficient_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.GetHashCode(Coefficient); if (shift_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.GetHashCode(Shift); if (roundDecimalDigits_ != null) hash ^= RoundDecimalDigits.GetHashCode(); if (MetricExpectedFreq != 0) hash ^= MetricExpectedFreq.GetHashCode(); if (channelNumber_ != null) hash ^= ChannelNumber.GetHashCode(); if (channelOrder_ != null) hash ^= ChannelOrder.GetHashCode(); if (VendorType != global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType.Unknown) hash ^= VendorType.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 (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (Title.Length != 0) { output.WriteRawTag(26); output.WriteString(Title); } if (UnitType != global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) UnitType); } if (SignType != global::Keyapis.TelemetryControl.V1.Indicator.Types.SignType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) SignType); } if (createdAt_ != null) { output.WriteRawTag(50); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(58); output.WriteMessage(ChangedAt); } if (IsIndividual != false) { output.WriteRawTag(64); output.WriteBool(IsIndividual); } if (compatibilityCode_ != null) { _single_compatibilityCode_codec.WriteTagAndValue(output, CompatibilityCode); } if (ArchiveType != global::Keyapis.TelemetryControl.V1.Indicator.Types.ArchiveType.Unknown) { output.WriteRawTag(80); output.WriteEnum((int) ArchiveType); } if (PresentationUnitType != global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType.Unknown) { output.WriteRawTag(88); output.WriteEnum((int) PresentationUnitType); } if (coefficient_ != null) { _single_coefficient_codec.WriteTagAndValue(output, Coefficient); } if (shift_ != null) { _single_shift_codec.WriteTagAndValue(output, Shift); } if (roundDecimalDigits_ != null) { _single_roundDecimalDigits_codec.WriteTagAndValue(output, RoundDecimalDigits); } if (MetricExpectedFreq != 0) { output.WriteRawTag(120); output.WriteInt32(MetricExpectedFreq); } if (channelNumber_ != null) { _single_channelNumber_codec.WriteTagAndValue(output, ChannelNumber); } if (channelOrder_ != null) { _single_channelOrder_codec.WriteTagAndValue(output, ChannelOrder); } if (VendorType != global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType.Unknown) { output.WriteRawTag(144, 1); output.WriteEnum((int) VendorType); } 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 (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (Title.Length != 0) { output.WriteRawTag(26); output.WriteString(Title); } if (UnitType != global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) UnitType); } if (SignType != global::Keyapis.TelemetryControl.V1.Indicator.Types.SignType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) SignType); } if (createdAt_ != null) { output.WriteRawTag(50); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(58); output.WriteMessage(ChangedAt); } if (IsIndividual != false) { output.WriteRawTag(64); output.WriteBool(IsIndividual); } if (compatibilityCode_ != null) { _single_compatibilityCode_codec.WriteTagAndValue(ref output, CompatibilityCode); } if (ArchiveType != global::Keyapis.TelemetryControl.V1.Indicator.Types.ArchiveType.Unknown) { output.WriteRawTag(80); output.WriteEnum((int) ArchiveType); } if (PresentationUnitType != global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType.Unknown) { output.WriteRawTag(88); output.WriteEnum((int) PresentationUnitType); } if (coefficient_ != null) { _single_coefficient_codec.WriteTagAndValue(ref output, Coefficient); } if (shift_ != null) { _single_shift_codec.WriteTagAndValue(ref output, Shift); } if (roundDecimalDigits_ != null) { _single_roundDecimalDigits_codec.WriteTagAndValue(ref output, RoundDecimalDigits); } if (MetricExpectedFreq != 0) { output.WriteRawTag(120); output.WriteInt32(MetricExpectedFreq); } if (channelNumber_ != null) { _single_channelNumber_codec.WriteTagAndValue(ref output, ChannelNumber); } if (channelOrder_ != null) { _single_channelOrder_codec.WriteTagAndValue(ref output, ChannelOrder); } if (VendorType != global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType.Unknown) { output.WriteRawTag(144, 1); output.WriteEnum((int) VendorType); } 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 (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (UnitType != global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) UnitType); } if (SignType != global::Keyapis.TelemetryControl.V1.Indicator.Types.SignType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SignType); } if (createdAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); } if (changedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedAt); } if (IsIndividual != false) { size += 1 + 1; } if (compatibilityCode_ != null) { size += _single_compatibilityCode_codec.CalculateSizeWithTag(CompatibilityCode); } if (ArchiveType != global::Keyapis.TelemetryControl.V1.Indicator.Types.ArchiveType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ArchiveType); } if (PresentationUnitType != global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PresentationUnitType); } if (coefficient_ != null) { size += _single_coefficient_codec.CalculateSizeWithTag(Coefficient); } if (shift_ != null) { size += _single_shift_codec.CalculateSizeWithTag(Shift); } if (roundDecimalDigits_ != null) { size += _single_roundDecimalDigits_codec.CalculateSizeWithTag(RoundDecimalDigits); } if (MetricExpectedFreq != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(MetricExpectedFreq); } if (channelNumber_ != null) { size += _single_channelNumber_codec.CalculateSizeWithTag(ChannelNumber); } if (channelOrder_ != null) { size += _single_channelOrder_codec.CalculateSizeWithTag(ChannelOrder); } if (VendorType != global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType.Unknown) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) VendorType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Indicator other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.Title.Length != 0) { Title = other.Title; } if (other.UnitType != global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType.Unknown) { UnitType = other.UnitType; } if (other.SignType != global::Keyapis.TelemetryControl.V1.Indicator.Types.SignType.Unknown) { SignType = other.SignType; } if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.changedAt_ != null) { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ChangedAt.MergeFrom(other.ChangedAt); } if (other.IsIndividual != false) { IsIndividual = other.IsIndividual; } if (other.compatibilityCode_ != null) { if (compatibilityCode_ == null || other.CompatibilityCode != "") { CompatibilityCode = other.CompatibilityCode; } } if (other.ArchiveType != global::Keyapis.TelemetryControl.V1.Indicator.Types.ArchiveType.Unknown) { ArchiveType = other.ArchiveType; } if (other.PresentationUnitType != global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType.Unknown) { PresentationUnitType = other.PresentationUnitType; } if (other.coefficient_ != null) { if (coefficient_ == null || other.Coefficient != 0F) { Coefficient = other.Coefficient; } } if (other.shift_ != null) { if (shift_ == null || other.Shift != 0F) { Shift = other.Shift; } } if (other.roundDecimalDigits_ != null) { if (roundDecimalDigits_ == null || other.RoundDecimalDigits != 0) { RoundDecimalDigits = other.RoundDecimalDigits; } } if (other.MetricExpectedFreq != 0) { MetricExpectedFreq = other.MetricExpectedFreq; } if (other.channelNumber_ != null) { if (channelNumber_ == null || other.ChannelNumber != "") { ChannelNumber = other.ChannelNumber; } } if (other.channelOrder_ != null) { if (channelOrder_ == null || other.ChannelOrder != 0) { ChannelOrder = other.ChannelOrder; } } if (other.VendorType != global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType.Unknown) { VendorType = other.VendorType; } _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 16: { DeviceId = input.ReadInt32(); break; } case 26: { Title = input.ReadString(); break; } case 32: { UnitType = (global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType) input.ReadEnum(); break; } case 40: { SignType = (global::Keyapis.TelemetryControl.V1.Indicator.Types.SignType) input.ReadEnum(); break; } case 50: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 58: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 64: { IsIndividual = input.ReadBool(); break; } case 74: { string value = _single_compatibilityCode_codec.Read(input); if (compatibilityCode_ == null || value != "") { CompatibilityCode = value; } break; } case 80: { ArchiveType = (global::Keyapis.TelemetryControl.V1.Indicator.Types.ArchiveType) input.ReadEnum(); break; } case 88: { PresentationUnitType = (global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType) input.ReadEnum(); break; } case 98: { float? value = _single_coefficient_codec.Read(input); if (coefficient_ == null || value != 0F) { Coefficient = value; } break; } case 106: { float? value = _single_shift_codec.Read(input); if (shift_ == null || value != 0F) { Shift = value; } break; } case 114: { int? value = _single_roundDecimalDigits_codec.Read(input); if (roundDecimalDigits_ == null || value != 0) { RoundDecimalDigits = value; } break; } case 120: { MetricExpectedFreq = input.ReadInt32(); break; } case 130: { string value = _single_channelNumber_codec.Read(input); if (channelNumber_ == null || value != "") { ChannelNumber = value; } break; } case 138: { int? value = _single_channelOrder_codec.Read(input); if (channelOrder_ == null || value != 0) { ChannelOrder = value; } break; } case 144: { VendorType = (global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType) 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 16: { DeviceId = input.ReadInt32(); break; } case 26: { Title = input.ReadString(); break; } case 32: { UnitType = (global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType) input.ReadEnum(); break; } case 40: { SignType = (global::Keyapis.TelemetryControl.V1.Indicator.Types.SignType) input.ReadEnum(); break; } case 50: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 58: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 64: { IsIndividual = input.ReadBool(); break; } case 74: { string value = _single_compatibilityCode_codec.Read(ref input); if (compatibilityCode_ == null || value != "") { CompatibilityCode = value; } break; } case 80: { ArchiveType = (global::Keyapis.TelemetryControl.V1.Indicator.Types.ArchiveType) input.ReadEnum(); break; } case 88: { PresentationUnitType = (global::Keyapis.TelemetryControl.V1.Indicator.Types.UnitType) input.ReadEnum(); break; } case 98: { float? value = _single_coefficient_codec.Read(ref input); if (coefficient_ == null || value != 0F) { Coefficient = value; } break; } case 106: { float? value = _single_shift_codec.Read(ref input); if (shift_ == null || value != 0F) { Shift = value; } break; } case 114: { int? value = _single_roundDecimalDigits_codec.Read(ref input); if (roundDecimalDigits_ == null || value != 0) { RoundDecimalDigits = value; } break; } case 120: { MetricExpectedFreq = input.ReadInt32(); break; } case 130: { string value = _single_channelNumber_codec.Read(ref input); if (channelNumber_ == null || value != "") { ChannelNumber = value; } break; } case 138: { int? value = _single_channelOrder_codec.Read(ref input); if (channelOrder_ == null || value != 0) { ChannelOrder = value; } break; } case 144: { VendorType = (global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType) input.ReadEnum(); break; } } } } #endif #region Nested types /// Container for nested types declared in the Indicator message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Посредники получения показаний /// public enum VendorType { /// /// Значение не указано /// [pbr::OriginalName("VENDOR_TYPE_UNKNOWN")] Unknown = 0, /// /// Энвайро /// [pbr::OriginalName("ENVIRO")] Enviro = 1, /// /// Лартех /// [pbr::OriginalName("LARTECH")] Lartech = 2, /// /// РТК /// [pbr::OriginalName("RTK")] Rtk = 3, } /// /// Справочник типов единиц измерений /// public enum UnitType { /// /// Значение не указано /// [pbr::OriginalName("UNIT_TYPE_UNKNOWN")] Unknown = 0, /// /// Процент /// [pbr::OriginalName("PERCENT")] Percent = 1, /// /// Градус по Цельсию /// [pbr::OriginalName("C")] C = 2, /// /// Ватт /// [pbr::OriginalName("WT")] Wt = 3, /// /// Гигакалория /// [pbr::OriginalName("GKAL")] Gkal = 4, /// /// Количество /// [pbr::OriginalName("VALUE")] Value = 5, /// /// Киловaтт-час /// [pbr::OriginalName("KWH")] Kwh = 6, /// /// Килограмм на квадратный сантиметр /// [pbr::OriginalName("KG_CM2")] KgCm2 = 7, /// /// Килограмм-сила на квадратный сантиметр /// [pbr::OriginalName("KGF_CM2")] KgfCm2 = 8, /// /// Кубический метр /// [pbr::OriginalName("M3")] M3 = 9, /// /// Кубический метр в час /// [pbr::OriginalName("M3_H")] M3H = 10, /// /// Мегапаскаль /// [pbr::OriginalName("MPA")] Mpa = 11, /// /// Миллисекунда /// [pbr::OriginalName("MS")] Ms = 12, /// /// Флаг состояния /// [pbr::OriginalName("BOOLEAN")] Boolean = 13, /// /// Тонна /// [pbr::OriginalName("T")] T = 14, /// /// Тонна в час /// [pbr::OriginalName("T_H")] TH = 15, /// /// Час /// [pbr::OriginalName("H")] H = 16, /// /// Безразмерная величина /// [pbr::OriginalName("NON_MEASURABLE")] NonMeasurable = 17, /// /// Импульс /// [pbr::OriginalName("IMP")] Imp = 18, /// /// Джоуль /// [pbr::OriginalName("J")] J = 19, /// /// Килоджоуль /// [pbr::OriginalName("KJ")] Kj = 20, /// /// Гигаджоуль /// [pbr::OriginalName("GJ")] Gj = 21, /// /// Ватт-час /// [pbr::OriginalName("WTH")] Wth = 22, /// /// Киловатт /// [pbr::OriginalName("KWT")] Kwt = 23, /// /// Минута /// [pbr::OriginalName("MIN")] Min = 24, /// /// Секунда /// [pbr::OriginalName("S")] S = 25, } /// /// Справочник типов измерений /// public enum SignType { /// /// Значение не указано /// [pbr::OriginalName("SIGN_TYPE_UNKNOWN")] Unknown = 0, /// /// Абсолютный показатель /// [pbr::OriginalName("ABSOLUTE_DS")] AbsoluteDs = 1, /// /// Абсолютный расход ресурса /// [pbr::OriginalName("ABSOLUTE_RC")] AbsoluteRc = 2, /// /// Интервальный показатель состояния /// [pbr::OriginalName("INTERVAL_DS")] IntervalDs = 3, /// /// Интервальный расход ресурса /// [pbr::OriginalName("INTERVAL_RC")] IntervalRc = 4, /// /// Текущее состояние /// [pbr::OriginalName("CURRENT_DS")] CurrentDs = 5, /// /// Текущее состояние ресурса /// [pbr::OriginalName("CURRENT_RS")] CurrentRs = 6, /// /// Объём /// [pbr::OriginalName("VOLUME")] Volume = 7, /// /// Параметр конфигурации /// [pbr::OriginalName("PARAMETER")] Parameter = 8, /// /// Флаг состояния /// [pbr::OriginalName("FLAG")] Flag = 9, } /// /// Справочник типа архивности показаний. /// Используется для указания за какой период произошло измерение. /// По умолчанию CURRENT /// public enum ArchiveType { /// /// Значение не указано /// [pbr::OriginalName("ARCHIVE_TYPE_UNKNOWN")] Unknown = 0, /// /// Текущие показания /// [pbr::OriginalName("CURRENT")] Current = 1, /// /// За 30 мин /// [pbr::OriginalName("HALFHOUR")] Halfhour = 2, /// /// За час /// [pbr::OriginalName("HOUR")] Hour = 3, /// /// За сутки /// [pbr::OriginalName("DAY")] Day = 4, /// /// За месяц /// [pbr::OriginalName("MONTH")] Month = 5, /// /// За год /// [pbr::OriginalName("YEAR")] Year = 6, } /// /// Ошибки валидации. /// Эти проверки выполняются до обращения в базу данных /// public sealed partial class ValidationError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidationError()); 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.TelemetryControl.V1.Indicator.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 ValidationError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError(ValidationError other) : this() { path_ = other.path_; message_ = other.message_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError Clone() { return new ValidationError(this); } /// Field number for the "path" field. public const int PathFieldNumber = 1; private string path_ = ""; /// /// Путь к полю в формате наименования protobuf /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "message" field. public const int MessageFieldNumber = 2; private string message_ = ""; /// /// Валидационное сообщение /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { get { return message_; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ValidationError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ValidationError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Path != other.Path) return false; if (Message != other.Message) 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 (Path.Length != 0) hash ^= Path.GetHashCode(); if (Message.Length != 0) hash ^= Message.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 (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } 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 (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } 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 (Path.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); } if (Message.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ValidationError other) { if (other == null) { return; } if (other.Path.Length != 0) { Path = other.Path; } if (other.Message.Length != 0) { Message = other.Message; } _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: { Path = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Path = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Прибор учёта /// public sealed partial class Device : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Device()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[34]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Device() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Device(Device other) : this() { id_ = other.id_; indicators_ = other.indicators_.Clone(); metricPoint_ = other.metricPoint_ != null ? other.metricPoint_.Clone() : null; createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; changedAt_ = other.changedAt_ != null ? other.changedAt_.Clone() : null; type_ = other.type_; serialNumber_ = other.serialNumber_; model_ = other.model_; year_ = other.year_; fiasId_ = other.fiasId_; resourceOwnerId_ = other.resourceOwnerId_; statusType_ = other.statusType_; installedAt_ = other.installedAt_ != null ? other.installedAt_.Clone() : null; removedAt_ = other.removedAt_ != null ? other.removedAt_.Clone() : null; checkAt_ = other.checkAt_ != null ? other.checkAt_.Clone() : null; nextCheckAt_ = other.nextCheckAt_ != null ? other.nextCheckAt_.Clone() : null; ExternalId = other.ExternalId; planType_ = other.planType_; ParentId = other.ParentId; pipeType_ = other.pipeType_; DevEui = other.DevEui; Mac = other.Mac; Port = other.Port; NetworkAddress = other.NetworkAddress; CommChannel = other.CommChannel; SimNumber = other.SimNumber; SimSerial = other.SimSerial; IpAddressSim = other.IpAddressSim; Placement = other.Placement; InstallationPlace = other.InstallationPlace; Appkey = other.Appkey; Appeui = other.Appeui; ProtocolTypeLabel = other.ProtocolTypeLabel; ChannelNumber = other.ChannelNumber; WireInterface = other.WireInterface; buildingId_ = other.buildingId_; ManufactureYear = other.ManufactureYear; indicatorVendorType_ = other.indicatorVendorType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Device Clone() { return new Device(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 "indicators" field. public const int IndicatorsFieldNumber = 2; private static readonly pb::FieldCodec _repeated_indicators_codec = pb::FieldCodec.ForMessage(18, global::Keyapis.TelemetryControl.V1.Indicator.Parser); private readonly pbc::RepeatedField indicators_ = new pbc::RepeatedField(); /// /// Индикаторы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Indicators { get { return indicators_; } } /// Field number for the "metric_point" field. public const int MetricPointFieldNumber = 3; private global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint metricPoint_; /// /// Точка учета /// [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint MetricPoint { get { return metricPoint_; } set { metricPoint_ = value; } } /// Field number for the "created_at" field. public const int CreatedAtFieldNumber = 4; private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; /// /// Дата создания /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { get { return createdAt_; } set { createdAt_ = value; } } /// Field number for the "changed_at" field. public const int ChangedAtFieldNumber = 5; 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 "type" field. public const int TypeFieldNumber = 6; private global::Keyapis.TelemetryControl.V1.Device.Types.Type type_ = global::Keyapis.TelemetryControl.V1.Device.Types.Type.Unknown; /// /// Тип прибора учёта(ПУ) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device.Types.Type Type { get { return type_; } set { type_ = value; } } /// Field number for the "serial_number" field. public const int SerialNumberFieldNumber = 7; private string serialNumber_ = ""; /// /// Серийный номер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SerialNumber { get { return serialNumber_; } set { serialNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "model" field. public const int ModelFieldNumber = 8; private string model_ = ""; /// /// Производитель и модель счетчика /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Model { get { return model_; } set { model_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "year" field. public const int YearFieldNumber = 9; private int year_; /// /// Год выпуска счётчика /// [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Year { get { return year_; } set { year_ = value; } } /// Field number for the "fias_id" field. public const int FiasIdFieldNumber = 10; private string fiasId_ = ""; /// /// Идентификатор строения ФИАС /// [global::System.ObsoleteAttribute] [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 "resource_owner_id" field. public const int ResourceOwnerIdFieldNumber = 11; private string resourceOwnerId_ = ""; /// /// Идентификатор владельца. /// Заполняется сервером /// [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ResourceOwnerId { get { return resourceOwnerId_; } set { resourceOwnerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 12; private global::Keyapis.TelemetryControl.V1.Device.Types.StatusType statusType_ = global::Keyapis.TelemetryControl.V1.Device.Types.StatusType.Unknown; /// /// Тип статуса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } /// Field number for the "installed_at" field. public const int InstalledAtFieldNumber = 13; private global::Google.Protobuf.WellKnownTypes.Timestamp installedAt_; /// /// Дата установки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp InstalledAt { get { return installedAt_; } set { installedAt_ = value; } } /// Field number for the "removed_at" field. public const int RemovedAtFieldNumber = 14; private global::Google.Protobuf.WellKnownTypes.Timestamp removedAt_; /// /// Дата удаления /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp RemovedAt { get { return removedAt_; } set { removedAt_ = value; } } /// Field number for the "check_at" field. public const int CheckAtFieldNumber = 15; private global::Google.Protobuf.WellKnownTypes.Timestamp checkAt_; /// /// Дата предыдущей поверки счетчика /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CheckAt { get { return checkAt_; } set { checkAt_ = value; } } /// Field number for the "next_check_at" field. public const int NextCheckAtFieldNumber = 16; private global::Google.Protobuf.WellKnownTypes.Timestamp nextCheckAt_; /// /// Дата следующей поверки счетчика /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp NextCheckAt { get { return nextCheckAt_; } set { nextCheckAt_ = value; } } /// Field number for the "external_id" field. public const int ExternalIdFieldNumber = 17; private static readonly pb::FieldCodec _single_externalId_codec = pb::FieldCodec.ForClassWrapper(138); private string externalId_; /// /// Внешний дентификатор прибора учёта(ПУ) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ExternalId { get { return externalId_; } set { externalId_ = value; } } /// Field number for the "plan_type" field. public const int PlanTypeFieldNumber = 18; private global::Keyapis.TelemetryControl.V1.Device.Types.PlanType planType_ = global::Keyapis.TelemetryControl.V1.Device.Types.PlanType.Unknown; /// /// Тип тарифного плана /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device.Types.PlanType PlanType { get { return planType_; } set { planType_ = value; } } /// Field number for the "parent_id" field. public const int ParentIdFieldNumber = 19; private static readonly pb::FieldCodec _single_parentId_codec = pb::FieldCodec.ForStructWrapper(154); private int? parentId_; /// /// Идентификатор хаба /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? ParentId { get { return parentId_; } set { parentId_ = value; } } /// Field number for the "pipe_type" field. public const int PipeTypeFieldNumber = 20; private global::Keyapis.TelemetryControl.V1.Device.Types.PipeType pipeType_ = global::Keyapis.TelemetryControl.V1.Device.Types.PipeType.Unknown; /// /// Тип трубопровода /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device.Types.PipeType PipeType { get { return pipeType_; } set { pipeType_ = value; } } /// Field number for the "dev_eui" field. public const int DevEuiFieldNumber = 21; private static readonly pb::FieldCodec _single_devEui_codec = pb::FieldCodec.ForClassWrapper(170); private string devEui_; /// /// Идентификатор модуля LoraWan /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DevEui { get { return devEui_; } set { devEui_ = value; } } /// Field number for the "mac" field. public const int MacFieldNumber = 22; private static readonly pb::FieldCodec _single_mac_codec = pb::FieldCodec.ForClassWrapper(178); private string mac_; /// /// MAC-адрес /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Mac { get { return mac_; } set { mac_ = value; } } /// Field number for the "port" field. public const int PortFieldNumber = 23; private static readonly pb::FieldCodec _single_port_codec = pb::FieldCodec.ForStructWrapper(186); private int? port_; /// /// Номер порта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? Port { get { return port_; } set { port_ = value; } } /// Field number for the "network_address" field. public const int NetworkAddressFieldNumber = 24; private static readonly pb::FieldCodec _single_networkAddress_codec = pb::FieldCodec.ForClassWrapper(194); private string networkAddress_; /// /// Сетевой адрес /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string NetworkAddress { get { return networkAddress_; } set { networkAddress_ = value; } } /// Field number for the "comm_channel" field. public const int CommChannelFieldNumber = 25; private static readonly pb::FieldCodec _single_commChannel_codec = pb::FieldCodec.ForClassWrapper(202); private string commChannel_; /// /// Канал связи. /// Для станции LoraWan /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CommChannel { get { return commChannel_; } set { commChannel_ = value; } } /// Field number for the "sim_number" field. public const int SimNumberFieldNumber = 26; private static readonly pb::FieldCodec _single_simNumber_codec = pb::FieldCodec.ForClassWrapper(210); private string simNumber_; /// /// MSISDN SIM-карты. /// Номер телефона /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SimNumber { get { return simNumber_; } set { simNumber_ = value; } } /// Field number for the "sim_serial" field. public const int SimSerialFieldNumber = 27; private static readonly pb::FieldCodec _single_simSerial_codec = pb::FieldCodec.ForClassWrapper(218); private string simSerial_; /// /// Серийный номер SIM-карты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SimSerial { get { return simSerial_; } set { simSerial_ = value; } } /// Field number for the "ip_address_sim" field. public const int IpAddressSimFieldNumber = 28; private static readonly pb::FieldCodec _single_ipAddressSim_codec = pb::FieldCodec.ForClassWrapper(226); private string ipAddressSim_; /// /// IP адрес SIM-карты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string IpAddressSim { get { return ipAddressSim_; } set { ipAddressSim_ = value; } } /// Field number for the "placement" field. public const int PlacementFieldNumber = 29; private static readonly pb::FieldCodec _single_placement_codec = pb::FieldCodec.ForClassWrapper(234); private string placement_; /// /// Размещение /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Placement { get { return placement_; } set { placement_ = value; } } /// Field number for the "installation_place" field. public const int InstallationPlaceFieldNumber = 30; private static readonly pb::FieldCodec _single_installationPlace_codec = pb::FieldCodec.ForClassWrapper(242); private string installationPlace_; /// /// Место установки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string InstallationPlace { get { return installationPlace_; } set { installationPlace_ = value; } } /// Field number for the "appkey" field. public const int AppkeyFieldNumber = 31; private static readonly pb::FieldCodec _single_appkey_codec = pb::FieldCodec.ForClassWrapper(250); private string appkey_; /// /// Kлюч приложения. /// Используется в процессе присоединения к сети для получения сессионных ключей NwkSKey и AppSKey для LoRaWAN [128 бит] /// [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Appkey { get { return appkey_; } set { appkey_ = value; } } /// Field number for the "appeui" field. public const int AppeuiFieldNumber = 32; private static readonly pb::FieldCodec _single_appeui_codec = pb::FieldCodec.ForClassWrapper(258); private string appeui_; /// /// Идентификатор приложения. /// Для LoRaWAN [64 бита] /// [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Appeui { get { return appeui_; } set { appeui_ = value; } } /// Field number for the "protocol_type_label" field. public const int ProtocolTypeLabelFieldNumber = 33; private static readonly pb::FieldCodec _single_protocolTypeLabel_codec = pb::FieldCodec.ForClassWrapper(266); private string protocolTypeLabel_; /// /// Тип протокола /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ProtocolTypeLabel { get { return protocolTypeLabel_; } set { protocolTypeLabel_ = value; } } /// Field number for the "channel_number" field. public const int ChannelNumberFieldNumber = 34; private static readonly pb::FieldCodec _single_channelNumber_codec = pb::FieldCodec.ForStructWrapper(274); private int? channelNumber_; /// /// Номер канала для многоканального ПУ /// [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? ChannelNumber { get { return channelNumber_; } set { channelNumber_ = value; } } /// Field number for the "wire_interface" field. public const int WireInterfaceFieldNumber = 35; private static readonly pb::FieldCodec _single_wireInterface_codec = pb::FieldCodec.ForClassWrapper(282); private string wireInterface_; /// /// Тип проводного интерфейса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string WireInterface { get { return wireInterface_; } set { wireInterface_ = value; } } /// Field number for the "building_id" field. public const int BuildingIdFieldNumber = 36; private int buildingId_; /// /// Идентификатор объекта строительства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int BuildingId { get { return buildingId_; } set { buildingId_ = value; } } /// Field number for the "manufacture_year" field. public const int ManufactureYearFieldNumber = 37; private static readonly pb::FieldCodec _single_manufactureYear_codec = pb::FieldCodec.ForStructWrapper(298); private int? manufactureYear_; /// /// Год выпуска счётчика /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? ManufactureYear { get { return manufactureYear_; } set { manufactureYear_ = value; } } /// Field number for the "indicator_vendor_type" field. public const int IndicatorVendorTypeFieldNumber = 38; private global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType indicatorVendorType_ = global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType.Unknown; /// /// Посредник получения показаний /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType IndicatorVendorType { get { return indicatorVendorType_; } set { indicatorVendorType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Device); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Device other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if(!indicators_.Equals(other.indicators_)) return false; if (!object.Equals(MetricPoint, other.MetricPoint)) return false; if (!object.Equals(CreatedAt, other.CreatedAt)) return false; if (!object.Equals(ChangedAt, other.ChangedAt)) return false; if (Type != other.Type) return false; if (SerialNumber != other.SerialNumber) return false; if (Model != other.Model) return false; if (Year != other.Year) return false; if (FiasId != other.FiasId) return false; if (ResourceOwnerId != other.ResourceOwnerId) return false; if (StatusType != other.StatusType) return false; if (!object.Equals(InstalledAt, other.InstalledAt)) return false; if (!object.Equals(RemovedAt, other.RemovedAt)) return false; if (!object.Equals(CheckAt, other.CheckAt)) return false; if (!object.Equals(NextCheckAt, other.NextCheckAt)) return false; if (ExternalId != other.ExternalId) return false; if (PlanType != other.PlanType) return false; if (ParentId != other.ParentId) return false; if (PipeType != other.PipeType) return false; if (DevEui != other.DevEui) return false; if (Mac != other.Mac) return false; if (Port != other.Port) return false; if (NetworkAddress != other.NetworkAddress) return false; if (CommChannel != other.CommChannel) return false; if (SimNumber != other.SimNumber) return false; if (SimSerial != other.SimSerial) return false; if (IpAddressSim != other.IpAddressSim) return false; if (Placement != other.Placement) return false; if (InstallationPlace != other.InstallationPlace) return false; if (Appkey != other.Appkey) return false; if (Appeui != other.Appeui) return false; if (ProtocolTypeLabel != other.ProtocolTypeLabel) return false; if (ChannelNumber != other.ChannelNumber) return false; if (WireInterface != other.WireInterface) return false; if (BuildingId != other.BuildingId) return false; if (ManufactureYear != other.ManufactureYear) return false; if (IndicatorVendorType != other.IndicatorVendorType) 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(); hash ^= indicators_.GetHashCode(); if (metricPoint_ != null) hash ^= MetricPoint.GetHashCode(); if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); if (changedAt_ != null) hash ^= ChangedAt.GetHashCode(); if (Type != global::Keyapis.TelemetryControl.V1.Device.Types.Type.Unknown) hash ^= Type.GetHashCode(); if (SerialNumber.Length != 0) hash ^= SerialNumber.GetHashCode(); if (Model.Length != 0) hash ^= Model.GetHashCode(); if (Year != 0) hash ^= Year.GetHashCode(); if (FiasId.Length != 0) hash ^= FiasId.GetHashCode(); if (ResourceOwnerId.Length != 0) hash ^= ResourceOwnerId.GetHashCode(); if (StatusType != global::Keyapis.TelemetryControl.V1.Device.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); if (installedAt_ != null) hash ^= InstalledAt.GetHashCode(); if (removedAt_ != null) hash ^= RemovedAt.GetHashCode(); if (checkAt_ != null) hash ^= CheckAt.GetHashCode(); if (nextCheckAt_ != null) hash ^= NextCheckAt.GetHashCode(); if (externalId_ != null) hash ^= ExternalId.GetHashCode(); if (PlanType != global::Keyapis.TelemetryControl.V1.Device.Types.PlanType.Unknown) hash ^= PlanType.GetHashCode(); if (parentId_ != null) hash ^= ParentId.GetHashCode(); if (PipeType != global::Keyapis.TelemetryControl.V1.Device.Types.PipeType.Unknown) hash ^= PipeType.GetHashCode(); if (devEui_ != null) hash ^= DevEui.GetHashCode(); if (mac_ != null) hash ^= Mac.GetHashCode(); if (port_ != null) hash ^= Port.GetHashCode(); if (networkAddress_ != null) hash ^= NetworkAddress.GetHashCode(); if (commChannel_ != null) hash ^= CommChannel.GetHashCode(); if (simNumber_ != null) hash ^= SimNumber.GetHashCode(); if (simSerial_ != null) hash ^= SimSerial.GetHashCode(); if (ipAddressSim_ != null) hash ^= IpAddressSim.GetHashCode(); if (placement_ != null) hash ^= Placement.GetHashCode(); if (installationPlace_ != null) hash ^= InstallationPlace.GetHashCode(); if (appkey_ != null) hash ^= Appkey.GetHashCode(); if (appeui_ != null) hash ^= Appeui.GetHashCode(); if (protocolTypeLabel_ != null) hash ^= ProtocolTypeLabel.GetHashCode(); if (channelNumber_ != null) hash ^= ChannelNumber.GetHashCode(); if (wireInterface_ != null) hash ^= WireInterface.GetHashCode(); if (BuildingId != 0) hash ^= BuildingId.GetHashCode(); if (manufactureYear_ != null) hash ^= ManufactureYear.GetHashCode(); if (IndicatorVendorType != global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType.Unknown) hash ^= IndicatorVendorType.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); } indicators_.WriteTo(output, _repeated_indicators_codec); if (metricPoint_ != null) { output.WriteRawTag(26); output.WriteMessage(MetricPoint); } if (createdAt_ != null) { output.WriteRawTag(34); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(42); output.WriteMessage(ChangedAt); } if (Type != global::Keyapis.TelemetryControl.V1.Device.Types.Type.Unknown) { output.WriteRawTag(48); output.WriteEnum((int) Type); } if (SerialNumber.Length != 0) { output.WriteRawTag(58); output.WriteString(SerialNumber); } if (Model.Length != 0) { output.WriteRawTag(66); output.WriteString(Model); } if (Year != 0) { output.WriteRawTag(72); output.WriteInt32(Year); } if (FiasId.Length != 0) { output.WriteRawTag(82); output.WriteString(FiasId); } if (ResourceOwnerId.Length != 0) { output.WriteRawTag(90); output.WriteString(ResourceOwnerId); } if (StatusType != global::Keyapis.TelemetryControl.V1.Device.Types.StatusType.Unknown) { output.WriteRawTag(96); output.WriteEnum((int) StatusType); } if (installedAt_ != null) { output.WriteRawTag(106); output.WriteMessage(InstalledAt); } if (removedAt_ != null) { output.WriteRawTag(114); output.WriteMessage(RemovedAt); } if (checkAt_ != null) { output.WriteRawTag(122); output.WriteMessage(CheckAt); } if (nextCheckAt_ != null) { output.WriteRawTag(130, 1); output.WriteMessage(NextCheckAt); } if (externalId_ != null) { _single_externalId_codec.WriteTagAndValue(output, ExternalId); } if (PlanType != global::Keyapis.TelemetryControl.V1.Device.Types.PlanType.Unknown) { output.WriteRawTag(144, 1); output.WriteEnum((int) PlanType); } if (parentId_ != null) { _single_parentId_codec.WriteTagAndValue(output, ParentId); } if (PipeType != global::Keyapis.TelemetryControl.V1.Device.Types.PipeType.Unknown) { output.WriteRawTag(160, 1); output.WriteEnum((int) PipeType); } if (devEui_ != null) { _single_devEui_codec.WriteTagAndValue(output, DevEui); } if (mac_ != null) { _single_mac_codec.WriteTagAndValue(output, Mac); } if (port_ != null) { _single_port_codec.WriteTagAndValue(output, Port); } if (networkAddress_ != null) { _single_networkAddress_codec.WriteTagAndValue(output, NetworkAddress); } if (commChannel_ != null) { _single_commChannel_codec.WriteTagAndValue(output, CommChannel); } if (simNumber_ != null) { _single_simNumber_codec.WriteTagAndValue(output, SimNumber); } if (simSerial_ != null) { _single_simSerial_codec.WriteTagAndValue(output, SimSerial); } if (ipAddressSim_ != null) { _single_ipAddressSim_codec.WriteTagAndValue(output, IpAddressSim); } if (placement_ != null) { _single_placement_codec.WriteTagAndValue(output, Placement); } if (installationPlace_ != null) { _single_installationPlace_codec.WriteTagAndValue(output, InstallationPlace); } if (appkey_ != null) { _single_appkey_codec.WriteTagAndValue(output, Appkey); } if (appeui_ != null) { _single_appeui_codec.WriteTagAndValue(output, Appeui); } if (protocolTypeLabel_ != null) { _single_protocolTypeLabel_codec.WriteTagAndValue(output, ProtocolTypeLabel); } if (channelNumber_ != null) { _single_channelNumber_codec.WriteTagAndValue(output, ChannelNumber); } if (wireInterface_ != null) { _single_wireInterface_codec.WriteTagAndValue(output, WireInterface); } if (BuildingId != 0) { output.WriteRawTag(160, 2); output.WriteInt32(BuildingId); } if (manufactureYear_ != null) { _single_manufactureYear_codec.WriteTagAndValue(output, ManufactureYear); } if (IndicatorVendorType != global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType.Unknown) { output.WriteRawTag(176, 2); output.WriteEnum((int) IndicatorVendorType); } 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); } indicators_.WriteTo(ref output, _repeated_indicators_codec); if (metricPoint_ != null) { output.WriteRawTag(26); output.WriteMessage(MetricPoint); } if (createdAt_ != null) { output.WriteRawTag(34); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(42); output.WriteMessage(ChangedAt); } if (Type != global::Keyapis.TelemetryControl.V1.Device.Types.Type.Unknown) { output.WriteRawTag(48); output.WriteEnum((int) Type); } if (SerialNumber.Length != 0) { output.WriteRawTag(58); output.WriteString(SerialNumber); } if (Model.Length != 0) { output.WriteRawTag(66); output.WriteString(Model); } if (Year != 0) { output.WriteRawTag(72); output.WriteInt32(Year); } if (FiasId.Length != 0) { output.WriteRawTag(82); output.WriteString(FiasId); } if (ResourceOwnerId.Length != 0) { output.WriteRawTag(90); output.WriteString(ResourceOwnerId); } if (StatusType != global::Keyapis.TelemetryControl.V1.Device.Types.StatusType.Unknown) { output.WriteRawTag(96); output.WriteEnum((int) StatusType); } if (installedAt_ != null) { output.WriteRawTag(106); output.WriteMessage(InstalledAt); } if (removedAt_ != null) { output.WriteRawTag(114); output.WriteMessage(RemovedAt); } if (checkAt_ != null) { output.WriteRawTag(122); output.WriteMessage(CheckAt); } if (nextCheckAt_ != null) { output.WriteRawTag(130, 1); output.WriteMessage(NextCheckAt); } if (externalId_ != null) { _single_externalId_codec.WriteTagAndValue(ref output, ExternalId); } if (PlanType != global::Keyapis.TelemetryControl.V1.Device.Types.PlanType.Unknown) { output.WriteRawTag(144, 1); output.WriteEnum((int) PlanType); } if (parentId_ != null) { _single_parentId_codec.WriteTagAndValue(ref output, ParentId); } if (PipeType != global::Keyapis.TelemetryControl.V1.Device.Types.PipeType.Unknown) { output.WriteRawTag(160, 1); output.WriteEnum((int) PipeType); } if (devEui_ != null) { _single_devEui_codec.WriteTagAndValue(ref output, DevEui); } if (mac_ != null) { _single_mac_codec.WriteTagAndValue(ref output, Mac); } if (port_ != null) { _single_port_codec.WriteTagAndValue(ref output, Port); } if (networkAddress_ != null) { _single_networkAddress_codec.WriteTagAndValue(ref output, NetworkAddress); } if (commChannel_ != null) { _single_commChannel_codec.WriteTagAndValue(ref output, CommChannel); } if (simNumber_ != null) { _single_simNumber_codec.WriteTagAndValue(ref output, SimNumber); } if (simSerial_ != null) { _single_simSerial_codec.WriteTagAndValue(ref output, SimSerial); } if (ipAddressSim_ != null) { _single_ipAddressSim_codec.WriteTagAndValue(ref output, IpAddressSim); } if (placement_ != null) { _single_placement_codec.WriteTagAndValue(ref output, Placement); } if (installationPlace_ != null) { _single_installationPlace_codec.WriteTagAndValue(ref output, InstallationPlace); } if (appkey_ != null) { _single_appkey_codec.WriteTagAndValue(ref output, Appkey); } if (appeui_ != null) { _single_appeui_codec.WriteTagAndValue(ref output, Appeui); } if (protocolTypeLabel_ != null) { _single_protocolTypeLabel_codec.WriteTagAndValue(ref output, ProtocolTypeLabel); } if (channelNumber_ != null) { _single_channelNumber_codec.WriteTagAndValue(ref output, ChannelNumber); } if (wireInterface_ != null) { _single_wireInterface_codec.WriteTagAndValue(ref output, WireInterface); } if (BuildingId != 0) { output.WriteRawTag(160, 2); output.WriteInt32(BuildingId); } if (manufactureYear_ != null) { _single_manufactureYear_codec.WriteTagAndValue(ref output, ManufactureYear); } if (IndicatorVendorType != global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType.Unknown) { output.WriteRawTag(176, 2); output.WriteEnum((int) IndicatorVendorType); } 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); } size += indicators_.CalculateSize(_repeated_indicators_codec); if (metricPoint_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(MetricPoint); } if (createdAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); } if (changedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedAt); } if (Type != global::Keyapis.TelemetryControl.V1.Device.Types.Type.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (SerialNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SerialNumber); } if (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (Year != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Year); } if (FiasId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FiasId); } if (ResourceOwnerId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ResourceOwnerId); } if (StatusType != global::Keyapis.TelemetryControl.V1.Device.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } if (installedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(InstalledAt); } if (removedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemovedAt); } if (checkAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CheckAt); } if (nextCheckAt_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(NextCheckAt); } if (externalId_ != null) { size += _single_externalId_codec.CalculateSizeWithTag(ExternalId); } if (PlanType != global::Keyapis.TelemetryControl.V1.Device.Types.PlanType.Unknown) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) PlanType); } if (parentId_ != null) { size += _single_parentId_codec.CalculateSizeWithTag(ParentId); } if (PipeType != global::Keyapis.TelemetryControl.V1.Device.Types.PipeType.Unknown) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) PipeType); } if (devEui_ != null) { size += _single_devEui_codec.CalculateSizeWithTag(DevEui); } if (mac_ != null) { size += _single_mac_codec.CalculateSizeWithTag(Mac); } if (port_ != null) { size += _single_port_codec.CalculateSizeWithTag(Port); } if (networkAddress_ != null) { size += _single_networkAddress_codec.CalculateSizeWithTag(NetworkAddress); } if (commChannel_ != null) { size += _single_commChannel_codec.CalculateSizeWithTag(CommChannel); } if (simNumber_ != null) { size += _single_simNumber_codec.CalculateSizeWithTag(SimNumber); } if (simSerial_ != null) { size += _single_simSerial_codec.CalculateSizeWithTag(SimSerial); } if (ipAddressSim_ != null) { size += _single_ipAddressSim_codec.CalculateSizeWithTag(IpAddressSim); } if (placement_ != null) { size += _single_placement_codec.CalculateSizeWithTag(Placement); } if (installationPlace_ != null) { size += _single_installationPlace_codec.CalculateSizeWithTag(InstallationPlace); } if (appkey_ != null) { size += _single_appkey_codec.CalculateSizeWithTag(Appkey); } if (appeui_ != null) { size += _single_appeui_codec.CalculateSizeWithTag(Appeui); } if (protocolTypeLabel_ != null) { size += _single_protocolTypeLabel_codec.CalculateSizeWithTag(ProtocolTypeLabel); } if (channelNumber_ != null) { size += _single_channelNumber_codec.CalculateSizeWithTag(ChannelNumber); } if (wireInterface_ != null) { size += _single_wireInterface_codec.CalculateSizeWithTag(WireInterface); } if (BuildingId != 0) { size += 2 + pb::CodedOutputStream.ComputeInt32Size(BuildingId); } if (manufactureYear_ != null) { size += _single_manufactureYear_codec.CalculateSizeWithTag(ManufactureYear); } if (IndicatorVendorType != global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType.Unknown) { size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) IndicatorVendorType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Device other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } indicators_.Add(other.indicators_); if (other.metricPoint_ != null) { if (metricPoint_ == null) { MetricPoint = new global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint(); } MetricPoint.MergeFrom(other.MetricPoint); } if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.changedAt_ != null) { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ChangedAt.MergeFrom(other.ChangedAt); } if (other.Type != global::Keyapis.TelemetryControl.V1.Device.Types.Type.Unknown) { Type = other.Type; } if (other.SerialNumber.Length != 0) { SerialNumber = other.SerialNumber; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Year != 0) { Year = other.Year; } if (other.FiasId.Length != 0) { FiasId = other.FiasId; } if (other.ResourceOwnerId.Length != 0) { ResourceOwnerId = other.ResourceOwnerId; } if (other.StatusType != global::Keyapis.TelemetryControl.V1.Device.Types.StatusType.Unknown) { StatusType = other.StatusType; } if (other.installedAt_ != null) { if (installedAt_ == null) { InstalledAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } InstalledAt.MergeFrom(other.InstalledAt); } if (other.removedAt_ != null) { if (removedAt_ == null) { RemovedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } RemovedAt.MergeFrom(other.RemovedAt); } if (other.checkAt_ != null) { if (checkAt_ == null) { CheckAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CheckAt.MergeFrom(other.CheckAt); } if (other.nextCheckAt_ != null) { if (nextCheckAt_ == null) { NextCheckAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } NextCheckAt.MergeFrom(other.NextCheckAt); } if (other.externalId_ != null) { if (externalId_ == null || other.ExternalId != "") { ExternalId = other.ExternalId; } } if (other.PlanType != global::Keyapis.TelemetryControl.V1.Device.Types.PlanType.Unknown) { PlanType = other.PlanType; } if (other.parentId_ != null) { if (parentId_ == null || other.ParentId != 0) { ParentId = other.ParentId; } } if (other.PipeType != global::Keyapis.TelemetryControl.V1.Device.Types.PipeType.Unknown) { PipeType = other.PipeType; } if (other.devEui_ != null) { if (devEui_ == null || other.DevEui != "") { DevEui = other.DevEui; } } if (other.mac_ != null) { if (mac_ == null || other.Mac != "") { Mac = other.Mac; } } if (other.port_ != null) { if (port_ == null || other.Port != 0) { Port = other.Port; } } if (other.networkAddress_ != null) { if (networkAddress_ == null || other.NetworkAddress != "") { NetworkAddress = other.NetworkAddress; } } if (other.commChannel_ != null) { if (commChannel_ == null || other.CommChannel != "") { CommChannel = other.CommChannel; } } if (other.simNumber_ != null) { if (simNumber_ == null || other.SimNumber != "") { SimNumber = other.SimNumber; } } if (other.simSerial_ != null) { if (simSerial_ == null || other.SimSerial != "") { SimSerial = other.SimSerial; } } if (other.ipAddressSim_ != null) { if (ipAddressSim_ == null || other.IpAddressSim != "") { IpAddressSim = other.IpAddressSim; } } if (other.placement_ != null) { if (placement_ == null || other.Placement != "") { Placement = other.Placement; } } if (other.installationPlace_ != null) { if (installationPlace_ == null || other.InstallationPlace != "") { InstallationPlace = other.InstallationPlace; } } if (other.appkey_ != null) { if (appkey_ == null || other.Appkey != "") { Appkey = other.Appkey; } } if (other.appeui_ != null) { if (appeui_ == null || other.Appeui != "") { Appeui = other.Appeui; } } if (other.protocolTypeLabel_ != null) { if (protocolTypeLabel_ == null || other.ProtocolTypeLabel != "") { ProtocolTypeLabel = other.ProtocolTypeLabel; } } if (other.channelNumber_ != null) { if (channelNumber_ == null || other.ChannelNumber != 0) { ChannelNumber = other.ChannelNumber; } } if (other.wireInterface_ != null) { if (wireInterface_ == null || other.WireInterface != "") { WireInterface = other.WireInterface; } } if (other.BuildingId != 0) { BuildingId = other.BuildingId; } if (other.manufactureYear_ != null) { if (manufactureYear_ == null || other.ManufactureYear != 0) { ManufactureYear = other.ManufactureYear; } } if (other.IndicatorVendorType != global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType.Unknown) { IndicatorVendorType = other.IndicatorVendorType; } _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: { indicators_.AddEntriesFrom(input, _repeated_indicators_codec); break; } case 26: { if (metricPoint_ == null) { MetricPoint = new global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint(); } input.ReadMessage(MetricPoint); break; } case 34: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 42: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 48: { Type = (global::Keyapis.TelemetryControl.V1.Device.Types.Type) input.ReadEnum(); break; } case 58: { SerialNumber = input.ReadString(); break; } case 66: { Model = input.ReadString(); break; } case 72: { Year = input.ReadInt32(); break; } case 82: { FiasId = input.ReadString(); break; } case 90: { ResourceOwnerId = input.ReadString(); break; } case 96: { StatusType = (global::Keyapis.TelemetryControl.V1.Device.Types.StatusType) input.ReadEnum(); break; } case 106: { if (installedAt_ == null) { InstalledAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(InstalledAt); break; } case 114: { if (removedAt_ == null) { RemovedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(RemovedAt); break; } case 122: { if (checkAt_ == null) { CheckAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CheckAt); break; } case 130: { if (nextCheckAt_ == null) { NextCheckAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(NextCheckAt); break; } case 138: { string value = _single_externalId_codec.Read(input); if (externalId_ == null || value != "") { ExternalId = value; } break; } case 144: { PlanType = (global::Keyapis.TelemetryControl.V1.Device.Types.PlanType) input.ReadEnum(); break; } case 154: { int? value = _single_parentId_codec.Read(input); if (parentId_ == null || value != 0) { ParentId = value; } break; } case 160: { PipeType = (global::Keyapis.TelemetryControl.V1.Device.Types.PipeType) input.ReadEnum(); break; } case 170: { string value = _single_devEui_codec.Read(input); if (devEui_ == null || value != "") { DevEui = value; } break; } case 178: { string value = _single_mac_codec.Read(input); if (mac_ == null || value != "") { Mac = value; } break; } case 186: { int? value = _single_port_codec.Read(input); if (port_ == null || value != 0) { Port = value; } break; } case 194: { string value = _single_networkAddress_codec.Read(input); if (networkAddress_ == null || value != "") { NetworkAddress = value; } break; } case 202: { string value = _single_commChannel_codec.Read(input); if (commChannel_ == null || value != "") { CommChannel = value; } break; } case 210: { string value = _single_simNumber_codec.Read(input); if (simNumber_ == null || value != "") { SimNumber = value; } break; } case 218: { string value = _single_simSerial_codec.Read(input); if (simSerial_ == null || value != "") { SimSerial = value; } break; } case 226: { string value = _single_ipAddressSim_codec.Read(input); if (ipAddressSim_ == null || value != "") { IpAddressSim = value; } break; } case 234: { string value = _single_placement_codec.Read(input); if (placement_ == null || value != "") { Placement = value; } break; } case 242: { string value = _single_installationPlace_codec.Read(input); if (installationPlace_ == null || value != "") { InstallationPlace = value; } break; } case 250: { string value = _single_appkey_codec.Read(input); if (appkey_ == null || value != "") { Appkey = value; } break; } case 258: { string value = _single_appeui_codec.Read(input); if (appeui_ == null || value != "") { Appeui = value; } break; } case 266: { string value = _single_protocolTypeLabel_codec.Read(input); if (protocolTypeLabel_ == null || value != "") { ProtocolTypeLabel = value; } break; } case 274: { int? value = _single_channelNumber_codec.Read(input); if (channelNumber_ == null || value != 0) { ChannelNumber = value; } break; } case 282: { string value = _single_wireInterface_codec.Read(input); if (wireInterface_ == null || value != "") { WireInterface = value; } break; } case 288: { BuildingId = input.ReadInt32(); break; } case 298: { int? value = _single_manufactureYear_codec.Read(input); if (manufactureYear_ == null || value != 0) { ManufactureYear = value; } break; } case 304: { IndicatorVendorType = (global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType) 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: { indicators_.AddEntriesFrom(ref input, _repeated_indicators_codec); break; } case 26: { if (metricPoint_ == null) { MetricPoint = new global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint(); } input.ReadMessage(MetricPoint); break; } case 34: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 42: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 48: { Type = (global::Keyapis.TelemetryControl.V1.Device.Types.Type) input.ReadEnum(); break; } case 58: { SerialNumber = input.ReadString(); break; } case 66: { Model = input.ReadString(); break; } case 72: { Year = input.ReadInt32(); break; } case 82: { FiasId = input.ReadString(); break; } case 90: { ResourceOwnerId = input.ReadString(); break; } case 96: { StatusType = (global::Keyapis.TelemetryControl.V1.Device.Types.StatusType) input.ReadEnum(); break; } case 106: { if (installedAt_ == null) { InstalledAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(InstalledAt); break; } case 114: { if (removedAt_ == null) { RemovedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(RemovedAt); break; } case 122: { if (checkAt_ == null) { CheckAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CheckAt); break; } case 130: { if (nextCheckAt_ == null) { NextCheckAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(NextCheckAt); break; } case 138: { string value = _single_externalId_codec.Read(ref input); if (externalId_ == null || value != "") { ExternalId = value; } break; } case 144: { PlanType = (global::Keyapis.TelemetryControl.V1.Device.Types.PlanType) input.ReadEnum(); break; } case 154: { int? value = _single_parentId_codec.Read(ref input); if (parentId_ == null || value != 0) { ParentId = value; } break; } case 160: { PipeType = (global::Keyapis.TelemetryControl.V1.Device.Types.PipeType) input.ReadEnum(); break; } case 170: { string value = _single_devEui_codec.Read(ref input); if (devEui_ == null || value != "") { DevEui = value; } break; } case 178: { string value = _single_mac_codec.Read(ref input); if (mac_ == null || value != "") { Mac = value; } break; } case 186: { int? value = _single_port_codec.Read(ref input); if (port_ == null || value != 0) { Port = value; } break; } case 194: { string value = _single_networkAddress_codec.Read(ref input); if (networkAddress_ == null || value != "") { NetworkAddress = value; } break; } case 202: { string value = _single_commChannel_codec.Read(ref input); if (commChannel_ == null || value != "") { CommChannel = value; } break; } case 210: { string value = _single_simNumber_codec.Read(ref input); if (simNumber_ == null || value != "") { SimNumber = value; } break; } case 218: { string value = _single_simSerial_codec.Read(ref input); if (simSerial_ == null || value != "") { SimSerial = value; } break; } case 226: { string value = _single_ipAddressSim_codec.Read(ref input); if (ipAddressSim_ == null || value != "") { IpAddressSim = value; } break; } case 234: { string value = _single_placement_codec.Read(ref input); if (placement_ == null || value != "") { Placement = value; } break; } case 242: { string value = _single_installationPlace_codec.Read(ref input); if (installationPlace_ == null || value != "") { InstallationPlace = value; } break; } case 250: { string value = _single_appkey_codec.Read(ref input); if (appkey_ == null || value != "") { Appkey = value; } break; } case 258: { string value = _single_appeui_codec.Read(ref input); if (appeui_ == null || value != "") { Appeui = value; } break; } case 266: { string value = _single_protocolTypeLabel_codec.Read(ref input); if (protocolTypeLabel_ == null || value != "") { ProtocolTypeLabel = value; } break; } case 274: { int? value = _single_channelNumber_codec.Read(ref input); if (channelNumber_ == null || value != 0) { ChannelNumber = value; } break; } case 282: { string value = _single_wireInterface_codec.Read(ref input); if (wireInterface_ == null || value != "") { WireInterface = value; } break; } case 288: { BuildingId = input.ReadInt32(); break; } case 298: { int? value = _single_manufactureYear_codec.Read(ref input); if (manufactureYear_ == null || value != 0) { ManufactureYear = value; } break; } case 304: { IndicatorVendorType = (global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType) input.ReadEnum(); break; } } } } #endif #region Nested types /// Container for nested types declared in the Device message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов номинальных нагрузок вторичных обмоток. /// У трансформаторов тока (В*А) /// public enum SecondaryCurrentType { /// /// Значение не указано /// [pbr::OriginalName("SECONDARY_CURRENT_TYPE_UNKNOWN")] Unknown = 0, /// /// 1 (А) /// [pbr::OriginalName("TT1A")] Tt1A = 1, /// /// 2 (А) /// [pbr::OriginalName("TT2A")] Tt2A = 2, /// /// 5 (А) /// [pbr::OriginalName("TT5A")] Tt5A = 3, } /// /// Справочник типов приборов учёта(ПУ) /// public enum Type { /// /// Значение не указано /// [pbr::OriginalName("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 StatusType { /// /// Значение не указано /// [pbr::OriginalName("STATUS_TYPE_UNKNOWN")] Unknown = 0, /// /// Получен клиентом, еще не сконфигурирован /// [pbr::OriginalName("RECEIVED")] Received = 1, /// /// Сконфигурирован клиентом, активен /// [pbr::OriginalName("ACTIVE")] Active = 2, /// /// Обработан клиентом, возникла ошибка /// [pbr::OriginalName("WRONG")] Wrong = 3, /// /// Переведен в архивный статус /// [pbr::OriginalName("ARCHIVE")] Archive = 4, /// /// Удален /// [pbr::OriginalName("DELETE")] Delete = 5, /// /// Отсоединен /// [pbr::OriginalName("UNLINK")] Unlink = 6, } /// /// Справочник типов тарифных планов /// public enum PlanType { /// /// Значение не указано /// [pbr::OriginalName("PLAN_TYPE_UNKNOWN")] Unknown = 0, /// /// Однотарифный /// [pbr::OriginalName("SINGLE")] Single = 1, /// /// Двухтарифный /// [pbr::OriginalName("DOUBLE")] Double = 2, /// /// Трёхтарифный /// [pbr::OriginalName("TRIPLE")] Triple = 3, } /// /// Справочник типов трубопроводов /// public enum PipeType { /// /// Значение не указано /// [pbr::OriginalName("PIPE_TYPE_UNKNOWN")] Unknown = 0, /// /// Подающий /// [pbr::OriginalName("INFEED")] Infeed = 1, /// /// Циркуляционный /// [pbr::OriginalName("CIRCULATING")] Circulating = 2, } /// /// Ошибки валидации. /// Эти проверки выполняются до обращения в базу данных /// public sealed partial class ValidationError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidationError()); 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.TelemetryControl.V1.Device.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 ValidationError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError(ValidationError other) : this() { path_ = other.path_; message_ = other.message_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError Clone() { return new ValidationError(this); } /// Field number for the "path" field. public const int PathFieldNumber = 1; private string path_ = ""; /// /// Путь к полю в формате наименования protobuf /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "message" field. public const int MessageFieldNumber = 2; private string message_ = ""; /// /// Валидационное сообщение /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { get { return message_; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ValidationError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ValidationError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Path != other.Path) return false; if (Message != other.Message) 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 (Path.Length != 0) hash ^= Path.GetHashCode(); if (Message.Length != 0) hash ^= Message.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 (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } 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 (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } 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 (Path.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); } if (Message.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ValidationError other) { if (other == null) { return; } if (other.Path.Length != 0) { Path = other.Path; } if (other.Message.Length != 0) { Message = other.Message; } _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: { Path = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Path = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } } } } #endif } /// /// Точка учета /// public sealed partial class MetricPoint : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MetricPoint()); 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.TelemetryControl.V1.Device.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 MetricPoint() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MetricPoint(MetricPoint other) : this() { id_ = other.id_; metricType_ = other.metricType_; roomNumber_ = other.roomNumber_; roomLabel_ = other.roomLabel_; ZoneLabel = other.ZoneLabel; statusType_ = other.statusType_; accountingType_ = other.accountingType_; createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; primaryCurrentType_ = other.primaryCurrentType_; secondaryCurrentType_ = other.secondaryCurrentType_; buildingId_ = other.buildingId_; changedAt_ = other.changedAt_ != null ? other.changedAt_.Clone() : null; buildingLevel_ = other.buildingLevel_; buildingSection_ = other.buildingSection_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MetricPoint Clone() { return new MetricPoint(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private string id_ = ""; /// /// Идентификатор /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Id { get { return id_; } set { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "metric_type" field. public const int MetricTypeFieldNumber = 2; private global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.MetricType metricType_ = global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.MetricType.Unknown; /// /// Тип энергоресурса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.MetricType MetricType { get { return metricType_; } set { metricType_ = value; } } /// Field number for the "room_number" field. public const int RoomNumberFieldNumber = 3; private string roomNumber_ = ""; /// /// Номер помещения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RoomNumber { get { return roomNumber_; } set { roomNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "room_label" field. public const int RoomLabelFieldNumber = 4; private string roomLabel_ = ""; /// /// Лейбл помещения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RoomLabel { get { return roomLabel_; } set { roomLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "zone_label" field. public const int ZoneLabelFieldNumber = 5; private static readonly pb::FieldCodec _single_zoneLabel_codec = pb::FieldCodec.ForClassWrapper(42); private string zoneLabel_; /// /// Зона /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ZoneLabel { get { return zoneLabel_; } set { zoneLabel_ = value; } } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 6; private global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.StatusType statusType_ = global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.StatusType.Unknown; /// /// Тип статуса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } /// Field number for the "accounting_type" field. public const int AccountingTypeFieldNumber = 7; private global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.AccountingType accountingType_ = global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.AccountingType.Unknown; /// /// Тип учёта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.AccountingType AccountingType { get { return accountingType_; } set { accountingType_ = value; } } /// Field number for the "created_at" field. public const int CreatedAtFieldNumber = 8; private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; /// /// Дата создания /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { get { return createdAt_; } set { createdAt_ = value; } } /// Field number for the "primary_current_type" field. public const int PrimaryCurrentTypeFieldNumber = 9; private global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.PrimaryCurrentType primaryCurrentType_ = global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.PrimaryCurrentType.Unknown; /// /// Тип номинала первичного тока /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.PrimaryCurrentType PrimaryCurrentType { get { return primaryCurrentType_; } set { primaryCurrentType_ = value; } } /// Field number for the "secondary_current_type" field. public const int SecondaryCurrentTypeFieldNumber = 10; private global::Keyapis.TelemetryControl.V1.Device.Types.SecondaryCurrentType secondaryCurrentType_ = global::Keyapis.TelemetryControl.V1.Device.Types.SecondaryCurrentType.Unknown; /// /// Тип номинала вторичной обмотки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device.Types.SecondaryCurrentType SecondaryCurrentType { get { return secondaryCurrentType_; } set { secondaryCurrentType_ = value; } } /// Field number for the "building_id" field. public const int BuildingIdFieldNumber = 11; private int buildingId_; /// /// Идентификатор объекта строительства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int BuildingId { get { return buildingId_; } set { buildingId_ = value; } } /// Field number for the "changed_at" field. public const int ChangedAtFieldNumber = 12; 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 "building_level" field. public const int BuildingLevelFieldNumber = 13; private int buildingLevel_; /// /// Уровень /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int BuildingLevel { get { return buildingLevel_; } set { buildingLevel_ = value; } } /// Field number for the "building_section" field. public const int BuildingSectionFieldNumber = 14; private int buildingSection_; /// /// Секция /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int BuildingSection { get { return buildingSection_; } set { buildingSection_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MetricPoint); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MetricPoint other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (MetricType != other.MetricType) return false; if (RoomNumber != other.RoomNumber) return false; if (RoomLabel != other.RoomLabel) return false; if (ZoneLabel != other.ZoneLabel) return false; if (StatusType != other.StatusType) return false; if (AccountingType != other.AccountingType) return false; if (!object.Equals(CreatedAt, other.CreatedAt)) return false; if (PrimaryCurrentType != other.PrimaryCurrentType) return false; if (SecondaryCurrentType != other.SecondaryCurrentType) return false; if (BuildingId != other.BuildingId) return false; if (!object.Equals(ChangedAt, other.ChangedAt)) return false; if (BuildingLevel != other.BuildingLevel) return false; if (BuildingSection != other.BuildingSection) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id.Length != 0) hash ^= Id.GetHashCode(); if (MetricType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.MetricType.Unknown) hash ^= MetricType.GetHashCode(); if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode(); if (RoomLabel.Length != 0) hash ^= RoomLabel.GetHashCode(); if (zoneLabel_ != null) hash ^= ZoneLabel.GetHashCode(); if (StatusType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); if (AccountingType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.AccountingType.Unknown) hash ^= AccountingType.GetHashCode(); if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); if (PrimaryCurrentType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.PrimaryCurrentType.Unknown) hash ^= PrimaryCurrentType.GetHashCode(); if (SecondaryCurrentType != global::Keyapis.TelemetryControl.V1.Device.Types.SecondaryCurrentType.Unknown) hash ^= SecondaryCurrentType.GetHashCode(); if (BuildingId != 0) hash ^= BuildingId.GetHashCode(); if (changedAt_ != null) hash ^= ChangedAt.GetHashCode(); if (BuildingLevel != 0) hash ^= BuildingLevel.GetHashCode(); if (BuildingSection != 0) hash ^= BuildingSection.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (MetricType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.MetricType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) MetricType); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } if (RoomLabel.Length != 0) { output.WriteRawTag(34); output.WriteString(RoomLabel); } if (zoneLabel_ != null) { _single_zoneLabel_codec.WriteTagAndValue(output, ZoneLabel); } if (StatusType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.StatusType.Unknown) { output.WriteRawTag(48); output.WriteEnum((int) StatusType); } if (AccountingType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.AccountingType.Unknown) { output.WriteRawTag(56); output.WriteEnum((int) AccountingType); } if (createdAt_ != null) { output.WriteRawTag(66); output.WriteMessage(CreatedAt); } if (PrimaryCurrentType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.PrimaryCurrentType.Unknown) { output.WriteRawTag(72); output.WriteEnum((int) PrimaryCurrentType); } if (SecondaryCurrentType != global::Keyapis.TelemetryControl.V1.Device.Types.SecondaryCurrentType.Unknown) { output.WriteRawTag(80); output.WriteEnum((int) SecondaryCurrentType); } if (BuildingId != 0) { output.WriteRawTag(88); output.WriteInt32(BuildingId); } if (changedAt_ != null) { output.WriteRawTag(98); output.WriteMessage(ChangedAt); } if (BuildingLevel != 0) { output.WriteRawTag(104); output.WriteInt32(BuildingLevel); } if (BuildingSection != 0) { output.WriteRawTag(112); output.WriteInt32(BuildingSection); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (MetricType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.MetricType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) MetricType); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } if (RoomLabel.Length != 0) { output.WriteRawTag(34); output.WriteString(RoomLabel); } if (zoneLabel_ != null) { _single_zoneLabel_codec.WriteTagAndValue(ref output, ZoneLabel); } if (StatusType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.StatusType.Unknown) { output.WriteRawTag(48); output.WriteEnum((int) StatusType); } if (AccountingType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.AccountingType.Unknown) { output.WriteRawTag(56); output.WriteEnum((int) AccountingType); } if (createdAt_ != null) { output.WriteRawTag(66); output.WriteMessage(CreatedAt); } if (PrimaryCurrentType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.PrimaryCurrentType.Unknown) { output.WriteRawTag(72); output.WriteEnum((int) PrimaryCurrentType); } if (SecondaryCurrentType != global::Keyapis.TelemetryControl.V1.Device.Types.SecondaryCurrentType.Unknown) { output.WriteRawTag(80); output.WriteEnum((int) SecondaryCurrentType); } if (BuildingId != 0) { output.WriteRawTag(88); output.WriteInt32(BuildingId); } if (changedAt_ != null) { output.WriteRawTag(98); output.WriteMessage(ChangedAt); } if (BuildingLevel != 0) { output.WriteRawTag(104); output.WriteInt32(BuildingLevel); } if (BuildingSection != 0) { output.WriteRawTag(112); output.WriteInt32(BuildingSection); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } if (MetricType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.MetricType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MetricType); } if (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } if (RoomLabel.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomLabel); } if (zoneLabel_ != null) { size += _single_zoneLabel_codec.CalculateSizeWithTag(ZoneLabel); } if (StatusType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } if (AccountingType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.AccountingType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AccountingType); } if (createdAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); } if (PrimaryCurrentType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.PrimaryCurrentType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PrimaryCurrentType); } if (SecondaryCurrentType != global::Keyapis.TelemetryControl.V1.Device.Types.SecondaryCurrentType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SecondaryCurrentType); } if (BuildingId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuildingId); } if (changedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedAt); } if (BuildingLevel != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuildingLevel); } if (BuildingSection != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuildingSection); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(MetricPoint other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.MetricType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.MetricType.Unknown) { MetricType = other.MetricType; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } if (other.RoomLabel.Length != 0) { RoomLabel = other.RoomLabel; } if (other.zoneLabel_ != null) { if (zoneLabel_ == null || other.ZoneLabel != "") { ZoneLabel = other.ZoneLabel; } } if (other.StatusType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.StatusType.Unknown) { StatusType = other.StatusType; } if (other.AccountingType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.AccountingType.Unknown) { AccountingType = other.AccountingType; } if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.PrimaryCurrentType != global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.PrimaryCurrentType.Unknown) { PrimaryCurrentType = other.PrimaryCurrentType; } if (other.SecondaryCurrentType != global::Keyapis.TelemetryControl.V1.Device.Types.SecondaryCurrentType.Unknown) { SecondaryCurrentType = other.SecondaryCurrentType; } if (other.BuildingId != 0) { BuildingId = other.BuildingId; } if (other.changedAt_ != null) { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ChangedAt.MergeFrom(other.ChangedAt); } if (other.BuildingLevel != 0) { BuildingLevel = other.BuildingLevel; } if (other.BuildingSection != 0) { BuildingSection = other.BuildingSection; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Id = input.ReadString(); break; } case 16: { MetricType = (global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.MetricType) input.ReadEnum(); break; } case 26: { RoomNumber = input.ReadString(); break; } case 34: { RoomLabel = input.ReadString(); break; } case 42: { string value = _single_zoneLabel_codec.Read(input); if (zoneLabel_ == null || value != "") { ZoneLabel = value; } break; } case 48: { StatusType = (global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.StatusType) input.ReadEnum(); break; } case 56: { AccountingType = (global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.AccountingType) input.ReadEnum(); break; } case 66: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 72: { PrimaryCurrentType = (global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.PrimaryCurrentType) input.ReadEnum(); break; } case 80: { SecondaryCurrentType = (global::Keyapis.TelemetryControl.V1.Device.Types.SecondaryCurrentType) input.ReadEnum(); break; } case 88: { BuildingId = input.ReadInt32(); break; } case 98: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 104: { BuildingLevel = input.ReadInt32(); break; } case 112: { BuildingSection = 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 10: { Id = input.ReadString(); break; } case 16: { MetricType = (global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.MetricType) input.ReadEnum(); break; } case 26: { RoomNumber = input.ReadString(); break; } case 34: { RoomLabel = input.ReadString(); break; } case 42: { string value = _single_zoneLabel_codec.Read(ref input); if (zoneLabel_ == null || value != "") { ZoneLabel = value; } break; } case 48: { StatusType = (global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.StatusType) input.ReadEnum(); break; } case 56: { AccountingType = (global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.AccountingType) input.ReadEnum(); break; } case 66: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 72: { PrimaryCurrentType = (global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.PrimaryCurrentType) input.ReadEnum(); break; } case 80: { SecondaryCurrentType = (global::Keyapis.TelemetryControl.V1.Device.Types.SecondaryCurrentType) input.ReadEnum(); break; } case 88: { BuildingId = input.ReadInt32(); break; } case 98: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 104: { BuildingLevel = input.ReadInt32(); break; } case 112: { BuildingSection = input.ReadInt32(); break; } } } } #endif #region Nested types /// Container for nested types declared in the MetricPoint message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочние типов энергоресурсов /// 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 StatusType { /// /// Значение не указано /// [pbr::OriginalName("STATUS_TYPE_UNKNOWN")] Unknown = 0, /// /// Активная /// [pbr::OriginalName("ACTIVE")] Active = 1, /// /// Не активная /// [global::System.ObsoleteAttribute] [pbr::OriginalName("WRONG")] Wrong = 2, /// /// Архивная /// [pbr::OriginalName("ARCHIVE")] Archive = 3, } /// /// Справочник типов учёта /// public enum AccountingType { /// /// Значение не указано /// [pbr::OriginalName("ACCOUNTING_TYPE_UNKNOWN")] Unknown = 0, /// /// Коммерческий учёт /// [pbr::OriginalName("COMMERCIAL")] Commercial = 1, /// /// Технический учёт /// [pbr::OriginalName("TECHNICAL")] Technical = 2, } /// /// Справочник типов номиналов первичных токов. /// У выпускаемых трансформаторов тока (А) /// public enum PrimaryCurrentType { /// /// Значение не указано /// [pbr::OriginalName("PRIMARY_CURRENT_TYPE_UNKNOWN")] Unknown = 0, /// /// 1 (А) /// [pbr::OriginalName("TT1A")] Tt1A = 1, /// /// 5 (А) /// [pbr::OriginalName("TT5A")] Tt5A = 2, /// /// 10 (А) /// [pbr::OriginalName("TT10A")] Tt10A = 3, /// /// 15 (А) /// [pbr::OriginalName("TT15A")] Tt15A = 4, /// /// 20 (А) /// [pbr::OriginalName("TT20A")] Tt20A = 5, /// /// 30 (А) /// [pbr::OriginalName("TT30A")] Tt30A = 6, /// /// 40 (А) /// [pbr::OriginalName("TT40A")] Tt40A = 7, /// /// 50 (А) /// [pbr::OriginalName("TT50A")] Tt50A = 8, /// /// 75 (А) /// [pbr::OriginalName("TT75A")] Tt75A = 9, /// /// 80 (А) /// [pbr::OriginalName("TT80A")] Tt80A = 10, /// /// 100 (А) /// [pbr::OriginalName("TT100A")] Tt100A = 11, /// /// 150 (А) /// [pbr::OriginalName("TT150A")] Tt150A = 12, /// /// 200 (А) /// [pbr::OriginalName("TT200A")] Tt200A = 13, /// /// 300 (А) /// [pbr::OriginalName("TT300A")] Tt300A = 14, /// /// 400 (А) /// [pbr::OriginalName("TT400A")] Tt400A = 15, /// /// 500 (А) /// [pbr::OriginalName("TT500A")] Tt500A = 16, /// /// 600 (А) /// [pbr::OriginalName("TT600A")] Tt600A = 17, /// /// 750 (А) /// [pbr::OriginalName("TT750A")] Tt750A = 18, /// /// 800 (А) /// [pbr::OriginalName("TT800A")] Tt800A = 19, /// /// 1000 (А) /// [pbr::OriginalName("TT1000A")] Tt1000A = 20, /// /// 1200 (А) /// [pbr::OriginalName("TT1200A")] Tt1200A = 21, /// /// 1500 (А) /// [pbr::OriginalName("TT1500A")] Tt1500A = 22, /// /// 2000 (А) /// [pbr::OriginalName("TT2000A")] Tt2000A = 23, } } #endregion } } #endregion } /// /// Запрос получения списка /// public sealed partial class GetDeviceListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceListRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[35]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceListRequest(GetDeviceListRequest 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 GetDeviceListRequest Clone() { return new GetDeviceListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.DeviceFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceFilter 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.TelemetryControl.V1.DevicePaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.TelemetryControl.V1.DevicePaging) 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 GetDeviceListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceListRequest 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(GetDeviceListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.TelemetryControl.V1.DeviceFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.TelemetryControl.V1.DevicePaging(); } 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.TelemetryControl.V1.DeviceFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.TelemetryControl.V1.DevicePaging subBuilder = new global::Keyapis.TelemetryControl.V1.DevicePaging(); 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.TelemetryControl.V1.DeviceFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.TelemetryControl.V1.DevicePaging subBuilder = new global::Keyapis.TelemetryControl.V1.DevicePaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Пагинация устройств /// public sealed partial class DevicePaging : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DevicePaging()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[36]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DevicePaging() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DevicePaging(DevicePaging 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 DevicePaging Clone() { return new DevicePaging(this); } /// Field number for the "order_by_type" field. public const int OrderByTypeFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.DevicePaging.Types.OrderByType orderByType_ = global::Keyapis.TelemetryControl.V1.DevicePaging.Types.OrderByType.Unknown; /// /// Тип значения сортировки. /// По умолчанию: ID /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DevicePaging.Types.OrderByType OrderByType { get { return orderByType_; } set { orderByType_ = value; } } /// Field number for the "direction_type" field. public const int DirectionTypeFieldNumber = 2; private global::Keyapis.TelemetryControl.V1.DevicePaging.Types.DirectionType directionType_ = global::Keyapis.TelemetryControl.V1.DevicePaging.Types.DirectionType.Unknown; /// /// Тип направления сортировки. /// По умолчанию: DESC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DevicePaging.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 DevicePaging); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DevicePaging 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.TelemetryControl.V1.DevicePaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode(); if (DirectionType != global::Keyapis.TelemetryControl.V1.DevicePaging.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.TelemetryControl.V1.DevicePaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryControl.V1.DevicePaging.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.TelemetryControl.V1.DevicePaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryControl.V1.DevicePaging.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.TelemetryControl.V1.DevicePaging.Types.OrderByType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryControl.V1.DevicePaging.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(DevicePaging other) { if (other == null) { return; } if (other.OrderByType != global::Keyapis.TelemetryControl.V1.DevicePaging.Types.OrderByType.Unknown) { OrderByType = other.OrderByType; } if (other.DirectionType != global::Keyapis.TelemetryControl.V1.DevicePaging.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.TelemetryControl.V1.DevicePaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.TelemetryControl.V1.DevicePaging.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.TelemetryControl.V1.DevicePaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.TelemetryControl.V1.DevicePaging.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 DevicePaging 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, } /// /// Справочник типов направлений сортировки /// public enum DirectionType { /// /// Значение не указано /// [pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0, /// /// От большего к меньшему /// [pbr::OriginalName("DESC")] Desc = 1, /// /// От меньшего к большему /// [pbr::OriginalName("ASC")] Asc = 2, } /// /// Ошибка валидации постраничной пагинации по ПУ. /// Эти проверки выполняются до обращения в базу данных /// public sealed partial class ValidationError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidationError()); 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.TelemetryControl.V1.DevicePaging.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 ValidationError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError(ValidationError other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Limit: Limit = other.Limit.Clone(); break; case ReasonOneofCase.Offset: Offset = other.Offset.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError Clone() { return new ValidationError(this); } /// Field number for the "limit" field. public const int LimitFieldNumber = 1; /// /// Количество передано некорректно /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.LimitInvalid Limit { get { return reasonCase_ == ReasonOneofCase.Limit ? (global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.LimitInvalid) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Limit; } } /// Field number for the "offset" field. public const int OffsetFieldNumber = 2; /// /// Сдвиг передан некорректно /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.OffsetInvalid Offset { get { return reasonCase_ == ReasonOneofCase.Offset ? (global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.OffsetInvalid) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Offset; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Limit = 1, Offset = 2, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ValidationError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ValidationError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Limit, other.Limit)) return false; if (!object.Equals(Offset, other.Offset)) return false; if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.Limit) hash ^= Limit.GetHashCode(); if (reasonCase_ == ReasonOneofCase.Offset) hash ^= Offset.GetHashCode(); hash ^= (int) reasonCase_; 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 (reasonCase_ == ReasonOneofCase.Limit) { output.WriteRawTag(10); output.WriteMessage(Limit); } if (reasonCase_ == ReasonOneofCase.Offset) { output.WriteRawTag(18); output.WriteMessage(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 (reasonCase_ == ReasonOneofCase.Limit) { output.WriteRawTag(10); output.WriteMessage(Limit); } if (reasonCase_ == ReasonOneofCase.Offset) { output.WriteRawTag(18); output.WriteMessage(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 (reasonCase_ == ReasonOneofCase.Limit) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Limit); } if (reasonCase_ == ReasonOneofCase.Offset) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Offset); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ValidationError other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Limit: if (Limit == null) { Limit = new global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.LimitInvalid(); } Limit.MergeFrom(other.Limit); break; case ReasonOneofCase.Offset: if (Offset == null) { Offset = new global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.OffsetInvalid(); } Offset.MergeFrom(other.Offset); 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.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.LimitInvalid subBuilder = new global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.LimitInvalid(); if (reasonCase_ == ReasonOneofCase.Limit) { subBuilder.MergeFrom(Limit); } input.ReadMessage(subBuilder); Limit = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.OffsetInvalid subBuilder = new global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.OffsetInvalid(); if (reasonCase_ == ReasonOneofCase.Offset) { subBuilder.MergeFrom(Offset); } input.ReadMessage(subBuilder); Offset = 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.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.LimitInvalid subBuilder = new global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.LimitInvalid(); if (reasonCase_ == ReasonOneofCase.Limit) { subBuilder.MergeFrom(Limit); } input.ReadMessage(subBuilder); Limit = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.OffsetInvalid subBuilder = new global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError.Types.OffsetInvalid(); if (reasonCase_ == ReasonOneofCase.Offset) { subBuilder.MergeFrom(Offset); } input.ReadMessage(subBuilder); Offset = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the ValidationError message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Причины: /// - Значение количества < 0 или > 100 /// public sealed partial class LimitInvalid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LimitInvalid()); 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.TelemetryControl.V1.DevicePaging.Types.ValidationError.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 LimitInvalid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LimitInvalid(LimitInvalid other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LimitInvalid Clone() { return new LimitInvalid(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as LimitInvalid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(LimitInvalid 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(LimitInvalid 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 } /// /// Причины: /// - Значение сдвига < 0 /// public sealed partial class OffsetInvalid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OffsetInvalid()); 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.TelemetryControl.V1.DevicePaging.Types.ValidationError.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 OffsetInvalid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OffsetInvalid(OffsetInvalid other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OffsetInvalid Clone() { return new OffsetInvalid(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as OffsetInvalid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(OffsetInvalid 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(OffsetInvalid 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 } /// /// Ответ на запрос получения списка приборов учета /// public sealed partial class GetDeviceListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceListResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[37]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceListResponse(GetDeviceListResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceListResponse Clone() { return new GetDeviceListResponse(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.TelemetryControl.V1.Device Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryControl.V1.Device) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.GetDeviceListResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.TelemetryControl.V1.GetDeviceListResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } 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 GetDeviceListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceListResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) 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(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryControl.V1.Device(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.TelemetryControl.V1.GetDeviceListResponse.Types.Error(); } Error.MergeFrom(other.Error); 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.TelemetryControl.V1.Device subBuilder = new global::Keyapis.TelemetryControl.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.GetDeviceListResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.GetDeviceListResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = 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.TelemetryControl.V1.Device subBuilder = new global::Keyapis.TelemetryControl.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.GetDeviceListResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.GetDeviceListResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetDeviceListResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса получения списка приборов учета /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); 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.TelemetryControl.V1.GetDeviceListResponse.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 Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.DeviceFilterValidation: DeviceFilterValidation = other.DeviceFilterValidation.Clone(); break; case ReasonOneofCase.DevicePagingValidation: DevicePagingValidation = other.DevicePagingValidation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "device_filter_validation" field. public const int DeviceFilterValidationFieldNumber = 1; /// /// Ошибка фильтрации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceFilter.Types.ValidationError DeviceFilterValidation { get { return reasonCase_ == ReasonOneofCase.DeviceFilterValidation ? (global::Keyapis.TelemetryControl.V1.DeviceFilter.Types.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.DeviceFilterValidation; } } /// Field number for the "device_paging_validation" field. public const int DevicePagingValidationFieldNumber = 2; /// /// Ошибка пагинации по страницам /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError DevicePagingValidation { get { return reasonCase_ == ReasonOneofCase.DevicePagingValidation ? (global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.DevicePagingValidation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, DeviceFilterValidation = 1, DevicePagingValidation = 2, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(DeviceFilterValidation, other.DeviceFilterValidation)) return false; if (!object.Equals(DevicePagingValidation, other.DevicePagingValidation)) return false; if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) hash ^= DeviceFilterValidation.GetHashCode(); if (reasonCase_ == ReasonOneofCase.DevicePagingValidation) hash ^= DevicePagingValidation.GetHashCode(); hash ^= (int) reasonCase_; 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { output.WriteRawTag(10); output.WriteMessage(DeviceFilterValidation); } if (reasonCase_ == ReasonOneofCase.DevicePagingValidation) { output.WriteRawTag(18); output.WriteMessage(DevicePagingValidation); } 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { output.WriteRawTag(10); output.WriteMessage(DeviceFilterValidation); } if (reasonCase_ == ReasonOneofCase.DevicePagingValidation) { output.WriteRawTag(18); output.WriteMessage(DevicePagingValidation); } 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceFilterValidation); } if (reasonCase_ == ReasonOneofCase.DevicePagingValidation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DevicePagingValidation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.DeviceFilterValidation: if (DeviceFilterValidation == null) { DeviceFilterValidation = new global::Keyapis.TelemetryControl.V1.DeviceFilter.Types.ValidationError(); } DeviceFilterValidation.MergeFrom(other.DeviceFilterValidation); break; case ReasonOneofCase.DevicePagingValidation: if (DevicePagingValidation == null) { DevicePagingValidation = new global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError(); } DevicePagingValidation.MergeFrom(other.DevicePagingValidation); 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.TelemetryControl.V1.DeviceFilter.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceFilter.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { subBuilder.MergeFrom(DeviceFilterValidation); } input.ReadMessage(subBuilder); DeviceFilterValidation = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.DevicePagingValidation) { subBuilder.MergeFrom(DevicePagingValidation); } input.ReadMessage(subBuilder); DevicePagingValidation = 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.TelemetryControl.V1.DeviceFilter.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceFilter.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { subBuilder.MergeFrom(DeviceFilterValidation); } input.ReadMessage(subBuilder); DeviceFilterValidation = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.DevicePaging.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.DevicePagingValidation) { subBuilder.MergeFrom(DevicePagingValidation); } input.ReadMessage(subBuilder); DevicePagingValidation = subBuilder; break; } } } } #endif } } #endregion } /// /// Фильтр для запроса приборов учета. /// При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ. /// При передаче нескольких разных параметров фильтра они работают в выборке через И /// public sealed partial class DeviceFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceFilter()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[38]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceFilter(DeviceFilter other) : this() { fiasIds_ = other.fiasIds_.Clone(); types_ = other.types_.Clone(); statusTypes_ = other.statusTypes_.Clone(); models_ = other.models_.Clone(); metricPointMetricTypes_ = other.metricPointMetricTypes_.Clone(); roomNumbers_ = other.roomNumbers_.Clone(); roomLabels_ = other.roomLabels_.Clone(); parentIds_ = other.parentIds_.Clone(); ids_ = other.ids_.Clone(); buildingIds_ = other.buildingIds_.Clone(); serialNumbers_ = other.serialNumbers_.Clone(); metricPointIds_ = other.metricPointIds_.Clone(); serialIds_ = other.serialIds_.Clone(); orpons_ = other.orpons_.Clone(); indicatorVendorTypes_ = other.indicatorVendorTypes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceFilter Clone() { return new DeviceFilter(this); } /// Field number for the "fias_ids" field. public const int FiasIdsFieldNumber = 1; private static readonly pb::FieldCodec _repeated_fiasIds_codec = pb::FieldCodec.ForString(10); 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 "types" field. public const int Types_FieldNumber = 2; private static readonly pb::FieldCodec _repeated_types_codec = pb::FieldCodec.ForEnum(18, x => (int) x, x => (global::Keyapis.TelemetryControl.V1.Device.Types.Type) x); private readonly pbc::RepeatedField types_ = new pbc::RepeatedField(); /// /// По типам приборов учета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Types_ { get { return types_; } } /// Field number for the "status_types" field. public const int StatusTypesFieldNumber = 3; private static readonly pb::FieldCodec _repeated_statusTypes_codec = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::Keyapis.TelemetryControl.V1.Device.Types.StatusType) x); private readonly pbc::RepeatedField statusTypes_ = new pbc::RepeatedField(); /// /// По типам статусов /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField StatusTypes { get { return statusTypes_; } } /// Field number for the "models" field. public const int ModelsFieldNumber = 4; private static readonly pb::FieldCodec _repeated_models_codec = pb::FieldCodec.ForString(34); private readonly pbc::RepeatedField models_ = new pbc::RepeatedField(); /// /// По модели счетчика /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Models { get { return models_; } } /// Field number for the "metric_point_metric_types" field. public const int MetricPointMetricTypesFieldNumber = 5; private static readonly pb::FieldCodec _repeated_metricPointMetricTypes_codec = pb::FieldCodec.ForEnum(42, x => (int) x, x => (global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint.Types.MetricType) x); private readonly pbc::RepeatedField metricPointMetricTypes_ = new pbc::RepeatedField(); /// /// По типам метрик /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MetricPointMetricTypes { get { return metricPointMetricTypes_; } } /// Field number for the "room_numbers" field. public const int RoomNumbersFieldNumber = 6; private static readonly pb::FieldCodec _repeated_roomNumbers_codec = pb::FieldCodec.ForString(50); private readonly pbc::RepeatedField roomNumbers_ = new pbc::RepeatedField(); /// /// По номерам помещений точек учета, привязанных через индикаторы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RoomNumbers { get { return roomNumbers_; } } /// Field number for the "room_labels" field. public const int RoomLabelsFieldNumber = 7; private static readonly pb::FieldCodec _repeated_roomLabels_codec = pb::FieldCodec.ForString(58); private readonly pbc::RepeatedField roomLabels_ = new pbc::RepeatedField(); /// /// По лейблам помещений точек учета, привязанных через индикаторы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RoomLabels { get { return roomLabels_; } } /// Field number for the "parent_ids" field. public const int ParentIdsFieldNumber = 8; private static readonly pb::FieldCodec _repeated_parentIds_codec = pb::FieldCodec.ForInt32(66); private readonly pbc::RepeatedField parentIds_ = new pbc::RepeatedField(); /// /// По идентификаторам хабов /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField ParentIds { get { return parentIds_; } } /// Field number for the "ids" field. public const int IdsFieldNumber = 9; private static readonly pb::FieldCodec _repeated_ids_codec = pb::FieldCodec.ForInt32(74); private readonly pbc::RepeatedField ids_ = new pbc::RepeatedField(); /// /// По идентификаторам приборов учета. /// Устарело, использовать метод GetDevice /// [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Ids { get { return ids_; } } /// Field number for the "building_ids" field. public const int BuildingIdsFieldNumber = 10; private static readonly pb::FieldCodec _repeated_buildingIds_codec = pb::FieldCodec.ForInt32(82); private readonly pbc::RepeatedField buildingIds_ = new pbc::RepeatedField(); /// /// По идентификатору объекта строительства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField BuildingIds { get { return buildingIds_; } } /// Field number for the "serial_numbers" field. public const int SerialNumbersFieldNumber = 11; private static readonly pb::FieldCodec _repeated_serialNumbers_codec = pb::FieldCodec.ForString(90); private readonly pbc::RepeatedField serialNumbers_ = new pbc::RepeatedField(); /// /// По серийным номерам /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SerialNumbers { get { return serialNumbers_; } } /// Field number for the "metric_point_ids" field. public const int MetricPointIdsFieldNumber = 12; private static readonly pb::FieldCodec _repeated_metricPointIds_codec = pb::FieldCodec.ForString(98); private readonly pbc::RepeatedField metricPointIds_ = new pbc::RepeatedField(); /// /// По ID точек учета, привязанных через индикаторы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MetricPointIds { get { return metricPointIds_; } } /// Field number for the "serial_ids" field. public const int SerialIdsFieldNumber = 13; private static readonly pb::FieldCodec _repeated_serialIds_codec = pb::FieldCodec.ForString(106); private readonly pbc::RepeatedField serialIds_ = new pbc::RepeatedField(); /// /// Смешанный поиск по полям serial_number, dev_eui, MAC-адрес, model, external_id /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SerialIds { get { return serialIds_; } } /// Field number for the "orpons" field. public const int OrponsFieldNumber = 14; private static readonly pb::FieldCodec _repeated_orpons_codec = pb::FieldCodec.ForInt64(114); private readonly pbc::RepeatedField orpons_ = new pbc::RepeatedField(); /// /// По ОРПОНам /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Orpons { get { return orpons_; } } /// Field number for the "indicator_vendor_types" field. public const int IndicatorVendorTypesFieldNumber = 15; private static readonly pb::FieldCodec _repeated_indicatorVendorTypes_codec = pb::FieldCodec.ForEnum(122, x => (int) x, x => (global::Keyapis.TelemetryControl.V1.Indicator.Types.VendorType) x); private readonly pbc::RepeatedField indicatorVendorTypes_ = new pbc::RepeatedField(); /// /// По посреднику получения показаний /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField IndicatorVendorTypes { get { return indicatorVendorTypes_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeviceFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!fiasIds_.Equals(other.fiasIds_)) return false; if(!types_.Equals(other.types_)) return false; if(!statusTypes_.Equals(other.statusTypes_)) return false; if(!models_.Equals(other.models_)) return false; if(!metricPointMetricTypes_.Equals(other.metricPointMetricTypes_)) return false; if(!roomNumbers_.Equals(other.roomNumbers_)) return false; if(!roomLabels_.Equals(other.roomLabels_)) return false; if(!parentIds_.Equals(other.parentIds_)) return false; if(!ids_.Equals(other.ids_)) return false; if(!buildingIds_.Equals(other.buildingIds_)) return false; if(!serialNumbers_.Equals(other.serialNumbers_)) return false; if(!metricPointIds_.Equals(other.metricPointIds_)) return false; if(!serialIds_.Equals(other.serialIds_)) return false; if(!orpons_.Equals(other.orpons_)) return false; if(!indicatorVendorTypes_.Equals(other.indicatorVendorTypes_)) 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 ^= fiasIds_.GetHashCode(); hash ^= types_.GetHashCode(); hash ^= statusTypes_.GetHashCode(); hash ^= models_.GetHashCode(); hash ^= metricPointMetricTypes_.GetHashCode(); hash ^= roomNumbers_.GetHashCode(); hash ^= roomLabels_.GetHashCode(); hash ^= parentIds_.GetHashCode(); hash ^= ids_.GetHashCode(); hash ^= buildingIds_.GetHashCode(); hash ^= serialNumbers_.GetHashCode(); hash ^= metricPointIds_.GetHashCode(); hash ^= serialIds_.GetHashCode(); hash ^= orpons_.GetHashCode(); hash ^= indicatorVendorTypes_.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 fiasIds_.WriteTo(output, _repeated_fiasIds_codec); types_.WriteTo(output, _repeated_types_codec); statusTypes_.WriteTo(output, _repeated_statusTypes_codec); models_.WriteTo(output, _repeated_models_codec); metricPointMetricTypes_.WriteTo(output, _repeated_metricPointMetricTypes_codec); roomNumbers_.WriteTo(output, _repeated_roomNumbers_codec); roomLabels_.WriteTo(output, _repeated_roomLabels_codec); parentIds_.WriteTo(output, _repeated_parentIds_codec); ids_.WriteTo(output, _repeated_ids_codec); buildingIds_.WriteTo(output, _repeated_buildingIds_codec); serialNumbers_.WriteTo(output, _repeated_serialNumbers_codec); metricPointIds_.WriteTo(output, _repeated_metricPointIds_codec); serialIds_.WriteTo(output, _repeated_serialIds_codec); orpons_.WriteTo(output, _repeated_orpons_codec); indicatorVendorTypes_.WriteTo(output, _repeated_indicatorVendorTypes_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) { fiasIds_.WriteTo(ref output, _repeated_fiasIds_codec); types_.WriteTo(ref output, _repeated_types_codec); statusTypes_.WriteTo(ref output, _repeated_statusTypes_codec); models_.WriteTo(ref output, _repeated_models_codec); metricPointMetricTypes_.WriteTo(ref output, _repeated_metricPointMetricTypes_codec); roomNumbers_.WriteTo(ref output, _repeated_roomNumbers_codec); roomLabels_.WriteTo(ref output, _repeated_roomLabels_codec); parentIds_.WriteTo(ref output, _repeated_parentIds_codec); ids_.WriteTo(ref output, _repeated_ids_codec); buildingIds_.WriteTo(ref output, _repeated_buildingIds_codec); serialNumbers_.WriteTo(ref output, _repeated_serialNumbers_codec); metricPointIds_.WriteTo(ref output, _repeated_metricPointIds_codec); serialIds_.WriteTo(ref output, _repeated_serialIds_codec); orpons_.WriteTo(ref output, _repeated_orpons_codec); indicatorVendorTypes_.WriteTo(ref output, _repeated_indicatorVendorTypes_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 += fiasIds_.CalculateSize(_repeated_fiasIds_codec); size += types_.CalculateSize(_repeated_types_codec); size += statusTypes_.CalculateSize(_repeated_statusTypes_codec); size += models_.CalculateSize(_repeated_models_codec); size += metricPointMetricTypes_.CalculateSize(_repeated_metricPointMetricTypes_codec); size += roomNumbers_.CalculateSize(_repeated_roomNumbers_codec); size += roomLabels_.CalculateSize(_repeated_roomLabels_codec); size += parentIds_.CalculateSize(_repeated_parentIds_codec); size += ids_.CalculateSize(_repeated_ids_codec); size += buildingIds_.CalculateSize(_repeated_buildingIds_codec); size += serialNumbers_.CalculateSize(_repeated_serialNumbers_codec); size += metricPointIds_.CalculateSize(_repeated_metricPointIds_codec); size += serialIds_.CalculateSize(_repeated_serialIds_codec); size += orpons_.CalculateSize(_repeated_orpons_codec); size += indicatorVendorTypes_.CalculateSize(_repeated_indicatorVendorTypes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceFilter other) { if (other == null) { return; } fiasIds_.Add(other.fiasIds_); types_.Add(other.types_); statusTypes_.Add(other.statusTypes_); models_.Add(other.models_); metricPointMetricTypes_.Add(other.metricPointMetricTypes_); roomNumbers_.Add(other.roomNumbers_); roomLabels_.Add(other.roomLabels_); parentIds_.Add(other.parentIds_); ids_.Add(other.ids_); buildingIds_.Add(other.buildingIds_); serialNumbers_.Add(other.serialNumbers_); metricPointIds_.Add(other.metricPointIds_); serialIds_.Add(other.serialIds_); orpons_.Add(other.orpons_); indicatorVendorTypes_.Add(other.indicatorVendorTypes_); _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: { fiasIds_.AddEntriesFrom(input, _repeated_fiasIds_codec); break; } case 18: case 16: { types_.AddEntriesFrom(input, _repeated_types_codec); break; } case 26: case 24: { statusTypes_.AddEntriesFrom(input, _repeated_statusTypes_codec); break; } case 34: { models_.AddEntriesFrom(input, _repeated_models_codec); break; } case 42: case 40: { metricPointMetricTypes_.AddEntriesFrom(input, _repeated_metricPointMetricTypes_codec); break; } case 50: { roomNumbers_.AddEntriesFrom(input, _repeated_roomNumbers_codec); break; } case 58: { roomLabels_.AddEntriesFrom(input, _repeated_roomLabels_codec); break; } case 66: case 64: { parentIds_.AddEntriesFrom(input, _repeated_parentIds_codec); break; } case 74: case 72: { ids_.AddEntriesFrom(input, _repeated_ids_codec); break; } case 82: case 80: { buildingIds_.AddEntriesFrom(input, _repeated_buildingIds_codec); break; } case 90: { serialNumbers_.AddEntriesFrom(input, _repeated_serialNumbers_codec); break; } case 98: { metricPointIds_.AddEntriesFrom(input, _repeated_metricPointIds_codec); break; } case 106: { serialIds_.AddEntriesFrom(input, _repeated_serialIds_codec); break; } case 114: case 112: { orpons_.AddEntriesFrom(input, _repeated_orpons_codec); break; } case 122: case 120: { indicatorVendorTypes_.AddEntriesFrom(input, _repeated_indicatorVendorTypes_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: { fiasIds_.AddEntriesFrom(ref input, _repeated_fiasIds_codec); break; } case 18: case 16: { types_.AddEntriesFrom(ref input, _repeated_types_codec); break; } case 26: case 24: { statusTypes_.AddEntriesFrom(ref input, _repeated_statusTypes_codec); break; } case 34: { models_.AddEntriesFrom(ref input, _repeated_models_codec); break; } case 42: case 40: { metricPointMetricTypes_.AddEntriesFrom(ref input, _repeated_metricPointMetricTypes_codec); break; } case 50: { roomNumbers_.AddEntriesFrom(ref input, _repeated_roomNumbers_codec); break; } case 58: { roomLabels_.AddEntriesFrom(ref input, _repeated_roomLabels_codec); break; } case 66: case 64: { parentIds_.AddEntriesFrom(ref input, _repeated_parentIds_codec); break; } case 74: case 72: { ids_.AddEntriesFrom(ref input, _repeated_ids_codec); break; } case 82: case 80: { buildingIds_.AddEntriesFrom(ref input, _repeated_buildingIds_codec); break; } case 90: { serialNumbers_.AddEntriesFrom(ref input, _repeated_serialNumbers_codec); break; } case 98: { metricPointIds_.AddEntriesFrom(ref input, _repeated_metricPointIds_codec); break; } case 106: { serialIds_.AddEntriesFrom(ref input, _repeated_serialIds_codec); break; } case 114: case 112: { orpons_.AddEntriesFrom(ref input, _repeated_orpons_codec); break; } case 122: case 120: { indicatorVendorTypes_.AddEntriesFrom(ref input, _repeated_indicatorVendorTypes_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the DeviceFilter message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибки валидации. /// Эти проверки выполняются до обращения в базу данных /// public sealed partial class ValidationError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidationError()); 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.TelemetryControl.V1.DeviceFilter.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 ValidationError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError(ValidationError other) : this() { path_ = other.path_; message_ = other.message_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError Clone() { return new ValidationError(this); } /// Field number for the "path" field. public const int PathFieldNumber = 1; private string path_ = ""; /// /// Путь к полю в формате наименования protobuf /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "message" field. public const int MessageFieldNumber = 2; private string message_ = ""; /// /// Валидационное сообщение /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { get { return message_; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ValidationError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ValidationError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Path != other.Path) return false; if (Message != other.Message) 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 (Path.Length != 0) hash ^= Path.GetHashCode(); if (Message.Length != 0) hash ^= Message.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 (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } 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 (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } 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 (Path.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); } if (Message.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ValidationError other) { if (other == null) { return; } if (other.Path.Length != 0) { Path = other.Path; } if (other.Message.Length != 0) { Message = other.Message; } _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: { Path = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Path = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Запрос получения количества устройств /// public sealed partial class GetDeviceCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceCountRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[39]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceCountRequest(GetDeviceCountRequest 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 GetDeviceCountRequest Clone() { return new GetDeviceCountRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.DeviceFilter filter_; /// /// Фильтр по устройствам /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceFilter 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 GetDeviceCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceCountRequest 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(GetDeviceCountRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.TelemetryControl.V1.DeviceFilter(); } 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.TelemetryControl.V1.DeviceFilter(); } 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.TelemetryControl.V1.DeviceFilter(); } input.ReadMessage(Filter); break; } } } } #endif } /// /// Ответ на запрос получения количества устройств /// public sealed partial class GetDeviceCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceCountResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[40]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceCountResponse(GetDeviceCountResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceCountResponse Clone() { return new GetDeviceCountResponse(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(); } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.GetDeviceCountResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.TelemetryControl.V1.GetDeviceCountResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } 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 GetDeviceCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceCountResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Data != other.Data) return false; if (!object.Equals(Error, other.Error)) 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(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } 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 (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceCountResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.TelemetryControl.V1.GetDeviceCountResponse.Types.Error(); } Error.MergeFrom(other.Error); 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; } case 18: { global::Keyapis.TelemetryControl.V1.GetDeviceCountResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.GetDeviceCountResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = 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: { Data = input.ReadInt32(); break; } case 18: { global::Keyapis.TelemetryControl.V1.GetDeviceCountResponse.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.GetDeviceCountResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetDeviceCountResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса получения количества устройств /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); 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.TelemetryControl.V1.GetDeviceCountResponse.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 Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.DeviceFilterValidation: DeviceFilterValidation = other.DeviceFilterValidation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "device_filter_validation" field. public const int DeviceFilterValidationFieldNumber = 1; /// /// Ошибка фильтрации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceFilter.Types.ValidationError DeviceFilterValidation { get { return reasonCase_ == ReasonOneofCase.DeviceFilterValidation ? (global::Keyapis.TelemetryControl.V1.DeviceFilter.Types.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.DeviceFilterValidation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, DeviceFilterValidation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(DeviceFilterValidation, other.DeviceFilterValidation)) return false; if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) hash ^= DeviceFilterValidation.GetHashCode(); hash ^= (int) reasonCase_; 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { output.WriteRawTag(10); output.WriteMessage(DeviceFilterValidation); } 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { output.WriteRawTag(10); output.WriteMessage(DeviceFilterValidation); } 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 (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceFilterValidation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.DeviceFilterValidation: if (DeviceFilterValidation == null) { DeviceFilterValidation = new global::Keyapis.TelemetryControl.V1.DeviceFilter.Types.ValidationError(); } DeviceFilterValidation.MergeFrom(other.DeviceFilterValidation); 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.TelemetryControl.V1.DeviceFilter.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceFilter.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { subBuilder.MergeFrom(DeviceFilterValidation); } input.ReadMessage(subBuilder); DeviceFilterValidation = 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.TelemetryControl.V1.DeviceFilter.Types.ValidationError subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceFilter.Types.ValidationError(); if (reasonCase_ == ReasonOneofCase.DeviceFilterValidation) { subBuilder.MergeFrom(DeviceFilterValidation); } input.ReadMessage(subBuilder); DeviceFilterValidation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения списка /// public sealed partial class GetDeviceIndicatorMetricPointListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceIndicatorMetricPointListRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[41]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorMetricPointListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorMetricPointListRequest(GetDeviceIndicatorMetricPointListRequest 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 GetDeviceIndicatorMetricPointListRequest Clone() { return new GetDeviceIndicatorMetricPointListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointFilter filter_; /// /// Фильтр связей индикаторов и ТУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointFilter 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.TelemetryControl.V1.DeviceIndicatorMetricPointPaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging) 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 GetDeviceIndicatorMetricPointListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceIndicatorMetricPointListRequest 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(GetDeviceIndicatorMetricPointListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging(); } 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.TelemetryControl.V1.DeviceIndicatorMetricPointFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging(); 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.TelemetryControl.V1.DeviceIndicatorMetricPointFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Фильтр для запроса индикаторов и ТУ. /// При передаче массива в параметр фильтра элементы массива работают в выборке через ИЛИ. /// При передаче нескольких разных параметров фильтра они работают в выборке через И /// public sealed partial class DeviceIndicatorMetricPointFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceIndicatorMetricPointFilter()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[42]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceIndicatorMetricPointFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceIndicatorMetricPointFilter(DeviceIndicatorMetricPointFilter other) : this() { indicatorId_ = other.indicatorId_.Clone(); metricPointId_ = other.metricPointId_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceIndicatorMetricPointFilter Clone() { return new DeviceIndicatorMetricPointFilter(this); } /// Field number for the "indicator_id" field. public const int IndicatorIdFieldNumber = 1; private static readonly pb::FieldCodec _repeated_indicatorId_codec = pb::FieldCodec.ForInt32(10); private readonly pbc::RepeatedField indicatorId_ = new pbc::RepeatedField(); /// /// По Идентификатору индикатора /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField IndicatorId { get { return indicatorId_; } } /// Field number for the "metric_point_id" field. public const int MetricPointIdFieldNumber = 2; private static readonly pb::FieldCodec _repeated_metricPointId_codec = pb::FieldCodec.ForString(18); private readonly pbc::RepeatedField metricPointId_ = new pbc::RepeatedField(); /// /// По Идентификатору ТУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MetricPointId { get { return metricPointId_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeviceIndicatorMetricPointFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceIndicatorMetricPointFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!indicatorId_.Equals(other.indicatorId_)) return false; if(!metricPointId_.Equals(other.metricPointId_)) 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 ^= indicatorId_.GetHashCode(); hash ^= metricPointId_.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 indicatorId_.WriteTo(output, _repeated_indicatorId_codec); metricPointId_.WriteTo(output, _repeated_metricPointId_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) { indicatorId_.WriteTo(ref output, _repeated_indicatorId_codec); metricPointId_.WriteTo(ref output, _repeated_metricPointId_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 += indicatorId_.CalculateSize(_repeated_indicatorId_codec); size += metricPointId_.CalculateSize(_repeated_metricPointId_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceIndicatorMetricPointFilter other) { if (other == null) { return; } indicatorId_.Add(other.indicatorId_); metricPointId_.Add(other.metricPointId_); _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: { indicatorId_.AddEntriesFrom(input, _repeated_indicatorId_codec); break; } case 18: { metricPointId_.AddEntriesFrom(input, _repeated_metricPointId_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: { indicatorId_.AddEntriesFrom(ref input, _repeated_indicatorId_codec); break; } case 18: { metricPointId_.AddEntriesFrom(ref input, _repeated_metricPointId_codec); break; } } } } #endif } /// /// Пагинация связей индикаторов и ТУ /// public sealed partial class DeviceIndicatorMetricPointPaging : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceIndicatorMetricPointPaging()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[43]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceIndicatorMetricPointPaging() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceIndicatorMetricPointPaging(DeviceIndicatorMetricPointPaging 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 DeviceIndicatorMetricPointPaging Clone() { return new DeviceIndicatorMetricPointPaging(this); } /// Field number for the "order_by_type" field. public const int OrderByTypeFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.OrderByType orderByType_ = global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.OrderByType.Unknown; /// /// Тип значения сортировки. /// По умолчанию: ID /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.OrderByType OrderByType { get { return orderByType_; } set { orderByType_ = value; } } /// Field number for the "direction_type" field. public const int DirectionTypeFieldNumber = 2; private global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.DirectionType directionType_ = global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.DirectionType.Unknown; /// /// Тип направления сортировки. /// По умолчанию: DESC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.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 DeviceIndicatorMetricPointPaging); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceIndicatorMetricPointPaging 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.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode(); if (DirectionType != global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.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.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.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.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.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.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.OrderByType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType); } if (DirectionType != global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.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(DeviceIndicatorMetricPointPaging other) { if (other == null) { return; } if (other.OrderByType != global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.OrderByType.Unknown) { OrderByType = other.OrderByType; } if (other.DirectionType != global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.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.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.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.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointPaging.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 DeviceIndicatorMetricPointPaging 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("INDICATOR_ID")] IndicatorId = 1, /// /// По По Идентификатору ТУ /// [pbr::OriginalName("METRIC_POINT_ID")] MetricPointId = 2, } /// /// Справочник типов направлений сортировки /// 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 GetDeviceIndicatorMetricPointListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceIndicatorMetricPointListResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[44]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorMetricPointListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorMetricPointListResponse(GetDeviceIndicatorMetricPointListResponse 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 GetDeviceIndicatorMetricPointListResponse Clone() { return new GetDeviceIndicatorMetricPointListResponse(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.TelemetryControl.V1.DeviceIndicatorMetricPoint Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint) 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 GetDeviceIndicatorMetricPointListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceIndicatorMetricPointListResponse 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(GetDeviceIndicatorMetricPointListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); } 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.TelemetryControl.V1.DeviceIndicatorMetricPoint subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); 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.TelemetryControl.V1.DeviceIndicatorMetricPoint subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Связка индикатора и ТУ /// public sealed partial class DeviceIndicatorMetricPoint : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceIndicatorMetricPoint()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[45]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceIndicatorMetricPoint() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceIndicatorMetricPoint(DeviceIndicatorMetricPoint other) : this() { indicatorId_ = other.indicatorId_; metricPointId_ = other.metricPointId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceIndicatorMetricPoint Clone() { return new DeviceIndicatorMetricPoint(this); } /// Field number for the "indicator_id" field. public const int IndicatorIdFieldNumber = 1; private int indicatorId_; /// /// Идентификатор индикатора. /// # Диапазон: 0..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IndicatorId { get { return indicatorId_; } set { indicatorId_ = value; } } /// Field number for the "metric_point_id" field. public const int MetricPointIdFieldNumber = 2; private string metricPointId_ = ""; /// /// Идентификатору ТУ. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string MetricPointId { get { return metricPointId_; } set { metricPointId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeviceIndicatorMetricPoint); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceIndicatorMetricPoint other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IndicatorId != other.IndicatorId) return false; if (MetricPointId != other.MetricPointId) 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 (IndicatorId != 0) hash ^= IndicatorId.GetHashCode(); if (MetricPointId.Length != 0) hash ^= MetricPointId.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 (IndicatorId != 0) { output.WriteRawTag(8); output.WriteInt32(IndicatorId); } if (MetricPointId.Length != 0) { output.WriteRawTag(18); output.WriteString(MetricPointId); } 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 (IndicatorId != 0) { output.WriteRawTag(8); output.WriteInt32(IndicatorId); } if (MetricPointId.Length != 0) { output.WriteRawTag(18); output.WriteString(MetricPointId); } 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 (IndicatorId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(IndicatorId); } if (MetricPointId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(MetricPointId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceIndicatorMetricPoint other) { if (other == null) { return; } if (other.IndicatorId != 0) { IndicatorId = other.IndicatorId; } if (other.MetricPointId.Length != 0) { MetricPointId = other.MetricPointId; } _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: { IndicatorId = input.ReadInt32(); break; } case 18: { MetricPointId = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { IndicatorId = input.ReadInt32(); break; } case 18: { MetricPointId = input.ReadString(); break; } } } } #endif } /// /// Запрос получения количества связей индикаторов и ТУ /// public sealed partial class GetDeviceIndicatorMetricPointCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceIndicatorMetricPointCountRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[46]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorMetricPointCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorMetricPointCountRequest(GetDeviceIndicatorMetricPointCountRequest 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 GetDeviceIndicatorMetricPointCountRequest Clone() { return new GetDeviceIndicatorMetricPointCountRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointFilter filter_; /// /// Фильтр связей индикаторов и ТУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointFilter 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 GetDeviceIndicatorMetricPointCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceIndicatorMetricPointCountRequest 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(GetDeviceIndicatorMetricPointCountRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPointFilter(); } 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.TelemetryControl.V1.DeviceIndicatorMetricPointFilter(); } 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.TelemetryControl.V1.DeviceIndicatorMetricPointFilter(); } input.ReadMessage(Filter); break; } } } } #endif } /// /// Ответ на запрос получения количества связей индикаторов и ТУ /// public sealed partial class GetDeviceIndicatorMetricPointCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceIndicatorMetricPointCountResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[47]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorMetricPointCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceIndicatorMetricPointCountResponse(GetDeviceIndicatorMetricPointCountResponse 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 GetDeviceIndicatorMetricPointCountResponse Clone() { return new GetDeviceIndicatorMetricPointCountResponse(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 GetDeviceIndicatorMetricPointCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceIndicatorMetricPointCountResponse 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(GetDeviceIndicatorMetricPointCountResponse 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 PutDeviceIndicatorMetricPointAttachRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PutDeviceIndicatorMetricPointAttachRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[48]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceIndicatorMetricPointAttachRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceIndicatorMetricPointAttachRequest(PutDeviceIndicatorMetricPointAttachRequest other) : this() { deviceIndicatorMetricPoint_ = other.deviceIndicatorMetricPoint_ != null ? other.deviceIndicatorMetricPoint_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceIndicatorMetricPointAttachRequest Clone() { return new PutDeviceIndicatorMetricPointAttachRequest(this); } /// Field number for the "device_indicator_metric_point" field. public const int DeviceIndicatorMetricPointFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint deviceIndicatorMetricPoint_; /// /// Связь индикатора и ТУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint DeviceIndicatorMetricPoint { get { return deviceIndicatorMetricPoint_; } set { deviceIndicatorMetricPoint_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PutDeviceIndicatorMetricPointAttachRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PutDeviceIndicatorMetricPointAttachRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(DeviceIndicatorMetricPoint, other.DeviceIndicatorMetricPoint)) 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 (deviceIndicatorMetricPoint_ != null) hash ^= DeviceIndicatorMetricPoint.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 (deviceIndicatorMetricPoint_ != null) { output.WriteRawTag(10); output.WriteMessage(DeviceIndicatorMetricPoint); } 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 (deviceIndicatorMetricPoint_ != null) { output.WriteRawTag(10); output.WriteMessage(DeviceIndicatorMetricPoint); } 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 (deviceIndicatorMetricPoint_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceIndicatorMetricPoint); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PutDeviceIndicatorMetricPointAttachRequest other) { if (other == null) { return; } if (other.deviceIndicatorMetricPoint_ != null) { if (deviceIndicatorMetricPoint_ == null) { DeviceIndicatorMetricPoint = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); } DeviceIndicatorMetricPoint.MergeFrom(other.DeviceIndicatorMetricPoint); } _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 (deviceIndicatorMetricPoint_ == null) { DeviceIndicatorMetricPoint = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); } input.ReadMessage(DeviceIndicatorMetricPoint); 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 (deviceIndicatorMetricPoint_ == null) { DeviceIndicatorMetricPoint = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); } input.ReadMessage(DeviceIndicatorMetricPoint); break; } } } } #endif } /// /// Ответ на запрос сохранения связи индикатора и ТУ /// public sealed partial class PutDeviceIndicatorMetricPointAttachResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PutDeviceIndicatorMetricPointAttachResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[49]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceIndicatorMetricPointAttachResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceIndicatorMetricPointAttachResponse(PutDeviceIndicatorMetricPointAttachResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceIndicatorMetricPointAttachResponse Clone() { return new PutDeviceIndicatorMetricPointAttachResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PutDeviceIndicatorMetricPointAttachResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PutDeviceIndicatorMetricPointAttachResponse 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(PutDeviceIndicatorMetricPointAttachResponse 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 PutDeviceIndicatorMetricPointDetachRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PutDeviceIndicatorMetricPointDetachRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[50]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceIndicatorMetricPointDetachRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceIndicatorMetricPointDetachRequest(PutDeviceIndicatorMetricPointDetachRequest other) : this() { deviceIndicatorMetricPoint_ = other.deviceIndicatorMetricPoint_ != null ? other.deviceIndicatorMetricPoint_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceIndicatorMetricPointDetachRequest Clone() { return new PutDeviceIndicatorMetricPointDetachRequest(this); } /// Field number for the "device_indicator_metric_point" field. public const int DeviceIndicatorMetricPointFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint deviceIndicatorMetricPoint_; /// /// Связь индикатора и ТУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint DeviceIndicatorMetricPoint { get { return deviceIndicatorMetricPoint_; } set { deviceIndicatorMetricPoint_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PutDeviceIndicatorMetricPointDetachRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PutDeviceIndicatorMetricPointDetachRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(DeviceIndicatorMetricPoint, other.DeviceIndicatorMetricPoint)) 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 (deviceIndicatorMetricPoint_ != null) hash ^= DeviceIndicatorMetricPoint.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 (deviceIndicatorMetricPoint_ != null) { output.WriteRawTag(10); output.WriteMessage(DeviceIndicatorMetricPoint); } 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 (deviceIndicatorMetricPoint_ != null) { output.WriteRawTag(10); output.WriteMessage(DeviceIndicatorMetricPoint); } 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 (deviceIndicatorMetricPoint_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceIndicatorMetricPoint); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PutDeviceIndicatorMetricPointDetachRequest other) { if (other == null) { return; } if (other.deviceIndicatorMetricPoint_ != null) { if (deviceIndicatorMetricPoint_ == null) { DeviceIndicatorMetricPoint = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); } DeviceIndicatorMetricPoint.MergeFrom(other.DeviceIndicatorMetricPoint); } _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 (deviceIndicatorMetricPoint_ == null) { DeviceIndicatorMetricPoint = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); } input.ReadMessage(DeviceIndicatorMetricPoint); 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 (deviceIndicatorMetricPoint_ == null) { DeviceIndicatorMetricPoint = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); } input.ReadMessage(DeviceIndicatorMetricPoint); break; } } } } #endif } /// /// Ответ на запрос удаления связи индикатора и ТУ /// public sealed partial class PutDeviceIndicatorMetricPointDetachResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PutDeviceIndicatorMetricPointDetachResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor.MessageTypes[51]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceIndicatorMetricPointDetachResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceIndicatorMetricPointDetachResponse(PutDeviceIndicatorMetricPointDetachResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceIndicatorMetricPointDetachResponse Clone() { return new PutDeviceIndicatorMetricPointDetachResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PutDeviceIndicatorMetricPointDetachResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PutDeviceIndicatorMetricPointDetachResponse 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(PutDeviceIndicatorMetricPointDetachResponse 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