// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/device/v1/keyapis_device_events_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.Device.V1 { /// Holder for reflection information generated from keyapis/device/v1/keyapis_device_events_v1.proto public static partial class KeyapisDeviceEventsV1Reflection { #region Descriptor /// File descriptor for keyapis/device/v1/keyapis_device_events_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisDeviceEventsV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjBrZXlhcGlzL2RldmljZS92MS9rZXlhcGlzX2RldmljZV9ldmVudHNfdjEu", "cHJvdG8SEWtleWFwaXMuZGV2aWNlLnYxGh9nb29nbGUvYXBpL2ZpZWxkX2Jl", "aGF2aW9yLnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3Rv", "Gh5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8aMGtleWFwaXMvZGV2", "aWNlL3YxL2tleWFwaXNfZGV2aWNlX2RldmljZV92MS5wcm90bxowa2V5YXBp", "cy9kZXZpY2UvdjEva2V5YXBpc19kZXZpY2VfYWNjZXNzX3YxLnByb3RvIswK", "ChNDb25maWd1cmVEZXZpY2VUYXNrEhcKCnJlcXVlc3RfaWQYASABKAlCA+BB", "AhISCgVtb2RlbBgCIAEoCUID4EECEhEKBGhvc3QYAyABKAlCA+BBAhIVCgh1", "c2VybmFtZRgEIAEoCUID4EECEhUKCHBhc3N3b3JkGAUgASgJQgPgQQISFgoJ", "ZGV2aWNlX2lkGAYgASgFQgPgQQISLgoGcHJlc2V0GAcgASgLMhkua2V5YXBp", "cy5kZXZpY2UudjEuUHJlc2V0QgPgQQISRgoLc2lwX2FjY291bnQYCCABKAsy", "MS5rZXlhcGlzLmRldmljZS52MS5Db25maWd1cmVEZXZpY2VUYXNrLlNpcEFj", "Y291bnQSLQoJc2lwX3Jvb21zGAkgAygLMhoua2V5YXBpcy5kZXZpY2UudjEu", "U2lwUm9vbRI5CgRnYXRlGAogASgLMisua2V5YXBpcy5kZXZpY2UudjEuQ29u", "ZmlndXJlRGV2aWNlVGFzay5HYXRlEiYKBXJmaWRzGAsgAygLMhcua2V5YXBp", "cy5kZXZpY2UudjEuUmZpZBImCgVjb2RlcxgMIAMoCzIXLmtleWFwaXMuZGV2", "aWNlLnYxLkNvZGUSGQoMbnRwX3RpbWV6b25lGA0gASgJQgPgQQISNwoDc2wz", "GA4gASgLMioua2V5YXBpcy5kZXZpY2UudjEuQ29uZmlndXJlRGV2aWNlVGFz", "ay5TbDMSSQoXZW1lcmdlbmN5X2NhbGxfc2V0dGluZ3MYDyABKAsyKC5rZXlh", "cGlzLmRldmljZS52MS5FbWVyZ2VuY3lDYWxsU2V0dGluZ3MaXgoKU2lwQWNj", "b3VudBIRCgRuYW1lGAEgASgJQgPgQQISEwoGbnVtYmVyGAIgASgJQgPgQQIS", "EQoEdXNlchgDIAEoCUID4EECEhUKCHBhc3N3b3JkGAQgASgJQgPgQQIa/AIK", "BEdhdGUSFgoJaXNfYWN0aXZlGAEgASgIQgPgQQISVgoOcmVsYXlfc2V0dGlu", "Z3MYAiADKAsyOS5rZXlhcGlzLmRldmljZS52MS5Db25maWd1cmVEZXZpY2VU", "YXNrLkdhdGUuUmVsYXlTZXR0aW5nc0ID4EECEk8KC3Jvb21fcmFuZ2VzGAMg", "AygLMjUua2V5YXBpcy5kZXZpY2UudjEuQ29uZmlndXJlRGV2aWNlVGFzay5H", "YXRlLlJvb21SYW5nZUID4EECGjwKDVJlbGF5U2V0dGluZ3MSFgoJaXNfYWN0", "aXZlGAEgASgIQgPgQQISEwoLcmVsYXlfaW5kZXgYAiABKAUadQoJUm9vbVJh", "bmdlEhQKB2FkZHJlc3MYASABKAlCA+BBAhITCgZwcmVmaXgYAiABKAlCA+BB", "AhIeChFmaXJzdF9yb29tX251bWJlchgDIAEoCUID4EECEh0KEGxhc3Rfcm9v", "bV9udW1iZXIYBCABKAlCA+BBAhqIAQoRRW5jcnlwdGlvblByb2ZpbGUSGgoN", "c2VjdG9yX251bWJlchgBIAEoBUID4EECEhkKDGJsb2NrX251bWJlchgCIAEo", "BUID4EECEhQKB2Flc19rZXkYAyABKAlCA+BBAhITCgtzdGFydF9pbmRleBgE", "IAEoBRIRCgllbmRfaW5kZXgYBSABKAUadAoDU2wzEhcKCmlzX2VuYWJsZWQY", "ASABKAhCA+BBAhJUChJlbmNyeXB0aW9uX3Byb2ZpbGUYAiABKAsyOC5rZXlh", "cGlzLmRldmljZS52MS5Db25maWd1cmVEZXZpY2VUYXNrLkVuY3J5cHRpb25Q", "cm9maWxlIqQCChVFbWVyZ2VuY3lDYWxsU2V0dGluZ3MSGQoRaXNfY2FsbF9h", "dmFpbGFibGUYASABKAgSYQoYZW1lcmdlbmN5X2NhbGxfcGFyYW1ldGVyGAIg", "ASgLMj8ua2V5YXBpcy5kZXZpY2UudjEuRW1lcmdlbmN5Q2FsbFNldHRpbmdz", "LkVtZXJnZW5jeUNhbGxQYXJhbWV0ZXIajAEKFkVtZXJnZW5jeUNhbGxQYXJh", "bWV0ZXISHQoQZW1lcmdlbmN5X251bWJlchgBIAEoCUID4EECEhcKCmFiY19u", "dW1iZXIYAiABKAlCA+BBAhIbCg5zaXBfdHJ1bmtfaG9zdBgDIAEoCUID4EEC", "Eh0KEGRlc3RpbmF0aW9uX25hbWUYBCABKAlCA+BBAiKHDgoZQ29uZmlndXJl", "RGV2aWNlUmVzdWx0VGFzaxIXCgpyZXF1ZXN0X2lkGAEgASgJQgPgQQISFgoJ", "ZGV2aWNlX2lkGAIgASgFQgPgQQISNgoNY29uZmlndXJlZF9hdBgDIAEoCzIa", "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAhIYChBoYXJkd2FyZV92", "ZXJzaW9uGAQgASgJEhgKEGZpcm13YXJlX3ZlcnNpb24YBSABKAkSEgoFbW9k", "ZWwYBiABKAlCA+BBAhJHCghzZXR0aW5ncxgHIAEoCzI1LmtleWFwaXMuZGV2", "aWNlLnYxLkNvbmZpZ3VyZURldmljZVJlc3VsdFRhc2suU2V0dGluZ3Ma7wsK", "CFNldHRpbmdzElAKBnByZXNldBgBIAEoCzI7LmtleWFwaXMuZGV2aWNlLnYx", "LkNvbmZpZ3VyZURldmljZVJlc3VsdFRhc2suU2V0dGluZ3MuU3RhdGVCA+BB", "AhJQCgtzaXBfYWNjb3VudBgCIAEoCzI7LmtleWFwaXMuZGV2aWNlLnYxLkNv", "bmZpZ3VyZURldmljZVJlc3VsdFRhc2suU2V0dGluZ3MuU3RhdGUSUQoJc2lw", "X3Jvb21zGAMgASgLMj4ua2V5YXBpcy5kZXZpY2UudjEuQ29uZmlndXJlRGV2", "aWNlUmVzdWx0VGFzay5TZXR0aW5ncy5TaXBSb29tcxJJCgRnYXRlGAQgASgL", "Mjsua2V5YXBpcy5kZXZpY2UudjEuQ29uZmlndXJlRGV2aWNlUmVzdWx0VGFz", "ay5TZXR0aW5ncy5TdGF0ZRJKCgVyZmlkcxgFIAEoCzI7LmtleWFwaXMuZGV2", "aWNlLnYxLkNvbmZpZ3VyZURldmljZVJlc3VsdFRhc2suU2V0dGluZ3MuUmZp", "ZHMSSgoFY29kZXMYBiABKAsyOy5rZXlhcGlzLmRldmljZS52MS5Db25maWd1", "cmVEZXZpY2VSZXN1bHRUYXNrLlNldHRpbmdzLkNvZGVzEkgKA3NsMxgHIAEo", "CzI7LmtleWFwaXMuZGV2aWNlLnYxLkNvbmZpZ3VyZURldmljZVJlc3VsdFRh", "c2suU2V0dGluZ3MuU3RhdGUSXAoXZW1lcmdlbmN5X2NhbGxfc2V0dGluZ3MY", "CCABKAsyOy5rZXlhcGlzLmRldmljZS52MS5Db25maWd1cmVEZXZpY2VSZXN1", "bHRUYXNrLlNldHRpbmdzLlN0YXRlGnoKBVN0YXRlEloKC3N0YXR1c190eXBl", "GAEgASgOMkAua2V5YXBpcy5kZXZpY2UudjEuQ29uZmlndXJlRGV2aWNlUmVz", "dWx0VGFzay5TZXR0aW5ncy5TdGF0dXNUeXBlQgPgQQISFQoNZXJyb3JfbWVz", "c2FnZRgCIAEoCRraAQoFUmZpZHMSVQoLc3RhdHVzX3R5cGUYASABKA4yQC5r", "ZXlhcGlzLmRldmljZS52MS5Db25maWd1cmVEZXZpY2VSZXN1bHRUYXNrLlNl", "dHRpbmdzLlN0YXR1c1R5cGUSFQoNZXJyb3JfbWVzc2FnZRgCIAEoCRItCgxs", "b2FkZWRfcmZpZHMYAyADKAsyFy5rZXlhcGlzLmRldmljZS52MS5SZmlkEjQK", "DnVubG9hZGVkX3JmaWRzGAQgAygLMhwua2V5YXBpcy5kZXZpY2UudjEuUmZp", "ZEVycm9yGtoBCgVDb2RlcxJVCgtzdGF0dXNfdHlwZRgBIAEoDjJALmtleWFw", "aXMuZGV2aWNlLnYxLkNvbmZpZ3VyZURldmljZVJlc3VsdFRhc2suU2V0dGlu", "Z3MuU3RhdHVzVHlwZRIVCg1lcnJvcl9tZXNzYWdlGAIgASgJEi0KDGxvYWRl", "ZF9jb2RlcxgDIAMoCzIXLmtleWFwaXMuZGV2aWNlLnYxLkNvZGUSNAoOdW5s", "b2FkZWRfY29kZXMYBCADKAsyHC5rZXlhcGlzLmRldmljZS52MS5Db2RlRXJy", "b3Ia6wEKCFNpcFJvb21zElUKC3N0YXR1c190eXBlGAEgASgOMkAua2V5YXBp", "cy5kZXZpY2UudjEuQ29uZmlndXJlRGV2aWNlUmVzdWx0VGFzay5TZXR0aW5n", "cy5TdGF0dXNUeXBlEhUKDWVycm9yX21lc3NhZ2UYAiABKAkSNAoQbG9hZGVk", "X3NpcF9yb29tcxgDIAMoCzIaLmtleWFwaXMuZGV2aWNlLnYxLlNpcFJvb20S", "OwoSdW5sb2FkZWRfc2lwX3Jvb21zGAQgAygLMh8ua2V5YXBpcy5kZXZpY2Uu", "djEuU2lwUm9vbUVycm9yIj0KClN0YXR1c1R5cGUSFwoTU1RBVFVTX1RZUEVf", "VU5LTk9XThAAEgsKB1NVQ0NFU1MQARIJCgVFUlJPUhACIkkKF0Ntc1NlcnZp", "Y2VBdmFpbGFibGVUYXNrEhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhIVCghv", "cnBvbl9pZBgCIAEoA0ID4EECIu0GChFDb250cm9sRGV2aWNlVGFzaxIXCgpy", "ZXF1ZXN0X2lkGAEgASgJQgPgQQISEgoFbW9kZWwYAiABKAlCA+BBAhIRCgRo", "b3N0GAMgASgJQgPgQQISFQoIdXNlcm5hbWUYBCABKAlCA+BBAhIVCghwYXNz", "d29yZBgFIAEoCUID4EECEhYKCWRldmljZV9pZBgGIAEoBUID4EECEk4KEGZh", "Y2VfcmVjb2duaXRpb24YByABKAsyNC5rZXlhcGlzLmRldmljZS52MS5Db250", "cm9sRGV2aWNlVGFzay5GYWNlUmVjb2duaXRpb24SKQoGcHJlc2V0GAggASgL", "Mhkua2V5YXBpcy5kZXZpY2UudjEuUHJlc2V0EjIKDG50cF90aW1lem9uZRgJ", "IAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRJGCgtzaXBfYWNj", "b3VudBgKIAEoCzIxLmtleWFwaXMuZGV2aWNlLnYxLkNvbmZpZ3VyZURldmlj", "ZVRhc2suU2lwQWNjb3VudBI5CgRnYXRlGAsgASgLMisua2V5YXBpcy5kZXZp", "Y2UudjEuQ29uZmlndXJlRGV2aWNlVGFzay5HYXRlEkEKCWNvbmNpZXJnZRgM", "IAEoCzIuLmtleWFwaXMuZGV2aWNlLnYxLkNvbnRyb2xEZXZpY2VUYXNrLkNv", "bmNpZXJnZRJFCgthdXRvY29sbGVjdBgNIAEoCzIwLmtleWFwaXMuZGV2aWNl", "LnYxLkNvbnRyb2xEZXZpY2VUYXNrLkF1dG9jb2xsZWN0EjcKA3NsMxgOIAEo", "CzIqLmtleWFwaXMuZGV2aWNlLnYxLkNvbmZpZ3VyZURldmljZVRhc2suU2wz", "EkkKF2VtZXJnZW5jeV9jYWxsX3NldHRpbmdzGA8gASgLMigua2V5YXBpcy5k", "ZXZpY2UudjEuRW1lcmdlbmN5Q2FsbFNldHRpbmdzGioKD0ZhY2VSZWNvZ25p", "dGlvbhIXCgppc19lbmFibGVkGAEgASgIQgPgQQIaPgoJQ29uY2llcmdlEhcK", "CnNpcF9udW1iZXIYASABKAlCA+BBAhIYCgtyb29tX251bWJlchgCIAEoBUID", "4EECGiYKC0F1dG9jb2xsZWN0EhcKCmlzX2VuYWJsZWQYASABKAhCA+BBAiKp", "BwoXQ29udHJvbERldmljZVJlc3VsdFRhc2sSFwoKcmVxdWVzdF9pZBgBIAEo", "CUID4EECEhYKCWRldmljZV9pZBgCIAEoBUID4EECEjYKDWNvbmZpZ3VyZWRf", "YXQYAyABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQISGAoQ", "aGFyZHdhcmVfdmVyc2lvbhgEIAEoCRIYChBmaXJtd2FyZV92ZXJzaW9uGAUg", "ASgJEhIKBW1vZGVsGAYgASgJQgPgQQISRQoIc2V0dGluZ3MYByABKAsyMy5r", "ZXlhcGlzLmRldmljZS52MS5Db250cm9sRGV2aWNlUmVzdWx0VGFzay5TZXR0", "aW5ncxqVBQoIU2V0dGluZ3MSVQoQZmFjZV9yZWNvZ25pdGlvbhgBIAEoCzI7", "LmtleWFwaXMuZGV2aWNlLnYxLkNvbmZpZ3VyZURldmljZVJlc3VsdFRhc2su", "U2V0dGluZ3MuU3RhdGUSSwoGcHJlc2V0GAIgASgLMjsua2V5YXBpcy5kZXZp", "Y2UudjEuQ29uZmlndXJlRGV2aWNlUmVzdWx0VGFzay5TZXR0aW5ncy5TdGF0", "ZRJQCgtzaXBfYWNjb3VudBgDIAEoCzI7LmtleWFwaXMuZGV2aWNlLnYxLkNv", "bmZpZ3VyZURldmljZVJlc3VsdFRhc2suU2V0dGluZ3MuU3RhdGUSSQoEZ2F0", "ZRgEIAEoCzI7LmtleWFwaXMuZGV2aWNlLnYxLkNvbmZpZ3VyZURldmljZVJl", "c3VsdFRhc2suU2V0dGluZ3MuU3RhdGUSUAoLYXV0b2NvbGxlY3QYBSABKAsy", "Oy5rZXlhcGlzLmRldmljZS52MS5Db25maWd1cmVEZXZpY2VSZXN1bHRUYXNr", "LlNldHRpbmdzLlN0YXRlEk4KCWNvbmNpZXJnZRgGIAEoCzI7LmtleWFwaXMu", "ZGV2aWNlLnYxLkNvbmZpZ3VyZURldmljZVJlc3VsdFRhc2suU2V0dGluZ3Mu", "U3RhdGUSSAoDc2wzGAcgASgLMjsua2V5YXBpcy5kZXZpY2UudjEuQ29uZmln", "dXJlRGV2aWNlUmVzdWx0VGFzay5TZXR0aW5ncy5TdGF0ZRJcChdlbWVyZ2Vu", "Y3lfY2FsbF9zZXR0aW5ncxgIIAEoCzI7LmtleWFwaXMuZGV2aWNlLnYxLkNv", "bmZpZ3VyZURldmljZVJlc3VsdFRhc2suU2V0dGluZ3MuU3RhdGUi8wEKEkJs", "b2NrQ21zUGhvbmVzVGFzaxIXCgpyZXF1ZXN0X2lkGAEgASgJQgPgQQISEgoF", "bW9kZWwYAiABKAlCA+BBAhIRCgRob3N0GAMgASgJQgPgQQISEAoIdXNlcm5h", "bWUYBCABKAkSEAoIcGFzc3dvcmQYBSABKAkSQgoKY21zX3Bob25lcxgGIAMo", "CzIuLmtleWFwaXMuZGV2aWNlLnYxLkJsb2NrQ21zUGhvbmVzVGFzay5DbXNQ", "aG9uZRo1CghDbXNQaG9uZRIPCgJpZBgBIAEoBUID4EECEhgKC3Jvb21fbnVt", "YmVyGAIgASgJQgPgQQIigwEKGEJsb2NrQ21zUGhvbmVTdWNjZXNzVGFzaxIX", "CgpyZXF1ZXN0X2lkGAEgASgJQgPgQQISGQoMY21zX3Bob25lX2lkGAIgASgF", "QgPgQQISMwoKYmxvY2tlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5U", "aW1lc3RhbXBCA+BBAiKcAQoVQmxvY2tDbXNQaG9uZUZhaWxUYXNrEhcKCnJl", "cXVlc3RfaWQYASABKAlCA+BBAhIZCgxjbXNfcGhvbmVfaWQYAiABKAVCA+BB", "AhIaCg1lcnJvcl9tZXNzYWdlGAMgASgJQgPgQQISMwoKb2NjdXJlZF9hdBgE", "IAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAiL5AQoVQWN0", "aXZhdGVDbXNQaG9uZXNUYXNrEhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhIS", "CgVtb2RlbBgCIAEoCUID4EECEhEKBGhvc3QYAyABKAlCA+BBAhIQCgh1c2Vy", "bmFtZRgEIAEoCRIQCghwYXNzd29yZBgFIAEoCRJFCgpjbXNfcGhvbmVzGAYg", "AygLMjEua2V5YXBpcy5kZXZpY2UudjEuQWN0aXZhdGVDbXNQaG9uZXNUYXNr", "LkNtc1Bob25lGjUKCENtc1Bob25lEg8KAmlkGAEgASgFQgPgQQISGAoLcm9v", "bV9udW1iZXIYAiABKAlCA+BBAiKIAQobQWN0aXZhdGVDbXNQaG9uZVN1Y2Nl", "c3NUYXNrEhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhIZCgxjbXNfcGhvbmVf", "aWQYAiABKAVCA+BBAhI1CgxhY3RpdmF0ZWRfYXQYAyABKAsyGi5nb29nbGUu", "cHJvdG9idWYuVGltZXN0YW1wQgPgQQIinwEKGEFjdGl2YXRlQ21zUGhvbmVG", "YWlsVGFzaxIXCgpyZXF1ZXN0X2lkGAEgASgJQgPgQQISGQoMY21zX3Bob25l", "X2lkGAIgASgFQgPgQQISGgoNZXJyb3JfbWVzc2FnZRgDIAEoCUID4EECEjMK", "Cm9jY3VyZWRfYXQYBCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w", "QgPgQQIiQwoQQ21zQXZhaWxhYmxlVGFzaxIXCgpyZXF1ZXN0X2lkGAEgASgJ", "QgPgQQISFgoJZGV2aWNlX2lkGAIgASgFQgPgQQIiUgoHU2lwUm9vbRIXCgpz", "aXBfbnVtYmVyGAEgASgJQgPgQQISGAoLcm9vbV9udW1iZXIYAiABKAlCA+BB", "AhIUCgdyb29tX2lkGAMgASgFQgPgQQIibQoMU2lwUm9vbUVycm9yEhcKCnNp", "cF9udW1iZXIYASABKAlCA+BBAhIYCgtyb29tX251bWJlchgCIAEoCUID4EEC", "EhQKB3Jvb21faWQYAyABKAVCA+BBAhIUCgdtZXNzYWdlGAQgASgJQgPgQQIi", "QwoEUmZpZBIPCgJpZBgBIAEoBUID4EECEhAKA2tleRgCIAEoCUID4EECEhgK", "C3Jvb21fbnVtYmVyGAMgASgJQgPgQQIiRAoEQ29kZRIPCgJpZBgBIAEoBUID", "4EECEhEKBGNvZGUYAiABKAlCA+BBAhIYCgtyb29tX251bWJlchgDIAEoCUID", "4EECIl4KCVJmaWRFcnJvchIPCgJpZBgBIAEoBUID4EECEhAKA2tleRgCIAEo", "CUID4EECEhgKC3Jvb21fbnVtYmVyGAMgASgJQgPgQQISFAoHbWVzc2FnZRgE", "IAEoCUID4EECIl8KCUNvZGVFcnJvchIPCgJpZBgBIAEoBUID4EECEhEKBGNv", "ZGUYAiABKAlCA+BBAhIYCgtyb29tX251bWJlchgDIAEoCUID4EECEhQKB21l", "c3NhZ2UYBCABKAlCA+BBAiKyAgoPQWRkU2wzUmZpZHNUYXNrEhcKCnJlcXVl", "c3RfaWQYASABKAlCA+BBAhISCgVtb2RlbBgCIAEoCUID4EECEhEKBGhvc3QY", "AyABKAlCA+BBAhIQCgh1c2VybmFtZRgEIAEoCRIQCghwYXNzd29yZBgFIAEo", "CRIWCglkZXZpY2VfaWQYBiABKAVCA+BBAhJCCglzbDNfcmZpZHMYByADKAsy", "Ki5rZXlhcGlzLmRldmljZS52MS5BZGRTbDNSZmlkc1Rhc2suU2wzUmZpZEID", "4EECGl8KB1NsM1JmaWQSDwoCaWQYASABKAVCA+BBAhIYCgtyb29tX251bWJl", "chgCIAEoCUID4EECEhAKA2tleRgDIAEoCUID4EECEhcKCmtleV9zZWNyZXQY", "BCABKAlCA+BBAiK3AQoMQWRkUmZpZHNUYXNrEhcKCnJlcXVlc3RfaWQYASAB", "KAlCA+BBAhISCgVtb2RlbBgCIAEoCUID4EECEhEKBGhvc3QYAyABKAlCA+BB", "AhIQCgh1c2VybmFtZRgEIAEoCRIQCghwYXNzd29yZBgFIAEoCRIWCglkZXZp", "Y2VfaWQYBiABKAVCA+BBAhIrCgVyZmlkcxgHIAMoCzIXLmtleWFwaXMuZGV2", "aWNlLnYxLlJmaWRCA+BBAiK3AQoMQWRkQ29kZXNUYXNrEhcKCnJlcXVlc3Rf", "aWQYASABKAlCA+BBAhISCgVtb2RlbBgCIAEoCUID4EECEhEKBGhvc3QYAyAB", "KAlCA+BBAhIQCgh1c2VybmFtZRgEIAEoCRIQCghwYXNzd29yZBgFIAEoCRIW", "CglkZXZpY2VfaWQYBiABKAVCA+BBAhIrCgVjb2RlcxgHIAMoCzIXLmtleWFw", "aXMuZGV2aWNlLnYxLkNvZGVCA+BBAiJzChNBZGRSZmlkc1N1Y2Nlc3NUYXNr", "EhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhIWCglkZXZpY2VfaWQYAiABKAVC", "A+BBAhIrCgVyZmlkcxgDIAMoCzIXLmtleWFwaXMuZGV2aWNlLnYxLlJmaWRC", "A+BBAiJ7ChBBZGRSZmlkc0ZhaWxUYXNrEhcKCnJlcXVlc3RfaWQYASABKAlC", "A+BBAhIWCglkZXZpY2VfaWQYAiABKAVCA+BBAhI2CgtyZmlkX2Vycm9ycxgD", "IAMoCzIcLmtleWFwaXMuZGV2aWNlLnYxLlJmaWRFcnJvckID4EECInMKE0Fk", "ZENvZGVzU3VjY2Vzc1Rhc2sSFwoKcmVxdWVzdF9pZBgBIAEoCUID4EECEhYK", "CWRldmljZV9pZBgCIAEoBUID4EECEisKBWNvZGVzGAMgAygLMhcua2V5YXBp", "cy5kZXZpY2UudjEuQ29kZUID4EECInsKEEFkZENvZGVzRmFpbFRhc2sSFwoK", "cmVxdWVzdF9pZBgBIAEoCUID4EECEhYKCWRldmljZV9pZBgCIAEoBUID4EEC", "EjYKC2NvZGVfZXJyb3JzGAMgAygLMhwua2V5YXBpcy5kZXZpY2UudjEuQ29k", "ZUVycm9yQgPgQQIi8wIKEkRlbGV0ZVNsM1JmaWRzVGFzaxIXCgpyZXF1ZXN0", "X2lkGAEgASgJQgPgQQISEgoFbW9kZWwYAiABKAlCA+BBAhIRCgRob3N0GAMg", "ASgJQgPgQQISEAoIdXNlcm5hbWUYBCABKAkSEAoIcGFzc3dvcmQYBSABKAkS", "FgoJZGV2aWNlX2lkGAYgASgFQgPgQQISRQoJc2wzX3JmaWRzGAcgAygLMi0u", "a2V5YXBpcy5kZXZpY2UudjEuRGVsZXRlU2wzUmZpZHNUYXNrLlNsM1JmaWRC", "A+BBAhI5ChVpc19hbnN3ZXJfdW5uZWNlc3NhcnkYCCABKAsyGi5nb29nbGUu", "cHJvdG9idWYuQm9vbFZhbHVlGl8KB1NsM1JmaWQSDwoCaWQYASABKAVCA+BB", "AhIYCgtyb29tX251bWJlchgCIAEoCUID4EECEhAKA2tleRgDIAEoCUID4EEC", "EhcKCmtleV9zZWNyZXQYBCABKAlCA+BBAiL1AQoPRGVsZXRlUmZpZHNUYXNr", "EhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhISCgVtb2RlbBgCIAEoCUID4EEC", "EhEKBGhvc3QYAyABKAlCA+BBAhIQCgh1c2VybmFtZRgEIAEoCRIQCghwYXNz", "d29yZBgFIAEoCRIWCglkZXZpY2VfaWQYBiABKAVCA+BBAhIrCgVyZmlkcxgH", "IAMoCzIXLmtleWFwaXMuZGV2aWNlLnYxLlJmaWRCA+BBAhI5ChVpc19hbnN3", "ZXJfdW5uZWNlc3NhcnkYCCABKAsyGi5nb29nbGUucHJvdG9idWYuQm9vbFZh", "bHVlIvUBCg9EZWxldGVDb2Rlc1Rhc2sSFwoKcmVxdWVzdF9pZBgBIAEoCUID", "4EECEhIKBW1vZGVsGAIgASgJQgPgQQISEQoEaG9zdBgDIAEoCUID4EECEhAK", "CHVzZXJuYW1lGAQgASgJEhAKCHBhc3N3b3JkGAUgASgJEhYKCWRldmljZV9p", "ZBgGIAEoBUID4EECEisKBWNvZGVzGAcgAygLMhcua2V5YXBpcy5kZXZpY2Uu", "djEuQ29kZUID4EECEjkKFWlzX2Fuc3dlcl91bm5lY2Vzc2FyeRgIIAEoCzIa", "Lmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFsdWUidgoWRGVsZXRlUmZpZHNTdWNj", "ZXNzVGFzaxIXCgpyZXF1ZXN0X2lkGAEgASgJQgPgQQISFgoJZGV2aWNlX2lk", "GAIgASgFQgPgQQISKwoFcmZpZHMYAyADKAsyFy5rZXlhcGlzLmRldmljZS52", "MS5SZmlkQgPgQQIifgoTRGVsZXRlUmZpZHNGYWlsVGFzaxIXCgpyZXF1ZXN0", "X2lkGAEgASgJQgPgQQISFgoJZGV2aWNlX2lkGAIgASgFQgPgQQISNgoLcmZp", "ZF9lcnJvcnMYAyADKAsyHC5rZXlhcGlzLmRldmljZS52MS5SZmlkRXJyb3JC", "A+BBAiJ2ChZEZWxldGVDb2Rlc1N1Y2Nlc3NUYXNrEhcKCnJlcXVlc3RfaWQY", "ASABKAlCA+BBAhIWCglkZXZpY2VfaWQYAiABKAVCA+BBAhIrCgVjb2RlcxgD", "IAMoCzIXLmtleWFwaXMuZGV2aWNlLnYxLkNvZGVCA+BBAiJ+ChNEZWxldGVD", "b2Rlc0ZhaWxUYXNrEhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhIWCglkZXZp", "Y2VfaWQYAiABKAVCA+BBAhI2Cgtjb2RlX2Vycm9ycxgDIAMoCzIcLmtleWFw", "aXMuZGV2aWNlLnYxLkNvZGVFcnJvckID4EECIqcDChNPcGVuQWNjZXNzUG9p", "bnRUYXNrEhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhIWCglkZXZpY2VfaWQY", "AiABKAVCA+BBAhIwCgtyZWxheV9pbmRleBgDIAEoCzIbLmdvb2dsZS5wcm90", "b2J1Zi5JbnQzMlZhbHVlEioKBWRlbGF5GAQgASgLMhsuZ29vZ2xlLnByb3Rv", "YnVmLkludDMyVmFsdWUSMAoKY2FyX251bWJlchgFIAEoCzIcLmdvb2dsZS5w", "cm90b2J1Zi5TdHJpbmdWYWx1ZRItCgd2ZWhpY2xlGAYgASgLMhwuZ29vZ2xl", "LnByb3RvYnVmLlN0cmluZ1ZhbHVlEjoKFGNvdXJpZXJfY29tcGFueV9uYW1l", "GAcgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEjIKDG9yZGVy", "X251bWJlchgIIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRIw", "Cgpjb3VyaWVyX2lkGAkgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1Zh", "bHVlIuQBCghPcGVuVGFzaxIXCgpyZXF1ZXN0X2lkGAEgASgJQgPgQQISEgoF", "bW9kZWwYAiABKAlCA+BBAhIRCgRob3N0GAMgASgJQgPgQQISEAoIdXNlcm5h", "bWUYBCABKAkSEAoIcGFzc3dvcmQYBSABKAkSFgoJZGV2aWNlX2lkGAYgASgF", "QgPgQQISMAoLcmVsYXlfaW5kZXgYByABKAsyGy5nb29nbGUucHJvdG9idWYu", "SW50MzJWYWx1ZRIqCgVkZWxheRgIIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5J", "bnQzMlZhbHVlIpQBChREZWxldGVTaXBBY2NvdW50VGFzaxIXCgpyZXF1ZXN0", "X2lkGAEgASgJQgPgQQISFgoJZGV2aWNlX2lkGAIgASgFQgPgQQISMwoKZGVs", "ZXRlZF9hdBgDIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BB", "AhIWCglzaXBfbG9naW4YBCABKAlCA+BBAiK8AQoWQ3JlYXRlRGV2aWNlQWNj", "ZXNzVGFzaxIXCgpyZXF1ZXN0X2lkGAEgASgJQgPgQQISFwoKZGV2aWNlX2lk", "cxgCIAMoBUID4EECElYKG2RldmljZV9hY2Nlc3NfYWNjZXNzb3JfdHlwZRgD", "IAEoDjIsLmtleWFwaXMuZGV2aWNlLnYxLkRldmljZUFjY2Vzcy5BY2Nlc3Nv", "clR5cGVCA+BBAhIYCgthY2Nlc3Nvcl9pZBgEIAEoCUID4EECIrwBChZEZWxl", "dGVEZXZpY2VBY2Nlc3NUYXNrEhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhIX", "CgpkZXZpY2VfaWRzGAIgAygFQgPgQQISVgobZGV2aWNlX2FjY2Vzc19hY2Nl", "c3Nvcl90eXBlGAMgASgOMiwua2V5YXBpcy5kZXZpY2UudjEuRGV2aWNlQWNj", "ZXNzLkFjY2Vzc29yVHlwZUID4EECEhgKC2FjY2Vzc29yX2lkGAQgASgJQgPg", "QQJCmgEKFHJ1LmtleWFwaXMuZGV2aWNlLnYxQhRLZXlhcGlzRGV2aWNlVjFQ", "cm90b0gDUABaEi9rZXlhcGlzX2RldmljZV92MdgBAfgBAaICD0tFWUFQSVNE", "RVZJQ0VWMaoCEUtleWFwaXMuRGV2aWNlLlYxygIRS2V5YXBpc1xEZXZpY2Vc", "VjHqAhNLZXlhcGlzOjpEZXZpY2U6OlYxYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.Descriptor, global::Keyapis.Device.V1.KeyapisDeviceAccessV1Reflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ConfigureDeviceTask), global::Keyapis.Device.V1.ConfigureDeviceTask.Parser, new[]{ "RequestId", "Model", "Host", "Username", "Password", "DeviceId", "Preset", "SipAccount", "SipRooms", "Gate", "Rfids", "Codes", "NtpTimezone", "Sl3", "EmergencyCallSettings" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ConfigureDeviceTask.Types.SipAccount), global::Keyapis.Device.V1.ConfigureDeviceTask.Types.SipAccount.Parser, new[]{ "Name", "Number", "User", "Password" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate), global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate.Parser, new[]{ "IsActive", "RelaySettings", "RoomRanges" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate.Types.RelaySettings), global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate.Types.RelaySettings.Parser, new[]{ "IsActive", "RelayIndex" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate.Types.RoomRange), global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate.Types.RoomRange.Parser, new[]{ "Address", "Prefix", "FirstRoomNumber", "LastRoomNumber" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ConfigureDeviceTask.Types.EncryptionProfile), global::Keyapis.Device.V1.ConfigureDeviceTask.Types.EncryptionProfile.Parser, new[]{ "SectorNumber", "BlockNumber", "AesKey", "StartIndex", "EndIndex" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Sl3), global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Sl3.Parser, new[]{ "IsEnabled", "EncryptionProfile" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.EmergencyCallSettings), global::Keyapis.Device.V1.EmergencyCallSettings.Parser, new[]{ "IsCallAvailable", "EmergencyCallParameter" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.EmergencyCallSettings.Types.EmergencyCallParameter), global::Keyapis.Device.V1.EmergencyCallSettings.Types.EmergencyCallParameter.Parser, new[]{ "EmergencyNumber", "AbcNumber", "SipTrunkHost", "DestinationName" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ConfigureDeviceResultTask), global::Keyapis.Device.V1.ConfigureDeviceResultTask.Parser, new[]{ "RequestId", "DeviceId", "ConfiguredAt", "HardwareVersion", "FirmwareVersion", "Model", "Settings" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings), global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Parser, new[]{ "Preset", "SipAccount", "SipRooms", "Gate", "Rfids", "Codes", "Sl3", "EmergencyCallSettings" }, null, new[]{ typeof(global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State), global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State.Parser, new[]{ "StatusType", "ErrorMessage" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Rfids), global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Rfids.Parser, new[]{ "StatusType", "ErrorMessage", "LoadedRfids", "UnloadedRfids" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Codes), global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Codes.Parser, new[]{ "StatusType", "ErrorMessage", "LoadedCodes", "UnloadedCodes" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.SipRooms), global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.SipRooms.Parser, new[]{ "StatusType", "ErrorMessage", "LoadedSipRooms", "UnloadedSipRooms" }, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.CmsServiceAvailableTask), global::Keyapis.Device.V1.CmsServiceAvailableTask.Parser, new[]{ "RequestId", "OrponId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ControlDeviceTask), global::Keyapis.Device.V1.ControlDeviceTask.Parser, new[]{ "RequestId", "Model", "Host", "Username", "Password", "DeviceId", "FaceRecognition", "Preset", "NtpTimezone", "SipAccount", "Gate", "Concierge", "Autocollect", "Sl3", "EmergencyCallSettings" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ControlDeviceTask.Types.FaceRecognition), global::Keyapis.Device.V1.ControlDeviceTask.Types.FaceRecognition.Parser, new[]{ "IsEnabled" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ControlDeviceTask.Types.Concierge), global::Keyapis.Device.V1.ControlDeviceTask.Types.Concierge.Parser, new[]{ "SipNumber", "RoomNumber" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ControlDeviceTask.Types.Autocollect), global::Keyapis.Device.V1.ControlDeviceTask.Types.Autocollect.Parser, new[]{ "IsEnabled" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ControlDeviceResultTask), global::Keyapis.Device.V1.ControlDeviceResultTask.Parser, new[]{ "RequestId", "DeviceId", "ConfiguredAt", "HardwareVersion", "FirmwareVersion", "Model", "Settings" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ControlDeviceResultTask.Types.Settings), global::Keyapis.Device.V1.ControlDeviceResultTask.Types.Settings.Parser, new[]{ "FaceRecognition", "Preset", "SipAccount", "Gate", "Autocollect", "Concierge", "Sl3", "EmergencyCallSettings" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.BlockCmsPhonesTask), global::Keyapis.Device.V1.BlockCmsPhonesTask.Parser, new[]{ "RequestId", "Model", "Host", "Username", "Password", "CmsPhones" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.BlockCmsPhonesTask.Types.CmsPhone), global::Keyapis.Device.V1.BlockCmsPhonesTask.Types.CmsPhone.Parser, new[]{ "Id", "RoomNumber" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.BlockCmsPhoneSuccessTask), global::Keyapis.Device.V1.BlockCmsPhoneSuccessTask.Parser, new[]{ "RequestId", "CmsPhoneId", "BlockedAt" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.BlockCmsPhoneFailTask), global::Keyapis.Device.V1.BlockCmsPhoneFailTask.Parser, new[]{ "RequestId", "CmsPhoneId", "ErrorMessage", "OccuredAt" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ActivateCmsPhonesTask), global::Keyapis.Device.V1.ActivateCmsPhonesTask.Parser, new[]{ "RequestId", "Model", "Host", "Username", "Password", "CmsPhones" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ActivateCmsPhonesTask.Types.CmsPhone), global::Keyapis.Device.V1.ActivateCmsPhonesTask.Types.CmsPhone.Parser, new[]{ "Id", "RoomNumber" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ActivateCmsPhoneSuccessTask), global::Keyapis.Device.V1.ActivateCmsPhoneSuccessTask.Parser, new[]{ "RequestId", "CmsPhoneId", "ActivatedAt" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ActivateCmsPhoneFailTask), global::Keyapis.Device.V1.ActivateCmsPhoneFailTask.Parser, new[]{ "RequestId", "CmsPhoneId", "ErrorMessage", "OccuredAt" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.CmsAvailableTask), global::Keyapis.Device.V1.CmsAvailableTask.Parser, new[]{ "RequestId", "DeviceId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.SipRoom), global::Keyapis.Device.V1.SipRoom.Parser, new[]{ "SipNumber", "RoomNumber", "RoomId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.SipRoomError), global::Keyapis.Device.V1.SipRoomError.Parser, new[]{ "SipNumber", "RoomNumber", "RoomId", "Message" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Rfid), global::Keyapis.Device.V1.Rfid.Parser, new[]{ "Id", "Key", "RoomNumber" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Code), global::Keyapis.Device.V1.Code.Parser, new[]{ "Id", "Code_", "RoomNumber" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.RfidError), global::Keyapis.Device.V1.RfidError.Parser, new[]{ "Id", "Key", "RoomNumber", "Message" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.CodeError), global::Keyapis.Device.V1.CodeError.Parser, new[]{ "Id", "Code", "RoomNumber", "Message" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.AddSl3RfidsTask), global::Keyapis.Device.V1.AddSl3RfidsTask.Parser, new[]{ "RequestId", "Model", "Host", "Username", "Password", "DeviceId", "Sl3Rfids" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.AddSl3RfidsTask.Types.Sl3Rfid), global::Keyapis.Device.V1.AddSl3RfidsTask.Types.Sl3Rfid.Parser, new[]{ "Id", "RoomNumber", "Key", "KeySecret" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.AddRfidsTask), global::Keyapis.Device.V1.AddRfidsTask.Parser, new[]{ "RequestId", "Model", "Host", "Username", "Password", "DeviceId", "Rfids" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.AddCodesTask), global::Keyapis.Device.V1.AddCodesTask.Parser, new[]{ "RequestId", "Model", "Host", "Username", "Password", "DeviceId", "Codes" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.AddRfidsSuccessTask), global::Keyapis.Device.V1.AddRfidsSuccessTask.Parser, new[]{ "RequestId", "DeviceId", "Rfids" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.AddRfidsFailTask), global::Keyapis.Device.V1.AddRfidsFailTask.Parser, new[]{ "RequestId", "DeviceId", "RfidErrors" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.AddCodesSuccessTask), global::Keyapis.Device.V1.AddCodesSuccessTask.Parser, new[]{ "RequestId", "DeviceId", "Codes" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.AddCodesFailTask), global::Keyapis.Device.V1.AddCodesFailTask.Parser, new[]{ "RequestId", "DeviceId", "CodeErrors" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeleteSl3RfidsTask), global::Keyapis.Device.V1.DeleteSl3RfidsTask.Parser, new[]{ "RequestId", "Model", "Host", "Username", "Password", "DeviceId", "Sl3Rfids", "IsAnswerUnnecessary" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeleteSl3RfidsTask.Types.Sl3Rfid), global::Keyapis.Device.V1.DeleteSl3RfidsTask.Types.Sl3Rfid.Parser, new[]{ "Id", "RoomNumber", "Key", "KeySecret" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeleteRfidsTask), global::Keyapis.Device.V1.DeleteRfidsTask.Parser, new[]{ "RequestId", "Model", "Host", "Username", "Password", "DeviceId", "Rfids", "IsAnswerUnnecessary" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeleteCodesTask), global::Keyapis.Device.V1.DeleteCodesTask.Parser, new[]{ "RequestId", "Model", "Host", "Username", "Password", "DeviceId", "Codes", "IsAnswerUnnecessary" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeleteRfidsSuccessTask), global::Keyapis.Device.V1.DeleteRfidsSuccessTask.Parser, new[]{ "RequestId", "DeviceId", "Rfids" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeleteRfidsFailTask), global::Keyapis.Device.V1.DeleteRfidsFailTask.Parser, new[]{ "RequestId", "DeviceId", "RfidErrors" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeleteCodesSuccessTask), global::Keyapis.Device.V1.DeleteCodesSuccessTask.Parser, new[]{ "RequestId", "DeviceId", "Codes" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeleteCodesFailTask), global::Keyapis.Device.V1.DeleteCodesFailTask.Parser, new[]{ "RequestId", "DeviceId", "CodeErrors" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.OpenAccessPointTask), global::Keyapis.Device.V1.OpenAccessPointTask.Parser, new[]{ "RequestId", "DeviceId", "RelayIndex", "Delay", "CarNumber", "Vehicle", "CourierCompanyName", "OrderNumber", "CourierId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.OpenTask), global::Keyapis.Device.V1.OpenTask.Parser, new[]{ "RequestId", "Model", "Host", "Username", "Password", "DeviceId", "RelayIndex", "Delay" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeleteSipAccountTask), global::Keyapis.Device.V1.DeleteSipAccountTask.Parser, new[]{ "RequestId", "DeviceId", "DeletedAt", "SipLogin" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.CreateDeviceAccessTask), global::Keyapis.Device.V1.CreateDeviceAccessTask.Parser, new[]{ "RequestId", "DeviceIds", "DeviceAccessAccessorType", "AccessorId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeleteDeviceAccessTask), global::Keyapis.Device.V1.DeleteDeviceAccessTask.Parser, new[]{ "RequestId", "DeviceIds", "DeviceAccessAccessorType", "AccessorId" }, null, null, null, null) })); } #endregion } #region Messages /// ///Задача на конфигурирование устройства. /// Очередь key.device.configure_device /// public sealed partial class ConfigureDeviceTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConfigureDeviceTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 ConfigureDeviceTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ConfigureDeviceTask(ConfigureDeviceTask other) : this() { requestId_ = other.requestId_; model_ = other.model_; host_ = other.host_; username_ = other.username_; password_ = other.password_; deviceId_ = other.deviceId_; preset_ = other.preset_ != null ? other.preset_.Clone() : null; sipAccount_ = other.sipAccount_ != null ? other.sipAccount_.Clone() : null; sipRooms_ = other.sipRooms_.Clone(); gate_ = other.gate_ != null ? other.gate_.Clone() : null; rfids_ = other.rfids_.Clone(); codes_ = other.codes_.Clone(); ntpTimezone_ = other.ntpTimezone_; sl3_ = other.sl3_ != null ? other.sl3_.Clone() : null; emergencyCallSettings_ = other.emergencyCallSettings_ != null ? other.emergencyCallSettings_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ConfigureDeviceTask Clone() { return new ConfigureDeviceTask(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 "model" field. public const int ModelFieldNumber = 2; 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 "host" field. public const int HostFieldNumber = 3; private string host_ = ""; /// /// Адрес устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "username" field. public const int UsernameFieldNumber = 4; private string username_ = ""; /// /// Имя пользователя устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Username { get { return username_; } set { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 5; private string password_ = ""; /// /// Пароль пользователья устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 6; 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 "preset" field. public const int PresetFieldNumber = 7; private global::Keyapis.Device.V1.Preset preset_; /// /// Пресет устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset Preset { get { return preset_; } set { preset_ = value; } } /// Field number for the "sip_account" field. public const int SipAccountFieldNumber = 8; private global::Keyapis.Device.V1.ConfigureDeviceTask.Types.SipAccount sipAccount_; /// /// Sip аккаунт /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceTask.Types.SipAccount SipAccount { get { return sipAccount_; } set { sipAccount_ = value; } } /// Field number for the "sip_rooms" field. public const int SipRoomsFieldNumber = 9; private static readonly pb::FieldCodec _repeated_sipRooms_codec = pb::FieldCodec.ForMessage(74, global::Keyapis.Device.V1.SipRoom.Parser); private readonly pbc::RepeatedField sipRooms_ = new pbc::RepeatedField(); /// /// Список сип-номеров в помещениях. /// # Диапазон: 0..10000 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SipRooms { get { return sipRooms_; } } /// Field number for the "gate" field. public const int GateFieldNumber = 10; private global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate gate_; /// /// Параметры калитки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate Gate { get { return gate_; } set { gate_ = value; } } /// Field number for the "rfids" field. public const int RfidsFieldNumber = 11; private static readonly pb::FieldCodec _repeated_rfids_codec = pb::FieldCodec.ForMessage(90, global::Keyapis.Device.V1.Rfid.Parser); private readonly pbc::RepeatedField rfids_ = new pbc::RepeatedField(); /// /// Ключи /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Rfids { get { return rfids_; } } /// Field number for the "codes" field. public const int CodesFieldNumber = 12; private static readonly pb::FieldCodec _repeated_codes_codec = pb::FieldCodec.ForMessage(98, global::Keyapis.Device.V1.Code.Parser); private readonly pbc::RepeatedField codes_ = new pbc::RepeatedField(); /// /// Коды /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Codes { get { return codes_; } } /// Field number for the "ntp_timezone" field. public const int NtpTimezoneFieldNumber = 13; private string ntpTimezone_ = ""; /// /// Таймзона NTP /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string NtpTimezone { get { return ntpTimezone_; } set { ntpTimezone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "sl3" field. public const int Sl3FieldNumber = 14; private global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Sl3 sl3_; /// /// Параметр Sl3 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Sl3 Sl3 { get { return sl3_; } set { sl3_ = value; } } /// Field number for the "emergency_call_settings" field. public const int EmergencyCallSettingsFieldNumber = 15; private global::Keyapis.Device.V1.EmergencyCallSettings emergencyCallSettings_; /// /// Настройки вызова экстренной службы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.EmergencyCallSettings EmergencyCallSettings { get { return emergencyCallSettings_; } set { emergencyCallSettings_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ConfigureDeviceTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ConfigureDeviceTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (Model != other.Model) return false; if (Host != other.Host) return false; if (Username != other.Username) return false; if (Password != other.Password) return false; if (DeviceId != other.DeviceId) return false; if (!object.Equals(Preset, other.Preset)) return false; if (!object.Equals(SipAccount, other.SipAccount)) return false; if(!sipRooms_.Equals(other.sipRooms_)) return false; if (!object.Equals(Gate, other.Gate)) return false; if(!rfids_.Equals(other.rfids_)) return false; if(!codes_.Equals(other.codes_)) return false; if (NtpTimezone != other.NtpTimezone) return false; if (!object.Equals(Sl3, other.Sl3)) return false; if (!object.Equals(EmergencyCallSettings, other.EmergencyCallSettings)) 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 (Model.Length != 0) hash ^= Model.GetHashCode(); if (Host.Length != 0) hash ^= Host.GetHashCode(); if (Username.Length != 0) hash ^= Username.GetHashCode(); if (Password.Length != 0) hash ^= Password.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (preset_ != null) hash ^= Preset.GetHashCode(); if (sipAccount_ != null) hash ^= SipAccount.GetHashCode(); hash ^= sipRooms_.GetHashCode(); if (gate_ != null) hash ^= Gate.GetHashCode(); hash ^= rfids_.GetHashCode(); hash ^= codes_.GetHashCode(); if (NtpTimezone.Length != 0) hash ^= NtpTimezone.GetHashCode(); if (sl3_ != null) hash ^= Sl3.GetHashCode(); if (emergencyCallSettings_ != null) hash ^= EmergencyCallSettings.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } if (preset_ != null) { output.WriteRawTag(58); output.WriteMessage(Preset); } if (sipAccount_ != null) { output.WriteRawTag(66); output.WriteMessage(SipAccount); } sipRooms_.WriteTo(output, _repeated_sipRooms_codec); if (gate_ != null) { output.WriteRawTag(82); output.WriteMessage(Gate); } rfids_.WriteTo(output, _repeated_rfids_codec); codes_.WriteTo(output, _repeated_codes_codec); if (NtpTimezone.Length != 0) { output.WriteRawTag(106); output.WriteString(NtpTimezone); } if (sl3_ != null) { output.WriteRawTag(114); output.WriteMessage(Sl3); } if (emergencyCallSettings_ != null) { output.WriteRawTag(122); output.WriteMessage(EmergencyCallSettings); } 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 (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } if (preset_ != null) { output.WriteRawTag(58); output.WriteMessage(Preset); } if (sipAccount_ != null) { output.WriteRawTag(66); output.WriteMessage(SipAccount); } sipRooms_.WriteTo(ref output, _repeated_sipRooms_codec); if (gate_ != null) { output.WriteRawTag(82); output.WriteMessage(Gate); } rfids_.WriteTo(ref output, _repeated_rfids_codec); codes_.WriteTo(ref output, _repeated_codes_codec); if (NtpTimezone.Length != 0) { output.WriteRawTag(106); output.WriteString(NtpTimezone); } if (sl3_ != null) { output.WriteRawTag(114); output.WriteMessage(Sl3); } if (emergencyCallSettings_ != null) { output.WriteRawTag(122); output.WriteMessage(EmergencyCallSettings); } 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 (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Username.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (preset_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Preset); } if (sipAccount_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SipAccount); } size += sipRooms_.CalculateSize(_repeated_sipRooms_codec); if (gate_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gate); } size += rfids_.CalculateSize(_repeated_rfids_codec); size += codes_.CalculateSize(_repeated_codes_codec); if (NtpTimezone.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(NtpTimezone); } if (sl3_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sl3); } if (emergencyCallSettings_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmergencyCallSettings); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ConfigureDeviceTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Username.Length != 0) { Username = other.Username; } if (other.Password.Length != 0) { Password = other.Password; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.preset_ != null) { if (preset_ == null) { Preset = new global::Keyapis.Device.V1.Preset(); } Preset.MergeFrom(other.Preset); } if (other.sipAccount_ != null) { if (sipAccount_ == null) { SipAccount = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.SipAccount(); } SipAccount.MergeFrom(other.SipAccount); } sipRooms_.Add(other.sipRooms_); if (other.gate_ != null) { if (gate_ == null) { Gate = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate(); } Gate.MergeFrom(other.Gate); } rfids_.Add(other.rfids_); codes_.Add(other.codes_); if (other.NtpTimezone.Length != 0) { NtpTimezone = other.NtpTimezone; } if (other.sl3_ != null) { if (sl3_ == null) { Sl3 = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Sl3(); } Sl3.MergeFrom(other.Sl3); } if (other.emergencyCallSettings_ != null) { if (emergencyCallSettings_ == null) { EmergencyCallSettings = new global::Keyapis.Device.V1.EmergencyCallSettings(); } EmergencyCallSettings.MergeFrom(other.EmergencyCallSettings); } _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: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { if (preset_ == null) { Preset = new global::Keyapis.Device.V1.Preset(); } input.ReadMessage(Preset); break; } case 66: { if (sipAccount_ == null) { SipAccount = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.SipAccount(); } input.ReadMessage(SipAccount); break; } case 74: { sipRooms_.AddEntriesFrom(input, _repeated_sipRooms_codec); break; } case 82: { if (gate_ == null) { Gate = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate(); } input.ReadMessage(Gate); break; } case 90: { rfids_.AddEntriesFrom(input, _repeated_rfids_codec); break; } case 98: { codes_.AddEntriesFrom(input, _repeated_codes_codec); break; } case 106: { NtpTimezone = input.ReadString(); break; } case 114: { if (sl3_ == null) { Sl3 = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Sl3(); } input.ReadMessage(Sl3); break; } case 122: { if (emergencyCallSettings_ == null) { EmergencyCallSettings = new global::Keyapis.Device.V1.EmergencyCallSettings(); } input.ReadMessage(EmergencyCallSettings); 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: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { if (preset_ == null) { Preset = new global::Keyapis.Device.V1.Preset(); } input.ReadMessage(Preset); break; } case 66: { if (sipAccount_ == null) { SipAccount = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.SipAccount(); } input.ReadMessage(SipAccount); break; } case 74: { sipRooms_.AddEntriesFrom(ref input, _repeated_sipRooms_codec); break; } case 82: { if (gate_ == null) { Gate = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate(); } input.ReadMessage(Gate); break; } case 90: { rfids_.AddEntriesFrom(ref input, _repeated_rfids_codec); break; } case 98: { codes_.AddEntriesFrom(ref input, _repeated_codes_codec); break; } case 106: { NtpTimezone = input.ReadString(); break; } case 114: { if (sl3_ == null) { Sl3 = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Sl3(); } input.ReadMessage(Sl3); break; } case 122: { if (emergencyCallSettings_ == null) { EmergencyCallSettings = new global::Keyapis.Device.V1.EmergencyCallSettings(); } input.ReadMessage(EmergencyCallSettings); break; } } } } #endif #region Nested types /// Container for nested types declared in the ConfigureDeviceTask message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Sip аккаунт /// public sealed partial class SipAccount : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SipAccount()); 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.Device.V1.ConfigureDeviceTask.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 SipAccount() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipAccount(SipAccount other) : this() { name_ = other.name_; number_ = other.number_; user_ = other.user_; password_ = other.password_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipAccount Clone() { return new SipAccount(this); } /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; /// /// Имя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "number" field. public const int NumberFieldNumber = 2; private string number_ = ""; /// /// Номер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Number { get { return number_; } set { number_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "user" field. public const int UserFieldNumber = 3; private string user_ = ""; /// /// Имя пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string User { get { return user_; } set { user_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 4; private string password_ = ""; /// /// Пароль /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = 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 SipAccount); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SipAccount other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Name != other.Name) return false; if (Number != other.Number) return false; if (User != other.User) return false; if (Password != other.Password) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Name.Length != 0) hash ^= Name.GetHashCode(); if (Number.Length != 0) hash ^= Number.GetHashCode(); if (User.Length != 0) hash ^= User.GetHashCode(); if (Password.Length != 0) hash ^= Password.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (Number.Length != 0) { output.WriteRawTag(18); output.WriteString(Number); } if (User.Length != 0) { output.WriteRawTag(26); output.WriteString(User); } if (Password.Length != 0) { output.WriteRawTag(34); output.WriteString(Password); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Name.Length != 0) { output.WriteRawTag(10); output.WriteString(Name); } if (Number.Length != 0) { output.WriteRawTag(18); output.WriteString(Number); } if (User.Length != 0) { output.WriteRawTag(26); output.WriteString(User); } if (Password.Length != 0) { output.WriteRawTag(34); output.WriteString(Password); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (Number.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Number); } if (User.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(User); } if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SipAccount other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Number.Length != 0) { Number = other.Number; } if (other.User.Length != 0) { User = other.User; } if (other.Password.Length != 0) { Password = other.Password; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 18: { Number = input.ReadString(); break; } case 26: { User = input.ReadString(); break; } case 34: { Password = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Name = input.ReadString(); break; } case 18: { Number = input.ReadString(); break; } case 26: { User = input.ReadString(); break; } case 34: { Password = input.ReadString(); break; } } } } #endif } /// /// Параметры калитки /// public sealed partial class Gate : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Gate()); 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.Device.V1.ConfigureDeviceTask.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 Gate() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Gate(Gate other) : this() { isActive_ = other.isActive_; relaySettings_ = other.relaySettings_.Clone(); roomRanges_ = other.roomRanges_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Gate Clone() { return new Gate(this); } /// Field number for the "is_active" field. public const int IsActiveFieldNumber = 1; private bool isActive_; /// /// Состояние параметра калитки. /// true - используется, необходимо настроить параметы. /// false - не используется, необходимо выключить параметры калитки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsActive { get { return isActive_; } set { isActive_ = value; } } /// Field number for the "relay_settings" field. public const int RelaySettingsFieldNumber = 2; private static readonly pb::FieldCodec _repeated_relaySettings_codec = pb::FieldCodec.ForMessage(18, global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate.Types.RelaySettings.Parser); private readonly pbc::RepeatedField relaySettings_ = new pbc::RepeatedField(); /// /// Параметры реле /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RelaySettings { get { return relaySettings_; } } /// Field number for the "room_ranges" field. public const int RoomRangesFieldNumber = 3; private static readonly pb::FieldCodec _repeated_roomRanges_codec = pb::FieldCodec.ForMessage(26, global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate.Types.RoomRange.Parser); private readonly pbc::RepeatedField roomRanges_ = new pbc::RepeatedField(); /// /// Диапазоны квартир /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RoomRanges { get { return roomRanges_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Gate); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Gate other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsActive != other.IsActive) return false; if(!relaySettings_.Equals(other.relaySettings_)) return false; if(!roomRanges_.Equals(other.roomRanges_)) 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 (IsActive != false) hash ^= IsActive.GetHashCode(); hash ^= relaySettings_.GetHashCode(); hash ^= roomRanges_.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 (IsActive != false) { output.WriteRawTag(8); output.WriteBool(IsActive); } relaySettings_.WriteTo(output, _repeated_relaySettings_codec); roomRanges_.WriteTo(output, _repeated_roomRanges_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (IsActive != false) { output.WriteRawTag(8); output.WriteBool(IsActive); } relaySettings_.WriteTo(ref output, _repeated_relaySettings_codec); roomRanges_.WriteTo(ref output, _repeated_roomRanges_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (IsActive != false) { size += 1 + 1; } size += relaySettings_.CalculateSize(_repeated_relaySettings_codec); size += roomRanges_.CalculateSize(_repeated_roomRanges_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Gate other) { if (other == null) { return; } if (other.IsActive != false) { IsActive = other.IsActive; } relaySettings_.Add(other.relaySettings_); roomRanges_.Add(other.roomRanges_); _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: { IsActive = input.ReadBool(); break; } case 18: { relaySettings_.AddEntriesFrom(input, _repeated_relaySettings_codec); break; } case 26: { roomRanges_.AddEntriesFrom(input, _repeated_roomRanges_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { IsActive = input.ReadBool(); break; } case 18: { relaySettings_.AddEntriesFrom(ref input, _repeated_relaySettings_codec); break; } case 26: { roomRanges_.AddEntriesFrom(ref input, _repeated_roomRanges_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the Gate message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Параметры реле /// public sealed partial class RelaySettings : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RelaySettings()); 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.Device.V1.ConfigureDeviceTask.Types.Gate.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 RelaySettings() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RelaySettings(RelaySettings other) : this() { isActive_ = other.isActive_; relayIndex_ = other.relayIndex_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RelaySettings Clone() { return new RelaySettings(this); } /// Field number for the "is_active" field. public const int IsActiveFieldNumber = 1; private bool isActive_; /// /// Состояние реле. /// true - по команде «Открыть дверь» произойдет открытие реле. /// false - по команде «Открыть дверь» не произойдет открытие реле /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsActive { get { return isActive_; } set { isActive_ = value; } } /// Field number for the "relay_index" field. public const int RelayIndexFieldNumber = 2; private int relayIndex_; /// /// Индекс реле. /// # Диапазон: 0..64 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RelayIndex { get { return relayIndex_; } set { relayIndex_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as RelaySettings); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RelaySettings other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsActive != other.IsActive) return false; if (RelayIndex != other.RelayIndex) 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 (IsActive != false) hash ^= IsActive.GetHashCode(); if (RelayIndex != 0) hash ^= RelayIndex.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 (IsActive != false) { output.WriteRawTag(8); output.WriteBool(IsActive); } if (RelayIndex != 0) { output.WriteRawTag(16); output.WriteInt32(RelayIndex); } 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 (IsActive != false) { output.WriteRawTag(8); output.WriteBool(IsActive); } if (RelayIndex != 0) { output.WriteRawTag(16); output.WriteInt32(RelayIndex); } 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 (IsActive != false) { size += 1 + 1; } if (RelayIndex != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RelayIndex); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RelaySettings other) { if (other == null) { return; } if (other.IsActive != false) { IsActive = other.IsActive; } if (other.RelayIndex != 0) { RelayIndex = other.RelayIndex; } _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: { IsActive = input.ReadBool(); break; } case 16: { RelayIndex = 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: { IsActive = input.ReadBool(); break; } case 16: { RelayIndex = input.ReadInt32(); break; } } } } #endif } /// /// Диапазон квартир /// public sealed partial class RoomRange : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RoomRange()); 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.Device.V1.ConfigureDeviceTask.Types.Gate.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 RoomRange() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RoomRange(RoomRange other) : this() { address_ = other.address_; prefix_ = other.prefix_; firstRoomNumber_ = other.firstRoomNumber_; lastRoomNumber_ = other.lastRoomNumber_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RoomRange Clone() { return new RoomRange(this); } /// Field number for the "address" field. public const int AddressFieldNumber = 1; private string address_ = ""; /// /// Адрес дома /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Address { get { return address_; } set { address_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "prefix" field. public const int PrefixFieldNumber = 2; private string prefix_ = ""; /// /// Номер дома (подъезда) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Prefix { get { return prefix_; } set { prefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "first_room_number" field. public const int FirstRoomNumberFieldNumber = 3; private string firstRoomNumber_ = ""; /// /// Начало диапазона включительно /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string FirstRoomNumber { get { return firstRoomNumber_; } set { firstRoomNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "last_room_number" field. public const int LastRoomNumberFieldNumber = 4; private string lastRoomNumber_ = ""; /// /// Конец диапазона включительно /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string LastRoomNumber { get { return lastRoomNumber_; } set { lastRoomNumber_ = 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 RoomRange); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RoomRange other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Address != other.Address) return false; if (Prefix != other.Prefix) return false; if (FirstRoomNumber != other.FirstRoomNumber) return false; if (LastRoomNumber != other.LastRoomNumber) 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 (Address.Length != 0) hash ^= Address.GetHashCode(); if (Prefix.Length != 0) hash ^= Prefix.GetHashCode(); if (FirstRoomNumber.Length != 0) hash ^= FirstRoomNumber.GetHashCode(); if (LastRoomNumber.Length != 0) hash ^= LastRoomNumber.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 (Address.Length != 0) { output.WriteRawTag(10); output.WriteString(Address); } if (Prefix.Length != 0) { output.WriteRawTag(18); output.WriteString(Prefix); } if (FirstRoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(FirstRoomNumber); } if (LastRoomNumber.Length != 0) { output.WriteRawTag(34); output.WriteString(LastRoomNumber); } 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 (Address.Length != 0) { output.WriteRawTag(10); output.WriteString(Address); } if (Prefix.Length != 0) { output.WriteRawTag(18); output.WriteString(Prefix); } if (FirstRoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(FirstRoomNumber); } if (LastRoomNumber.Length != 0) { output.WriteRawTag(34); output.WriteString(LastRoomNumber); } 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 (Address.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Address); } if (Prefix.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Prefix); } if (FirstRoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FirstRoomNumber); } if (LastRoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(LastRoomNumber); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RoomRange other) { if (other == null) { return; } if (other.Address.Length != 0) { Address = other.Address; } if (other.Prefix.Length != 0) { Prefix = other.Prefix; } if (other.FirstRoomNumber.Length != 0) { FirstRoomNumber = other.FirstRoomNumber; } if (other.LastRoomNumber.Length != 0) { LastRoomNumber = other.LastRoomNumber; } _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: { Address = input.ReadString(); break; } case 18: { Prefix = input.ReadString(); break; } case 26: { FirstRoomNumber = input.ReadString(); break; } case 34: { LastRoomNumber = 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: { Address = input.ReadString(); break; } case 18: { Prefix = input.ReadString(); break; } case 26: { FirstRoomNumber = input.ReadString(); break; } case 34: { LastRoomNumber = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Профиль шифрования /// public sealed partial class EncryptionProfile : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EncryptionProfile()); 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.Device.V1.ConfigureDeviceTask.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 EncryptionProfile() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EncryptionProfile(EncryptionProfile other) : this() { sectorNumber_ = other.sectorNumber_; blockNumber_ = other.blockNumber_; aesKey_ = other.aesKey_; startIndex_ = other.startIndex_; endIndex_ = other.endIndex_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EncryptionProfile Clone() { return new EncryptionProfile(this); } /// Field number for the "sector_number" field. public const int SectorNumberFieldNumber = 1; private int sectorNumber_; /// /// Номер сектора /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int SectorNumber { get { return sectorNumber_; } set { sectorNumber_ = value; } } /// Field number for the "block_number" field. public const int BlockNumberFieldNumber = 2; private int blockNumber_; /// /// Номер блока /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int BlockNumber { get { return blockNumber_; } set { blockNumber_ = value; } } /// Field number for the "aes_key" field. public const int AesKeyFieldNumber = 3; private string aesKey_ = ""; /// /// aes ключ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string AesKey { get { return aesKey_; } set { aesKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "start_index" field. public const int StartIndexFieldNumber = 4; private int startIndex_; /// /// Индекс первого символа для секрета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int StartIndex { get { return startIndex_; } set { startIndex_ = value; } } /// Field number for the "end_index" field. public const int EndIndexFieldNumber = 5; private int endIndex_; /// /// Индекс последнего символа для секрета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int EndIndex { get { return endIndex_; } set { endIndex_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EncryptionProfile); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EncryptionProfile other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (SectorNumber != other.SectorNumber) return false; if (BlockNumber != other.BlockNumber) return false; if (AesKey != other.AesKey) return false; if (StartIndex != other.StartIndex) return false; if (EndIndex != other.EndIndex) 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 (SectorNumber != 0) hash ^= SectorNumber.GetHashCode(); if (BlockNumber != 0) hash ^= BlockNumber.GetHashCode(); if (AesKey.Length != 0) hash ^= AesKey.GetHashCode(); if (StartIndex != 0) hash ^= StartIndex.GetHashCode(); if (EndIndex != 0) hash ^= EndIndex.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 (SectorNumber != 0) { output.WriteRawTag(8); output.WriteInt32(SectorNumber); } if (BlockNumber != 0) { output.WriteRawTag(16); output.WriteInt32(BlockNumber); } if (AesKey.Length != 0) { output.WriteRawTag(26); output.WriteString(AesKey); } if (StartIndex != 0) { output.WriteRawTag(32); output.WriteInt32(StartIndex); } if (EndIndex != 0) { output.WriteRawTag(40); output.WriteInt32(EndIndex); } 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 (SectorNumber != 0) { output.WriteRawTag(8); output.WriteInt32(SectorNumber); } if (BlockNumber != 0) { output.WriteRawTag(16); output.WriteInt32(BlockNumber); } if (AesKey.Length != 0) { output.WriteRawTag(26); output.WriteString(AesKey); } if (StartIndex != 0) { output.WriteRawTag(32); output.WriteInt32(StartIndex); } if (EndIndex != 0) { output.WriteRawTag(40); output.WriteInt32(EndIndex); } 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 (SectorNumber != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(SectorNumber); } if (BlockNumber != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(BlockNumber); } if (AesKey.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(AesKey); } if (StartIndex != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartIndex); } if (EndIndex != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(EndIndex); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EncryptionProfile other) { if (other == null) { return; } if (other.SectorNumber != 0) { SectorNumber = other.SectorNumber; } if (other.BlockNumber != 0) { BlockNumber = other.BlockNumber; } if (other.AesKey.Length != 0) { AesKey = other.AesKey; } if (other.StartIndex != 0) { StartIndex = other.StartIndex; } if (other.EndIndex != 0) { EndIndex = other.EndIndex; } _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: { SectorNumber = input.ReadInt32(); break; } case 16: { BlockNumber = input.ReadInt32(); break; } case 26: { AesKey = input.ReadString(); break; } case 32: { StartIndex = input.ReadInt32(); break; } case 40: { EndIndex = 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: { SectorNumber = input.ReadInt32(); break; } case 16: { BlockNumber = input.ReadInt32(); break; } case 26: { AesKey = input.ReadString(); break; } case 32: { StartIndex = input.ReadInt32(); break; } case 40: { EndIndex = input.ReadInt32(); break; } } } } #endif } /// /// Параметр Sl3 /// public sealed partial class Sl3 : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Sl3()); 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.Device.V1.ConfigureDeviceTask.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 Sl3() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Sl3(Sl3 other) : this() { isEnabled_ = other.isEnabled_; encryptionProfile_ = other.encryptionProfile_ != null ? other.encryptionProfile_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Sl3 Clone() { return new Sl3(this); } /// Field number for the "is_enabled" field. public const int IsEnabledFieldNumber = 1; private bool isEnabled_; /// /// Статус настройки SL3 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsEnabled { get { return isEnabled_; } set { isEnabled_ = value; } } /// Field number for the "encryption_profile" field. public const int EncryptionProfileFieldNumber = 2; private global::Keyapis.Device.V1.ConfigureDeviceTask.Types.EncryptionProfile encryptionProfile_; /// /// Профиль шифрования /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceTask.Types.EncryptionProfile EncryptionProfile { get { return encryptionProfile_; } set { encryptionProfile_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Sl3); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Sl3 other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsEnabled != other.IsEnabled) return false; if (!object.Equals(EncryptionProfile, other.EncryptionProfile)) 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 (IsEnabled != false) hash ^= IsEnabled.GetHashCode(); if (encryptionProfile_ != null) hash ^= EncryptionProfile.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 (IsEnabled != false) { output.WriteRawTag(8); output.WriteBool(IsEnabled); } if (encryptionProfile_ != null) { output.WriteRawTag(18); output.WriteMessage(EncryptionProfile); } 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 (IsEnabled != false) { output.WriteRawTag(8); output.WriteBool(IsEnabled); } if (encryptionProfile_ != null) { output.WriteRawTag(18); output.WriteMessage(EncryptionProfile); } 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 (IsEnabled != false) { size += 1 + 1; } if (encryptionProfile_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EncryptionProfile); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Sl3 other) { if (other == null) { return; } if (other.IsEnabled != false) { IsEnabled = other.IsEnabled; } if (other.encryptionProfile_ != null) { if (encryptionProfile_ == null) { EncryptionProfile = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.EncryptionProfile(); } EncryptionProfile.MergeFrom(other.EncryptionProfile); } _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: { IsEnabled = input.ReadBool(); break; } case 18: { if (encryptionProfile_ == null) { EncryptionProfile = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.EncryptionProfile(); } input.ReadMessage(EncryptionProfile); 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: { IsEnabled = input.ReadBool(); break; } case 18: { if (encryptionProfile_ == null) { EncryptionProfile = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.EncryptionProfile(); } input.ReadMessage(EncryptionProfile); break; } } } } #endif } } #endregion } /// /// Настройки вызова экстренной службы /// public sealed partial class EmergencyCallSettings : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EmergencyCallSettings()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 EmergencyCallSettings() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EmergencyCallSettings(EmergencyCallSettings other) : this() { isCallAvailable_ = other.isCallAvailable_; emergencyCallParameter_ = other.emergencyCallParameter_ != null ? other.emergencyCallParameter_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EmergencyCallSettings Clone() { return new EmergencyCallSettings(this); } /// Field number for the "is_call_available" field. public const int IsCallAvailableFieldNumber = 1; private bool isCallAvailable_; /// /// Возможность вызова экстренной службы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsCallAvailable { get { return isCallAvailable_; } set { isCallAvailable_ = value; } } /// Field number for the "emergency_call_parameter" field. public const int EmergencyCallParameterFieldNumber = 2; private global::Keyapis.Device.V1.EmergencyCallSettings.Types.EmergencyCallParameter emergencyCallParameter_; /// /// Параметры вызова экстренной службы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.EmergencyCallSettings.Types.EmergencyCallParameter EmergencyCallParameter { get { return emergencyCallParameter_; } set { emergencyCallParameter_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EmergencyCallSettings); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EmergencyCallSettings other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsCallAvailable != other.IsCallAvailable) return false; if (!object.Equals(EmergencyCallParameter, other.EmergencyCallParameter)) 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 (IsCallAvailable != false) hash ^= IsCallAvailable.GetHashCode(); if (emergencyCallParameter_ != null) hash ^= EmergencyCallParameter.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 (IsCallAvailable != false) { output.WriteRawTag(8); output.WriteBool(IsCallAvailable); } if (emergencyCallParameter_ != null) { output.WriteRawTag(18); output.WriteMessage(EmergencyCallParameter); } 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 (IsCallAvailable != false) { output.WriteRawTag(8); output.WriteBool(IsCallAvailable); } if (emergencyCallParameter_ != null) { output.WriteRawTag(18); output.WriteMessage(EmergencyCallParameter); } 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 (IsCallAvailable != false) { size += 1 + 1; } if (emergencyCallParameter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmergencyCallParameter); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EmergencyCallSettings other) { if (other == null) { return; } if (other.IsCallAvailable != false) { IsCallAvailable = other.IsCallAvailable; } if (other.emergencyCallParameter_ != null) { if (emergencyCallParameter_ == null) { EmergencyCallParameter = new global::Keyapis.Device.V1.EmergencyCallSettings.Types.EmergencyCallParameter(); } EmergencyCallParameter.MergeFrom(other.EmergencyCallParameter); } _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: { IsCallAvailable = input.ReadBool(); break; } case 18: { if (emergencyCallParameter_ == null) { EmergencyCallParameter = new global::Keyapis.Device.V1.EmergencyCallSettings.Types.EmergencyCallParameter(); } input.ReadMessage(EmergencyCallParameter); 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: { IsCallAvailable = input.ReadBool(); break; } case 18: { if (emergencyCallParameter_ == null) { EmergencyCallParameter = new global::Keyapis.Device.V1.EmergencyCallSettings.Types.EmergencyCallParameter(); } input.ReadMessage(EmergencyCallParameter); break; } } } } #endif #region Nested types /// Container for nested types declared in the EmergencyCallSettings message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Параметры вызова экстренной службы /// public sealed partial class EmergencyCallParameter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EmergencyCallParameter()); 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.Device.V1.EmergencyCallSettings.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 EmergencyCallParameter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EmergencyCallParameter(EmergencyCallParameter other) : this() { emergencyNumber_ = other.emergencyNumber_; abcNumber_ = other.abcNumber_; sipTrunkHost_ = other.sipTrunkHost_; destinationName_ = other.destinationName_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EmergencyCallParameter Clone() { return new EmergencyCallParameter(this); } /// Field number for the "emergency_number" field. public const int EmergencyNumberFieldNumber = 1; private string emergencyNumber_ = ""; /// /// АБС-номер экстренной службы. /// # Паттерн: /^\+[1-9][0-9]{10}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string EmergencyNumber { get { return emergencyNumber_; } set { emergencyNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "abc_number" field. public const int AbcNumberFieldNumber = 2; private string abcNumber_ = ""; /// /// Исходящий ABC-номер домофона. /// # Паттерн: /^\+[1-9][0-9]{10}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string AbcNumber { get { return abcNumber_; } set { abcNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "sip_trunk_host" field. public const int SipTrunkHostFieldNumber = 3; private string sipTrunkHost_ = ""; /// /// Адрес SIP-транка. /// # Диапазон: 5..250 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipTrunkHost { get { return sipTrunkHost_; } set { sipTrunkHost_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "destination_name" field. public const int DestinationNameFieldNumber = 4; private string destinationName_ = ""; /// /// Регион вызова экстренной службы. /// # Диапазон: 3..32 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DestinationName { get { return destinationName_; } set { destinationName_ = 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 EmergencyCallParameter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EmergencyCallParameter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (EmergencyNumber != other.EmergencyNumber) return false; if (AbcNumber != other.AbcNumber) return false; if (SipTrunkHost != other.SipTrunkHost) return false; if (DestinationName != other.DestinationName) 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 (EmergencyNumber.Length != 0) hash ^= EmergencyNumber.GetHashCode(); if (AbcNumber.Length != 0) hash ^= AbcNumber.GetHashCode(); if (SipTrunkHost.Length != 0) hash ^= SipTrunkHost.GetHashCode(); if (DestinationName.Length != 0) hash ^= DestinationName.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 (EmergencyNumber.Length != 0) { output.WriteRawTag(10); output.WriteString(EmergencyNumber); } if (AbcNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(AbcNumber); } if (SipTrunkHost.Length != 0) { output.WriteRawTag(26); output.WriteString(SipTrunkHost); } if (DestinationName.Length != 0) { output.WriteRawTag(34); output.WriteString(DestinationName); } 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 (EmergencyNumber.Length != 0) { output.WriteRawTag(10); output.WriteString(EmergencyNumber); } if (AbcNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(AbcNumber); } if (SipTrunkHost.Length != 0) { output.WriteRawTag(26); output.WriteString(SipTrunkHost); } if (DestinationName.Length != 0) { output.WriteRawTag(34); output.WriteString(DestinationName); } 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 (EmergencyNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(EmergencyNumber); } if (AbcNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(AbcNumber); } if (SipTrunkHost.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SipTrunkHost); } if (DestinationName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DestinationName); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EmergencyCallParameter other) { if (other == null) { return; } if (other.EmergencyNumber.Length != 0) { EmergencyNumber = other.EmergencyNumber; } if (other.AbcNumber.Length != 0) { AbcNumber = other.AbcNumber; } if (other.SipTrunkHost.Length != 0) { SipTrunkHost = other.SipTrunkHost; } if (other.DestinationName.Length != 0) { DestinationName = other.DestinationName; } _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: { EmergencyNumber = input.ReadString(); break; } case 18: { AbcNumber = input.ReadString(); break; } case 26: { SipTrunkHost = input.ReadString(); break; } case 34: { DestinationName = 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: { EmergencyNumber = input.ReadString(); break; } case 18: { AbcNumber = input.ReadString(); break; } case 26: { SipTrunkHost = input.ReadString(); break; } case 34: { DestinationName = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Результат задачи на конфигурирование устройства. /// Очередь key.device.configure_device_result /// public sealed partial class ConfigureDeviceResultTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConfigureDeviceResultTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 ConfigureDeviceResultTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ConfigureDeviceResultTask(ConfigureDeviceResultTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; configuredAt_ = other.configuredAt_ != null ? other.configuredAt_.Clone() : null; hardwareVersion_ = other.hardwareVersion_; firmwareVersion_ = other.firmwareVersion_; model_ = other.model_; settings_ = other.settings_ != null ? other.settings_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ConfigureDeviceResultTask Clone() { return new ConfigureDeviceResultTask(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 "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 "configured_at" field. public const int ConfiguredAtFieldNumber = 3; private global::Google.Protobuf.WellKnownTypes.Timestamp configuredAt_; /// /// Дата конфигурации устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ConfiguredAt { get { return configuredAt_; } set { configuredAt_ = value; } } /// Field number for the "hardware_version" field. public const int HardwareVersionFieldNumber = 4; private string hardwareVersion_ = ""; /// /// Аппаратная версия /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string HardwareVersion { get { return hardwareVersion_; } set { hardwareVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "firmware_version" field. public const int FirmwareVersionFieldNumber = 5; private string firmwareVersion_ = ""; /// /// Версия прошивки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string FirmwareVersion { get { return firmwareVersion_; } set { firmwareVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "model" field. public const int ModelFieldNumber = 6; 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 "settings" field. public const int SettingsFieldNumber = 7; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings settings_; /// /// Результат настроек /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings Settings { get { return settings_; } set { settings_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ConfigureDeviceResultTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ConfigureDeviceResultTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if (!object.Equals(ConfiguredAt, other.ConfiguredAt)) return false; if (HardwareVersion != other.HardwareVersion) return false; if (FirmwareVersion != other.FirmwareVersion) return false; if (Model != other.Model) return false; if (!object.Equals(Settings, other.Settings)) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (configuredAt_ != null) hash ^= ConfiguredAt.GetHashCode(); if (HardwareVersion.Length != 0) hash ^= HardwareVersion.GetHashCode(); if (FirmwareVersion.Length != 0) hash ^= FirmwareVersion.GetHashCode(); if (Model.Length != 0) hash ^= Model.GetHashCode(); if (settings_ != null) hash ^= Settings.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (configuredAt_ != null) { output.WriteRawTag(26); output.WriteMessage(ConfiguredAt); } if (HardwareVersion.Length != 0) { output.WriteRawTag(34); output.WriteString(HardwareVersion); } if (FirmwareVersion.Length != 0) { output.WriteRawTag(42); output.WriteString(FirmwareVersion); } if (Model.Length != 0) { output.WriteRawTag(50); output.WriteString(Model); } if (settings_ != null) { output.WriteRawTag(58); output.WriteMessage(Settings); } 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 (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (configuredAt_ != null) { output.WriteRawTag(26); output.WriteMessage(ConfiguredAt); } if (HardwareVersion.Length != 0) { output.WriteRawTag(34); output.WriteString(HardwareVersion); } if (FirmwareVersion.Length != 0) { output.WriteRawTag(42); output.WriteString(FirmwareVersion); } if (Model.Length != 0) { output.WriteRawTag(50); output.WriteString(Model); } if (settings_ != null) { output.WriteRawTag(58); output.WriteMessage(Settings); } 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 (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (configuredAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConfiguredAt); } if (HardwareVersion.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareVersion); } if (FirmwareVersion.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareVersion); } if (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (settings_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Settings); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ConfigureDeviceResultTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.configuredAt_ != null) { if (configuredAt_ == null) { ConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ConfiguredAt.MergeFrom(other.ConfiguredAt); } if (other.HardwareVersion.Length != 0) { HardwareVersion = other.HardwareVersion; } if (other.FirmwareVersion.Length != 0) { FirmwareVersion = other.FirmwareVersion; } if (other.Model.Length != 0) { Model = other.Model; } if (other.settings_ != null) { if (settings_ == null) { Settings = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings(); } Settings.MergeFrom(other.Settings); } _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 16: { DeviceId = input.ReadInt32(); break; } case 26: { if (configuredAt_ == null) { ConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ConfiguredAt); break; } case 34: { HardwareVersion = input.ReadString(); break; } case 42: { FirmwareVersion = input.ReadString(); break; } case 50: { Model = input.ReadString(); break; } case 58: { if (settings_ == null) { Settings = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings(); } input.ReadMessage(Settings); 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 16: { DeviceId = input.ReadInt32(); break; } case 26: { if (configuredAt_ == null) { ConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ConfiguredAt); break; } case 34: { HardwareVersion = input.ReadString(); break; } case 42: { FirmwareVersion = input.ReadString(); break; } case 50: { Model = input.ReadString(); break; } case 58: { if (settings_ == null) { Settings = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings(); } input.ReadMessage(Settings); break; } } } } #endif #region Nested types /// Container for nested types declared in the ConfigureDeviceResultTask message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Результат конфигурации устройства /// public sealed partial class Settings : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Settings()); 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.Device.V1.ConfigureDeviceResultTask.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 Settings() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Settings(Settings other) : this() { preset_ = other.preset_ != null ? other.preset_.Clone() : null; sipAccount_ = other.sipAccount_ != null ? other.sipAccount_.Clone() : null; sipRooms_ = other.sipRooms_ != null ? other.sipRooms_.Clone() : null; gate_ = other.gate_ != null ? other.gate_.Clone() : null; rfids_ = other.rfids_ != null ? other.rfids_.Clone() : null; codes_ = other.codes_ != null ? other.codes_.Clone() : null; sl3_ = other.sl3_ != null ? other.sl3_.Clone() : null; emergencyCallSettings_ = other.emergencyCallSettings_ != null ? other.emergencyCallSettings_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Settings Clone() { return new Settings(this); } /// Field number for the "preset" field. public const int PresetFieldNumber = 1; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State preset_; /// /// Установка пресета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State Preset { get { return preset_; } set { preset_ = value; } } /// Field number for the "sip_account" field. public const int SipAccountFieldNumber = 2; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State sipAccount_; /// /// Настройка SIP-аккаунта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State SipAccount { get { return sipAccount_; } set { sipAccount_ = value; } } /// Field number for the "sip_rooms" field. public const int SipRoomsFieldNumber = 3; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.SipRooms sipRooms_; /// /// Настройка сип-номеров в помещениях /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.SipRooms SipRooms { get { return sipRooms_; } set { sipRooms_ = value; } } /// Field number for the "gate" field. public const int GateFieldNumber = 4; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State gate_; /// /// Настройка калитки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State Gate { get { return gate_; } set { gate_ = value; } } /// Field number for the "rfids" field. public const int RfidsFieldNumber = 5; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Rfids rfids_; /// /// Настройка ключей /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Rfids Rfids { get { return rfids_; } set { rfids_ = value; } } /// Field number for the "codes" field. public const int CodesFieldNumber = 6; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Codes codes_; /// /// Настройка кодов /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Codes Codes { get { return codes_; } set { codes_ = value; } } /// Field number for the "sl3" field. public const int Sl3FieldNumber = 7; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State sl3_; /// /// Настройка sl3 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State Sl3 { get { return sl3_; } set { sl3_ = value; } } /// Field number for the "emergency_call_settings" field. public const int EmergencyCallSettingsFieldNumber = 8; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State emergencyCallSettings_; /// /// Настройки вызова экстренной службы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State EmergencyCallSettings { get { return emergencyCallSettings_; } set { emergencyCallSettings_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Settings); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Settings other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Preset, other.Preset)) return false; if (!object.Equals(SipAccount, other.SipAccount)) return false; if (!object.Equals(SipRooms, other.SipRooms)) return false; if (!object.Equals(Gate, other.Gate)) return false; if (!object.Equals(Rfids, other.Rfids)) return false; if (!object.Equals(Codes, other.Codes)) return false; if (!object.Equals(Sl3, other.Sl3)) return false; if (!object.Equals(EmergencyCallSettings, other.EmergencyCallSettings)) 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 (preset_ != null) hash ^= Preset.GetHashCode(); if (sipAccount_ != null) hash ^= SipAccount.GetHashCode(); if (sipRooms_ != null) hash ^= SipRooms.GetHashCode(); if (gate_ != null) hash ^= Gate.GetHashCode(); if (rfids_ != null) hash ^= Rfids.GetHashCode(); if (codes_ != null) hash ^= Codes.GetHashCode(); if (sl3_ != null) hash ^= Sl3.GetHashCode(); if (emergencyCallSettings_ != null) hash ^= EmergencyCallSettings.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 (preset_ != null) { output.WriteRawTag(10); output.WriteMessage(Preset); } if (sipAccount_ != null) { output.WriteRawTag(18); output.WriteMessage(SipAccount); } if (sipRooms_ != null) { output.WriteRawTag(26); output.WriteMessage(SipRooms); } if (gate_ != null) { output.WriteRawTag(34); output.WriteMessage(Gate); } if (rfids_ != null) { output.WriteRawTag(42); output.WriteMessage(Rfids); } if (codes_ != null) { output.WriteRawTag(50); output.WriteMessage(Codes); } if (sl3_ != null) { output.WriteRawTag(58); output.WriteMessage(Sl3); } if (emergencyCallSettings_ != null) { output.WriteRawTag(66); output.WriteMessage(EmergencyCallSettings); } 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 (preset_ != null) { output.WriteRawTag(10); output.WriteMessage(Preset); } if (sipAccount_ != null) { output.WriteRawTag(18); output.WriteMessage(SipAccount); } if (sipRooms_ != null) { output.WriteRawTag(26); output.WriteMessage(SipRooms); } if (gate_ != null) { output.WriteRawTag(34); output.WriteMessage(Gate); } if (rfids_ != null) { output.WriteRawTag(42); output.WriteMessage(Rfids); } if (codes_ != null) { output.WriteRawTag(50); output.WriteMessage(Codes); } if (sl3_ != null) { output.WriteRawTag(58); output.WriteMessage(Sl3); } if (emergencyCallSettings_ != null) { output.WriteRawTag(66); output.WriteMessage(EmergencyCallSettings); } 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 (preset_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Preset); } if (sipAccount_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SipAccount); } if (sipRooms_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SipRooms); } if (gate_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gate); } if (rfids_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Rfids); } if (codes_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Codes); } if (sl3_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sl3); } if (emergencyCallSettings_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmergencyCallSettings); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Settings other) { if (other == null) { return; } if (other.preset_ != null) { if (preset_ == null) { Preset = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } Preset.MergeFrom(other.Preset); } if (other.sipAccount_ != null) { if (sipAccount_ == null) { SipAccount = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } SipAccount.MergeFrom(other.SipAccount); } if (other.sipRooms_ != null) { if (sipRooms_ == null) { SipRooms = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.SipRooms(); } SipRooms.MergeFrom(other.SipRooms); } if (other.gate_ != null) { if (gate_ == null) { Gate = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } Gate.MergeFrom(other.Gate); } if (other.rfids_ != null) { if (rfids_ == null) { Rfids = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Rfids(); } Rfids.MergeFrom(other.Rfids); } if (other.codes_ != null) { if (codes_ == null) { Codes = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Codes(); } Codes.MergeFrom(other.Codes); } if (other.sl3_ != null) { if (sl3_ == null) { Sl3 = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } Sl3.MergeFrom(other.Sl3); } if (other.emergencyCallSettings_ != null) { if (emergencyCallSettings_ == null) { EmergencyCallSettings = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } EmergencyCallSettings.MergeFrom(other.EmergencyCallSettings); } _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 (preset_ == null) { Preset = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Preset); break; } case 18: { if (sipAccount_ == null) { SipAccount = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(SipAccount); break; } case 26: { if (sipRooms_ == null) { SipRooms = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.SipRooms(); } input.ReadMessage(SipRooms); break; } case 34: { if (gate_ == null) { Gate = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Gate); break; } case 42: { if (rfids_ == null) { Rfids = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Rfids(); } input.ReadMessage(Rfids); break; } case 50: { if (codes_ == null) { Codes = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Codes(); } input.ReadMessage(Codes); break; } case 58: { if (sl3_ == null) { Sl3 = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Sl3); break; } case 66: { if (emergencyCallSettings_ == null) { EmergencyCallSettings = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(EmergencyCallSettings); 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 (preset_ == null) { Preset = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Preset); break; } case 18: { if (sipAccount_ == null) { SipAccount = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(SipAccount); break; } case 26: { if (sipRooms_ == null) { SipRooms = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.SipRooms(); } input.ReadMessage(SipRooms); break; } case 34: { if (gate_ == null) { Gate = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Gate); break; } case 42: { if (rfids_ == null) { Rfids = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Rfids(); } input.ReadMessage(Rfids); break; } case 50: { if (codes_ == null) { Codes = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.Codes(); } input.ReadMessage(Codes); break; } case 58: { if (sl3_ == null) { Sl3 = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Sl3); break; } case 66: { if (emergencyCallSettings_ == null) { EmergencyCallSettings = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(EmergencyCallSettings); break; } } } } #endif #region Nested types /// Container for nested types declared in the Settings message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник статусов конфигурации устройства. /// # Тип: byte /// public enum StatusType { /// /// Значение не указано /// [pbr::OriginalName("STATUS_TYPE_UNKNOWN")] Unknown = 0, /// /// Настроен /// [pbr::OriginalName("SUCCESS")] Success = 1, /// /// Ошибка /// [pbr::OriginalName("ERROR")] Error = 2, } /// /// Состояние настройки /// public sealed partial class State : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new State()); 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.Device.V1.ConfigureDeviceResultTask.Types.Settings.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 State() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public State(State other) : this() { statusType_ = other.statusType_; errorMessage_ = other.errorMessage_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public State Clone() { return new State(this); } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 1; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType statusType_ = global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown; /// /// Статус конфигурации устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } /// Field number for the "error_message" field. public const int ErrorMessageFieldNumber = 2; private string errorMessage_ = ""; /// /// Текст ошибки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ErrorMessage { get { return errorMessage_; } set { errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as State); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(State other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (StatusType != other.StatusType) return false; if (ErrorMessage != other.ErrorMessage) 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 (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); if (ErrorMessage.Length != 0) hash ^= ErrorMessage.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 (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) StatusType); } if (ErrorMessage.Length != 0) { output.WriteRawTag(18); output.WriteString(ErrorMessage); } 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 (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) StatusType); } if (ErrorMessage.Length != 0) { output.WriteRawTag(18); output.WriteString(ErrorMessage); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } if (ErrorMessage.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(State other) { if (other == null) { return; } if (other.StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { StatusType = other.StatusType; } if (other.ErrorMessage.Length != 0) { ErrorMessage = other.ErrorMessage; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { StatusType = (global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType) input.ReadEnum(); break; } case 18: { ErrorMessage = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { StatusType = (global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType) input.ReadEnum(); break; } case 18: { ErrorMessage = input.ReadString(); break; } } } } #endif } /// /// Настройка ключей /// public sealed partial class Rfids : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Rfids()); 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.Device.V1.ConfigureDeviceResultTask.Types.Settings.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 Rfids() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Rfids(Rfids other) : this() { statusType_ = other.statusType_; errorMessage_ = other.errorMessage_; loadedRfids_ = other.loadedRfids_.Clone(); unloadedRfids_ = other.unloadedRfids_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Rfids Clone() { return new Rfids(this); } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 1; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType statusType_ = global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown; /// /// Статус конфигурации устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } /// Field number for the "error_message" field. public const int ErrorMessageFieldNumber = 2; private string errorMessage_ = ""; /// /// Текст ошибки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ErrorMessage { get { return errorMessage_; } set { errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "loaded_rfids" field. public const int LoadedRfidsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_loadedRfids_codec = pb::FieldCodec.ForMessage(26, global::Keyapis.Device.V1.Rfid.Parser); private readonly pbc::RepeatedField loadedRfids_ = new pbc::RepeatedField(); /// /// Загруженные ключи /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField LoadedRfids { get { return loadedRfids_; } } /// Field number for the "unloaded_rfids" field. public const int UnloadedRfidsFieldNumber = 4; private static readonly pb::FieldCodec _repeated_unloadedRfids_codec = pb::FieldCodec.ForMessage(34, global::Keyapis.Device.V1.RfidError.Parser); private readonly pbc::RepeatedField unloadedRfids_ = new pbc::RepeatedField(); /// /// Незагруженные ключи /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField UnloadedRfids { get { return unloadedRfids_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Rfids); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Rfids other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (StatusType != other.StatusType) return false; if (ErrorMessage != other.ErrorMessage) return false; if(!loadedRfids_.Equals(other.loadedRfids_)) return false; if(!unloadedRfids_.Equals(other.unloadedRfids_)) 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 (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode(); hash ^= loadedRfids_.GetHashCode(); hash ^= unloadedRfids_.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 (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) StatusType); } if (ErrorMessage.Length != 0) { output.WriteRawTag(18); output.WriteString(ErrorMessage); } loadedRfids_.WriteTo(output, _repeated_loadedRfids_codec); unloadedRfids_.WriteTo(output, _repeated_unloadedRfids_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) StatusType); } if (ErrorMessage.Length != 0) { output.WriteRawTag(18); output.WriteString(ErrorMessage); } loadedRfids_.WriteTo(ref output, _repeated_loadedRfids_codec); unloadedRfids_.WriteTo(ref output, _repeated_unloadedRfids_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } if (ErrorMessage.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); } size += loadedRfids_.CalculateSize(_repeated_loadedRfids_codec); size += unloadedRfids_.CalculateSize(_repeated_unloadedRfids_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Rfids other) { if (other == null) { return; } if (other.StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { StatusType = other.StatusType; } if (other.ErrorMessage.Length != 0) { ErrorMessage = other.ErrorMessage; } loadedRfids_.Add(other.loadedRfids_); unloadedRfids_.Add(other.unloadedRfids_); _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: { StatusType = (global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType) input.ReadEnum(); break; } case 18: { ErrorMessage = input.ReadString(); break; } case 26: { loadedRfids_.AddEntriesFrom(input, _repeated_loadedRfids_codec); break; } case 34: { unloadedRfids_.AddEntriesFrom(input, _repeated_unloadedRfids_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { StatusType = (global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType) input.ReadEnum(); break; } case 18: { ErrorMessage = input.ReadString(); break; } case 26: { loadedRfids_.AddEntriesFrom(ref input, _repeated_loadedRfids_codec); break; } case 34: { unloadedRfids_.AddEntriesFrom(ref input, _repeated_unloadedRfids_codec); break; } } } } #endif } /// /// Настройка кодов /// public sealed partial class Codes : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Codes()); 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.Device.V1.ConfigureDeviceResultTask.Types.Settings.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 Codes() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Codes(Codes other) : this() { statusType_ = other.statusType_; errorMessage_ = other.errorMessage_; loadedCodes_ = other.loadedCodes_.Clone(); unloadedCodes_ = other.unloadedCodes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Codes Clone() { return new Codes(this); } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 1; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType statusType_ = global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown; /// /// Статус конфигурации устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } /// Field number for the "error_message" field. public const int ErrorMessageFieldNumber = 2; private string errorMessage_ = ""; /// /// Текст ошибки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ErrorMessage { get { return errorMessage_; } set { errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "loaded_codes" field. public const int LoadedCodesFieldNumber = 3; private static readonly pb::FieldCodec _repeated_loadedCodes_codec = pb::FieldCodec.ForMessage(26, global::Keyapis.Device.V1.Code.Parser); private readonly pbc::RepeatedField loadedCodes_ = new pbc::RepeatedField(); /// /// Загруженные коды /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField LoadedCodes { get { return loadedCodes_; } } /// Field number for the "unloaded_codes" field. public const int UnloadedCodesFieldNumber = 4; private static readonly pb::FieldCodec _repeated_unloadedCodes_codec = pb::FieldCodec.ForMessage(34, global::Keyapis.Device.V1.CodeError.Parser); private readonly pbc::RepeatedField unloadedCodes_ = new pbc::RepeatedField(); /// /// Незагруженные коды /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField UnloadedCodes { get { return unloadedCodes_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Codes); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Codes other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (StatusType != other.StatusType) return false; if (ErrorMessage != other.ErrorMessage) return false; if(!loadedCodes_.Equals(other.loadedCodes_)) return false; if(!unloadedCodes_.Equals(other.unloadedCodes_)) 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 (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode(); hash ^= loadedCodes_.GetHashCode(); hash ^= unloadedCodes_.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 (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) StatusType); } if (ErrorMessage.Length != 0) { output.WriteRawTag(18); output.WriteString(ErrorMessage); } loadedCodes_.WriteTo(output, _repeated_loadedCodes_codec); unloadedCodes_.WriteTo(output, _repeated_unloadedCodes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) StatusType); } if (ErrorMessage.Length != 0) { output.WriteRawTag(18); output.WriteString(ErrorMessage); } loadedCodes_.WriteTo(ref output, _repeated_loadedCodes_codec); unloadedCodes_.WriteTo(ref output, _repeated_unloadedCodes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } if (ErrorMessage.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); } size += loadedCodes_.CalculateSize(_repeated_loadedCodes_codec); size += unloadedCodes_.CalculateSize(_repeated_unloadedCodes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Codes other) { if (other == null) { return; } if (other.StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { StatusType = other.StatusType; } if (other.ErrorMessage.Length != 0) { ErrorMessage = other.ErrorMessage; } loadedCodes_.Add(other.loadedCodes_); unloadedCodes_.Add(other.unloadedCodes_); _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: { StatusType = (global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType) input.ReadEnum(); break; } case 18: { ErrorMessage = input.ReadString(); break; } case 26: { loadedCodes_.AddEntriesFrom(input, _repeated_loadedCodes_codec); break; } case 34: { unloadedCodes_.AddEntriesFrom(input, _repeated_unloadedCodes_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { StatusType = (global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType) input.ReadEnum(); break; } case 18: { ErrorMessage = input.ReadString(); break; } case 26: { loadedCodes_.AddEntriesFrom(ref input, _repeated_loadedCodes_codec); break; } case 34: { unloadedCodes_.AddEntriesFrom(ref input, _repeated_unloadedCodes_codec); break; } } } } #endif } /// /// Настройка квартир /// public sealed partial class SipRooms : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SipRooms()); 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.Device.V1.ConfigureDeviceResultTask.Types.Settings.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 SipRooms() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipRooms(SipRooms other) : this() { statusType_ = other.statusType_; errorMessage_ = other.errorMessage_; loadedSipRooms_ = other.loadedSipRooms_.Clone(); unloadedSipRooms_ = other.unloadedSipRooms_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipRooms Clone() { return new SipRooms(this); } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 1; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType statusType_ = global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown; /// /// Статус конфигурации устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } /// Field number for the "error_message" field. public const int ErrorMessageFieldNumber = 2; private string errorMessage_ = ""; /// /// Текст ошибки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ErrorMessage { get { return errorMessage_; } set { errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "loaded_sip_rooms" field. public const int LoadedSipRoomsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_loadedSipRooms_codec = pb::FieldCodec.ForMessage(26, global::Keyapis.Device.V1.SipRoom.Parser); private readonly pbc::RepeatedField loadedSipRooms_ = new pbc::RepeatedField(); /// /// Загруженные квартиры /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField LoadedSipRooms { get { return loadedSipRooms_; } } /// Field number for the "unloaded_sip_rooms" field. public const int UnloadedSipRoomsFieldNumber = 4; private static readonly pb::FieldCodec _repeated_unloadedSipRooms_codec = pb::FieldCodec.ForMessage(34, global::Keyapis.Device.V1.SipRoomError.Parser); private readonly pbc::RepeatedField unloadedSipRooms_ = new pbc::RepeatedField(); /// /// Незагруженные квартиры /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField UnloadedSipRooms { get { return unloadedSipRooms_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SipRooms); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SipRooms other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (StatusType != other.StatusType) return false; if (ErrorMessage != other.ErrorMessage) return false; if(!loadedSipRooms_.Equals(other.loadedSipRooms_)) return false; if(!unloadedSipRooms_.Equals(other.unloadedSipRooms_)) 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 (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode(); hash ^= loadedSipRooms_.GetHashCode(); hash ^= unloadedSipRooms_.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 (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) StatusType); } if (ErrorMessage.Length != 0) { output.WriteRawTag(18); output.WriteString(ErrorMessage); } loadedSipRooms_.WriteTo(output, _repeated_loadedSipRooms_codec); unloadedSipRooms_.WriteTo(output, _repeated_unloadedSipRooms_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) StatusType); } if (ErrorMessage.Length != 0) { output.WriteRawTag(18); output.WriteString(ErrorMessage); } loadedSipRooms_.WriteTo(ref output, _repeated_loadedSipRooms_codec); unloadedSipRooms_.WriteTo(ref output, _repeated_unloadedSipRooms_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } if (ErrorMessage.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); } size += loadedSipRooms_.CalculateSize(_repeated_loadedSipRooms_codec); size += unloadedSipRooms_.CalculateSize(_repeated_unloadedSipRooms_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SipRooms other) { if (other == null) { return; } if (other.StatusType != global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType.Unknown) { StatusType = other.StatusType; } if (other.ErrorMessage.Length != 0) { ErrorMessage = other.ErrorMessage; } loadedSipRooms_.Add(other.loadedSipRooms_); unloadedSipRooms_.Add(other.unloadedSipRooms_); _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: { StatusType = (global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType) input.ReadEnum(); break; } case 18: { ErrorMessage = input.ReadString(); break; } case 26: { loadedSipRooms_.AddEntriesFrom(input, _repeated_loadedSipRooms_codec); break; } case 34: { unloadedSipRooms_.AddEntriesFrom(input, _repeated_unloadedSipRooms_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { StatusType = (global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.StatusType) input.ReadEnum(); break; } case 18: { ErrorMessage = input.ReadString(); break; } case 26: { loadedSipRooms_.AddEntriesFrom(ref input, _repeated_loadedSipRooms_codec); break; } case 34: { unloadedSipRooms_.AddEntriesFrom(ref input, _repeated_unloadedSipRooms_codec); break; } } } } #endif } } #endregion } } #endregion } /// /// Задача на использование аналоговых трубок. /// Очередь key.device.cms_available /// public sealed partial class CmsServiceAvailableTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CmsServiceAvailableTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 CmsServiceAvailableTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CmsServiceAvailableTask(CmsServiceAvailableTask other) : this() { requestId_ = other.requestId_; orponId_ = other.orponId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CmsServiceAvailableTask Clone() { return new CmsServiceAvailableTask(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 "orpon_id" field. public const int OrponIdFieldNumber = 2; private long orponId_; /// /// Идентификатор ОРПОН дома /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long OrponId { get { return orponId_; } set { orponId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CmsServiceAvailableTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CmsServiceAvailableTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (OrponId != other.OrponId) 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 (OrponId != 0L) hash ^= OrponId.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (OrponId != 0L) { output.WriteRawTag(16); output.WriteInt64(OrponId); } 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 (OrponId != 0L) { output.WriteRawTag(16); output.WriteInt64(OrponId); } 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 (OrponId != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrponId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CmsServiceAvailableTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.OrponId != 0L) { OrponId = other.OrponId; } _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 16: { OrponId = input.ReadInt64(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { RequestId = input.ReadString(); break; } case 16: { OrponId = input.ReadInt64(); break; } } } } #endif } /// /// Задача на конфигурирование устройства. /// Очередь key.device.control_device /// public sealed partial class ControlDeviceTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ControlDeviceTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 ControlDeviceTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ControlDeviceTask(ControlDeviceTask other) : this() { requestId_ = other.requestId_; model_ = other.model_; host_ = other.host_; username_ = other.username_; password_ = other.password_; deviceId_ = other.deviceId_; faceRecognition_ = other.faceRecognition_ != null ? other.faceRecognition_.Clone() : null; preset_ = other.preset_ != null ? other.preset_.Clone() : null; NtpTimezone = other.NtpTimezone; sipAccount_ = other.sipAccount_ != null ? other.sipAccount_.Clone() : null; gate_ = other.gate_ != null ? other.gate_.Clone() : null; concierge_ = other.concierge_ != null ? other.concierge_.Clone() : null; autocollect_ = other.autocollect_ != null ? other.autocollect_.Clone() : null; sl3_ = other.sl3_ != null ? other.sl3_.Clone() : null; emergencyCallSettings_ = other.emergencyCallSettings_ != null ? other.emergencyCallSettings_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ControlDeviceTask Clone() { return new ControlDeviceTask(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 "model" field. public const int ModelFieldNumber = 2; 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 "host" field. public const int HostFieldNumber = 3; private string host_ = ""; /// /// Адрес устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "username" field. public const int UsernameFieldNumber = 4; private string username_ = ""; /// /// Имя пользователя устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Username { get { return username_; } set { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 5; private string password_ = ""; /// /// Пароль пользователья устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 6; 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 "face_recognition" field. public const int FaceRecognitionFieldNumber = 7; private global::Keyapis.Device.V1.ControlDeviceTask.Types.FaceRecognition faceRecognition_; /// /// Распознование лиц /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ControlDeviceTask.Types.FaceRecognition FaceRecognition { get { return faceRecognition_; } set { faceRecognition_ = value; } } /// Field number for the "preset" field. public const int PresetFieldNumber = 8; private global::Keyapis.Device.V1.Preset preset_; /// /// Пресет устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset Preset { get { return preset_; } set { preset_ = value; } } /// Field number for the "ntp_timezone" field. public const int NtpTimezoneFieldNumber = 9; private static readonly pb::FieldCodec _single_ntpTimezone_codec = pb::FieldCodec.ForClassWrapper(74); private string ntpTimezone_; /// /// Таймзона NTP /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string NtpTimezone { get { return ntpTimezone_; } set { ntpTimezone_ = value; } } /// Field number for the "sip_account" field. public const int SipAccountFieldNumber = 10; private global::Keyapis.Device.V1.ConfigureDeviceTask.Types.SipAccount sipAccount_; /// /// Sip аккаунт /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceTask.Types.SipAccount SipAccount { get { return sipAccount_; } set { sipAccount_ = value; } } /// Field number for the "gate" field. public const int GateFieldNumber = 11; private global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate gate_; /// /// Параметры калитки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate Gate { get { return gate_; } set { gate_ = value; } } /// Field number for the "concierge" field. public const int ConciergeFieldNumber = 12; private global::Keyapis.Device.V1.ControlDeviceTask.Types.Concierge concierge_; /// /// Консьерж /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ControlDeviceTask.Types.Concierge Concierge { get { return concierge_; } set { concierge_ = value; } } /// Field number for the "autocollect" field. public const int AutocollectFieldNumber = 13; private global::Keyapis.Device.V1.ControlDeviceTask.Types.Autocollect autocollect_; /// /// Автосбор /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ControlDeviceTask.Types.Autocollect Autocollect { get { return autocollect_; } set { autocollect_ = value; } } /// Field number for the "sl3" field. public const int Sl3FieldNumber = 14; private global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Sl3 sl3_; /// /// Параметр sl3 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Sl3 Sl3 { get { return sl3_; } set { sl3_ = value; } } /// Field number for the "emergency_call_settings" field. public const int EmergencyCallSettingsFieldNumber = 15; private global::Keyapis.Device.V1.EmergencyCallSettings emergencyCallSettings_; /// /// Настройки вызова экстренной службы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.EmergencyCallSettings EmergencyCallSettings { get { return emergencyCallSettings_; } set { emergencyCallSettings_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ControlDeviceTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ControlDeviceTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (Model != other.Model) return false; if (Host != other.Host) return false; if (Username != other.Username) return false; if (Password != other.Password) return false; if (DeviceId != other.DeviceId) return false; if (!object.Equals(FaceRecognition, other.FaceRecognition)) return false; if (!object.Equals(Preset, other.Preset)) return false; if (NtpTimezone != other.NtpTimezone) return false; if (!object.Equals(SipAccount, other.SipAccount)) return false; if (!object.Equals(Gate, other.Gate)) return false; if (!object.Equals(Concierge, other.Concierge)) return false; if (!object.Equals(Autocollect, other.Autocollect)) return false; if (!object.Equals(Sl3, other.Sl3)) return false; if (!object.Equals(EmergencyCallSettings, other.EmergencyCallSettings)) 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 (Model.Length != 0) hash ^= Model.GetHashCode(); if (Host.Length != 0) hash ^= Host.GetHashCode(); if (Username.Length != 0) hash ^= Username.GetHashCode(); if (Password.Length != 0) hash ^= Password.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (faceRecognition_ != null) hash ^= FaceRecognition.GetHashCode(); if (preset_ != null) hash ^= Preset.GetHashCode(); if (ntpTimezone_ != null) hash ^= NtpTimezone.GetHashCode(); if (sipAccount_ != null) hash ^= SipAccount.GetHashCode(); if (gate_ != null) hash ^= Gate.GetHashCode(); if (concierge_ != null) hash ^= Concierge.GetHashCode(); if (autocollect_ != null) hash ^= Autocollect.GetHashCode(); if (sl3_ != null) hash ^= Sl3.GetHashCode(); if (emergencyCallSettings_ != null) hash ^= EmergencyCallSettings.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } if (faceRecognition_ != null) { output.WriteRawTag(58); output.WriteMessage(FaceRecognition); } if (preset_ != null) { output.WriteRawTag(66); output.WriteMessage(Preset); } if (ntpTimezone_ != null) { _single_ntpTimezone_codec.WriteTagAndValue(output, NtpTimezone); } if (sipAccount_ != null) { output.WriteRawTag(82); output.WriteMessage(SipAccount); } if (gate_ != null) { output.WriteRawTag(90); output.WriteMessage(Gate); } if (concierge_ != null) { output.WriteRawTag(98); output.WriteMessage(Concierge); } if (autocollect_ != null) { output.WriteRawTag(106); output.WriteMessage(Autocollect); } if (sl3_ != null) { output.WriteRawTag(114); output.WriteMessage(Sl3); } if (emergencyCallSettings_ != null) { output.WriteRawTag(122); output.WriteMessage(EmergencyCallSettings); } 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 (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } if (faceRecognition_ != null) { output.WriteRawTag(58); output.WriteMessage(FaceRecognition); } if (preset_ != null) { output.WriteRawTag(66); output.WriteMessage(Preset); } if (ntpTimezone_ != null) { _single_ntpTimezone_codec.WriteTagAndValue(ref output, NtpTimezone); } if (sipAccount_ != null) { output.WriteRawTag(82); output.WriteMessage(SipAccount); } if (gate_ != null) { output.WriteRawTag(90); output.WriteMessage(Gate); } if (concierge_ != null) { output.WriteRawTag(98); output.WriteMessage(Concierge); } if (autocollect_ != null) { output.WriteRawTag(106); output.WriteMessage(Autocollect); } if (sl3_ != null) { output.WriteRawTag(114); output.WriteMessage(Sl3); } if (emergencyCallSettings_ != null) { output.WriteRawTag(122); output.WriteMessage(EmergencyCallSettings); } 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 (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Username.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (faceRecognition_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(FaceRecognition); } if (preset_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Preset); } if (ntpTimezone_ != null) { size += _single_ntpTimezone_codec.CalculateSizeWithTag(NtpTimezone); } if (sipAccount_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SipAccount); } if (gate_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gate); } if (concierge_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Concierge); } if (autocollect_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Autocollect); } if (sl3_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sl3); } if (emergencyCallSettings_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmergencyCallSettings); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ControlDeviceTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Username.Length != 0) { Username = other.Username; } if (other.Password.Length != 0) { Password = other.Password; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.faceRecognition_ != null) { if (faceRecognition_ == null) { FaceRecognition = new global::Keyapis.Device.V1.ControlDeviceTask.Types.FaceRecognition(); } FaceRecognition.MergeFrom(other.FaceRecognition); } if (other.preset_ != null) { if (preset_ == null) { Preset = new global::Keyapis.Device.V1.Preset(); } Preset.MergeFrom(other.Preset); } if (other.ntpTimezone_ != null) { if (ntpTimezone_ == null || other.NtpTimezone != "") { NtpTimezone = other.NtpTimezone; } } if (other.sipAccount_ != null) { if (sipAccount_ == null) { SipAccount = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.SipAccount(); } SipAccount.MergeFrom(other.SipAccount); } if (other.gate_ != null) { if (gate_ == null) { Gate = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate(); } Gate.MergeFrom(other.Gate); } if (other.concierge_ != null) { if (concierge_ == null) { Concierge = new global::Keyapis.Device.V1.ControlDeviceTask.Types.Concierge(); } Concierge.MergeFrom(other.Concierge); } if (other.autocollect_ != null) { if (autocollect_ == null) { Autocollect = new global::Keyapis.Device.V1.ControlDeviceTask.Types.Autocollect(); } Autocollect.MergeFrom(other.Autocollect); } if (other.sl3_ != null) { if (sl3_ == null) { Sl3 = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Sl3(); } Sl3.MergeFrom(other.Sl3); } if (other.emergencyCallSettings_ != null) { if (emergencyCallSettings_ == null) { EmergencyCallSettings = new global::Keyapis.Device.V1.EmergencyCallSettings(); } EmergencyCallSettings.MergeFrom(other.EmergencyCallSettings); } _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: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { if (faceRecognition_ == null) { FaceRecognition = new global::Keyapis.Device.V1.ControlDeviceTask.Types.FaceRecognition(); } input.ReadMessage(FaceRecognition); break; } case 66: { if (preset_ == null) { Preset = new global::Keyapis.Device.V1.Preset(); } input.ReadMessage(Preset); break; } case 74: { string value = _single_ntpTimezone_codec.Read(input); if (ntpTimezone_ == null || value != "") { NtpTimezone = value; } break; } case 82: { if (sipAccount_ == null) { SipAccount = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.SipAccount(); } input.ReadMessage(SipAccount); break; } case 90: { if (gate_ == null) { Gate = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate(); } input.ReadMessage(Gate); break; } case 98: { if (concierge_ == null) { Concierge = new global::Keyapis.Device.V1.ControlDeviceTask.Types.Concierge(); } input.ReadMessage(Concierge); break; } case 106: { if (autocollect_ == null) { Autocollect = new global::Keyapis.Device.V1.ControlDeviceTask.Types.Autocollect(); } input.ReadMessage(Autocollect); break; } case 114: { if (sl3_ == null) { Sl3 = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Sl3(); } input.ReadMessage(Sl3); break; } case 122: { if (emergencyCallSettings_ == null) { EmergencyCallSettings = new global::Keyapis.Device.V1.EmergencyCallSettings(); } input.ReadMessage(EmergencyCallSettings); 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: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { if (faceRecognition_ == null) { FaceRecognition = new global::Keyapis.Device.V1.ControlDeviceTask.Types.FaceRecognition(); } input.ReadMessage(FaceRecognition); break; } case 66: { if (preset_ == null) { Preset = new global::Keyapis.Device.V1.Preset(); } input.ReadMessage(Preset); break; } case 74: { string value = _single_ntpTimezone_codec.Read(ref input); if (ntpTimezone_ == null || value != "") { NtpTimezone = value; } break; } case 82: { if (sipAccount_ == null) { SipAccount = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.SipAccount(); } input.ReadMessage(SipAccount); break; } case 90: { if (gate_ == null) { Gate = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Gate(); } input.ReadMessage(Gate); break; } case 98: { if (concierge_ == null) { Concierge = new global::Keyapis.Device.V1.ControlDeviceTask.Types.Concierge(); } input.ReadMessage(Concierge); break; } case 106: { if (autocollect_ == null) { Autocollect = new global::Keyapis.Device.V1.ControlDeviceTask.Types.Autocollect(); } input.ReadMessage(Autocollect); break; } case 114: { if (sl3_ == null) { Sl3 = new global::Keyapis.Device.V1.ConfigureDeviceTask.Types.Sl3(); } input.ReadMessage(Sl3); break; } case 122: { if (emergencyCallSettings_ == null) { EmergencyCallSettings = new global::Keyapis.Device.V1.EmergencyCallSettings(); } input.ReadMessage(EmergencyCallSettings); break; } } } } #endif #region Nested types /// Container for nested types declared in the ControlDeviceTask message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Распознование лиц /// public sealed partial class FaceRecognition : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FaceRecognition()); 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.Device.V1.ControlDeviceTask.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 FaceRecognition() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FaceRecognition(FaceRecognition other) : this() { isEnabled_ = other.isEnabled_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FaceRecognition Clone() { return new FaceRecognition(this); } /// Field number for the "is_enabled" field. public const int IsEnabledFieldNumber = 1; private bool isEnabled_; /// /// Статус настройки распознавания лиц /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsEnabled { get { return isEnabled_; } set { isEnabled_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as FaceRecognition); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(FaceRecognition other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsEnabled != other.IsEnabled) 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 (IsEnabled != false) hash ^= IsEnabled.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 (IsEnabled != false) { output.WriteRawTag(8); output.WriteBool(IsEnabled); } 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 (IsEnabled != false) { output.WriteRawTag(8); output.WriteBool(IsEnabled); } 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 (IsEnabled != false) { size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(FaceRecognition other) { if (other == null) { return; } if (other.IsEnabled != false) { IsEnabled = other.IsEnabled; } _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: { IsEnabled = input.ReadBool(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { IsEnabled = input.ReadBool(); break; } } } } #endif } /// /// Консьерж /// public sealed partial class Concierge : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Concierge()); 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.Device.V1.ControlDeviceTask.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 Concierge() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Concierge(Concierge other) : this() { sipNumber_ = other.sipNumber_; roomNumber_ = other.roomNumber_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Concierge Clone() { return new Concierge(this); } /// Field number for the "sip_number" field. public const int SipNumberFieldNumber = 1; private string sipNumber_ = ""; /// /// Номер сип-трубки. /// # Диапазон: 5..14 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipNumber { get { return sipNumber_; } set { sipNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "room_number" field. public const int RoomNumberFieldNumber = 2; private int roomNumber_; /// /// Номер помещения. /// # Диапазон: 1..10000 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RoomNumber { get { return roomNumber_; } set { roomNumber_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Concierge); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Concierge other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (SipNumber != other.SipNumber) return false; if (RoomNumber != other.RoomNumber) 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 (SipNumber.Length != 0) hash ^= SipNumber.GetHashCode(); if (RoomNumber != 0) hash ^= RoomNumber.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 (SipNumber.Length != 0) { output.WriteRawTag(10); output.WriteString(SipNumber); } if (RoomNumber != 0) { output.WriteRawTag(16); output.WriteInt32(RoomNumber); } 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 (SipNumber.Length != 0) { output.WriteRawTag(10); output.WriteString(SipNumber); } if (RoomNumber != 0) { output.WriteRawTag(16); output.WriteInt32(RoomNumber); } 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 (SipNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SipNumber); } if (RoomNumber != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomNumber); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Concierge other) { if (other == null) { return; } if (other.SipNumber.Length != 0) { SipNumber = other.SipNumber; } if (other.RoomNumber != 0) { RoomNumber = other.RoomNumber; } _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: { SipNumber = input.ReadString(); break; } case 16: { RoomNumber = 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: { SipNumber = input.ReadString(); break; } case 16: { RoomNumber = input.ReadInt32(); break; } } } } #endif } /// /// Автосбор /// public sealed partial class Autocollect : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Autocollect()); 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.Device.V1.ControlDeviceTask.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 Autocollect() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Autocollect(Autocollect other) : this() { isEnabled_ = other.isEnabled_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Autocollect Clone() { return new Autocollect(this); } /// Field number for the "is_enabled" field. public const int IsEnabledFieldNumber = 1; private bool isEnabled_; /// /// Статус настройки автосбор /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsEnabled { get { return isEnabled_; } set { isEnabled_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Autocollect); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Autocollect other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsEnabled != other.IsEnabled) 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 (IsEnabled != false) hash ^= IsEnabled.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 (IsEnabled != false) { output.WriteRawTag(8); output.WriteBool(IsEnabled); } 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 (IsEnabled != false) { output.WriteRawTag(8); output.WriteBool(IsEnabled); } 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 (IsEnabled != false) { size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Autocollect other) { if (other == null) { return; } if (other.IsEnabled != false) { IsEnabled = other.IsEnabled; } _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: { IsEnabled = input.ReadBool(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { IsEnabled = input.ReadBool(); break; } } } } #endif } } #endregion } /// /// Результат задачи на конфигурирование устройства. /// Очередь key.device.control_device_result /// public sealed partial class ControlDeviceResultTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ControlDeviceResultTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 ControlDeviceResultTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ControlDeviceResultTask(ControlDeviceResultTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; configuredAt_ = other.configuredAt_ != null ? other.configuredAt_.Clone() : null; hardwareVersion_ = other.hardwareVersion_; firmwareVersion_ = other.firmwareVersion_; model_ = other.model_; settings_ = other.settings_ != null ? other.settings_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ControlDeviceResultTask Clone() { return new ControlDeviceResultTask(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 "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 "configured_at" field. public const int ConfiguredAtFieldNumber = 3; private global::Google.Protobuf.WellKnownTypes.Timestamp configuredAt_; /// /// Дата конфигурации устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ConfiguredAt { get { return configuredAt_; } set { configuredAt_ = value; } } /// Field number for the "hardware_version" field. public const int HardwareVersionFieldNumber = 4; private string hardwareVersion_ = ""; /// /// Аппаратная версия /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string HardwareVersion { get { return hardwareVersion_; } set { hardwareVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "firmware_version" field. public const int FirmwareVersionFieldNumber = 5; private string firmwareVersion_ = ""; /// /// Версия прошивки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string FirmwareVersion { get { return firmwareVersion_; } set { firmwareVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "model" field. public const int ModelFieldNumber = 6; 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 "settings" field. public const int SettingsFieldNumber = 7; private global::Keyapis.Device.V1.ControlDeviceResultTask.Types.Settings settings_; /// /// Результат настроек /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ControlDeviceResultTask.Types.Settings Settings { get { return settings_; } set { settings_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ControlDeviceResultTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ControlDeviceResultTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if (!object.Equals(ConfiguredAt, other.ConfiguredAt)) return false; if (HardwareVersion != other.HardwareVersion) return false; if (FirmwareVersion != other.FirmwareVersion) return false; if (Model != other.Model) return false; if (!object.Equals(Settings, other.Settings)) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (configuredAt_ != null) hash ^= ConfiguredAt.GetHashCode(); if (HardwareVersion.Length != 0) hash ^= HardwareVersion.GetHashCode(); if (FirmwareVersion.Length != 0) hash ^= FirmwareVersion.GetHashCode(); if (Model.Length != 0) hash ^= Model.GetHashCode(); if (settings_ != null) hash ^= Settings.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (configuredAt_ != null) { output.WriteRawTag(26); output.WriteMessage(ConfiguredAt); } if (HardwareVersion.Length != 0) { output.WriteRawTag(34); output.WriteString(HardwareVersion); } if (FirmwareVersion.Length != 0) { output.WriteRawTag(42); output.WriteString(FirmwareVersion); } if (Model.Length != 0) { output.WriteRawTag(50); output.WriteString(Model); } if (settings_ != null) { output.WriteRawTag(58); output.WriteMessage(Settings); } 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 (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (configuredAt_ != null) { output.WriteRawTag(26); output.WriteMessage(ConfiguredAt); } if (HardwareVersion.Length != 0) { output.WriteRawTag(34); output.WriteString(HardwareVersion); } if (FirmwareVersion.Length != 0) { output.WriteRawTag(42); output.WriteString(FirmwareVersion); } if (Model.Length != 0) { output.WriteRawTag(50); output.WriteString(Model); } if (settings_ != null) { output.WriteRawTag(58); output.WriteMessage(Settings); } 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 (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (configuredAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConfiguredAt); } if (HardwareVersion.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(HardwareVersion); } if (FirmwareVersion.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FirmwareVersion); } if (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (settings_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Settings); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ControlDeviceResultTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.configuredAt_ != null) { if (configuredAt_ == null) { ConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ConfiguredAt.MergeFrom(other.ConfiguredAt); } if (other.HardwareVersion.Length != 0) { HardwareVersion = other.HardwareVersion; } if (other.FirmwareVersion.Length != 0) { FirmwareVersion = other.FirmwareVersion; } if (other.Model.Length != 0) { Model = other.Model; } if (other.settings_ != null) { if (settings_ == null) { Settings = new global::Keyapis.Device.V1.ControlDeviceResultTask.Types.Settings(); } Settings.MergeFrom(other.Settings); } _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 16: { DeviceId = input.ReadInt32(); break; } case 26: { if (configuredAt_ == null) { ConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ConfiguredAt); break; } case 34: { HardwareVersion = input.ReadString(); break; } case 42: { FirmwareVersion = input.ReadString(); break; } case 50: { Model = input.ReadString(); break; } case 58: { if (settings_ == null) { Settings = new global::Keyapis.Device.V1.ControlDeviceResultTask.Types.Settings(); } input.ReadMessage(Settings); 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 16: { DeviceId = input.ReadInt32(); break; } case 26: { if (configuredAt_ == null) { ConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ConfiguredAt); break; } case 34: { HardwareVersion = input.ReadString(); break; } case 42: { FirmwareVersion = input.ReadString(); break; } case 50: { Model = input.ReadString(); break; } case 58: { if (settings_ == null) { Settings = new global::Keyapis.Device.V1.ControlDeviceResultTask.Types.Settings(); } input.ReadMessage(Settings); break; } } } } #endif #region Nested types /// Container for nested types declared in the ControlDeviceResultTask message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Результат конфигурации устройства /// public sealed partial class Settings : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Settings()); 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.Device.V1.ControlDeviceResultTask.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 Settings() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Settings(Settings other) : this() { faceRecognition_ = other.faceRecognition_ != null ? other.faceRecognition_.Clone() : null; preset_ = other.preset_ != null ? other.preset_.Clone() : null; sipAccount_ = other.sipAccount_ != null ? other.sipAccount_.Clone() : null; gate_ = other.gate_ != null ? other.gate_.Clone() : null; autocollect_ = other.autocollect_ != null ? other.autocollect_.Clone() : null; concierge_ = other.concierge_ != null ? other.concierge_.Clone() : null; sl3_ = other.sl3_ != null ? other.sl3_.Clone() : null; emergencyCallSettings_ = other.emergencyCallSettings_ != null ? other.emergencyCallSettings_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Settings Clone() { return new Settings(this); } /// Field number for the "face_recognition" field. public const int FaceRecognitionFieldNumber = 1; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State faceRecognition_; /// /// Настройка распознавания лиц /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State FaceRecognition { get { return faceRecognition_; } set { faceRecognition_ = value; } } /// Field number for the "preset" field. public const int PresetFieldNumber = 2; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State preset_; /// /// Установка пресета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State Preset { get { return preset_; } set { preset_ = value; } } /// Field number for the "sip_account" field. public const int SipAccountFieldNumber = 3; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State sipAccount_; /// /// Настройка SIP-аккаунта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State SipAccount { get { return sipAccount_; } set { sipAccount_ = value; } } /// Field number for the "gate" field. public const int GateFieldNumber = 4; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State gate_; /// /// Настройка калитки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State Gate { get { return gate_; } set { gate_ = value; } } /// Field number for the "autocollect" field. public const int AutocollectFieldNumber = 5; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State autocollect_; /// /// Настройка автосбора /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State Autocollect { get { return autocollect_; } set { autocollect_ = value; } } /// Field number for the "concierge" field. public const int ConciergeFieldNumber = 6; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State concierge_; /// /// Настройка консьержа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State Concierge { get { return concierge_; } set { concierge_ = value; } } /// Field number for the "sl3" field. public const int Sl3FieldNumber = 7; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State sl3_; /// /// Настройка sl3 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State Sl3 { get { return sl3_; } set { sl3_ = value; } } /// Field number for the "emergency_call_settings" field. public const int EmergencyCallSettingsFieldNumber = 8; private global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State emergencyCallSettings_; /// /// Настройки вызова экстренной службы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State EmergencyCallSettings { get { return emergencyCallSettings_; } set { emergencyCallSettings_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Settings); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Settings other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(FaceRecognition, other.FaceRecognition)) return false; if (!object.Equals(Preset, other.Preset)) return false; if (!object.Equals(SipAccount, other.SipAccount)) return false; if (!object.Equals(Gate, other.Gate)) return false; if (!object.Equals(Autocollect, other.Autocollect)) return false; if (!object.Equals(Concierge, other.Concierge)) return false; if (!object.Equals(Sl3, other.Sl3)) return false; if (!object.Equals(EmergencyCallSettings, other.EmergencyCallSettings)) 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 (faceRecognition_ != null) hash ^= FaceRecognition.GetHashCode(); if (preset_ != null) hash ^= Preset.GetHashCode(); if (sipAccount_ != null) hash ^= SipAccount.GetHashCode(); if (gate_ != null) hash ^= Gate.GetHashCode(); if (autocollect_ != null) hash ^= Autocollect.GetHashCode(); if (concierge_ != null) hash ^= Concierge.GetHashCode(); if (sl3_ != null) hash ^= Sl3.GetHashCode(); if (emergencyCallSettings_ != null) hash ^= EmergencyCallSettings.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 (faceRecognition_ != null) { output.WriteRawTag(10); output.WriteMessage(FaceRecognition); } if (preset_ != null) { output.WriteRawTag(18); output.WriteMessage(Preset); } if (sipAccount_ != null) { output.WriteRawTag(26); output.WriteMessage(SipAccount); } if (gate_ != null) { output.WriteRawTag(34); output.WriteMessage(Gate); } if (autocollect_ != null) { output.WriteRawTag(42); output.WriteMessage(Autocollect); } if (concierge_ != null) { output.WriteRawTag(50); output.WriteMessage(Concierge); } if (sl3_ != null) { output.WriteRawTag(58); output.WriteMessage(Sl3); } if (emergencyCallSettings_ != null) { output.WriteRawTag(66); output.WriteMessage(EmergencyCallSettings); } 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 (faceRecognition_ != null) { output.WriteRawTag(10); output.WriteMessage(FaceRecognition); } if (preset_ != null) { output.WriteRawTag(18); output.WriteMessage(Preset); } if (sipAccount_ != null) { output.WriteRawTag(26); output.WriteMessage(SipAccount); } if (gate_ != null) { output.WriteRawTag(34); output.WriteMessage(Gate); } if (autocollect_ != null) { output.WriteRawTag(42); output.WriteMessage(Autocollect); } if (concierge_ != null) { output.WriteRawTag(50); output.WriteMessage(Concierge); } if (sl3_ != null) { output.WriteRawTag(58); output.WriteMessage(Sl3); } if (emergencyCallSettings_ != null) { output.WriteRawTag(66); output.WriteMessage(EmergencyCallSettings); } 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 (faceRecognition_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(FaceRecognition); } if (preset_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Preset); } if (sipAccount_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SipAccount); } if (gate_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Gate); } if (autocollect_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Autocollect); } if (concierge_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Concierge); } if (sl3_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sl3); } if (emergencyCallSettings_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmergencyCallSettings); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Settings other) { if (other == null) { return; } if (other.faceRecognition_ != null) { if (faceRecognition_ == null) { FaceRecognition = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } FaceRecognition.MergeFrom(other.FaceRecognition); } if (other.preset_ != null) { if (preset_ == null) { Preset = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } Preset.MergeFrom(other.Preset); } if (other.sipAccount_ != null) { if (sipAccount_ == null) { SipAccount = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } SipAccount.MergeFrom(other.SipAccount); } if (other.gate_ != null) { if (gate_ == null) { Gate = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } Gate.MergeFrom(other.Gate); } if (other.autocollect_ != null) { if (autocollect_ == null) { Autocollect = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } Autocollect.MergeFrom(other.Autocollect); } if (other.concierge_ != null) { if (concierge_ == null) { Concierge = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } Concierge.MergeFrom(other.Concierge); } if (other.sl3_ != null) { if (sl3_ == null) { Sl3 = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } Sl3.MergeFrom(other.Sl3); } if (other.emergencyCallSettings_ != null) { if (emergencyCallSettings_ == null) { EmergencyCallSettings = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } EmergencyCallSettings.MergeFrom(other.EmergencyCallSettings); } _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 (faceRecognition_ == null) { FaceRecognition = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(FaceRecognition); break; } case 18: { if (preset_ == null) { Preset = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Preset); break; } case 26: { if (sipAccount_ == null) { SipAccount = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(SipAccount); break; } case 34: { if (gate_ == null) { Gate = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Gate); break; } case 42: { if (autocollect_ == null) { Autocollect = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Autocollect); break; } case 50: { if (concierge_ == null) { Concierge = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Concierge); break; } case 58: { if (sl3_ == null) { Sl3 = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Sl3); break; } case 66: { if (emergencyCallSettings_ == null) { EmergencyCallSettings = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(EmergencyCallSettings); 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 (faceRecognition_ == null) { FaceRecognition = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(FaceRecognition); break; } case 18: { if (preset_ == null) { Preset = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Preset); break; } case 26: { if (sipAccount_ == null) { SipAccount = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(SipAccount); break; } case 34: { if (gate_ == null) { Gate = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Gate); break; } case 42: { if (autocollect_ == null) { Autocollect = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Autocollect); break; } case 50: { if (concierge_ == null) { Concierge = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Concierge); break; } case 58: { if (sl3_ == null) { Sl3 = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(Sl3); break; } case 66: { if (emergencyCallSettings_ == null) { EmergencyCallSettings = new global::Keyapis.Device.V1.ConfigureDeviceResultTask.Types.Settings.Types.State(); } input.ReadMessage(EmergencyCallSettings); break; } } } } #endif } } #endregion } /// /// Задача на блокировку аналоговых трубок на устройствах для квартир. /// Очередь key.device.cms_phones_block /// public sealed partial class BlockCmsPhonesTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlockCmsPhonesTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 BlockCmsPhonesTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BlockCmsPhonesTask(BlockCmsPhonesTask other) : this() { requestId_ = other.requestId_; model_ = other.model_; host_ = other.host_; username_ = other.username_; password_ = other.password_; cmsPhones_ = other.cmsPhones_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BlockCmsPhonesTask Clone() { return new BlockCmsPhonesTask(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 "model" field. public const int ModelFieldNumber = 2; 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 "host" field. public const int HostFieldNumber = 3; private string host_ = ""; /// /// Хост /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "username" field. public const int UsernameFieldNumber = 4; private string username_ = ""; /// /// Имя пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Username { get { return username_; } set { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 5; private string password_ = ""; /// /// Пароль /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "cms_phones" field. public const int CmsPhonesFieldNumber = 6; private static readonly pb::FieldCodec _repeated_cmsPhones_codec = pb::FieldCodec.ForMessage(50, global::Keyapis.Device.V1.BlockCmsPhonesTask.Types.CmsPhone.Parser); private readonly pbc::RepeatedField cmsPhones_ = new pbc::RepeatedField(); /// /// Список аналоговых трубок /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField CmsPhones { get { return cmsPhones_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as BlockCmsPhonesTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BlockCmsPhonesTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (Model != other.Model) return false; if (Host != other.Host) return false; if (Username != other.Username) return false; if (Password != other.Password) return false; if(!cmsPhones_.Equals(other.cmsPhones_)) 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 (Model.Length != 0) hash ^= Model.GetHashCode(); if (Host.Length != 0) hash ^= Host.GetHashCode(); if (Username.Length != 0) hash ^= Username.GetHashCode(); if (Password.Length != 0) hash ^= Password.GetHashCode(); hash ^= cmsPhones_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } cmsPhones_.WriteTo(output, _repeated_cmsPhones_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } cmsPhones_.WriteTo(ref output, _repeated_cmsPhones_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Username.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } size += cmsPhones_.CalculateSize(_repeated_cmsPhones_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(BlockCmsPhonesTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Username.Length != 0) { Username = other.Username; } if (other.Password.Length != 0) { Password = other.Password; } cmsPhones_.Add(other.cmsPhones_); _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: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 50: { cmsPhones_.AddEntriesFrom(input, _repeated_cmsPhones_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: { RequestId = input.ReadString(); break; } case 18: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 50: { cmsPhones_.AddEntriesFrom(ref input, _repeated_cmsPhones_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the BlockCmsPhonesTask message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Аналоговая трубка /// public sealed partial class CmsPhone : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CmsPhone()); 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.Device.V1.BlockCmsPhonesTask.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 CmsPhone() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CmsPhone(CmsPhone other) : this() { id_ = other.id_; roomNumber_ = other.roomNumber_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CmsPhone Clone() { return new CmsPhone(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 "room_number" field. public const int RoomNumberFieldNumber = 2; 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"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CmsPhone); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CmsPhone other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (RoomNumber != other.RoomNumber) 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 (RoomNumber.Length != 0) hash ^= RoomNumber.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 (RoomNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(RoomNumber); } 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 (RoomNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(RoomNumber); } 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 (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CmsPhone other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } _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: { RoomNumber = 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: { Id = input.ReadInt32(); break; } case 18: { RoomNumber = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Задача ответ на успешную блокировку аналоговой трубки на устройстве для квартиры. /// Очередь key.device.cms_phone_block_success /// public sealed partial class BlockCmsPhoneSuccessTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlockCmsPhoneSuccessTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 BlockCmsPhoneSuccessTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BlockCmsPhoneSuccessTask(BlockCmsPhoneSuccessTask other) : this() { requestId_ = other.requestId_; cmsPhoneId_ = other.cmsPhoneId_; blockedAt_ = other.blockedAt_ != null ? other.blockedAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BlockCmsPhoneSuccessTask Clone() { return new BlockCmsPhoneSuccessTask(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 "cms_phone_id" field. public const int CmsPhoneIdFieldNumber = 2; private int cmsPhoneId_; /// /// Идентификатор аналоговой трубки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CmsPhoneId { get { return cmsPhoneId_; } set { cmsPhoneId_ = value; } } /// Field number for the "blocked_at" field. public const int BlockedAtFieldNumber = 3; private global::Google.Protobuf.WellKnownTypes.Timestamp blockedAt_; /// /// Дата и время блокировки аналоговой трубки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp BlockedAt { get { return blockedAt_; } set { blockedAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as BlockCmsPhoneSuccessTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BlockCmsPhoneSuccessTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (CmsPhoneId != other.CmsPhoneId) return false; if (!object.Equals(BlockedAt, other.BlockedAt)) 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 (CmsPhoneId != 0) hash ^= CmsPhoneId.GetHashCode(); if (blockedAt_ != null) hash ^= BlockedAt.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (CmsPhoneId != 0) { output.WriteRawTag(16); output.WriteInt32(CmsPhoneId); } if (blockedAt_ != null) { output.WriteRawTag(26); output.WriteMessage(BlockedAt); } 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 (CmsPhoneId != 0) { output.WriteRawTag(16); output.WriteInt32(CmsPhoneId); } if (blockedAt_ != null) { output.WriteRawTag(26); output.WriteMessage(BlockedAt); } 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 (CmsPhoneId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(CmsPhoneId); } if (blockedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(BlockedAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(BlockCmsPhoneSuccessTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.CmsPhoneId != 0) { CmsPhoneId = other.CmsPhoneId; } if (other.blockedAt_ != null) { if (blockedAt_ == null) { BlockedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } BlockedAt.MergeFrom(other.BlockedAt); } _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 16: { CmsPhoneId = input.ReadInt32(); break; } case 26: { if (blockedAt_ == null) { BlockedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(BlockedAt); 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 16: { CmsPhoneId = input.ReadInt32(); break; } case 26: { if (blockedAt_ == null) { BlockedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(BlockedAt); break; } } } } #endif } /// /// Задача ответ на ошибку при блокировке аналоговой трубки на устройстве для квартиры. /// Очередь key.device.cms_phone_block_fail /// public sealed partial class BlockCmsPhoneFailTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlockCmsPhoneFailTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 BlockCmsPhoneFailTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BlockCmsPhoneFailTask(BlockCmsPhoneFailTask other) : this() { requestId_ = other.requestId_; cmsPhoneId_ = other.cmsPhoneId_; errorMessage_ = other.errorMessage_; occuredAt_ = other.occuredAt_ != null ? other.occuredAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BlockCmsPhoneFailTask Clone() { return new BlockCmsPhoneFailTask(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 "cms_phone_id" field. public const int CmsPhoneIdFieldNumber = 2; private int cmsPhoneId_; /// /// Идентификатор аналоговой трубки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CmsPhoneId { get { return cmsPhoneId_; } set { cmsPhoneId_ = value; } } /// Field number for the "error_message" field. public const int ErrorMessageFieldNumber = 3; private string errorMessage_ = ""; /// /// Текст ошибки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ErrorMessage { get { return errorMessage_; } set { errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "occured_at" field. public const int OccuredAtFieldNumber = 4; private global::Google.Protobuf.WellKnownTypes.Timestamp occuredAt_; /// /// Дата и время события /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp OccuredAt { get { return occuredAt_; } set { occuredAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as BlockCmsPhoneFailTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BlockCmsPhoneFailTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (CmsPhoneId != other.CmsPhoneId) return false; if (ErrorMessage != other.ErrorMessage) return false; if (!object.Equals(OccuredAt, other.OccuredAt)) 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 (CmsPhoneId != 0) hash ^= CmsPhoneId.GetHashCode(); if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode(); if (occuredAt_ != null) hash ^= OccuredAt.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (CmsPhoneId != 0) { output.WriteRawTag(16); output.WriteInt32(CmsPhoneId); } if (ErrorMessage.Length != 0) { output.WriteRawTag(26); output.WriteString(ErrorMessage); } if (occuredAt_ != null) { output.WriteRawTag(34); output.WriteMessage(OccuredAt); } 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 (CmsPhoneId != 0) { output.WriteRawTag(16); output.WriteInt32(CmsPhoneId); } if (ErrorMessage.Length != 0) { output.WriteRawTag(26); output.WriteString(ErrorMessage); } if (occuredAt_ != null) { output.WriteRawTag(34); output.WriteMessage(OccuredAt); } 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 (CmsPhoneId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(CmsPhoneId); } if (ErrorMessage.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); } if (occuredAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(OccuredAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(BlockCmsPhoneFailTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.CmsPhoneId != 0) { CmsPhoneId = other.CmsPhoneId; } if (other.ErrorMessage.Length != 0) { ErrorMessage = other.ErrorMessage; } if (other.occuredAt_ != null) { if (occuredAt_ == null) { OccuredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } OccuredAt.MergeFrom(other.OccuredAt); } _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 16: { CmsPhoneId = input.ReadInt32(); break; } case 26: { ErrorMessage = input.ReadString(); break; } case 34: { if (occuredAt_ == null) { OccuredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(OccuredAt); 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 16: { CmsPhoneId = input.ReadInt32(); break; } case 26: { ErrorMessage = input.ReadString(); break; } case 34: { if (occuredAt_ == null) { OccuredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(OccuredAt); break; } } } } #endif } /// /// Задача разблокировку аналоговых трубок на устройстве для квартир. /// Очередь key.device.cms_phones_activate /// public sealed partial class ActivateCmsPhonesTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateCmsPhonesTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 ActivateCmsPhonesTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActivateCmsPhonesTask(ActivateCmsPhonesTask other) : this() { requestId_ = other.requestId_; model_ = other.model_; host_ = other.host_; username_ = other.username_; password_ = other.password_; cmsPhones_ = other.cmsPhones_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActivateCmsPhonesTask Clone() { return new ActivateCmsPhonesTask(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 "model" field. public const int ModelFieldNumber = 2; 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 "host" field. public const int HostFieldNumber = 3; private string host_ = ""; /// /// Хост /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "username" field. public const int UsernameFieldNumber = 4; private string username_ = ""; /// /// Имя пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Username { get { return username_; } set { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 5; private string password_ = ""; /// /// Пароль /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "cms_phones" field. public const int CmsPhonesFieldNumber = 6; private static readonly pb::FieldCodec _repeated_cmsPhones_codec = pb::FieldCodec.ForMessage(50, global::Keyapis.Device.V1.ActivateCmsPhonesTask.Types.CmsPhone.Parser); private readonly pbc::RepeatedField cmsPhones_ = new pbc::RepeatedField(); /// /// Список аналоговых трубок /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField CmsPhones { get { return cmsPhones_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ActivateCmsPhonesTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ActivateCmsPhonesTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (Model != other.Model) return false; if (Host != other.Host) return false; if (Username != other.Username) return false; if (Password != other.Password) return false; if(!cmsPhones_.Equals(other.cmsPhones_)) 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 (Model.Length != 0) hash ^= Model.GetHashCode(); if (Host.Length != 0) hash ^= Host.GetHashCode(); if (Username.Length != 0) hash ^= Username.GetHashCode(); if (Password.Length != 0) hash ^= Password.GetHashCode(); hash ^= cmsPhones_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } cmsPhones_.WriteTo(output, _repeated_cmsPhones_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } cmsPhones_.WriteTo(ref output, _repeated_cmsPhones_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Username.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } size += cmsPhones_.CalculateSize(_repeated_cmsPhones_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ActivateCmsPhonesTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Username.Length != 0) { Username = other.Username; } if (other.Password.Length != 0) { Password = other.Password; } cmsPhones_.Add(other.cmsPhones_); _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: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 50: { cmsPhones_.AddEntriesFrom(input, _repeated_cmsPhones_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: { RequestId = input.ReadString(); break; } case 18: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 50: { cmsPhones_.AddEntriesFrom(ref input, _repeated_cmsPhones_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the ActivateCmsPhonesTask message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Аналоговая трубка /// public sealed partial class CmsPhone : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CmsPhone()); 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.Device.V1.ActivateCmsPhonesTask.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 CmsPhone() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CmsPhone(CmsPhone other) : this() { id_ = other.id_; roomNumber_ = other.roomNumber_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CmsPhone Clone() { return new CmsPhone(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 "room_number" field. public const int RoomNumberFieldNumber = 2; 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"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CmsPhone); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CmsPhone other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (RoomNumber != other.RoomNumber) 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 (RoomNumber.Length != 0) hash ^= RoomNumber.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 (RoomNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(RoomNumber); } 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 (RoomNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(RoomNumber); } 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 (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CmsPhone other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } _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: { RoomNumber = 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: { Id = input.ReadInt32(); break; } case 18: { RoomNumber = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Задача ответ на успешную разблокировку аналоговой трубки на устройстве для квартиры. /// Очередь key.device.cms_phone_activate_success /// public sealed partial class ActivateCmsPhoneSuccessTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateCmsPhoneSuccessTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 ActivateCmsPhoneSuccessTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActivateCmsPhoneSuccessTask(ActivateCmsPhoneSuccessTask other) : this() { requestId_ = other.requestId_; cmsPhoneId_ = other.cmsPhoneId_; activatedAt_ = other.activatedAt_ != null ? other.activatedAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActivateCmsPhoneSuccessTask Clone() { return new ActivateCmsPhoneSuccessTask(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 "cms_phone_id" field. public const int CmsPhoneIdFieldNumber = 2; private int cmsPhoneId_; /// /// Идентификатор аналоговой трубки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CmsPhoneId { get { return cmsPhoneId_; } set { cmsPhoneId_ = value; } } /// Field number for the "activated_at" field. public const int ActivatedAtFieldNumber = 3; private global::Google.Protobuf.WellKnownTypes.Timestamp activatedAt_; /// /// Дата и время разблокировки аналоговой трубки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ActivatedAt { get { return activatedAt_; } set { activatedAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ActivateCmsPhoneSuccessTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ActivateCmsPhoneSuccessTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (CmsPhoneId != other.CmsPhoneId) return false; if (!object.Equals(ActivatedAt, other.ActivatedAt)) 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 (CmsPhoneId != 0) hash ^= CmsPhoneId.GetHashCode(); if (activatedAt_ != null) hash ^= ActivatedAt.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (CmsPhoneId != 0) { output.WriteRawTag(16); output.WriteInt32(CmsPhoneId); } if (activatedAt_ != null) { output.WriteRawTag(26); output.WriteMessage(ActivatedAt); } 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 (CmsPhoneId != 0) { output.WriteRawTag(16); output.WriteInt32(CmsPhoneId); } if (activatedAt_ != null) { output.WriteRawTag(26); output.WriteMessage(ActivatedAt); } 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 (CmsPhoneId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(CmsPhoneId); } if (activatedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ActivatedAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ActivateCmsPhoneSuccessTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.CmsPhoneId != 0) { CmsPhoneId = other.CmsPhoneId; } if (other.activatedAt_ != null) { if (activatedAt_ == null) { ActivatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ActivatedAt.MergeFrom(other.ActivatedAt); } _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 16: { CmsPhoneId = input.ReadInt32(); break; } case 26: { if (activatedAt_ == null) { ActivatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ActivatedAt); 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 16: { CmsPhoneId = input.ReadInt32(); break; } case 26: { if (activatedAt_ == null) { ActivatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ActivatedAt); break; } } } } #endif } /// /// Задача ответ на ошибку при разблокировке аналоговой трубки на устройстве для квартиры. /// Очередь key.device.cms_phone_activate_fail /// public sealed partial class ActivateCmsPhoneFailTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateCmsPhoneFailTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 ActivateCmsPhoneFailTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActivateCmsPhoneFailTask(ActivateCmsPhoneFailTask other) : this() { requestId_ = other.requestId_; cmsPhoneId_ = other.cmsPhoneId_; errorMessage_ = other.errorMessage_; occuredAt_ = other.occuredAt_ != null ? other.occuredAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ActivateCmsPhoneFailTask Clone() { return new ActivateCmsPhoneFailTask(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 "cms_phone_id" field. public const int CmsPhoneIdFieldNumber = 2; private int cmsPhoneId_; /// /// Идентификатор аналоговой трубки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CmsPhoneId { get { return cmsPhoneId_; } set { cmsPhoneId_ = value; } } /// Field number for the "error_message" field. public const int ErrorMessageFieldNumber = 3; private string errorMessage_ = ""; /// /// Текст ошибки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ErrorMessage { get { return errorMessage_; } set { errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "occured_at" field. public const int OccuredAtFieldNumber = 4; private global::Google.Protobuf.WellKnownTypes.Timestamp occuredAt_; /// /// Дата и время события /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp OccuredAt { get { return occuredAt_; } set { occuredAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ActivateCmsPhoneFailTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ActivateCmsPhoneFailTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (CmsPhoneId != other.CmsPhoneId) return false; if (ErrorMessage != other.ErrorMessage) return false; if (!object.Equals(OccuredAt, other.OccuredAt)) 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 (CmsPhoneId != 0) hash ^= CmsPhoneId.GetHashCode(); if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode(); if (occuredAt_ != null) hash ^= OccuredAt.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (CmsPhoneId != 0) { output.WriteRawTag(16); output.WriteInt32(CmsPhoneId); } if (ErrorMessage.Length != 0) { output.WriteRawTag(26); output.WriteString(ErrorMessage); } if (occuredAt_ != null) { output.WriteRawTag(34); output.WriteMessage(OccuredAt); } 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 (CmsPhoneId != 0) { output.WriteRawTag(16); output.WriteInt32(CmsPhoneId); } if (ErrorMessage.Length != 0) { output.WriteRawTag(26); output.WriteString(ErrorMessage); } if (occuredAt_ != null) { output.WriteRawTag(34); output.WriteMessage(OccuredAt); } 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 (CmsPhoneId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(CmsPhoneId); } if (ErrorMessage.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); } if (occuredAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(OccuredAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ActivateCmsPhoneFailTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.CmsPhoneId != 0) { CmsPhoneId = other.CmsPhoneId; } if (other.ErrorMessage.Length != 0) { ErrorMessage = other.ErrorMessage; } if (other.occuredAt_ != null) { if (occuredAt_ == null) { OccuredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } OccuredAt.MergeFrom(other.OccuredAt); } _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 16: { CmsPhoneId = input.ReadInt32(); break; } case 26: { ErrorMessage = input.ReadString(); break; } case 34: { if (occuredAt_ == null) { OccuredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(OccuredAt); 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 16: { CmsPhoneId = input.ReadInt32(); break; } case 26: { ErrorMessage = input.ReadString(); break; } case 34: { if (occuredAt_ == null) { OccuredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(OccuredAt); break; } } } } #endif } /// /// Сообщение о появлении возможности работы с аналоговыми трубками на устройстве. /// Очередь key.device.device_cms_available /// public sealed partial class CmsAvailableTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CmsAvailableTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 CmsAvailableTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CmsAvailableTask(CmsAvailableTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CmsAvailableTask Clone() { return new CmsAvailableTask(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 "device_id" field. public const int DeviceIdFieldNumber = 2; private int deviceId_; /// /// Идентификатор устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DeviceId { get { return deviceId_; } set { deviceId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CmsAvailableTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CmsAvailableTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) 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 (RequestId.Length != 0) hash ^= RequestId.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } 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 (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } 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(CmsAvailableTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } 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: { RequestId = 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: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } } } } #endif } /// /// Сип-номер в помещении /// public sealed partial class SipRoom : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SipRoom()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 SipRoom() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipRoom(SipRoom other) : this() { sipNumber_ = other.sipNumber_; roomNumber_ = other.roomNumber_; roomId_ = other.roomId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipRoom Clone() { return new SipRoom(this); } /// Field number for the "sip_number" field. public const int SipNumberFieldNumber = 1; private string sipNumber_ = ""; /// /// Номер сип-трубки. /// # Диапазон: 5..14 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipNumber { get { return sipNumber_; } set { sipNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "room_number" field. public const int RoomNumberFieldNumber = 2; private string roomNumber_ = ""; /// /// Номер помещения. /// # Диапазон: 1..10000 /// [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_id" field. public const int RoomIdFieldNumber = 3; private int roomId_; /// /// Идентификатор квартиры. /// # Диапазон: 1..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RoomId { get { return roomId_; } set { roomId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SipRoom); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SipRoom other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (SipNumber != other.SipNumber) return false; if (RoomNumber != other.RoomNumber) return false; if (RoomId != other.RoomId) 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 (SipNumber.Length != 0) hash ^= SipNumber.GetHashCode(); if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode(); if (RoomId != 0) hash ^= RoomId.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 (SipNumber.Length != 0) { output.WriteRawTag(10); output.WriteString(SipNumber); } if (RoomNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(RoomNumber); } if (RoomId != 0) { output.WriteRawTag(24); output.WriteInt32(RoomId); } 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 (SipNumber.Length != 0) { output.WriteRawTag(10); output.WriteString(SipNumber); } if (RoomNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(RoomNumber); } if (RoomId != 0) { output.WriteRawTag(24); output.WriteInt32(RoomId); } 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 (SipNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SipNumber); } if (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } if (RoomId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SipRoom other) { if (other == null) { return; } if (other.SipNumber.Length != 0) { SipNumber = other.SipNumber; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } if (other.RoomId != 0) { RoomId = other.RoomId; } _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: { SipNumber = input.ReadString(); break; } case 18: { RoomNumber = input.ReadString(); break; } case 24: { RoomId = 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: { SipNumber = input.ReadString(); break; } case 18: { RoomNumber = input.ReadString(); break; } case 24: { RoomId = input.ReadInt32(); break; } } } } #endif } /// /// Ошибка сип-номера в помещении /// public sealed partial class SipRoomError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SipRoomError()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 SipRoomError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipRoomError(SipRoomError other) : this() { sipNumber_ = other.sipNumber_; roomNumber_ = other.roomNumber_; roomId_ = other.roomId_; message_ = other.message_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipRoomError Clone() { return new SipRoomError(this); } /// Field number for the "sip_number" field. public const int SipNumberFieldNumber = 1; private string sipNumber_ = ""; /// /// Номер сип-трубки. /// # Диапазон: 5..14 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipNumber { get { return sipNumber_; } set { sipNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "room_number" field. public const int RoomNumberFieldNumber = 2; private string roomNumber_ = ""; /// /// Номер помещения. /// # Диапазон: 1..10000 /// [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_id" field. public const int RoomIdFieldNumber = 3; private int roomId_; /// /// Идентификатор квартиры. /// # Диапазон: 1..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RoomId { get { return roomId_; } set { roomId_ = value; } } /// Field number for the "message" field. public const int MessageFieldNumber = 4; 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 SipRoomError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SipRoomError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (SipNumber != other.SipNumber) return false; if (RoomNumber != other.RoomNumber) return false; if (RoomId != other.RoomId) 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 (SipNumber.Length != 0) hash ^= SipNumber.GetHashCode(); if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode(); if (RoomId != 0) hash ^= RoomId.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 (SipNumber.Length != 0) { output.WriteRawTag(10); output.WriteString(SipNumber); } if (RoomNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(RoomNumber); } if (RoomId != 0) { output.WriteRawTag(24); output.WriteInt32(RoomId); } if (Message.Length != 0) { output.WriteRawTag(34); 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 (SipNumber.Length != 0) { output.WriteRawTag(10); output.WriteString(SipNumber); } if (RoomNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(RoomNumber); } if (RoomId != 0) { output.WriteRawTag(24); output.WriteInt32(RoomId); } if (Message.Length != 0) { output.WriteRawTag(34); 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 (SipNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SipNumber); } if (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } if (RoomId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomId); } 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(SipRoomError other) { if (other == null) { return; } if (other.SipNumber.Length != 0) { SipNumber = other.SipNumber; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } if (other.RoomId != 0) { RoomId = other.RoomId; } 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: { SipNumber = input.ReadString(); break; } case 18: { RoomNumber = input.ReadString(); break; } case 24: { RoomId = input.ReadInt32(); break; } case 34: { 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: { SipNumber = input.ReadString(); break; } case 18: { RoomNumber = input.ReadString(); break; } case 24: { RoomId = input.ReadInt32(); break; } case 34: { Message = input.ReadString(); break; } } } } #endif } /// /// Ключ /// public sealed partial class Rfid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Rfid()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 Rfid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Rfid(Rfid other) : this() { id_ = other.id_; key_ = other.key_; roomNumber_ = other.roomNumber_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Rfid Clone() { return new Rfid(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 "key" field. public const int KeyFieldNumber = 2; private string key_ = ""; /// /// Значение ключа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Key { get { return key_; } set { key_ = pb::ProtoPreconditions.CheckNotNull(value, "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"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Rfid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Rfid other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (Key != other.Key) return false; if (RoomNumber != other.RoomNumber) 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 (Key.Length != 0) hash ^= Key.GetHashCode(); if (RoomNumber.Length != 0) hash ^= RoomNumber.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 (Key.Length != 0) { output.WriteRawTag(18); output.WriteString(Key); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } 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 (Key.Length != 0) { output.WriteRawTag(18); output.WriteString(Key); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } 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 (Key.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); } if (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Rfid other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.Key.Length != 0) { Key = other.Key; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } _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: { Key = input.ReadString(); break; } case 26: { RoomNumber = 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: { Id = input.ReadInt32(); break; } case 18: { Key = input.ReadString(); break; } case 26: { RoomNumber = input.ReadString(); break; } } } } #endif } /// /// Код /// public sealed partial class Code : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Code()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 Code() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Code(Code other) : this() { id_ = other.id_; code_ = other.code_; roomNumber_ = other.roomNumber_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Code Clone() { return new Code(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 "code" field. public const int Code_FieldNumber = 2; private string code_ = ""; /// /// Значение кода /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Code_ { get { return code_; } set { code_ = pb::ProtoPreconditions.CheckNotNull(value, "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"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Code); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Code other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (Code_ != other.Code_) return false; if (RoomNumber != other.RoomNumber) 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 (Code_.Length != 0) hash ^= Code_.GetHashCode(); if (RoomNumber.Length != 0) hash ^= RoomNumber.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 (Code_.Length != 0) { output.WriteRawTag(18); output.WriteString(Code_); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } 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 (Code_.Length != 0) { output.WriteRawTag(18); output.WriteString(Code_); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } 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 (Code_.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Code_); } if (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Code other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.Code_.Length != 0) { Code_ = other.Code_; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } _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: { Code_ = input.ReadString(); break; } case 26: { RoomNumber = 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: { Id = input.ReadInt32(); break; } case 18: { Code_ = input.ReadString(); break; } case 26: { RoomNumber = input.ReadString(); break; } } } } #endif } /// /// Ошибка ключа /// public sealed partial class RfidError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RfidError()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 RfidError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RfidError(RfidError other) : this() { id_ = other.id_; key_ = other.key_; roomNumber_ = other.roomNumber_; message_ = other.message_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RfidError Clone() { return new RfidError(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 "key" field. public const int KeyFieldNumber = 2; private string key_ = ""; /// /// Значение ключа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Key { get { return key_; } set { key_ = pb::ProtoPreconditions.CheckNotNull(value, "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 "message" field. public const int MessageFieldNumber = 4; 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 RfidError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RfidError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (Key != other.Key) return false; if (RoomNumber != other.RoomNumber) 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 (Id != 0) hash ^= Id.GetHashCode(); if (Key.Length != 0) hash ^= Key.GetHashCode(); if (RoomNumber.Length != 0) hash ^= RoomNumber.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 (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (Key.Length != 0) { output.WriteRawTag(18); output.WriteString(Key); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } if (Message.Length != 0) { output.WriteRawTag(34); 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 (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (Key.Length != 0) { output.WriteRawTag(18); output.WriteString(Key); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } if (Message.Length != 0) { output.WriteRawTag(34); 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 (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (Key.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); } if (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } 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(RfidError other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.Key.Length != 0) { Key = other.Key; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } 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 8: { Id = input.ReadInt32(); break; } case 18: { Key = input.ReadString(); break; } case 26: { RoomNumber = input.ReadString(); break; } case 34: { 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 8: { Id = input.ReadInt32(); break; } case 18: { Key = input.ReadString(); break; } case 26: { RoomNumber = input.ReadString(); break; } case 34: { Message = input.ReadString(); break; } } } } #endif } /// /// Ошибка кода /// public sealed partial class CodeError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CodeError()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 CodeError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CodeError(CodeError other) : this() { id_ = other.id_; code_ = other.code_; roomNumber_ = other.roomNumber_; message_ = other.message_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CodeError Clone() { return new CodeError(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 "code" field. public const int CodeFieldNumber = 2; private string code_ = ""; /// /// Значение кода /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Code { get { return code_; } set { code_ = pb::ProtoPreconditions.CheckNotNull(value, "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 "message" field. public const int MessageFieldNumber = 4; 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 CodeError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CodeError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (Code != other.Code) return false; if (RoomNumber != other.RoomNumber) 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 (Id != 0) hash ^= Id.GetHashCode(); if (Code.Length != 0) hash ^= Code.GetHashCode(); if (RoomNumber.Length != 0) hash ^= RoomNumber.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 (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (Code.Length != 0) { output.WriteRawTag(18); output.WriteString(Code); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } if (Message.Length != 0) { output.WriteRawTag(34); 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 (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (Code.Length != 0) { output.WriteRawTag(18); output.WriteString(Code); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } if (Message.Length != 0) { output.WriteRawTag(34); 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 (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (Code.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Code); } if (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } 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(CodeError other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.Code.Length != 0) { Code = other.Code; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } 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 8: { Id = input.ReadInt32(); break; } case 18: { Code = input.ReadString(); break; } case 26: { RoomNumber = input.ReadString(); break; } case 34: { 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 8: { Id = input.ReadInt32(); break; } case 18: { Code = input.ReadString(); break; } case 26: { RoomNumber = input.ReadString(); break; } case 34: { Message = input.ReadString(); break; } } } } #endif } /// /// Задача на добавление Sl3 ключей на устройство. /// Очередь key.device.add_sl3_rfids /// public sealed partial class AddSl3RfidsTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddSl3RfidsTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 AddSl3RfidsTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddSl3RfidsTask(AddSl3RfidsTask other) : this() { requestId_ = other.requestId_; model_ = other.model_; host_ = other.host_; username_ = other.username_; password_ = other.password_; deviceId_ = other.deviceId_; sl3Rfids_ = other.sl3Rfids_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddSl3RfidsTask Clone() { return new AddSl3RfidsTask(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 "model" field. public const int ModelFieldNumber = 2; 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 "host" field. public const int HostFieldNumber = 3; private string host_ = ""; /// /// Хост /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "username" field. public const int UsernameFieldNumber = 4; private string username_ = ""; /// /// Имя пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Username { get { return username_; } set { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 5; private string password_ = ""; /// /// Пароль /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 6; 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 "sl3_rfids" field. public const int Sl3RfidsFieldNumber = 7; private static readonly pb::FieldCodec _repeated_sl3Rfids_codec = pb::FieldCodec.ForMessage(58, global::Keyapis.Device.V1.AddSl3RfidsTask.Types.Sl3Rfid.Parser); private readonly pbc::RepeatedField sl3Rfids_ = new pbc::RepeatedField(); /// /// Ключи /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Sl3Rfids { get { return sl3Rfids_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AddSl3RfidsTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AddSl3RfidsTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (Model != other.Model) return false; if (Host != other.Host) return false; if (Username != other.Username) return false; if (Password != other.Password) return false; if (DeviceId != other.DeviceId) return false; if(!sl3Rfids_.Equals(other.sl3Rfids_)) 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 (Model.Length != 0) hash ^= Model.GetHashCode(); if (Host.Length != 0) hash ^= Host.GetHashCode(); if (Username.Length != 0) hash ^= Username.GetHashCode(); if (Password.Length != 0) hash ^= Password.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= sl3Rfids_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } sl3Rfids_.WriteTo(output, _repeated_sl3Rfids_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } sl3Rfids_.WriteTo(ref output, _repeated_sl3Rfids_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Username.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += sl3Rfids_.CalculateSize(_repeated_sl3Rfids_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AddSl3RfidsTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Username.Length != 0) { Username = other.Username; } if (other.Password.Length != 0) { Password = other.Password; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } sl3Rfids_.Add(other.sl3Rfids_); _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: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { sl3Rfids_.AddEntriesFrom(input, _repeated_sl3Rfids_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: { RequestId = input.ReadString(); break; } case 18: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { sl3Rfids_.AddEntriesFrom(ref input, _repeated_sl3Rfids_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the AddSl3RfidsTask message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ключ sl3 /// public sealed partial class Sl3Rfid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Sl3Rfid()); 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.Device.V1.AddSl3RfidsTask.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 Sl3Rfid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Sl3Rfid(Sl3Rfid other) : this() { id_ = other.id_; roomNumber_ = other.roomNumber_; key_ = other.key_; keySecret_ = other.keySecret_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Sl3Rfid Clone() { return new Sl3Rfid(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 "room_number" field. public const int RoomNumberFieldNumber = 2; 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 "key" field. public const int KeyFieldNumber = 3; private string key_ = ""; /// /// Значение ключа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Key { get { return key_; } set { key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "key_secret" field. public const int KeySecretFieldNumber = 4; private string keySecret_ = ""; /// /// Секрет /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string KeySecret { get { return keySecret_; } set { keySecret_ = 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 Sl3Rfid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Sl3Rfid other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (RoomNumber != other.RoomNumber) return false; if (Key != other.Key) return false; if (KeySecret != other.KeySecret) 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 (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode(); if (Key.Length != 0) hash ^= Key.GetHashCode(); if (KeySecret.Length != 0) hash ^= KeySecret.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 (RoomNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(RoomNumber); } if (Key.Length != 0) { output.WriteRawTag(26); output.WriteString(Key); } if (KeySecret.Length != 0) { output.WriteRawTag(34); output.WriteString(KeySecret); } 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 (RoomNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(RoomNumber); } if (Key.Length != 0) { output.WriteRawTag(26); output.WriteString(Key); } if (KeySecret.Length != 0) { output.WriteRawTag(34); output.WriteString(KeySecret); } 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 (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } if (Key.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); } if (KeySecret.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(KeySecret); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Sl3Rfid other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } if (other.Key.Length != 0) { Key = other.Key; } if (other.KeySecret.Length != 0) { KeySecret = other.KeySecret; } _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: { RoomNumber = input.ReadString(); break; } case 26: { Key = input.ReadString(); break; } case 34: { KeySecret = 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: { Id = input.ReadInt32(); break; } case 18: { RoomNumber = input.ReadString(); break; } case 26: { Key = input.ReadString(); break; } case 34: { KeySecret = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Задача на добавление ключей на устройство. /// Очередь key.device.add_rfids /// public sealed partial class AddRfidsTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddRfidsTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 AddRfidsTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddRfidsTask(AddRfidsTask other) : this() { requestId_ = other.requestId_; model_ = other.model_; host_ = other.host_; username_ = other.username_; password_ = other.password_; deviceId_ = other.deviceId_; rfids_ = other.rfids_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddRfidsTask Clone() { return new AddRfidsTask(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 "model" field. public const int ModelFieldNumber = 2; 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 "host" field. public const int HostFieldNumber = 3; private string host_ = ""; /// /// Хост /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "username" field. public const int UsernameFieldNumber = 4; private string username_ = ""; /// /// Имя пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Username { get { return username_; } set { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 5; private string password_ = ""; /// /// Пароль /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 6; 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 "rfids" field. public const int RfidsFieldNumber = 7; private static readonly pb::FieldCodec _repeated_rfids_codec = pb::FieldCodec.ForMessage(58, global::Keyapis.Device.V1.Rfid.Parser); private readonly pbc::RepeatedField rfids_ = new pbc::RepeatedField(); /// /// Ключи /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Rfids { get { return rfids_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AddRfidsTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AddRfidsTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (Model != other.Model) return false; if (Host != other.Host) return false; if (Username != other.Username) return false; if (Password != other.Password) return false; if (DeviceId != other.DeviceId) return false; if(!rfids_.Equals(other.rfids_)) 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 (Model.Length != 0) hash ^= Model.GetHashCode(); if (Host.Length != 0) hash ^= Host.GetHashCode(); if (Username.Length != 0) hash ^= Username.GetHashCode(); if (Password.Length != 0) hash ^= Password.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= rfids_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } rfids_.WriteTo(output, _repeated_rfids_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } rfids_.WriteTo(ref output, _repeated_rfids_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Username.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += rfids_.CalculateSize(_repeated_rfids_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AddRfidsTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Username.Length != 0) { Username = other.Username; } if (other.Password.Length != 0) { Password = other.Password; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } rfids_.Add(other.rfids_); _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: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { rfids_.AddEntriesFrom(input, _repeated_rfids_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: { RequestId = input.ReadString(); break; } case 18: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { rfids_.AddEntriesFrom(ref input, _repeated_rfids_codec); break; } } } } #endif } /// /// Задача на добавление кодов на устройство. /// Очередь key.device.add_codes /// public sealed partial class AddCodesTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddCodesTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 AddCodesTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddCodesTask(AddCodesTask other) : this() { requestId_ = other.requestId_; model_ = other.model_; host_ = other.host_; username_ = other.username_; password_ = other.password_; deviceId_ = other.deviceId_; codes_ = other.codes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddCodesTask Clone() { return new AddCodesTask(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 "model" field. public const int ModelFieldNumber = 2; 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 "host" field. public const int HostFieldNumber = 3; private string host_ = ""; /// /// Хост /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "username" field. public const int UsernameFieldNumber = 4; private string username_ = ""; /// /// Имя пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Username { get { return username_; } set { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 5; private string password_ = ""; /// /// Пароль /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 6; 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 "codes" field. public const int CodesFieldNumber = 7; private static readonly pb::FieldCodec _repeated_codes_codec = pb::FieldCodec.ForMessage(58, global::Keyapis.Device.V1.Code.Parser); private readonly pbc::RepeatedField codes_ = new pbc::RepeatedField(); /// /// Ключи /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Codes { get { return codes_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AddCodesTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AddCodesTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (Model != other.Model) return false; if (Host != other.Host) return false; if (Username != other.Username) return false; if (Password != other.Password) return false; if (DeviceId != other.DeviceId) return false; if(!codes_.Equals(other.codes_)) 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 (Model.Length != 0) hash ^= Model.GetHashCode(); if (Host.Length != 0) hash ^= Host.GetHashCode(); if (Username.Length != 0) hash ^= Username.GetHashCode(); if (Password.Length != 0) hash ^= Password.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= codes_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } codes_.WriteTo(output, _repeated_codes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } codes_.WriteTo(ref output, _repeated_codes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Username.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += codes_.CalculateSize(_repeated_codes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AddCodesTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Username.Length != 0) { Username = other.Username; } if (other.Password.Length != 0) { Password = other.Password; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } codes_.Add(other.codes_); _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: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { codes_.AddEntriesFrom(input, _repeated_codes_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: { RequestId = input.ReadString(); break; } case 18: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { codes_.AddEntriesFrom(ref input, _repeated_codes_codec); break; } } } } #endif } /// /// Задача ответ на успешное на добавление ключей на устройство. /// Очередь key.device.add_rfids_success /// public sealed partial class AddRfidsSuccessTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddRfidsSuccessTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 AddRfidsSuccessTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddRfidsSuccessTask(AddRfidsSuccessTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; rfids_ = other.rfids_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddRfidsSuccessTask Clone() { return new AddRfidsSuccessTask(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 "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 "rfids" field. public const int RfidsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_rfids_codec = pb::FieldCodec.ForMessage(26, global::Keyapis.Device.V1.Rfid.Parser); private readonly pbc::RepeatedField rfids_ = new pbc::RepeatedField(); /// /// Ключи /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Rfids { get { return rfids_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AddRfidsSuccessTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AddRfidsSuccessTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if(!rfids_.Equals(other.rfids_)) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= rfids_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } rfids_.WriteTo(output, _repeated_rfids_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } rfids_.WriteTo(ref output, _repeated_rfids_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += rfids_.CalculateSize(_repeated_rfids_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AddRfidsSuccessTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } rfids_.Add(other.rfids_); _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 16: { DeviceId = input.ReadInt32(); break; } case 26: { rfids_.AddEntriesFrom(input, _repeated_rfids_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: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { rfids_.AddEntriesFrom(ref input, _repeated_rfids_codec); break; } } } } #endif } /// /// Задача ответ на неуспешное на добавление ключей на устройство. /// Очередь key.device.add_rfids_fail /// public sealed partial class AddRfidsFailTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddRfidsFailTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 AddRfidsFailTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddRfidsFailTask(AddRfidsFailTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; rfidErrors_ = other.rfidErrors_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddRfidsFailTask Clone() { return new AddRfidsFailTask(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 "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 "rfid_errors" field. public const int RfidErrorsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_rfidErrors_codec = pb::FieldCodec.ForMessage(26, global::Keyapis.Device.V1.RfidError.Parser); private readonly pbc::RepeatedField rfidErrors_ = new pbc::RepeatedField(); /// /// Ошибки ключей /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RfidErrors { get { return rfidErrors_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AddRfidsFailTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AddRfidsFailTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if(!rfidErrors_.Equals(other.rfidErrors_)) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= rfidErrors_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } rfidErrors_.WriteTo(output, _repeated_rfidErrors_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } rfidErrors_.WriteTo(ref output, _repeated_rfidErrors_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += rfidErrors_.CalculateSize(_repeated_rfidErrors_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AddRfidsFailTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } rfidErrors_.Add(other.rfidErrors_); _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 16: { DeviceId = input.ReadInt32(); break; } case 26: { rfidErrors_.AddEntriesFrom(input, _repeated_rfidErrors_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: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { rfidErrors_.AddEntriesFrom(ref input, _repeated_rfidErrors_codec); break; } } } } #endif } /// /// Задача ответ на успешное на добавление кодов на устройство. /// Очередь key.device.add_codes_success /// public sealed partial class AddCodesSuccessTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddCodesSuccessTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 AddCodesSuccessTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddCodesSuccessTask(AddCodesSuccessTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; codes_ = other.codes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddCodesSuccessTask Clone() { return new AddCodesSuccessTask(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 "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 "codes" field. public const int CodesFieldNumber = 3; private static readonly pb::FieldCodec _repeated_codes_codec = pb::FieldCodec.ForMessage(26, global::Keyapis.Device.V1.Code.Parser); private readonly pbc::RepeatedField codes_ = new pbc::RepeatedField(); /// /// коды /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Codes { get { return codes_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AddCodesSuccessTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AddCodesSuccessTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if(!codes_.Equals(other.codes_)) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= codes_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } codes_.WriteTo(output, _repeated_codes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } codes_.WriteTo(ref output, _repeated_codes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += codes_.CalculateSize(_repeated_codes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AddCodesSuccessTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } codes_.Add(other.codes_); _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 16: { DeviceId = input.ReadInt32(); break; } case 26: { codes_.AddEntriesFrom(input, _repeated_codes_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: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { codes_.AddEntriesFrom(ref input, _repeated_codes_codec); break; } } } } #endif } /// /// Задача ответ на неуспешное на добавление кодов на устройство. /// Очередь key.device.add_codes_fail /// public sealed partial class AddCodesFailTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddCodesFailTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 AddCodesFailTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddCodesFailTask(AddCodesFailTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; codeErrors_ = other.codeErrors_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AddCodesFailTask Clone() { return new AddCodesFailTask(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 "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 "code_errors" field. public const int CodeErrorsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_codeErrors_codec = pb::FieldCodec.ForMessage(26, global::Keyapis.Device.V1.CodeError.Parser); private readonly pbc::RepeatedField codeErrors_ = new pbc::RepeatedField(); /// /// Ошибки кодов /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField CodeErrors { get { return codeErrors_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AddCodesFailTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AddCodesFailTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if(!codeErrors_.Equals(other.codeErrors_)) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= codeErrors_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } codeErrors_.WriteTo(output, _repeated_codeErrors_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } codeErrors_.WriteTo(ref output, _repeated_codeErrors_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += codeErrors_.CalculateSize(_repeated_codeErrors_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AddCodesFailTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } codeErrors_.Add(other.codeErrors_); _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 16: { DeviceId = input.ReadInt32(); break; } case 26: { codeErrors_.AddEntriesFrom(input, _repeated_codeErrors_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: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { codeErrors_.AddEntriesFrom(ref input, _repeated_codeErrors_codec); break; } } } } #endif } /// /// Задача на удаление Sl3 ключей с устройства. /// Очередь key.device.delete_sl3_rfids /// public sealed partial class DeleteSl3RfidsTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteSl3RfidsTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 DeleteSl3RfidsTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteSl3RfidsTask(DeleteSl3RfidsTask other) : this() { requestId_ = other.requestId_; model_ = other.model_; host_ = other.host_; username_ = other.username_; password_ = other.password_; deviceId_ = other.deviceId_; sl3Rfids_ = other.sl3Rfids_.Clone(); IsAnswerUnnecessary = other.IsAnswerUnnecessary; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteSl3RfidsTask Clone() { return new DeleteSl3RfidsTask(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 "model" field. public const int ModelFieldNumber = 2; 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 "host" field. public const int HostFieldNumber = 3; private string host_ = ""; /// /// Хост /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "username" field. public const int UsernameFieldNumber = 4; private string username_ = ""; /// /// Имя пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Username { get { return username_; } set { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 5; private string password_ = ""; /// /// Пароль /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 6; 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 "sl3_rfids" field. public const int Sl3RfidsFieldNumber = 7; private static readonly pb::FieldCodec _repeated_sl3Rfids_codec = pb::FieldCodec.ForMessage(58, global::Keyapis.Device.V1.DeleteSl3RfidsTask.Types.Sl3Rfid.Parser); private readonly pbc::RepeatedField sl3Rfids_ = new pbc::RepeatedField(); /// /// Ключи /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Sl3Rfids { get { return sl3Rfids_; } } /// Field number for the "is_answer_unnecessary" field. public const int IsAnswerUnnecessaryFieldNumber = 8; private static readonly pb::FieldCodec _single_isAnswerUnnecessary_codec = pb::FieldCodec.ForStructWrapper(66); private bool? isAnswerUnnecessary_; /// /// При передаче этого флага в true, ответное сообщение не будет получено /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool? IsAnswerUnnecessary { get { return isAnswerUnnecessary_; } set { isAnswerUnnecessary_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteSl3RfidsTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteSl3RfidsTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (Model != other.Model) return false; if (Host != other.Host) return false; if (Username != other.Username) return false; if (Password != other.Password) return false; if (DeviceId != other.DeviceId) return false; if(!sl3Rfids_.Equals(other.sl3Rfids_)) return false; if (IsAnswerUnnecessary != other.IsAnswerUnnecessary) 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 (Model.Length != 0) hash ^= Model.GetHashCode(); if (Host.Length != 0) hash ^= Host.GetHashCode(); if (Username.Length != 0) hash ^= Username.GetHashCode(); if (Password.Length != 0) hash ^= Password.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= sl3Rfids_.GetHashCode(); if (isAnswerUnnecessary_ != null) hash ^= IsAnswerUnnecessary.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } sl3Rfids_.WriteTo(output, _repeated_sl3Rfids_codec); if (isAnswerUnnecessary_ != null) { _single_isAnswerUnnecessary_codec.WriteTagAndValue(output, IsAnswerUnnecessary); } 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 (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } sl3Rfids_.WriteTo(ref output, _repeated_sl3Rfids_codec); if (isAnswerUnnecessary_ != null) { _single_isAnswerUnnecessary_codec.WriteTagAndValue(ref output, IsAnswerUnnecessary); } 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 (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Username.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += sl3Rfids_.CalculateSize(_repeated_sl3Rfids_codec); if (isAnswerUnnecessary_ != null) { size += _single_isAnswerUnnecessary_codec.CalculateSizeWithTag(IsAnswerUnnecessary); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeleteSl3RfidsTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Username.Length != 0) { Username = other.Username; } if (other.Password.Length != 0) { Password = other.Password; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } sl3Rfids_.Add(other.sl3Rfids_); if (other.isAnswerUnnecessary_ != null) { if (isAnswerUnnecessary_ == null || other.IsAnswerUnnecessary != false) { IsAnswerUnnecessary = other.IsAnswerUnnecessary; } } _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: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { sl3Rfids_.AddEntriesFrom(input, _repeated_sl3Rfids_codec); break; } case 66: { bool? value = _single_isAnswerUnnecessary_codec.Read(input); if (isAnswerUnnecessary_ == null || value != false) { IsAnswerUnnecessary = value; } break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { RequestId = input.ReadString(); break; } case 18: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { sl3Rfids_.AddEntriesFrom(ref input, _repeated_sl3Rfids_codec); break; } case 66: { bool? value = _single_isAnswerUnnecessary_codec.Read(ref input); if (isAnswerUnnecessary_ == null || value != false) { IsAnswerUnnecessary = value; } break; } } } } #endif #region Nested types /// Container for nested types declared in the DeleteSl3RfidsTask message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ключ sl3 /// public sealed partial class Sl3Rfid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Sl3Rfid()); 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.Device.V1.DeleteSl3RfidsTask.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 Sl3Rfid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Sl3Rfid(Sl3Rfid other) : this() { id_ = other.id_; roomNumber_ = other.roomNumber_; key_ = other.key_; keySecret_ = other.keySecret_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Sl3Rfid Clone() { return new Sl3Rfid(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 "room_number" field. public const int RoomNumberFieldNumber = 2; 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 "key" field. public const int KeyFieldNumber = 3; private string key_ = ""; /// /// Значение ключа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Key { get { return key_; } set { key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "key_secret" field. public const int KeySecretFieldNumber = 4; private string keySecret_ = ""; /// /// Секрет /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string KeySecret { get { return keySecret_; } set { keySecret_ = 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 Sl3Rfid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Sl3Rfid other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (RoomNumber != other.RoomNumber) return false; if (Key != other.Key) return false; if (KeySecret != other.KeySecret) 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 (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode(); if (Key.Length != 0) hash ^= Key.GetHashCode(); if (KeySecret.Length != 0) hash ^= KeySecret.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 (RoomNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(RoomNumber); } if (Key.Length != 0) { output.WriteRawTag(26); output.WriteString(Key); } if (KeySecret.Length != 0) { output.WriteRawTag(34); output.WriteString(KeySecret); } 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 (RoomNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(RoomNumber); } if (Key.Length != 0) { output.WriteRawTag(26); output.WriteString(Key); } if (KeySecret.Length != 0) { output.WriteRawTag(34); output.WriteString(KeySecret); } 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 (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } if (Key.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); } if (KeySecret.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(KeySecret); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Sl3Rfid other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } if (other.Key.Length != 0) { Key = other.Key; } if (other.KeySecret.Length != 0) { KeySecret = other.KeySecret; } _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: { RoomNumber = input.ReadString(); break; } case 26: { Key = input.ReadString(); break; } case 34: { KeySecret = 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: { Id = input.ReadInt32(); break; } case 18: { RoomNumber = input.ReadString(); break; } case 26: { Key = input.ReadString(); break; } case 34: { KeySecret = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Задача на удаление ключей с устройства. /// Очередь key.device.delete_rfids /// public sealed partial class DeleteRfidsTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteRfidsTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 DeleteRfidsTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteRfidsTask(DeleteRfidsTask other) : this() { requestId_ = other.requestId_; model_ = other.model_; host_ = other.host_; username_ = other.username_; password_ = other.password_; deviceId_ = other.deviceId_; rfids_ = other.rfids_.Clone(); IsAnswerUnnecessary = other.IsAnswerUnnecessary; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteRfidsTask Clone() { return new DeleteRfidsTask(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 "model" field. public const int ModelFieldNumber = 2; 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 "host" field. public const int HostFieldNumber = 3; private string host_ = ""; /// /// Хост /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "username" field. public const int UsernameFieldNumber = 4; private string username_ = ""; /// /// Имя пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Username { get { return username_; } set { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 5; private string password_ = ""; /// /// Пароль /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 6; 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 "rfids" field. public const int RfidsFieldNumber = 7; private static readonly pb::FieldCodec _repeated_rfids_codec = pb::FieldCodec.ForMessage(58, global::Keyapis.Device.V1.Rfid.Parser); private readonly pbc::RepeatedField rfids_ = new pbc::RepeatedField(); /// /// Ключи /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Rfids { get { return rfids_; } } /// Field number for the "is_answer_unnecessary" field. public const int IsAnswerUnnecessaryFieldNumber = 8; private static readonly pb::FieldCodec _single_isAnswerUnnecessary_codec = pb::FieldCodec.ForStructWrapper(66); private bool? isAnswerUnnecessary_; /// /// При передаче этого флага в true, ответное сообщение не будет получено /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool? IsAnswerUnnecessary { get { return isAnswerUnnecessary_; } set { isAnswerUnnecessary_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteRfidsTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteRfidsTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (Model != other.Model) return false; if (Host != other.Host) return false; if (Username != other.Username) return false; if (Password != other.Password) return false; if (DeviceId != other.DeviceId) return false; if(!rfids_.Equals(other.rfids_)) return false; if (IsAnswerUnnecessary != other.IsAnswerUnnecessary) 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 (Model.Length != 0) hash ^= Model.GetHashCode(); if (Host.Length != 0) hash ^= Host.GetHashCode(); if (Username.Length != 0) hash ^= Username.GetHashCode(); if (Password.Length != 0) hash ^= Password.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= rfids_.GetHashCode(); if (isAnswerUnnecessary_ != null) hash ^= IsAnswerUnnecessary.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } rfids_.WriteTo(output, _repeated_rfids_codec); if (isAnswerUnnecessary_ != null) { _single_isAnswerUnnecessary_codec.WriteTagAndValue(output, IsAnswerUnnecessary); } 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 (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } rfids_.WriteTo(ref output, _repeated_rfids_codec); if (isAnswerUnnecessary_ != null) { _single_isAnswerUnnecessary_codec.WriteTagAndValue(ref output, IsAnswerUnnecessary); } 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 (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Username.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += rfids_.CalculateSize(_repeated_rfids_codec); if (isAnswerUnnecessary_ != null) { size += _single_isAnswerUnnecessary_codec.CalculateSizeWithTag(IsAnswerUnnecessary); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeleteRfidsTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Username.Length != 0) { Username = other.Username; } if (other.Password.Length != 0) { Password = other.Password; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } rfids_.Add(other.rfids_); if (other.isAnswerUnnecessary_ != null) { if (isAnswerUnnecessary_ == null || other.IsAnswerUnnecessary != false) { IsAnswerUnnecessary = other.IsAnswerUnnecessary; } } _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: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { rfids_.AddEntriesFrom(input, _repeated_rfids_codec); break; } case 66: { bool? value = _single_isAnswerUnnecessary_codec.Read(input); if (isAnswerUnnecessary_ == null || value != false) { IsAnswerUnnecessary = value; } break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { RequestId = input.ReadString(); break; } case 18: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { rfids_.AddEntriesFrom(ref input, _repeated_rfids_codec); break; } case 66: { bool? value = _single_isAnswerUnnecessary_codec.Read(ref input); if (isAnswerUnnecessary_ == null || value != false) { IsAnswerUnnecessary = value; } break; } } } } #endif } /// /// Задача на удаление кодов с устройства. /// Очередь key.device.delete_codes /// public sealed partial class DeleteCodesTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteCodesTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 DeleteCodesTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteCodesTask(DeleteCodesTask other) : this() { requestId_ = other.requestId_; model_ = other.model_; host_ = other.host_; username_ = other.username_; password_ = other.password_; deviceId_ = other.deviceId_; codes_ = other.codes_.Clone(); IsAnswerUnnecessary = other.IsAnswerUnnecessary; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteCodesTask Clone() { return new DeleteCodesTask(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 "model" field. public const int ModelFieldNumber = 2; 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 "host" field. public const int HostFieldNumber = 3; private string host_ = ""; /// /// Хост /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "username" field. public const int UsernameFieldNumber = 4; private string username_ = ""; /// /// Имя пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Username { get { return username_; } set { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 5; private string password_ = ""; /// /// Пароль /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 6; 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 "codes" field. public const int CodesFieldNumber = 7; private static readonly pb::FieldCodec _repeated_codes_codec = pb::FieldCodec.ForMessage(58, global::Keyapis.Device.V1.Code.Parser); private readonly pbc::RepeatedField codes_ = new pbc::RepeatedField(); /// /// Ключи /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Codes { get { return codes_; } } /// Field number for the "is_answer_unnecessary" field. public const int IsAnswerUnnecessaryFieldNumber = 8; private static readonly pb::FieldCodec _single_isAnswerUnnecessary_codec = pb::FieldCodec.ForStructWrapper(66); private bool? isAnswerUnnecessary_; /// /// При передаче этого флага в true, ответное сообщение не будет получено /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool? IsAnswerUnnecessary { get { return isAnswerUnnecessary_; } set { isAnswerUnnecessary_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteCodesTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteCodesTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (Model != other.Model) return false; if (Host != other.Host) return false; if (Username != other.Username) return false; if (Password != other.Password) return false; if (DeviceId != other.DeviceId) return false; if(!codes_.Equals(other.codes_)) return false; if (IsAnswerUnnecessary != other.IsAnswerUnnecessary) 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 (Model.Length != 0) hash ^= Model.GetHashCode(); if (Host.Length != 0) hash ^= Host.GetHashCode(); if (Username.Length != 0) hash ^= Username.GetHashCode(); if (Password.Length != 0) hash ^= Password.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= codes_.GetHashCode(); if (isAnswerUnnecessary_ != null) hash ^= IsAnswerUnnecessary.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } codes_.WriteTo(output, _repeated_codes_codec); if (isAnswerUnnecessary_ != null) { _single_isAnswerUnnecessary_codec.WriteTagAndValue(output, IsAnswerUnnecessary); } 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 (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } codes_.WriteTo(ref output, _repeated_codes_codec); if (isAnswerUnnecessary_ != null) { _single_isAnswerUnnecessary_codec.WriteTagAndValue(ref output, IsAnswerUnnecessary); } 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 (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Username.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += codes_.CalculateSize(_repeated_codes_codec); if (isAnswerUnnecessary_ != null) { size += _single_isAnswerUnnecessary_codec.CalculateSizeWithTag(IsAnswerUnnecessary); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeleteCodesTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Username.Length != 0) { Username = other.Username; } if (other.Password.Length != 0) { Password = other.Password; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } codes_.Add(other.codes_); if (other.isAnswerUnnecessary_ != null) { if (isAnswerUnnecessary_ == null || other.IsAnswerUnnecessary != false) { IsAnswerUnnecessary = other.IsAnswerUnnecessary; } } _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: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { codes_.AddEntriesFrom(input, _repeated_codes_codec); break; } case 66: { bool? value = _single_isAnswerUnnecessary_codec.Read(input); if (isAnswerUnnecessary_ == null || value != false) { IsAnswerUnnecessary = value; } break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { RequestId = input.ReadString(); break; } case 18: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { codes_.AddEntriesFrom(ref input, _repeated_codes_codec); break; } case 66: { bool? value = _single_isAnswerUnnecessary_codec.Read(ref input); if (isAnswerUnnecessary_ == null || value != false) { IsAnswerUnnecessary = value; } break; } } } } #endif } /// /// Задача ответ на успешное удаление ключей с устройства. /// Очередь key.device.delete_rfids_success /// public sealed partial class DeleteRfidsSuccessTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteRfidsSuccessTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 DeleteRfidsSuccessTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteRfidsSuccessTask(DeleteRfidsSuccessTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; rfids_ = other.rfids_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteRfidsSuccessTask Clone() { return new DeleteRfidsSuccessTask(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 "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 "rfids" field. public const int RfidsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_rfids_codec = pb::FieldCodec.ForMessage(26, global::Keyapis.Device.V1.Rfid.Parser); private readonly pbc::RepeatedField rfids_ = new pbc::RepeatedField(); /// /// Ключи /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Rfids { get { return rfids_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteRfidsSuccessTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteRfidsSuccessTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if(!rfids_.Equals(other.rfids_)) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= rfids_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } rfids_.WriteTo(output, _repeated_rfids_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } rfids_.WriteTo(ref output, _repeated_rfids_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += rfids_.CalculateSize(_repeated_rfids_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeleteRfidsSuccessTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } rfids_.Add(other.rfids_); _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 16: { DeviceId = input.ReadInt32(); break; } case 26: { rfids_.AddEntriesFrom(input, _repeated_rfids_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: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { rfids_.AddEntriesFrom(ref input, _repeated_rfids_codec); break; } } } } #endif } /// /// Задача ответ на неуспешное удаление ключей с устройства. /// Очередь key.device.delete_rfids_fail /// public sealed partial class DeleteRfidsFailTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteRfidsFailTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 DeleteRfidsFailTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteRfidsFailTask(DeleteRfidsFailTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; rfidErrors_ = other.rfidErrors_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteRfidsFailTask Clone() { return new DeleteRfidsFailTask(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 "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 "rfid_errors" field. public const int RfidErrorsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_rfidErrors_codec = pb::FieldCodec.ForMessage(26, global::Keyapis.Device.V1.RfidError.Parser); private readonly pbc::RepeatedField rfidErrors_ = new pbc::RepeatedField(); /// /// Ошибки ключей /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RfidErrors { get { return rfidErrors_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteRfidsFailTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteRfidsFailTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if(!rfidErrors_.Equals(other.rfidErrors_)) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= rfidErrors_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } rfidErrors_.WriteTo(output, _repeated_rfidErrors_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } rfidErrors_.WriteTo(ref output, _repeated_rfidErrors_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += rfidErrors_.CalculateSize(_repeated_rfidErrors_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeleteRfidsFailTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } rfidErrors_.Add(other.rfidErrors_); _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 16: { DeviceId = input.ReadInt32(); break; } case 26: { rfidErrors_.AddEntriesFrom(input, _repeated_rfidErrors_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: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { rfidErrors_.AddEntriesFrom(ref input, _repeated_rfidErrors_codec); break; } } } } #endif } /// /// Задача ответ на успешное удаление кодов с устройства. /// Очередь key.device.delete_codes_success /// public sealed partial class DeleteCodesSuccessTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteCodesSuccessTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 DeleteCodesSuccessTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteCodesSuccessTask(DeleteCodesSuccessTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; codes_ = other.codes_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteCodesSuccessTask Clone() { return new DeleteCodesSuccessTask(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 "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 "codes" field. public const int CodesFieldNumber = 3; private static readonly pb::FieldCodec _repeated_codes_codec = pb::FieldCodec.ForMessage(26, global::Keyapis.Device.V1.Code.Parser); private readonly pbc::RepeatedField codes_ = new pbc::RepeatedField(); /// /// коды /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Codes { get { return codes_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteCodesSuccessTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteCodesSuccessTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if(!codes_.Equals(other.codes_)) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= codes_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } codes_.WriteTo(output, _repeated_codes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } codes_.WriteTo(ref output, _repeated_codes_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += codes_.CalculateSize(_repeated_codes_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeleteCodesSuccessTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } codes_.Add(other.codes_); _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 16: { DeviceId = input.ReadInt32(); break; } case 26: { codes_.AddEntriesFrom(input, _repeated_codes_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: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { codes_.AddEntriesFrom(ref input, _repeated_codes_codec); break; } } } } #endif } /// /// Задача ответ на неуспешное удаление кодов с устройства. /// Очередь key.device.delete_codes_fail /// public sealed partial class DeleteCodesFailTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteCodesFailTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 DeleteCodesFailTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteCodesFailTask(DeleteCodesFailTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; codeErrors_ = other.codeErrors_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteCodesFailTask Clone() { return new DeleteCodesFailTask(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 "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 "code_errors" field. public const int CodeErrorsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_codeErrors_codec = pb::FieldCodec.ForMessage(26, global::Keyapis.Device.V1.CodeError.Parser); private readonly pbc::RepeatedField codeErrors_ = new pbc::RepeatedField(); /// /// Ошибки кодов /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField CodeErrors { get { return codeErrors_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteCodesFailTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteCodesFailTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if(!codeErrors_.Equals(other.codeErrors_)) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= codeErrors_.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } codeErrors_.WriteTo(output, _repeated_codeErrors_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } codeErrors_.WriteTo(ref output, _repeated_codeErrors_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += codeErrors_.CalculateSize(_repeated_codeErrors_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeleteCodesFailTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } codeErrors_.Add(other.codeErrors_); _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 16: { DeviceId = input.ReadInt32(); break; } case 26: { codeErrors_.AddEntriesFrom(input, _repeated_codeErrors_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: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { codeErrors_.AddEntriesFrom(ref input, _repeated_codeErrors_codec); break; } } } } #endif } /// /// Задача на открытие точки доступа. /// Очередь key.device.open_access_point /// public sealed partial class OpenAccessPointTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OpenAccessPointTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 OpenAccessPointTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OpenAccessPointTask(OpenAccessPointTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; RelayIndex = other.RelayIndex; Delay = other.Delay; CarNumber = other.CarNumber; Vehicle = other.Vehicle; CourierCompanyName = other.CourierCompanyName; OrderNumber = other.OrderNumber; CourierId = other.CourierId; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OpenAccessPointTask Clone() { return new OpenAccessPointTask(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 "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 "relay_index" field. public const int RelayIndexFieldNumber = 3; private static readonly pb::FieldCodec _single_relayIndex_codec = pb::FieldCodec.ForStructWrapper(26); private int? relayIndex_; /// /// Номер реле /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? RelayIndex { get { return relayIndex_; } set { relayIndex_ = value; } } /// Field number for the "delay" field. public const int DelayFieldNumber = 4; private static readonly pb::FieldCodec _single_delay_codec = pb::FieldCodec.ForStructWrapper(34); private int? delay_; /// /// Задержка в секундах /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? Delay { get { return delay_; } set { delay_ = value; } } /// Field number for the "car_number" field. public const int CarNumberFieldNumber = 5; private static readonly pb::FieldCodec _single_carNumber_codec = pb::FieldCodec.ForClassWrapper(42); private string carNumber_; /// /// ГРЗ авто /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CarNumber { get { return carNumber_; } set { carNumber_ = value; } } /// Field number for the "vehicle" field. public const int VehicleFieldNumber = 6; private static readonly pb::FieldCodec _single_vehicle_codec = pb::FieldCodec.ForClassWrapper(50); private string vehicle_; /// /// Тип ТС /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Vehicle { get { return vehicle_; } set { vehicle_ = value; } } /// Field number for the "courier_company_name" field. public const int CourierCompanyNameFieldNumber = 7; private static readonly pb::FieldCodec _single_courierCompanyName_codec = pb::FieldCodec.ForClassWrapper(58); private string courierCompanyName_; /// /// Наименование курьерской компании /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CourierCompanyName { get { return courierCompanyName_; } set { courierCompanyName_ = value; } } /// Field number for the "order_number" field. public const int OrderNumberFieldNumber = 8; private static readonly pb::FieldCodec _single_orderNumber_codec = pb::FieldCodec.ForClassWrapper(66); private string orderNumber_; /// /// Номер заказа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string OrderNumber { get { return orderNumber_; } set { orderNumber_ = value; } } /// Field number for the "courier_id" field. public const int CourierIdFieldNumber = 9; private static readonly pb::FieldCodec _single_courierId_codec = pb::FieldCodec.ForClassWrapper(74); private string courierId_; /// /// Идентификатор курьера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CourierId { get { return courierId_; } set { courierId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as OpenAccessPointTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(OpenAccessPointTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if (RelayIndex != other.RelayIndex) return false; if (Delay != other.Delay) return false; if (CarNumber != other.CarNumber) return false; if (Vehicle != other.Vehicle) return false; if (CourierCompanyName != other.CourierCompanyName) return false; if (OrderNumber != other.OrderNumber) return false; if (CourierId != other.CourierId) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (relayIndex_ != null) hash ^= RelayIndex.GetHashCode(); if (delay_ != null) hash ^= Delay.GetHashCode(); if (carNumber_ != null) hash ^= CarNumber.GetHashCode(); if (vehicle_ != null) hash ^= Vehicle.GetHashCode(); if (courierCompanyName_ != null) hash ^= CourierCompanyName.GetHashCode(); if (orderNumber_ != null) hash ^= OrderNumber.GetHashCode(); if (courierId_ != null) hash ^= CourierId.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (relayIndex_ != null) { _single_relayIndex_codec.WriteTagAndValue(output, RelayIndex); } if (delay_ != null) { _single_delay_codec.WriteTagAndValue(output, Delay); } if (carNumber_ != null) { _single_carNumber_codec.WriteTagAndValue(output, CarNumber); } if (vehicle_ != null) { _single_vehicle_codec.WriteTagAndValue(output, Vehicle); } if (courierCompanyName_ != null) { _single_courierCompanyName_codec.WriteTagAndValue(output, CourierCompanyName); } if (orderNumber_ != null) { _single_orderNumber_codec.WriteTagAndValue(output, OrderNumber); } if (courierId_ != null) { _single_courierId_codec.WriteTagAndValue(output, CourierId); } 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 (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (relayIndex_ != null) { _single_relayIndex_codec.WriteTagAndValue(ref output, RelayIndex); } if (delay_ != null) { _single_delay_codec.WriteTagAndValue(ref output, Delay); } if (carNumber_ != null) { _single_carNumber_codec.WriteTagAndValue(ref output, CarNumber); } if (vehicle_ != null) { _single_vehicle_codec.WriteTagAndValue(ref output, Vehicle); } if (courierCompanyName_ != null) { _single_courierCompanyName_codec.WriteTagAndValue(ref output, CourierCompanyName); } if (orderNumber_ != null) { _single_orderNumber_codec.WriteTagAndValue(ref output, OrderNumber); } if (courierId_ != null) { _single_courierId_codec.WriteTagAndValue(ref output, CourierId); } 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 (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (relayIndex_ != null) { size += _single_relayIndex_codec.CalculateSizeWithTag(RelayIndex); } if (delay_ != null) { size += _single_delay_codec.CalculateSizeWithTag(Delay); } if (carNumber_ != null) { size += _single_carNumber_codec.CalculateSizeWithTag(CarNumber); } if (vehicle_ != null) { size += _single_vehicle_codec.CalculateSizeWithTag(Vehicle); } if (courierCompanyName_ != null) { size += _single_courierCompanyName_codec.CalculateSizeWithTag(CourierCompanyName); } if (orderNumber_ != null) { size += _single_orderNumber_codec.CalculateSizeWithTag(OrderNumber); } if (courierId_ != null) { size += _single_courierId_codec.CalculateSizeWithTag(CourierId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(OpenAccessPointTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.relayIndex_ != null) { if (relayIndex_ == null || other.RelayIndex != 0) { RelayIndex = other.RelayIndex; } } if (other.delay_ != null) { if (delay_ == null || other.Delay != 0) { Delay = other.Delay; } } if (other.carNumber_ != null) { if (carNumber_ == null || other.CarNumber != "") { CarNumber = other.CarNumber; } } if (other.vehicle_ != null) { if (vehicle_ == null || other.Vehicle != "") { Vehicle = other.Vehicle; } } if (other.courierCompanyName_ != null) { if (courierCompanyName_ == null || other.CourierCompanyName != "") { CourierCompanyName = other.CourierCompanyName; } } if (other.orderNumber_ != null) { if (orderNumber_ == null || other.OrderNumber != "") { OrderNumber = other.OrderNumber; } } if (other.courierId_ != null) { if (courierId_ == null || other.CourierId != "") { CourierId = other.CourierId; } } _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 16: { DeviceId = input.ReadInt32(); break; } case 26: { int? value = _single_relayIndex_codec.Read(input); if (relayIndex_ == null || value != 0) { RelayIndex = value; } break; } case 34: { int? value = _single_delay_codec.Read(input); if (delay_ == null || value != 0) { Delay = value; } break; } case 42: { string value = _single_carNumber_codec.Read(input); if (carNumber_ == null || value != "") { CarNumber = value; } break; } case 50: { string value = _single_vehicle_codec.Read(input); if (vehicle_ == null || value != "") { Vehicle = value; } break; } case 58: { string value = _single_courierCompanyName_codec.Read(input); if (courierCompanyName_ == null || value != "") { CourierCompanyName = value; } break; } case 66: { string value = _single_orderNumber_codec.Read(input); if (orderNumber_ == null || value != "") { OrderNumber = value; } break; } case 74: { string value = _single_courierId_codec.Read(input); if (courierId_ == null || value != "") { CourierId = value; } break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { int? value = _single_relayIndex_codec.Read(ref input); if (relayIndex_ == null || value != 0) { RelayIndex = value; } break; } case 34: { int? value = _single_delay_codec.Read(ref input); if (delay_ == null || value != 0) { Delay = value; } break; } case 42: { string value = _single_carNumber_codec.Read(ref input); if (carNumber_ == null || value != "") { CarNumber = value; } break; } case 50: { string value = _single_vehicle_codec.Read(ref input); if (vehicle_ == null || value != "") { Vehicle = value; } break; } case 58: { string value = _single_courierCompanyName_codec.Read(ref input); if (courierCompanyName_ == null || value != "") { CourierCompanyName = value; } break; } case 66: { string value = _single_orderNumber_codec.Read(ref input); if (orderNumber_ == null || value != "") { OrderNumber = value; } break; } case 74: { string value = _single_courierId_codec.Read(ref input); if (courierId_ == null || value != "") { CourierId = value; } break; } } } } #endif } /// /// Задача на открытие устройства. /// Очередь key.device.open /// public sealed partial class OpenTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OpenTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 OpenTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OpenTask(OpenTask other) : this() { requestId_ = other.requestId_; model_ = other.model_; host_ = other.host_; username_ = other.username_; password_ = other.password_; deviceId_ = other.deviceId_; RelayIndex = other.RelayIndex; Delay = other.Delay; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public OpenTask Clone() { return new OpenTask(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 "model" field. public const int ModelFieldNumber = 2; 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 "host" field. public const int HostFieldNumber = 3; private string host_ = ""; /// /// Хост /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "username" field. public const int UsernameFieldNumber = 4; private string username_ = ""; /// /// Имя пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Username { get { return username_; } set { username_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 5; private string password_ = ""; /// /// Пароль /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 6; 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 "relay_index" field. public const int RelayIndexFieldNumber = 7; private static readonly pb::FieldCodec _single_relayIndex_codec = pb::FieldCodec.ForStructWrapper(58); private int? relayIndex_; /// /// Номер реле /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? RelayIndex { get { return relayIndex_; } set { relayIndex_ = value; } } /// Field number for the "delay" field. public const int DelayFieldNumber = 8; private static readonly pb::FieldCodec _single_delay_codec = pb::FieldCodec.ForStructWrapper(66); private int? delay_; /// /// Задержка в секундах. /// Если не передано, то полставляется значение по умолчанию (5) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? Delay { get { return delay_; } set { delay_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as OpenTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(OpenTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (Model != other.Model) return false; if (Host != other.Host) return false; if (Username != other.Username) return false; if (Password != other.Password) return false; if (DeviceId != other.DeviceId) return false; if (RelayIndex != other.RelayIndex) return false; if (Delay != other.Delay) 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 (Model.Length != 0) hash ^= Model.GetHashCode(); if (Host.Length != 0) hash ^= Host.GetHashCode(); if (Username.Length != 0) hash ^= Username.GetHashCode(); if (Password.Length != 0) hash ^= Password.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (relayIndex_ != null) hash ^= RelayIndex.GetHashCode(); if (delay_ != null) hash ^= Delay.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } if (relayIndex_ != null) { _single_relayIndex_codec.WriteTagAndValue(output, RelayIndex); } if (delay_ != null) { _single_delay_codec.WriteTagAndValue(output, Delay); } 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 (Model.Length != 0) { output.WriteRawTag(18); output.WriteString(Model); } if (Host.Length != 0) { output.WriteRawTag(26); output.WriteString(Host); } if (Username.Length != 0) { output.WriteRawTag(34); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(42); output.WriteString(Password); } if (DeviceId != 0) { output.WriteRawTag(48); output.WriteInt32(DeviceId); } if (relayIndex_ != null) { _single_relayIndex_codec.WriteTagAndValue(ref output, RelayIndex); } if (delay_ != null) { _single_delay_codec.WriteTagAndValue(ref output, Delay); } 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 (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Username.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (relayIndex_ != null) { size += _single_relayIndex_codec.CalculateSizeWithTag(RelayIndex); } if (delay_ != null) { size += _single_delay_codec.CalculateSizeWithTag(Delay); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(OpenTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.Model.Length != 0) { Model = other.Model; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Username.Length != 0) { Username = other.Username; } if (other.Password.Length != 0) { Password = other.Password; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.relayIndex_ != null) { if (relayIndex_ == null || other.RelayIndex != 0) { RelayIndex = other.RelayIndex; } } if (other.delay_ != null) { if (delay_ == null || other.Delay != 0) { Delay = other.Delay; } } _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: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { int? value = _single_relayIndex_codec.Read(input); if (relayIndex_ == null || value != 0) { RelayIndex = value; } break; } case 66: { int? value = _single_delay_codec.Read(input); if (delay_ == null || value != 0) { Delay = value; } break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { RequestId = input.ReadString(); break; } case 18: { Model = input.ReadString(); break; } case 26: { Host = input.ReadString(); break; } case 34: { Username = input.ReadString(); break; } case 42: { Password = input.ReadString(); break; } case 48: { DeviceId = input.ReadInt32(); break; } case 58: { int? value = _single_relayIndex_codec.Read(ref input); if (relayIndex_ == null || value != 0) { RelayIndex = value; } break; } case 66: { int? value = _single_delay_codec.Read(ref input); if (delay_ == null || value != 0) { Delay = value; } break; } } } } #endif } /// /// Задача на удаление sip-аккаунта. /// Очередь key.device.delete_sip_account /// public sealed partial class DeleteSipAccountTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteSipAccountTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 DeleteSipAccountTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteSipAccountTask(DeleteSipAccountTask other) : this() { requestId_ = other.requestId_; deviceId_ = other.deviceId_; deletedAt_ = other.deletedAt_ != null ? other.deletedAt_.Clone() : null; sipLogin_ = other.sipLogin_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteSipAccountTask Clone() { return new DeleteSipAccountTask(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 "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 "deleted_at" field. public const int DeletedAtFieldNumber = 3; private global::Google.Protobuf.WellKnownTypes.Timestamp deletedAt_; /// /// Дата и время удаления устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp DeletedAt { get { return deletedAt_; } set { deletedAt_ = value; } } /// Field number for the "sip_login" field. public const int SipLoginFieldNumber = 4; private string sipLogin_ = ""; /// /// Sip-login устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipLogin { get { return sipLogin_; } set { sipLogin_ = 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 DeleteSipAccountTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteSipAccountTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (DeviceId != other.DeviceId) return false; if (!object.Equals(DeletedAt, other.DeletedAt)) return false; if (SipLogin != other.SipLogin) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (deletedAt_ != null) hash ^= DeletedAt.GetHashCode(); if (SipLogin.Length != 0) hash ^= SipLogin.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (deletedAt_ != null) { output.WriteRawTag(26); output.WriteMessage(DeletedAt); } if (SipLogin.Length != 0) { output.WriteRawTag(34); output.WriteString(SipLogin); } 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 (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (deletedAt_ != null) { output.WriteRawTag(26); output.WriteMessage(DeletedAt); } if (SipLogin.Length != 0) { output.WriteRawTag(34); output.WriteString(SipLogin); } 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 (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (deletedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeletedAt); } if (SipLogin.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SipLogin); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeleteSipAccountTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.deletedAt_ != null) { if (deletedAt_ == null) { DeletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } DeletedAt.MergeFrom(other.DeletedAt); } if (other.SipLogin.Length != 0) { SipLogin = other.SipLogin; } _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 16: { DeviceId = input.ReadInt32(); break; } case 26: { if (deletedAt_ == null) { DeletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(DeletedAt); break; } case 34: { SipLogin = 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: { RequestId = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { if (deletedAt_ == null) { DeletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(DeletedAt); break; } case 34: { SipLogin = input.ReadString(); break; } } } } #endif } /// /// Задача на создание доступа к устройству. /// Очередь key.device.create_device_access /// public sealed partial class CreateDeviceAccessTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateDeviceAccessTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 CreateDeviceAccessTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateDeviceAccessTask(CreateDeviceAccessTask other) : this() { requestId_ = other.requestId_; deviceIds_ = other.deviceIds_.Clone(); deviceAccessAccessorType_ = other.deviceAccessAccessorType_; accessorId_ = other.accessorId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CreateDeviceAccessTask Clone() { return new CreateDeviceAccessTask(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 "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(); /// /// Идентификаторы устройства. /// # Диапазон: 0..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceIds { get { return deviceIds_; } } /// Field number for the "device_access_accessor_type" field. public const int DeviceAccessAccessorTypeFieldNumber = 3; private global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType deviceAccessAccessorType_ = global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown; /// /// Тип субъекта доступа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType DeviceAccessAccessorType { get { return deviceAccessAccessorType_; } set { deviceAccessAccessorType_ = value; } } /// Field number for the "accessor_id" field. public const int AccessorIdFieldNumber = 4; private string accessorId_ = ""; /// /// Идентификатор субъекта доступа. /// # Диапазон: 1..36 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string AccessorId { get { return accessorId_; } set { accessorId_ = 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 CreateDeviceAccessTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CreateDeviceAccessTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if(!deviceIds_.Equals(other.deviceIds_)) return false; if (DeviceAccessAccessorType != other.DeviceAccessAccessorType) return false; if (AccessorId != other.AccessorId) 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(); hash ^= deviceIds_.GetHashCode(); if (DeviceAccessAccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) hash ^= DeviceAccessAccessorType.GetHashCode(); if (AccessorId.Length != 0) hash ^= AccessorId.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } deviceIds_.WriteTo(output, _repeated_deviceIds_codec); if (DeviceAccessAccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) DeviceAccessAccessorType); } if (AccessorId.Length != 0) { output.WriteRawTag(34); output.WriteString(AccessorId); } 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); } deviceIds_.WriteTo(ref output, _repeated_deviceIds_codec); if (DeviceAccessAccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) DeviceAccessAccessorType); } if (AccessorId.Length != 0) { output.WriteRawTag(34); output.WriteString(AccessorId); } 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); } size += deviceIds_.CalculateSize(_repeated_deviceIds_codec); if (DeviceAccessAccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DeviceAccessAccessorType); } if (AccessorId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessorId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CreateDeviceAccessTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } deviceIds_.Add(other.deviceIds_); if (other.DeviceAccessAccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) { DeviceAccessAccessorType = other.DeviceAccessAccessorType; } if (other.AccessorId.Length != 0) { AccessorId = other.AccessorId; } _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: case 16: { deviceIds_.AddEntriesFrom(input, _repeated_deviceIds_codec); break; } case 24: { DeviceAccessAccessorType = (global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType) input.ReadEnum(); break; } case 34: { AccessorId = 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: { RequestId = input.ReadString(); break; } case 18: case 16: { deviceIds_.AddEntriesFrom(ref input, _repeated_deviceIds_codec); break; } case 24: { DeviceAccessAccessorType = (global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType) input.ReadEnum(); break; } case 34: { AccessorId = input.ReadString(); break; } } } } #endif } /// /// Задача на удаление доступа к устройству. /// Очередь key.device.delete_device_access /// public sealed partial class DeleteDeviceAccessTask : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceAccessTask()); 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.Device.V1.KeyapisDeviceEventsV1Reflection.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 DeleteDeviceAccessTask() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceAccessTask(DeleteDeviceAccessTask other) : this() { requestId_ = other.requestId_; deviceIds_ = other.deviceIds_.Clone(); deviceAccessAccessorType_ = other.deviceAccessAccessorType_; accessorId_ = other.accessorId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceAccessTask Clone() { return new DeleteDeviceAccessTask(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 "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(); /// /// Идентификаторы устройства. /// # Диапазон: 0..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceIds { get { return deviceIds_; } } /// Field number for the "device_access_accessor_type" field. public const int DeviceAccessAccessorTypeFieldNumber = 3; private global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType deviceAccessAccessorType_ = global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown; /// /// Тип субъекта доступа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType DeviceAccessAccessorType { get { return deviceAccessAccessorType_; } set { deviceAccessAccessorType_ = value; } } /// Field number for the "accessor_id" field. public const int AccessorIdFieldNumber = 4; private string accessorId_ = ""; /// /// Идентификатор субъекта доступа. /// # Диапазон: 1..36 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string AccessorId { get { return accessorId_; } set { accessorId_ = 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 DeleteDeviceAccessTask); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteDeviceAccessTask other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if(!deviceIds_.Equals(other.deviceIds_)) return false; if (DeviceAccessAccessorType != other.DeviceAccessAccessorType) return false; if (AccessorId != other.AccessorId) 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(); hash ^= deviceIds_.GetHashCode(); if (DeviceAccessAccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) hash ^= DeviceAccessAccessorType.GetHashCode(); if (AccessorId.Length != 0) hash ^= AccessorId.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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } deviceIds_.WriteTo(output, _repeated_deviceIds_codec); if (DeviceAccessAccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) DeviceAccessAccessorType); } if (AccessorId.Length != 0) { output.WriteRawTag(34); output.WriteString(AccessorId); } 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); } deviceIds_.WriteTo(ref output, _repeated_deviceIds_codec); if (DeviceAccessAccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) DeviceAccessAccessorType); } if (AccessorId.Length != 0) { output.WriteRawTag(34); output.WriteString(AccessorId); } 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); } size += deviceIds_.CalculateSize(_repeated_deviceIds_codec); if (DeviceAccessAccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DeviceAccessAccessorType); } if (AccessorId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessorId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeleteDeviceAccessTask other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } deviceIds_.Add(other.deviceIds_); if (other.DeviceAccessAccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) { DeviceAccessAccessorType = other.DeviceAccessAccessorType; } if (other.AccessorId.Length != 0) { AccessorId = other.AccessorId; } _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: case 16: { deviceIds_.AddEntriesFrom(input, _repeated_deviceIds_codec); break; } case 24: { DeviceAccessAccessorType = (global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType) input.ReadEnum(); break; } case 34: { AccessorId = 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: { RequestId = input.ReadString(); break; } case 18: case 16: { deviceIds_.AddEntriesFrom(ref input, _repeated_deviceIds_codec); break; } case 24: { DeviceAccessAccessorType = (global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType) input.ReadEnum(); break; } case 34: { AccessorId = input.ReadString(); break; } } } } #endif } #endregion } #endregion Designer generated code