// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/device/v1/keyapis_device_device_v1.proto // #pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Keyapis.Device.V1 { /// Holder for reflection information generated from keyapis/device/v1/keyapis_device_device_v1.proto public static partial class KeyapisDeviceDeviceV1Reflection { #region Descriptor /// File descriptor for keyapis/device/v1/keyapis_device_device_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisDeviceDeviceV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjBrZXlhcGlzL2RldmljZS92MS9rZXlhcGlzX2RldmljZV9kZXZpY2VfdjEu", "cHJvdG8SEWtleWFwaXMuZGV2aWNlLnYxGh9nb29nbGUvcHJvdG9idWYvdGlt", "ZXN0YW1wLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGh9n", "b29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGh5nb29nbGUvcHJvdG9i", "dWYvd3JhcHBlcnMucHJvdG8aG2dvb2dsZS9hcGkvdmlzaWJpbGl0eS5wcm90", "bxova2V5YXBpcy9kZXZpY2UvdjEva2V5YXBpc19kZXZpY2VfbW9kZWxfdjEu", "cHJvdG8i2C0KBkRldmljZRIKCgJpZBgBIAEoBRIWCglwcmVzZXRfaWQYAiAB", "KAVCA+BBAhJfChJwcmVzZXRfc3RhdHVzX3R5cGUYAyABKA4yKi5rZXlhcGlz", "LmRldmljZS52MS5EZXZpY2UuUHJlc2V0U3RhdHVzVHlwZUIXGAHgQQP60uST", "AgwSCkRFUFJFQ0FURUQSUQoUcHJlc2V0X2NvbmZpZ3VyZWRfYXQYBCABKAsy", "Gi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQhcYAeBBA/rS5JMCDBIKREVQ", "UkVDQVRFRBI0ChNpc19zbDNfbW9kZV9lbmFibGVkGAUgASgIQhcYAeBBAvrS", "5JMCDBIKREVQUkVDQVRFRBIxCgR0eXBlGAYgASgOMh4ua2V5YXBpcy5kZXZp", "Y2UudjEuRGV2aWNlLlR5cGVCA+BBAhIYCgttYWNfYWRkcmVzcxgHIAEoCUID", "4EECEhIKBXRpdGxlGAggASgJQgPgQQISPAoKbW9kZWxfdHlwZRgJIAEoDjIj", "LmtleWFwaXMuZGV2aWNlLnYxLkRldmljZS5Nb2RlbFR5cGVCA+BBAhIdChBv", "d25lcl9jb21wYW55X2lkGAogASgFQgPgQQISGgoNc2VyaWFsX251bWJlchgL", "IAEoCUID4EECEhkKDGZsYXRncmFtbV9pZBgMIAEoBUID4EECEhcKCnV0Y19v", "ZmZzZXQYDSABKAVCA+BBAhI+CgtzdGF0dXNfdHlwZRgOIAEoDjIkLmtleWFw", "aXMuZGV2aWNlLnYxLkRldmljZS5TdGF0dXNUeXBlQgPgQQMSMAoKaXBfYWRk", "cmVzcxgPIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRIpCgRw", "b3J0GBAgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSSQoTc3B1", "dG5pa19jcmVkZW50aWFscxgRIAEoCzIsLmtleWFwaXMuZGV2aWNlLnYxLkRl", "dmljZS5TcHV0bmlrQ3JlZGVudGlhbHMSNAoIbG9jYXRpb24YEiABKAsyIi5r", "ZXlhcGlzLmRldmljZS52MS5EZXZpY2UuTG9jYXRpb24SLwoJY2FtZXJhX2lk", "GBMgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEgwKBHRhZ3MY", "FCADKAkSNAoIc2V0dGluZ3MYFSABKAsyIi5rZXlhcGlzLmRldmljZS52MS5E", "ZXZpY2UuU2V0dGluZ3MSHQoQaGFyZHdhcmVfdmVyc2lvbhgWIAEoCUID4EED", "Eh0KEHNvZnR3YXJlX3ZlcnNpb24YFyABKAlCA+BBAxI6CgtkaXNwYXRjaGlu", "ZxgYIAEoCzIlLmtleWFwaXMuZGV2aWNlLnYxLkRldmljZS5EaXNwYXRjaGlu", "ZxI1CglzaXBfdHJ1bmsYGSABKAsyIi5rZXlhcGlzLmRldmljZS52MS5EZXZp", "Y2UuU2lwVHJ1bmsSNAoIcmVkaXJlY3QYGiABKAsyIi5rZXlhcGlzLmRldmlj", "ZS52MS5EZXZpY2UuUmVkaXJlY3QSWgocYXV0b2NoYW5nZV9wYXNzd29yZF9z", "ZXR0aW5ncxgbIAEoCzI0LmtleWFwaXMuZGV2aWNlLnYxLkRldmljZS5BdXRv", "Y2hhbmdlUGFzc3dvcmRTZXR0aW5ncxI/CgtjcmVkZW50aWFscxgcIAMoCzIl", "LmtleWFwaXMuZGV2aWNlLnYxLkRldmljZS5DcmVkZW50aWFsc0ID4EEDEjYK", "C3NpcF9hY2NvdW50GB0gASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1Zh", "bHVlQgPgQQMSNwoLc3luY19zdGF0dXMYHiABKAsyHS5rZXlhcGlzLmRldmlj", "ZS52MS5TeW5jU3RhdHVzQgPgQQMaWAoSU3B1dG5pa0NyZWRlbnRpYWxzEhIK", "BWxvZ2luGAEgASgJQgPgQQISLgoIcGFzc3dvcmQYAiABKAsyHC5nb29nbGUu", "cHJvdG9idWYuU3RyaW5nVmFsdWUaOQoITG9jYXRpb24SFQoIbGF0aXR1ZGUY", "ASABKAJCA+BBAhIWCglsb25naXR1ZGUYAiABKAJCA+BBAhr1BgoIU2V0dGlu", "Z3MSWwoYY29vcmRpbmF0ZV9tYXRyaXhfc3dpdGNoGAEgASgLMjkua2V5YXBp", "cy5kZXZpY2UudjEuRGV2aWNlLlNldHRpbmdzLkNvb3JkaW5hdGVNYXRyaXhT", "d2l0Y2gSSAoOY29uY2llcmdlX2NhbGwYAiABKAsyMC5rZXlhcGlzLmRldmlj", "ZS52MS5EZXZpY2UuU2V0dGluZ3MuQ29uY2llcmdlQ2FsbBJDCgthdXRvY29s", "bGVjdBgDIAEoCzIuLmtleWFwaXMuZGV2aWNlLnYxLkRldmljZS5TZXR0aW5n", "cy5BdXRvY29sbGVjdBJMChBmYWNlX3JlY29nbml0aW9uGAQgASgLMjIua2V5", "YXBpcy5kZXZpY2UudjEuRGV2aWNlLlNldHRpbmdzLkZhY2VSZWNvZ25pdGlv", "bhI8CghzbDNfbW9kZRgFIAEoCzIqLmtleWFwaXMuZGV2aWNlLnYxLkRldmlj", "ZS5TZXR0aW5ncy5TbDNNb2RlEkgKDmVtZXJnZW5jeV9jYWxsGAYgASgLMjAu", "a2V5YXBpcy5kZXZpY2UudjEuRGV2aWNlLlNldHRpbmdzLkVtZXJnZW5jeUNh", "bGwaMQoWQ29vcmRpbmF0ZU1hdHJpeFN3aXRjaBIXCgppc19lbmFibGVkGAEg", "ASgIQgPgQQIabwoNQ29uY2llcmdlQ2FsbBIXCgppc19lbmFibGVkGAEgASgI", "QgPgQQISEgoFb3Jwb24YAiABKANCA+BBAhIYCgtyb29tX251bWJlchgDIAEo", "CUID4EECEhcKCnNpcF9udW1iZXIYBCABKAlCA+BBAxomCgtBdXRvY29sbGVj", "dBIXCgppc19lbmFibGVkGAEgASgIQgPgQQIaKgoPRmFjZVJlY29nbml0aW9u", "EhcKCmlzX2VuYWJsZWQYASABKAhCA+BBAhpfCgdTbDNNb2RlEhcKCmlzX2Vu", "YWJsZWQYASABKAhCA+BBAhI7ChVlbmNyeXB0aW9uX3Byb2ZpbGVfaWQYAiAB", "KAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUaTgoNRW1lcmdlbmN5", "Q2FsbBIeChFpc19jYWxsX2F2YWlsYWJsZRgBIAEoCEID4EECEh0KEGVtZXJn", "ZW5jeV9udW1iZXIYAiABKAlCA+BBAhpdCgtEaXNwYXRjaGluZxIXCgppc19l", "bmFibGVkGAEgASgIQgPgQQISNQoPcHVibGljX2lkZW50aXR5GAIgASgLMhwu", "Z29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlGvEBCghTaXBUcnVuaxIXCgph", "YmNfbnVtYmVyGAEgASgJQgPgQQISKgoEaG9zdBgCIAEoCzIcLmdvb2dsZS5w", "cm90b2J1Zi5TdHJpbmdWYWx1ZRIpCgRwb3J0GAMgASgLMhsuZ29vZ2xlLnBy", "b3RvYnVmLkludDMyVmFsdWUSQQoIc2lwX3R5cGUYBCABKA4yKi5rZXlhcGlz", "LmRldmljZS52MS5EZXZpY2UuU2lwVHJ1bmsuU2lwVHlwZUID4EECIjIKB1Np", "cFR5cGUSFAoQU0lQX1RZUEVfVU5LTk9XThAAEggKBFZJTVMQARIHCgNOR04Q", "AhpGCghSZWRpcmVjdBIbCg5pc19lbmFibGVkX3NpcBgBIAEoCEID4EECEh0K", "EGlzX2VuYWJsZWRfcGhvbmUYAiABKAhCA+BBAho1ChpBdXRvY2hhbmdlUGFz", "c3dvcmRTZXR0aW5ncxIXCgppc19lbmFibGVkGAEgASgIQgPgQQIajgIKC0Ny", "ZWRlbnRpYWxzEisKBWxvZ2luGAEgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0", "cmluZ1ZhbHVlEi4KCHBhc3N3b3JkGAIgASgLMhwuZ29vZ2xlLnByb3RvYnVm", "LlN0cmluZ1ZhbHVlEk4KEHVzZXJfYWNjZXNzX3R5cGUYAyABKA4yNC5rZXlh", "cGlzLmRldmljZS52MS5EZXZpY2UuQ3JlZGVudGlhbHMuVXNlckFjY2Vzc1R5", "cGUiUgoOVXNlckFjY2Vzc1R5cGUSHAoYVVNFUl9BQ0NFU1NfVFlQRV9VTktO", "T1dOEAASBwoDQVBJEAESBwoDV0VCEAISCAoEUlRTUBADEgYKAlNVEAQamg0K", "C1NhdmluZ0Vycm9yEloKE21hY19hZGRyZXNzX2ludmFsaWQYASABKAsyNy5r", "ZXlhcGlzLmRldmljZS52MS5EZXZpY2UuU2F2aW5nRXJyb3IuTWFjQWRkcmVz", "c0ludmFsaWRCAhgBSAASXgoVc2VyaWFsX251bWJlcl9pbnZhbGlkGAIgASgL", "Mjkua2V5YXBpcy5kZXZpY2UudjEuRGV2aWNlLlNhdmluZ0Vycm9yLlNlcmlh", "bE51bWJlckludmFsaWRCAhgBSAASVwoUbm90X2FsbG93ZWRfZm9yX3R5cGUY", "AyABKAsyNy5rZXlhcGlzLmRldmljZS52MS5EZXZpY2UuU2F2aW5nRXJyb3Iu", "Tm90QWxsb3dlZEZvclR5cGVIABJZChVub3RfYWxsb3dlZF9mb3JfbW9kZWwY", "BCABKAsyOC5rZXlhcGlzLmRldmljZS52MS5EZXZpY2UuU2F2aW5nRXJyb3Iu", "Tm90QWxsb3dlZEZvck1vZGVsSAASbQogc2VyaWFsX251bWJlcl9mb3JfbW9k", "ZWxfaXNfZXhpc3QYBSABKAsyQS5rZXlhcGlzLmRldmljZS52MS5EZXZpY2Uu", "U2F2aW5nRXJyb3IuU2VyaWFsTnVtYmVyRm9yTW9kZWxJc0V4aXN0SAASVwoU", "bWFjX2FkZHJlc3NfaXNfZXhpc3QYBiABKAsyNy5rZXlhcGlzLmRldmljZS52", "MS5EZXZpY2UuU2F2aW5nRXJyb3IuTWFjQWRkcmVzc0lzRXhpc3RIABJlChtj", "YXBhYmlsaXR5X2lzX25vdF9zdXBwb3J0ZWQYByABKAsyPi5rZXlhcGlzLmRl", "dmljZS52MS5EZXZpY2UuU2F2aW5nRXJyb3IuQ2FwYWJpbGl0eUlzTm90U3Vw", "cG9ydGVkSAASdgolYWJjX251bWJlcl9pc19leGlzdF9vbl9hbm90aGVyX2Rl", "dmljZRgIIAEoCzJFLmtleWFwaXMuZGV2aWNlLnYxLkRldmljZS5TYXZpbmdF", "cnJvci5BYmNOdW1iZXJJc0V4aXN0T25Bbm90aGVyRGV2aWNlSAASXwoYcHVi", "bGljX2lkZW50aXR5X2lzX2V4aXN0GAkgASgLMjsua2V5YXBpcy5kZXZpY2Uu", "djEuRGV2aWNlLlNhdmluZ0Vycm9yLlB1YmxpY0lkZW50aXR5SXNFeGlzdEgA", "El8KGGNvbmNpZXJnZV9yb29tX25vdF9mb3VuZBgKIAEoCzI7LmtleWFwaXMu", "ZGV2aWNlLnYxLkRldmljZS5TYXZpbmdFcnJvci5Db25jaWVyZ2VSb29tTm90", "Rm91bmRIABJMCg5sb2dpbl9pc19leGlzdBgLIAEoCzIyLmtleWFwaXMuZGV2", "aWNlLnYxLkRldmljZS5TYXZpbmdFcnJvci5Mb2dpbklzRXhpc3RIABJgChhj", "cmVkZW50aWFsc19hcmVfcmVxdWlyZWQYDCABKAsyPC5rZXlhcGlzLmRldmlj", "ZS52MS5EZXZpY2UuU2F2aW5nRXJyb3IuQ3JlZGVudGlhbHNBcmVSZXF1aXJl", "ZEgAElsKFmZpZWxkX2lzX25vdF9zdXBwb3J0ZWQYDSABKAsyOS5rZXlhcGlz", "LmRldmljZS52MS5EZXZpY2UuU2F2aW5nRXJyb3IuRmllbGRJc05vdFN1cHBv", "cnRlZEgAGhMKEU1hY0FkZHJlc3NJbnZhbGlkGhUKE1NlcmlhbE51bWJlcklu", "dmFsaWQaEwoRTm90QWxsb3dlZEZvclR5cGUaFAoSTm90QWxsb3dlZEZvck1v", "ZGVsGh0KG1NlcmlhbE51bWJlckZvck1vZGVsSXNFeGlzdBoTChFNYWNBZGRy", "ZXNzSXNFeGlzdBpiChhDYXBhYmlsaXR5SXNOb3RTdXBwb3J0ZWQSRgoVbW9k", "ZWxfY2FwYWJpbGl0eV90eXBlGAEgASgOMicua2V5YXBpcy5kZXZpY2UudjEu", "TW9kZWwuQ2FwYWJpbGl0eVR5cGUaOQofQWJjTnVtYmVySXNFeGlzdE9uQW5v", "dGhlckRldmljZRIWCglkZXZpY2VfaWQYASABKAVCA+BBAhoXChVQdWJsaWNJ", "ZGVudGl0eUlzRXhpc3QaFwoVQ29uY2llcmdlUm9vbU5vdEZvdW5kGg4KDExv", "Z2luSXNFeGlzdBoYChZDcmVkZW50aWFsc0FyZVJlcXVpcmVkGhUKE0ZpZWxk", "SXNOb3RTdXBwb3J0ZWRCCAoGcmVhc29uIsgBChBQcmVzZXRTdGF0dXNUeXBl", "EjQKGlBSRVNFVF9TVEFUVVNfVFlQRV9VTktOT1dOEAAaFAgB+tLkkwIMEgpE", "RVBSRUNBVEVEEiQKClBST0NFU1NJTkcQARoUCAH60uSTAgwSCkRFUFJFQ0FU", "RUQSIQoHU1VDQ0VTUxACGhQIAfrS5JMCDBIKREVQUkVDQVRFRBIfCgVFUlJP", "UhADGhQIAfrS5JMCDBIKREVQUkVDQVRFRBoUGAH60uSTAgwSCkRFUFJFQ0FU", "RUQivgEKBFR5cGUSEAoMVFlQRV9VTktOT1dOEAASDAoISU5URVJDT00QARIl", "CgtWSURFT0NBTUVSQRACGhQIAfrS5JMCDBIKREVQUkVDQVRFRBILCgdCQVJS", "SUVSEAMSCAoER0FURRAEEi4KFEFDQ0VTU19DT05UUk9MX1BBTkVMEAUaFAgB", "+tLkkwIMEgpERVBSRUNBVEVEEigKDk9VVERPT1JfQ0FNRVJBEAYaFAgB+tLk", "kwIMEgpERVBSRUNBVEVEItADCglNb2RlbFR5cGUSFgoSTU9ERUxfVFlQRV9V", "TktOT1dOEAASCgoGUk9ET1M4EAESCgoGQkVXQVJEEAISCQoFUVRFQ0gQAxIK", "CgZOQVRFS1MQBBIHCgNUTkIQBRINCglNQVhFVExJTkUQBhILCgdUTkJfRE8y", "EAcSFAoQQkVXQVJEX0RTODYwMTdDUBAIEhQKEEJFV0FSRF9EUzg1MDA2TVAQ", "CRIUChBEQUhVQV9WVE8yMTAxRV9QEAoSGgoWSElLVklTSU9OX0RTX0tWODE1", "NV9JTRALEgwKCFJPRE9TOF8yEAwSDwoLQUtVVk9YX1IyOUMQDRIOCgpTQUZF", "X0xPR0lDEA4SFAoQQkVXQVJEX0RTODYwMDZBUBAPEg4KClNQVVROSUtfSU8Q", "EBINCglCRVdBUkRfRlIQERIMCghRVEVDSF9GUhASEhQKEEVMVEVYX0lQQV9F", "Ul8wMTAQExIRCg1CRVdBUkRfTUlGQVJFEBQSEgoOQkFTX0lQX0FBXzEyRkIQ", "FRIQCgxBS1VWT1hfWDkxNVMQFhITCg9SVUJFVEVLX1JWXzM0MzQQFxIOCgpT", "T0tPTF9QTFVTEBgSEwoPQkVXQVJEX0xPV19DT1NUEBkiPgoKU3RhdHVzVHlw", "ZRIXChNTVEFUVVNfVFlQRV9VTktOT1dOEAASCwoHT0ZGTElORRABEgoKBk9O", "TElORRACItABCgpEZXZpY2VMaXRlEgoKAmlkGAEgASgFEjEKBHR5cGUYAiAB", "KA4yHi5rZXlhcGlzLmRldmljZS52MS5EZXZpY2UuVHlwZUID4EECEhIKBXRp", "dGxlGAMgASgJQgPgQQISNAoIbG9jYXRpb24YBCABKAsyIi5rZXlhcGlzLmRl", "dmljZS52MS5EZXZpY2UuTG9jYXRpb24SOQoLc3RhdHVzX3R5cGUYBSABKA4y", "JC5rZXlhcGlzLmRldmljZS52MS5EZXZpY2UuU3RhdHVzVHlwZSKXCAoZRGV2", "aWNlQ29uZmlndXJhdGlvblN0YXR1cxIKCgJpZBgBIAEoBRIWCglkZXZpY2Vf", "aWQYAiABKAVCA+BBAhJfChJjb25maWd1cmF0aW9uX3R5cGUYAyABKA4yPi5r", "ZXlhcGlzLmRldmljZS52MS5EZXZpY2VDb25maWd1cmF0aW9uU3RhdHVzLkNv", "bmZpZ3VyYXRpb25UeXBlQgPgQQISUQoLc3RhdHVzX3R5cGUYBCABKA4yNy5r", "ZXlhcGlzLmRldmljZS52MS5EZXZpY2VDb25maWd1cmF0aW9uU3RhdHVzLlN0", "YXR1c1R5cGVCA+BBAhI2Cg1jb25maWd1cmVkX2F0GAUgASgLMhouZ29vZ2xl", "LnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEjMKDWVycm9yX21lc3NhZ2UYBiAB", "KAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSGAoLcmV0cnlfY291", "bnQYByABKAVCA+BBAhJKCgdwYXlsb2FkGAggASgLMjQua2V5YXBpcy5kZXZp", "Y2UudjEuRGV2aWNlQ29uZmlndXJhdGlvblN0YXR1cy5QYXlsb2FkQgPgQQMS", "NgoNbmV4dF9yZXRyeV9hdBgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l", "c3RhbXBCA+BBAxrlAQoHUGF5bG9hZBJXCgthdXRvY29sbGVjdBgBIAEoCzJA", "LmtleWFwaXMuZGV2aWNlLnYxLkRldmljZUNvbmZpZ3VyYXRpb25TdGF0dXMu", "UGF5bG9hZC5BdXRvY29sbGVjdEgAGnQKC0F1dG9jb2xsZWN0Ei4KCmVuYWJs", "ZWRfYXQYASABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEjUKEXRv", "X2JlX2Rpc2FibGVkX2F0GAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVz", "dGFtcEILCglhdHRyaWJ1dGUi0gEKEUNvbmZpZ3VyYXRpb25UeXBlEh4KGkNP", "TkZJR1VSQVRJT05fVFlQRV9VTktOT1dOEAASCgoGUFJFU0VUEAESDwoLU0lQ", "X0FDQ09VTlQQAhINCglTSVBfUk9PTVMQAxIICgRHQVRFEAQSCQoFUkZJRFMQ", "BRIJCgVDT0RFUxAGEhQKEEZBQ0VfUkVDT0dOSVRJT04QBxINCglDT05DSUVS", "R0UQCBIPCgtBVVRPQ09MTEVDVBAJEgcKA1NMMxAKEhIKDkVNRVJHRU5DWV9D", "QUxMEAsiWgoKU3RhdHVzVHlwZRIXChNTVEFUVVNfVFlQRV9VTktOT1dOEAAS", "CwoHU1VDQ0VTUxABEgkKBUVSUk9SEAISCwoHUEVORElORxADEg4KClBST0NF", "U1NJTkcQBCJ/CiBEZXZpY2VDb25maWd1cmF0aW9uU3RhdHVzR3JvdXBlZBIW", "CglkZXZpY2VfaWQYASABKAVCA+BBAhJDCghzdGF0dXNlcxgCIAMoCzIsLmtl", "eWFwaXMuZGV2aWNlLnYxLkRldmljZUNvbmZpZ3VyYXRpb25TdGF0dXNCA+BB", "AiLzAQoMQ2FtZXJhU3RhdHVzEigKAmlkGAEgASgLMhwuZ29vZ2xlLnByb3Rv", "YnVmLlN0cmluZ1ZhbHVlEkQKC3N0YXR1c190eXBlGAIgASgOMioua2V5YXBp", "cy5kZXZpY2UudjEuQ2FtZXJhU3RhdHVzLlN0YXR1c1R5cGVCA+BBAxIaCg1l", "cnJvcl9tZXNzYWdlGAMgASgJQgPgQQMiVwoKU3RhdHVzVHlwZRIXChNTVEFU", "VVNfVFlQRV9VTktOT1dOEAASDgoKUFJPQ0VTU0lORxABEhQKEFBST0NFU1NJ", "TkdfRVJST1IQAhIKCgZBQ1RJVkUQAyLTAgoKU3luY1N0YXR1cxJCCgtzdGF0", "dXNfdHlwZRgBIAEoDjIoLmtleWFwaXMuZGV2aWNlLnYxLlN5bmNTdGF0dXMu", "U3RhdHVzVHlwZUID4EEDEhoKDWVycm9yX21lc3NhZ2UYAiABKAlCA+BBAxIY", "CgtyZXRyeV9jb3VudBgDIAEoBUID4EEDEjYKDXN1Y2Nlc3NmdWxfYXQYBCAB", "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSMAoHc3luY19h", "dBgFIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAyJhCgpT", "dGF0dXNUeXBlEhcKE1NUQVRVU19UWVBFX1VOS05PV04QABIHCgNORVcQARIL", "CgdQRU5ESU5HEAISCQoFRVJST1IQAxILCgdTVUNDRVNTEAQSDAoIRElTQUJM", "RUQQBSIjChBHZXREZXZpY2VSZXF1ZXN0Eg8KAmlkGAEgASgFQgPgQQIiRgoR", "R2V0RGV2aWNlUmVzcG9uc2USKQoEZGF0YRgBIAEoCzIZLmtleWFwaXMuZGV2", "aWNlLnYxLkRldmljZUgAQgYKBHR5cGUiJwoUR2V0RGV2aWNlTGl0ZVJlcXVl", "c3QSDwoCaWQYASABKAVCA+BBAiJOChVHZXREZXZpY2VMaXRlUmVzcG9uc2US", "LQoEZGF0YRgBIAEoCzIdLmtleWFwaXMuZGV2aWNlLnYxLkRldmljZUxpdGVI", "AEIGCgR0eXBlIkEKEVBvc3REZXZpY2VSZXF1ZXN0EiwKBGRhdGEYASABKAsy", "GS5rZXlhcGlzLmRldmljZS52MS5EZXZpY2VCA+BBAiKMAgoSUG9zdERldmlj", "ZVJlc3BvbnNlEikKBGRhdGEYASABKAsyGS5rZXlhcGlzLmRldmljZS52MS5E", "ZXZpY2VIABI8CgVlcnJvchgCIAEoCzIrLmtleWFwaXMuZGV2aWNlLnYxLlBv", "c3REZXZpY2VSZXNwb25zZS5FcnJvckgAGoQBCgVFcnJvchI4Cgp2YWxpZGF0", "aW9uGAEgASgLMiIua2V5YXBpcy5kZXZpY2UudjEuVmFsaWRhdGlvbkVycm9y", "SAASNwoGc2F2aW5nGAIgASgLMiUua2V5YXBpcy5kZXZpY2UudjEuRGV2aWNl", "LlNhdmluZ0Vycm9ySABCCAoGcmVhc29uQgYKBHR5cGUiiAEKFEdldERldmlj", "ZUxpc3RSZXF1ZXN0Ei8KBmZpbHRlchgBIAEoCzIfLmtleWFwaXMuZGV2aWNl", "LnYxLkRldmljZUZpbHRlchIxCgZwYWdpbmcYAiABKAsyHy5rZXlhcGlzLmRl", "dmljZS52MS5EZXZpY2VQYWdpbmdIAEIMCgpwYWdpbmF0aW9uItgBChVHZXRE", "ZXZpY2VMaXN0UmVzcG9uc2USKQoEZGF0YRgBIAEoCzIZLmtleWFwaXMuZGV2", "aWNlLnYxLkRldmljZUgAEj8KBWVycm9yGAIgASgLMi4ua2V5YXBpcy5kZXZp", "Y2UudjEuR2V0RGV2aWNlTGlzdFJlc3BvbnNlLkVycm9ySAAaSwoFRXJyb3IS", "OAoKdmFsaWRhdGlvbhgBIAEoCzIiLmtleWFwaXMuZGV2aWNlLnYxLlZhbGlk", "YXRpb25FcnJvckgAQggKBnJlYXNvbkIGCgR0eXBlIkgKFUdldERldmljZUNv", "dW50UmVxdWVzdBIvCgZmaWx0ZXIYASABKAsyHy5rZXlhcGlzLmRldmljZS52", "MS5EZXZpY2VGaWx0ZXIivwEKFkdldERldmljZUNvdW50UmVzcG9uc2USDgoE", "ZGF0YRgBIAEoBUgAEkAKBWVycm9yGAIgASgLMi8ua2V5YXBpcy5kZXZpY2Uu", "djEuR2V0RGV2aWNlQ291bnRSZXNwb25zZS5FcnJvckgAGksKBUVycm9yEjgK", "CnZhbGlkYXRpb24YASABKAsyIi5rZXlhcGlzLmRldmljZS52MS5WYWxpZGF0", "aW9uRXJyb3JIAEIICgZyZWFzb25CBgoEdHlwZSJdChBQdXREZXZpY2VSZXF1", "ZXN0Eg8KAmlkGAEgASgFQgPgQQISFgoJcHJlc2V0X2lkGAIgASgFQgPgQQES", "IAoTaXNfc2wzX21vZGVfZW5hYmxlZBgDIAEoCEID4EEBIkYKEVB1dERldmlj", "ZVJlc3BvbnNlEikKBGRhdGEYASABKAsyGS5rZXlhcGlzLmRldmljZS52MS5E", "ZXZpY2VIAEIGCgR0eXBlIjEKHlBvc3REZXZpY2VJbnN0YWxsUHJlc2V0UmVx", "dWVzdBIPCgJpZBgBIAEoBUID4EECIp4CCh9Qb3N0RGV2aWNlSW5zdGFsbFBy", "ZXNldFJlc3BvbnNlEkkKBWVycm9yGAEgASgLMjgua2V5YXBpcy5kZXZpY2Uu", "djEuUG9zdERldmljZUluc3RhbGxQcmVzZXRSZXNwb25zZS5FcnJvckgAGqcB", "CgVFcnJvchJ4ChtwcmVzZXRfc3RhdHVzX2lzX3Byb2Nlc3NpbmcYASABKAsy", "US5rZXlhcGlzLmRldmljZS52MS5Qb3N0RGV2aWNlSW5zdGFsbFByZXNldFJl", "c3BvbnNlLkVycm9yLlByZXNldFN0YXR1c0lzUHJvY2Vzc2luZ0gAGhoKGFBy", "ZXNldFN0YXR1c0lzUHJvY2Vzc2luZ0IICgZyZWFzb25CBgoEdHlwZSJ+ChhQ", "b3N0RGV2aWNlUmVwbGFjZVJlcXVlc3QSDwoCaWQYASABKAVCA+BBAhIMCgRo", "b3N0GAIgASgJEhgKC21hY19hZGRyZXNzGAMgASgJQgPgQQISGgoNc2VyaWFs", "X251bWJlchgEIAEoCUID4EECEg0KBWxvZ2luGAUgASgJIq0GChlQb3N0RGV2", "aWNlUmVwbGFjZVJlc3BvbnNlEkMKBWVycm9yGAEgASgLMjIua2V5YXBpcy5k", "ZXZpY2UudjEuUG9zdERldmljZVJlcGxhY2VSZXNwb25zZS5FcnJvckgAGsIF", "CgVFcnJvchI+ChB2YWxpZGF0aW9uX2Vycm9yGAEgASgLMiIua2V5YXBpcy5k", "ZXZpY2UudjEuVmFsaWRhdGlvbkVycm9ySAASVAoLaG9zdF9leGlzdHMYAiAB", "KAsyPS5rZXlhcGlzLmRldmljZS52MS5Qb3N0RGV2aWNlUmVwbGFjZVJlc3Bv", "bnNlLkVycm9yLkhvc3RFeGlzdHNIABJhChJtYWNfYWRkcmVzc19leGlzdHMY", "AyABKAsyQy5rZXlhcGlzLmRldmljZS52MS5Qb3N0RGV2aWNlUmVwbGFjZVJl", "c3BvbnNlLkVycm9yLk1hY0FkZHJlc3NFeGlzdHNIABJlChRzZXJpYWxfbnVt", "YmVyX2V4aXN0cxgEIAEoCzJFLmtleWFwaXMuZGV2aWNlLnYxLlBvc3REZXZp", "Y2VSZXBsYWNlUmVzcG9uc2UuRXJyb3IuU2VyaWFsTnVtYmVyRXhpc3RzSAAS", "VgoMbG9naW5fZXhpc3RzGAUgASgLMj4ua2V5YXBpcy5kZXZpY2UudjEuUG9z", "dERldmljZVJlcGxhY2VSZXNwb25zZS5FcnJvci5Mb2dpbkV4aXN0c0gAEl8K", "EWxvZ2luX2lzX3JlcXVpcmVkGAYgASgLMkIua2V5YXBpcy5kZXZpY2UudjEu", "UG9zdERldmljZVJlcGxhY2VSZXNwb25zZS5FcnJvci5Mb2dpbklzUmVxdWly", "ZWRIABI8Cg9yZWluc3RhbGxfZXJyb3IYByABKAsyIS5rZXlhcGlzLmRldmlj", "ZS52MS5SZWluc3RhbGxFcnJvckgAGgwKCkhvc3RFeGlzdHMaEgoQTWFjQWRk", "cmVzc0V4aXN0cxoUChJTZXJpYWxOdW1iZXJFeGlzdHMaDQoLTG9naW5FeGlz", "dHMaEQoPTG9naW5Jc1JlcXVpcmVkQggKBnJlYXNvbkIGCgR0eXBlIi8KHFBv", "c3REZXZpY2VSZWNvbmZpZ3VyZVJlcXVlc3QSDwoCaWQYASABKAVCA+BBAiKC", "AgodUG9zdERldmljZVJlY29uZmlndXJlUmVzcG9uc2USRwoFZXJyb3IYASAB", "KAsyNi5rZXlhcGlzLmRldmljZS52MS5Qb3N0RGV2aWNlUmVjb25maWd1cmVS", "ZXNwb25zZS5FcnJvckgAGo8BCgVFcnJvchI+ChB2YWxpZGF0aW9uX2Vycm9y", "GAEgASgLMiIua2V5YXBpcy5kZXZpY2UudjEuVmFsaWRhdGlvbkVycm9ySAAS", "PAoPcmVpbnN0YWxsX2Vycm9yGAIgASgLMiEua2V5YXBpcy5kZXZpY2UudjEu", "UmVpbnN0YWxsRXJyb3JIAEIICgZyZWFzb25CBgoEdHlwZSI4CiVHZXREZXZp", "Y2VDb25maWd1cmF0aW9uU3RhdHVzZXNSZXF1ZXN0Eg8KAmlkGAEgASgFQgPg", "QQIiuQQKJkdldERldmljZUNvbmZpZ3VyYXRpb25TdGF0dXNlc1Jlc3BvbnNl", "ElIKBGRhdGEYASABKAsyQi5rZXlhcGlzLmRldmljZS52MS5HZXREZXZpY2VD", "b25maWd1cmF0aW9uU3RhdHVzZXNSZXNwb25zZS5TdGF0dXNlc0gAElAKBWVy", "cm9yGAIgASgLMj8ua2V5YXBpcy5kZXZpY2UudjEuR2V0RGV2aWNlQ29uZmln", "dXJhdGlvblN0YXR1c2VzUmVzcG9uc2UuRXJyb3JIABqNAgoIU3RhdHVzZXMS", "UwodZGV2aWNlX2NvbmZpZ3VyYXRpb25fc3RhdHVzZXMYASADKAsyLC5rZXlh", "cGlzLmRldmljZS52MS5EZXZpY2VDb25maWd1cmF0aW9uU3RhdHVzEjYKDWNh", "bWVyYV9zdGF0dXMYAiABKAsyHy5rZXlhcGlzLmRldmljZS52MS5DYW1lcmFT", "dGF0dXMSMgoLc3luY19zdGF0dXMYAyABKAsyHS5rZXlhcGlzLmRldmljZS52", "MS5TeW5jU3RhdHVzEkAKEmRldmljZV9zdGF0dXNfdHlwZRgEIAEoDjIkLmtl", "eWFwaXMuZGV2aWNlLnYxLkRldmljZS5TdGF0dXNUeXBlGlEKBUVycm9yEj4K", "EHZhbGlkYXRpb25fZXJyb3IYASABKAsyIi5rZXlhcGlzLmRldmljZS52MS5W", "YWxpZGF0aW9uRXJyb3JIAEIICgZyZWFzb25CBgoEdHlwZSJnCiRQb3N0RGV2", "aWNlQ29uZmlndXJhdGlvblN0YXR1c1JlcXVlc3QSPwoEZGF0YRgBIAEoCzIs", "LmtleWFwaXMuZGV2aWNlLnYxLkRldmljZUNvbmZpZ3VyYXRpb25TdGF0dXNC", "A+BBAiKLAgolUG9zdERldmljZUNvbmZpZ3VyYXRpb25TdGF0dXNSZXNwb25z", "ZRI8CgRkYXRhGAEgASgLMiwua2V5YXBpcy5kZXZpY2UudjEuRGV2aWNlQ29u", "ZmlndXJhdGlvblN0YXR1c0gAEk8KBWVycm9yGAIgASgLMj4ua2V5YXBpcy5k", "ZXZpY2UudjEuUG9zdERldmljZUNvbmZpZ3VyYXRpb25TdGF0dXNSZXNwb25z", "ZS5FcnJvckgAGksKBUVycm9yEjgKCnZhbGlkYXRpb24YASABKAsyIi5rZXlh", "cGlzLmRldmljZS52MS5WYWxpZGF0aW9uRXJyb3JIAEIICgZyZWFzb25CBgoE", "dHlwZSLWAQouR2V0RGV2aWNlQ29uZmlndXJhdGlvblN0YXR1c0dyb3VwZWRM", "aXN0UmVxdWVzdBJJCgZmaWx0ZXIYASABKAsyOS5rZXlhcGlzLmRldmljZS52", "MS5EZXZpY2VDb25maWd1cmF0aW9uU3RhdHVzR3JvdXBlZEZpbHRlchJLCgZw", "YWdpbmcYAiABKAsyOS5rZXlhcGlzLmRldmljZS52MS5EZXZpY2VDb25maWd1", "cmF0aW9uU3RhdHVzR3JvdXBlZFBhZ2luZ0gAQgwKCnBhZ2luYXRpb24ipgIK", "L0dldERldmljZUNvbmZpZ3VyYXRpb25TdGF0dXNHcm91cGVkTGlzdFJlc3Bv", "bnNlEkMKBGRhdGEYASABKAsyMy5rZXlhcGlzLmRldmljZS52MS5EZXZpY2VD", "b25maWd1cmF0aW9uU3RhdHVzR3JvdXBlZEgAElkKBWVycm9yGAIgASgLMkgu", "a2V5YXBpcy5kZXZpY2UudjEuR2V0RGV2aWNlQ29uZmlndXJhdGlvblN0YXR1", "c0dyb3VwZWRMaXN0UmVzcG9uc2UuRXJyb3JIABpLCgVFcnJvchI4Cgp2YWxp", "ZGF0aW9uGAEgASgLMiIua2V5YXBpcy5kZXZpY2UudjEuVmFsaWRhdGlvbkVy", "cm9ySABCCAoGcmVhc29uQgYKBHR5cGUifAovR2V0RGV2aWNlQ29uZmlndXJh", "dGlvblN0YXR1c0dyb3VwZWRDb3VudFJlcXVlc3QSSQoGZmlsdGVyGAEgASgL", "Mjkua2V5YXBpcy5kZXZpY2UudjEuRGV2aWNlQ29uZmlndXJhdGlvblN0YXR1", "c0dyb3VwZWRGaWx0ZXIiSgowR2V0RGV2aWNlQ29uZmlndXJhdGlvblN0YXR1", "c0dyb3VwZWRDb3VudFJlc3BvbnNlEg4KBGRhdGEYASABKAVIAEIGCgR0eXBl", "IiYKE0RlbGV0ZURldmljZVJlcXVlc3QSDwoCaWQYASABKAVCA+BBAiIWChRE", "ZWxldGVEZXZpY2VSZXNwb25zZSKEAQoOUmVpbnN0YWxsRXJyb3ISUwoUc2lw", "X2xvZ2luX2lzX21pc3NpbmcYASABKAsyMy5rZXlhcGlzLmRldmljZS52MS5S", "ZWluc3RhbGxFcnJvci5TaXBMb2dpbklzTWlzc2luZ0gAGhMKEVNpcExvZ2lu", "SXNNaXNzaW5nQggKBnJlYXNvbiK8CAoMRGV2aWNlRmlsdGVyEhkKEW93bmVy", "X2NvbXBhbnlfaWRzGAEgAygFEioKBHRleHQYAiABKAsyHC5nb29nbGUucHJv", "dG9idWYuU3RyaW5nVmFsdWUSFQoNZmxhdGdyYW1tX2lkcxgDIAMoBRIWCg5z", "ZXJpYWxfbnVtYmVycxgEIAMoCRJBChNkZXZpY2Vfc3RhdHVzX3R5cGVzGAUg", "AygOMiQua2V5YXBpcy5kZXZpY2UudjEuRGV2aWNlLlN0YXR1c1R5cGUSNAoM", "ZGV2aWNlX3R5cGVzGAYgAygOMh4ua2V5YXBpcy5kZXZpY2UudjEuRGV2aWNl", "LlR5cGUSPwoSZGV2aWNlX21vZGVsX3R5cGVzGAcgAygOMiMua2V5YXBpcy5k", "ZXZpY2UudjEuRGV2aWNlLk1vZGVsVHlwZRI4ChRpc19jb25jaWVyZ2VfZW5h", "YmxlZBgIIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFsdWUSOgoWaXNf", "ZGlzcGF0Y2hpbmdfZW5hYmxlZBgJIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5C", "b29sVmFsdWUSPwoZZGlzcGF0Y2hpbmdfcHVibGljX251bWJlchgKIAEoCzIc", "Lmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRI2ChBoYXJkd2FyZV92ZXJz", "aW9uGAsgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEjYKEHNv", "ZnR3YXJlX3ZlcnNpb24YDCABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5n", "VmFsdWUSQgoeaXNfYXV0b2NoYW5nZV9wYXNzd29yZF9lbmFibGVkGA0gASgL", "MhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZRISCgphYmNfbnVtYmVyGA4g", "AygJEhIKCmNhbWVyYV9pZHMYDyADKAkSSgoYc3luY19zdGF0dXNfc3RhdHVz", "X3R5cGVzGBAgAygOMigua2V5YXBpcy5kZXZpY2UudjEuU3luY1N0YXR1cy5T", "dGF0dXNUeXBlEj8KGnN5bmNfcmV0cnlfY291bnRfbGVzc190aGVuGBEgASgL", "MhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSPAoYYmVnaW5fc3luY19z", "dWNjZXNzZnVsX2F0GBIgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFt", "cBI6ChZlbmRfc3luY19zdWNjZXNzZnVsX2F0GBMgASgLMhouZ29vZ2xlLnBy", "b3RvYnVmLlRpbWVzdGFtcBIxCg1iZWdpbl9zeW5jX2F0GBQgASgLMhouZ29v", "Z2xlLnByb3RvYnVmLlRpbWVzdGFtcBIvCgtlbmRfc3luY19hdBgVIAEoCzIa", "Lmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiwgIKDERldmljZVBhZ2luZxJC", "Cg1vcmRlcl9ieV90eXBlGAEgASgOMisua2V5YXBpcy5kZXZpY2UudjEuRGV2", "aWNlUGFnaW5nLk9yZGVyQnlUeXBlEkUKDmRpcmVjdGlvbl90eXBlGAIgASgO", "Mi0ua2V5YXBpcy5kZXZpY2UudjEuRGV2aWNlUGFnaW5nLkRpcmVjdGlvblR5", "cGUSDQoFbGltaXQYAyABKAUSDgoGb2Zmc2V0GAQgASgFIkgKC09yZGVyQnlU", "eXBlEhkKFU9SREVSX0JZX1RZUEVfVU5LTk9XThAAEgYKAklEEAESCQoFVElU", "TEUQAhILCgdTWU5DX0FUEAMiPgoNRGlyZWN0aW9uVHlwZRIaChZESVJFQ1RJ", "T05fVFlQRV9VTktOT1dOEAASCAoEREVTQxABEgcKA0FTQxACItwCCiZEZXZp", "Y2VDb25maWd1cmF0aW9uU3RhdHVzR3JvdXBlZEZpbHRlchISCgpkZXZpY2Vf", "aWRzGAEgAygFElsKE2NvbmZpZ3VyYXRpb25fdHlwZXMYAiADKA4yPi5rZXlh", "cGlzLmRldmljZS52MS5EZXZpY2VDb25maWd1cmF0aW9uU3RhdHVzLkNvbmZp", "Z3VyYXRpb25UeXBlEk0KDHN0YXR1c190eXBlcxgDIAMoDjI3LmtleWFwaXMu", "ZGV2aWNlLnYxLkRldmljZUNvbmZpZ3VyYXRpb25TdGF0dXMuU3RhdHVzVHlw", "ZRI2ChJpc19yZWFkeV9mb3JfcmV0cnkYBCABKAsyGi5nb29nbGUucHJvdG9i", "dWYuQm9vbFZhbHVlEjoKFXJldHJ5X2NvdW50X2xlc3NfdGhlbhgFIAEoCzIb", "Lmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlIv8CCiZEZXZpY2VDb25maWd1", "cmF0aW9uU3RhdHVzR3JvdXBlZFBhZ2luZxJcCg1vcmRlcl9ieV90eXBlGAEg", "ASgOMkUua2V5YXBpcy5kZXZpY2UudjEuRGV2aWNlQ29uZmlndXJhdGlvblN0", "YXR1c0dyb3VwZWRQYWdpbmcuT3JkZXJCeVR5cGUSXwoOZGlyZWN0aW9uX3R5", "cGUYAiABKA4yRy5rZXlhcGlzLmRldmljZS52MS5EZXZpY2VDb25maWd1cmF0", "aW9uU3RhdHVzR3JvdXBlZFBhZ2luZy5EaXJlY3Rpb25UeXBlEg0KBWxpbWl0", "GAMgASgFEg4KBm9mZnNldBgEIAEoBSI3CgtPcmRlckJ5VHlwZRIZChVPUkRF", "Ul9CWV9UWVBFX1VOS05PV04QABINCglERVZJQ0VfSUQQASI+Cg1EaXJlY3Rp", "b25UeXBlEhoKFkRJUkVDVElPTl9UWVBFX1VOS05PV04QABIICgRERVNDEAES", "BwoDQVNDEAIiOgoPVmFsaWRhdGlvbkVycm9yEhEKBHBhdGgYASABKAlCA+BB", "AhIUCgdtZXNzYWdlGAIgASgJQgPgQQIighAKBlByZXNldBIKCgJpZBgBIAEo", "BRISCgV0aXRsZRgCIAEoCUID4EECEhQKB21yZl9pZHMYAyADKAVCA+BBAhIT", "CgZyZl9pZHMYBCADKAVCA+BBAhI2CgtkZXNjcmlwdGlvbhgFIAEoCzIcLmdv", "b2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZUID4EEBEjMKCmNyZWF0ZWRfYXQY", "BiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wQgPgQQMSMwoKY2hh", "bmdlZF9hdBgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BB", "AxI+CgtzdGF0dXNfdHlwZRgIIAEoDjIkLmtleWFwaXMuZGV2aWNlLnYxLlBy", "ZXNldC5TdGF0dXNUeXBlQgPgQQISLwoDc2lwGAkgASgLMh0ua2V5YXBpcy5k", "ZXZpY2UudjEuUHJlc2V0LlNpcEID4EECEi8KA250cBgKIAEoCzIdLmtleWFw", "aXMuZGV2aWNlLnYxLlByZXNldC5OdHBCA+BBAhI1CgZzeXNsb2cYCyABKAsy", "IC5rZXlhcGlzLmRldmljZS52MS5QcmVzZXQuU3lzbG9nQgPgQQISMgoFcm9v", "bXMYDCADKAsyHi5rZXlhcGlzLmRldmljZS52MS5QcmVzZXQuUm9vbUID4EEC", "EkAKDHZpZGVvX2NvbmZpZxgNIAEoCzIlLmtleWFwaXMuZGV2aWNlLnYxLlBy", "ZXNldC5WaWRlb0NvbmZpZ0ID4EECEjEKBGR0bWYYDiADKAsyHi5rZXlhcGlz", "LmRldmljZS52MS5QcmVzZXQuRHRtZkID4EECEkMKEGZhY2VfcmVjb2duaXRp", "b24YDyABKAsyKS5rZXlhcGlzLmRldmljZS52MS5QcmVzZXQuRmFjZVJlY29n", "bml0aW9uGosBCgNTaXASEQoEaG9zdBgBIAEoCUID4EECEhEKBHBvcnQYAiAB", "KAVCA+BBAhIVCghyZWdfaG9zdBgDIAEoCUID4EECEhUKCHJlZ19wb3J0GAQg", "ASgFQgPgQQISFwoKcHJveHlfaG9zdBgFIAEoCUID4EECEhcKCnByb3h5X3Bv", "cnQYBiABKAVCA+BBAhorCgNOdHASEQoEaG9zdBgBIAEoCUID4EECEhEKBHBv", "cnQYAiABKAVCA+BBAhq2AQoGU3lzbG9nEhEKBGhvc3QYASABKAlCA+BBAhIR", "CgRwb3J0GAIgASgFQgPgQQISSQoNcHJvdG9jb2xfdHlwZRgDIAEoDjItLmtl", "eWFwaXMuZGV2aWNlLnYxLlByZXNldC5TeXNsb2cuUHJvdG9jb2xUeXBlQgPg", "QQIiOwoMUHJvdG9jb2xUeXBlEhkKFVBST1RPQ09MX1RZUEVfVU5LTk9XThAA", "EgcKA1VEUBABEgcKA1RDUBACGiwKBFJvb20SEgoFcGhvbmUYASABKAlCA+BB", "AhIQCgNudW0YAiABKAVCA+BBAhqcAgoLVmlkZW9Db25maWcSTAoMcXVhbGl0", "eV90eXBlGAEgASgOMjEua2V5YXBpcy5kZXZpY2UudjEuUHJlc2V0LlZpZGVv", "Q29uZmlnLlF1YWxpdHlUeXBlQgPgQQISRgoJcnRzcF91c2VyGAIgASgLMi4u", "a2V5YXBpcy5kZXZpY2UudjEuUHJlc2V0LlZpZGVvQ29uZmlnLlJ0c3BVc2Vy", "QgPgQQIaOAoIUnRzcFVzZXISFQoIdXNlcm5hbWUYASABKAlCA+BBAhIVCghw", "YXNzd29yZBgCIAEoCUID4EECIj0KC1F1YWxpdHlUeXBlEhgKFFFVQUxJVFlf", "VFlQRV9VTktOT1dOEAASCAoESElHSBABEgoKBk1FRElVTRACGi4KBER0bWYS", "EQoEY29kZRgBIAEoCUID4EECEhMKC3JlbGF5X2luZGV4GAIgASgFGrECCg9G", "YWNlUmVjb2duaXRpb24SEQoEaG9zdBgBIAEoCUID4EECEhAKCGFsdF9ob3N0", "GAIgASgJEhUKCGVuZHBvaW50GAMgASgJQgPgQQISFwoKYXV0aF90b2tlbhgE", "IAEoCUID4EECElwKEmNvbmZpZ3VyYXRpb25fdHlwZRgFIAEoDjI7LmtleWFw", "aXMuZGV2aWNlLnYxLlByZXNldC5GYWNlUmVjb2duaXRpb24uQ29uZmlndXJh", "dGlvblR5cGVCA+BBAhIWCglvcmlnaW5faWQYBiABKAlCA+BBAhIRCglncm91", "cF9pZHMYByADKAUiQAoRQ29uZmlndXJhdGlvblR5cGUSHgoaQ09ORklHVVJB", "VElPTl9UWVBFX1VOS05PV04QABILCgdERUZBVUxUEAEa3gEKC1NhdmluZ0Vy", "cm9yEkIKCGNvbmZsaWN0GAEgASgLMi4ua2V5YXBpcy5kZXZpY2UudjEuUHJl", "c2V0LlNhdmluZ0Vycm9yLkNvbmZsaWN0SAASXQoXbm90X2FsbG93ZWRfZm9y", "X2RlZmF1bHQYAiABKAsyOi5rZXlhcGlzLmRldmljZS52MS5QcmVzZXQuU2F2", "aW5nRXJyb3IuTm90QWxsb3dlZEZvckRlZmF1bHRIABoKCghDb25mbGljdBoW", "ChROb3RBbGxvd2VkRm9yRGVmYXVsdEIICgZyZWFzb24iPgoKU3RhdHVzVHlw", "ZRIXChNTVEFUVVNfVFlQRV9VTktOT1dOEAASCgoGQUNUSVZFEAESCwoHQVJD", "SElWRRACMsESCg1EZXZpY2VTZXJ2aWNlEnoKCUdldERldmljZRIjLmtleWFw", "aXMuZGV2aWNlLnYxLkdldERldmljZVJlcXVlc3QaJC5rZXlhcGlzLmRldmlj", "ZS52MS5HZXREZXZpY2VSZXNwb25zZSIigtPkkwIcEhovZGV2aWNlL2FwaS92", "MS9kZXZpY2Uve2lkfRKIAQoNR2V0RGV2aWNlTGlzdBInLmtleWFwaXMuZGV2", "aWNlLnYxLkdldERldmljZUxpc3RSZXF1ZXN0Gigua2V5YXBpcy5kZXZpY2Uu", "djEuR2V0RGV2aWNlTGlzdFJlc3BvbnNlIiKC0+STAhwSGi9kZXZpY2UvYXBp", "L3YxL2RldmljZS9saXN0MAESigEKDkdldERldmljZUNvdW50Eigua2V5YXBp", "cy5kZXZpY2UudjEuR2V0RGV2aWNlQ291bnRSZXF1ZXN0Gikua2V5YXBpcy5k", "ZXZpY2UudjEuR2V0RGV2aWNlQ291bnRSZXNwb25zZSIjgtPkkwIdEhsvZGV2", "aWNlL2FwaS92MS9kZXZpY2UvY291bnQSewoKUG9zdERldmljZRIkLmtleWFw", "aXMuZGV2aWNlLnYxLlBvc3REZXZpY2VSZXF1ZXN0GiUua2V5YXBpcy5kZXZp", "Y2UudjEuUG9zdERldmljZVJlc3BvbnNlIiCC0+STAhoiFS9kZXZpY2UvYXBp", "L3YxL2RldmljZToBKhJ7CglQdXREZXZpY2USIy5rZXlhcGlzLmRldmljZS52", "MS5QdXREZXZpY2VSZXF1ZXN0GiQua2V5YXBpcy5kZXZpY2UudjEuUHV0RGV2", "aWNlUmVzcG9uc2UiI4gCAYLT5JMCGhoVL2RldmljZS9hcGkvdjEvZGV2aWNl", "OgEqErMBChdQb3N0RGV2aWNlSW5zdGFsbFByZXNldBIxLmtleWFwaXMuZGV2", "aWNlLnYxLlBvc3REZXZpY2VJbnN0YWxsUHJlc2V0UmVxdWVzdBoyLmtleWFw", "aXMuZGV2aWNlLnYxLlBvc3REZXZpY2VJbnN0YWxsUHJlc2V0UmVzcG9uc2Ui", "MYLT5JMCKyIpL2RldmljZS9hcGkvdjEvZGV2aWNlL3tpZH0vaW5zdGFsbF9w", "cmVzZXQSnQEKEVBvc3REZXZpY2VSZXBsYWNlEisua2V5YXBpcy5kZXZpY2Uu", "djEuUG9zdERldmljZVJlcGxhY2VSZXF1ZXN0Giwua2V5YXBpcy5kZXZpY2Uu", "djEuUG9zdERldmljZVJlcGxhY2VSZXNwb25zZSItgtPkkwInIiIvZGV2aWNl", "L2FwaS92MS9kZXZpY2Uve2lkfS9yZXBsYWNlOgEqEqoBChVQb3N0RGV2aWNl", "UmVjb25maWd1cmUSLy5rZXlhcGlzLmRldmljZS52MS5Qb3N0RGV2aWNlUmVj", "b25maWd1cmVSZXF1ZXN0GjAua2V5YXBpcy5kZXZpY2UudjEuUG9zdERldmlj", "ZVJlY29uZmlndXJlUmVzcG9uc2UiLoLT5JMCKCImL2RldmljZS9hcGkvdjEv", "ZGV2aWNlL3tpZH0vcmVjb25maWd1cmUS0AEKHkdldERldmljZUNvbmZpZ3Vy", "YXRpb25TdGF0dXNlcxI4LmtleWFwaXMuZGV2aWNlLnYxLkdldERldmljZUNv", "bmZpZ3VyYXRpb25TdGF0dXNlc1JlcXVlc3QaOS5rZXlhcGlzLmRldmljZS52", "MS5HZXREZXZpY2VDb25maWd1cmF0aW9uU3RhdHVzZXNSZXNwb25zZSI5gtPk", "kwIzEjEvZGV2aWNlL2FwaS92MS9kZXZpY2Uve2lkfS9jb25maWd1cmF0aW9u", "X3N0YXR1c2VzEskBCh1Qb3N0RGV2aWNlQ29uZmlndXJhdGlvblN0YXR1cxI3", "LmtleWFwaXMuZGV2aWNlLnYxLlBvc3REZXZpY2VDb25maWd1cmF0aW9uU3Rh", "dHVzUmVxdWVzdBo4LmtleWFwaXMuZGV2aWNlLnYxLlBvc3REZXZpY2VDb25m", "aWd1cmF0aW9uU3RhdHVzUmVzcG9uc2UiNYLT5JMCLyIqL2RldmljZS9hcGkv", "djEvZGV2aWNlL2NvbmZpZ3VyYXRpb25fc3RhdHVzOgEqEvMBCidHZXREZXZp", "Y2VDb25maWd1cmF0aW9uU3RhdHVzR3JvdXBlZExpc3QSQS5rZXlhcGlzLmRl", "dmljZS52MS5HZXREZXZpY2VDb25maWd1cmF0aW9uU3RhdHVzR3JvdXBlZExp", "c3RSZXF1ZXN0GkIua2V5YXBpcy5kZXZpY2UudjEuR2V0RGV2aWNlQ29uZmln", "dXJhdGlvblN0YXR1c0dyb3VwZWRMaXN0UmVzcG9uc2UiP4LT5JMCORI3L2Rl", "dmljZS9hcGkvdjEvZGV2aWNlL2NvbmZpZ3VyYXRpb25fc3RhdHVzL2dyb3Vw", "ZWQvbGlzdDABEvUBCihHZXREZXZpY2VDb25maWd1cmF0aW9uU3RhdHVzR3Jv", "dXBlZENvdW50EkIua2V5YXBpcy5kZXZpY2UudjEuR2V0RGV2aWNlQ29uZmln", "dXJhdGlvblN0YXR1c0dyb3VwZWRDb3VudFJlcXVlc3QaQy5rZXlhcGlzLmRl", "dmljZS52MS5HZXREZXZpY2VDb25maWd1cmF0aW9uU3RhdHVzR3JvdXBlZENv", "dW50UmVzcG9uc2UiQILT5JMCOhI4L2RldmljZS9hcGkvdjEvZGV2aWNlL2Nv", "bmZpZ3VyYXRpb25fc3RhdHVzL2dyb3VwZWQvY291bnQSgwEKDERlbGV0ZURl", "dmljZRImLmtleWFwaXMuZGV2aWNlLnYxLkRlbGV0ZURldmljZVJlcXVlc3Qa", "Jy5rZXlhcGlzLmRldmljZS52MS5EZWxldGVEZXZpY2VSZXNwb25zZSIigtPk", "kwIcKhovZGV2aWNlL2FwaS92MS9kZXZpY2Uve2lkfRKLAQoNR2V0RGV2aWNl", "TGl0ZRInLmtleWFwaXMuZGV2aWNlLnYxLkdldERldmljZUxpdGVSZXF1ZXN0", "Gigua2V5YXBpcy5kZXZpY2UudjEuR2V0RGV2aWNlTGl0ZVJlc3BvbnNlIieC", "0+STAiESHy9kZXZpY2UvYXBpL3YxL2RldmljZV9saXRlL3tpZH1CmgEKFHJ1", "LmtleWFwaXMuZGV2aWNlLnYxQhRLZXlhcGlzRGV2aWNlVjFQcm90b0gDUABa", "Ei9rZXlhcGlzX2RldmljZV92MdgBAfgBAaICD0tFWUFQSVNERVZJQ0VWMaoC", "EUtleWFwaXMuRGV2aWNlLlYxygIRS2V5YXBpc1xEZXZpY2VcVjHqAhNLZXlh", "cGlzOjpEZXZpY2U6OlYxYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Api.VisibilityReflection.Descriptor, global::Keyapis.Device.V1.KeyapisDeviceModelV1Reflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device), global::Keyapis.Device.V1.Device.Parser, new[]{ "Id", "PresetId", "PresetStatusType", "PresetConfiguredAt", "IsSl3ModeEnabled", "Type", "MacAddress", "Title", "ModelType", "OwnerCompanyId", "SerialNumber", "FlatgrammId", "UtcOffset", "StatusType", "IpAddress", "Port", "SputnikCredentials", "Location", "CameraId", "Tags", "Settings", "HardwareVersion", "SoftwareVersion", "Dispatching", "SipTrunk", "Redirect", "AutochangePasswordSettings", "Credentials", "SipAccount", "SyncStatus" }, null, new[]{ typeof(global::Keyapis.Device.V1.Device.Types.PresetStatusType), typeof(global::Keyapis.Device.V1.Device.Types.Type), typeof(global::Keyapis.Device.V1.Device.Types.ModelType), typeof(global::Keyapis.Device.V1.Device.Types.StatusType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SputnikCredentials), global::Keyapis.Device.V1.Device.Types.SputnikCredentials.Parser, new[]{ "Login", "Password" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.Location), global::Keyapis.Device.V1.Device.Types.Location.Parser, new[]{ "Latitude", "Longitude" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.Settings), global::Keyapis.Device.V1.Device.Types.Settings.Parser, new[]{ "CoordinateMatrixSwitch", "ConciergeCall", "Autocollect", "FaceRecognition", "Sl3Mode", "EmergencyCall" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.Settings.Types.CoordinateMatrixSwitch), global::Keyapis.Device.V1.Device.Types.Settings.Types.CoordinateMatrixSwitch.Parser, new[]{ "IsEnabled" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.Settings.Types.ConciergeCall), global::Keyapis.Device.V1.Device.Types.Settings.Types.ConciergeCall.Parser, new[]{ "IsEnabled", "Orpon", "RoomNumber", "SipNumber" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.Settings.Types.Autocollect), global::Keyapis.Device.V1.Device.Types.Settings.Types.Autocollect.Parser, new[]{ "IsEnabled" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.Settings.Types.FaceRecognition), global::Keyapis.Device.V1.Device.Types.Settings.Types.FaceRecognition.Parser, new[]{ "IsEnabled" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.Settings.Types.Sl3Mode), global::Keyapis.Device.V1.Device.Types.Settings.Types.Sl3Mode.Parser, new[]{ "IsEnabled", "EncryptionProfileId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.Settings.Types.EmergencyCall), global::Keyapis.Device.V1.Device.Types.Settings.Types.EmergencyCall.Parser, new[]{ "IsCallAvailable", "EmergencyNumber" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.Dispatching), global::Keyapis.Device.V1.Device.Types.Dispatching.Parser, new[]{ "IsEnabled", "PublicIdentity" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SipTrunk), global::Keyapis.Device.V1.Device.Types.SipTrunk.Parser, new[]{ "AbcNumber", "Host", "Port", "SipType" }, null, new[]{ typeof(global::Keyapis.Device.V1.Device.Types.SipTrunk.Types.SipType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.Redirect), global::Keyapis.Device.V1.Device.Types.Redirect.Parser, new[]{ "IsEnabledSip", "IsEnabledPhone" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.AutochangePasswordSettings), global::Keyapis.Device.V1.Device.Types.AutochangePasswordSettings.Parser, new[]{ "IsEnabled" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.Credentials), global::Keyapis.Device.V1.Device.Types.Credentials.Parser, new[]{ "Login", "Password", "UserAccessType" }, null, new[]{ typeof(global::Keyapis.Device.V1.Device.Types.Credentials.Types.UserAccessType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError), global::Keyapis.Device.V1.Device.Types.SavingError.Parser, new[]{ "MacAddressInvalid", "SerialNumberInvalid", "NotAllowedForType", "NotAllowedForModel", "SerialNumberForModelIsExist", "MacAddressIsExist", "CapabilityIsNotSupported", "AbcNumberIsExistOnAnotherDevice", "PublicIdentityIsExist", "ConciergeRoomNotFound", "LoginIsExist", "CredentialsAreRequired", "FieldIsNotSupported" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressInvalid), global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressInvalid.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberInvalid), global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberInvalid.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForType), global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForType.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForModel), global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForModel.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberForModelIsExist), global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberForModelIsExist.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressIsExist), global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressIsExist.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError.Types.CapabilityIsNotSupported), global::Keyapis.Device.V1.Device.Types.SavingError.Types.CapabilityIsNotSupported.Parser, new[]{ "ModelCapabilityType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError.Types.AbcNumberIsExistOnAnotherDevice), global::Keyapis.Device.V1.Device.Types.SavingError.Types.AbcNumberIsExistOnAnotherDevice.Parser, new[]{ "DeviceId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError.Types.PublicIdentityIsExist), global::Keyapis.Device.V1.Device.Types.SavingError.Types.PublicIdentityIsExist.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError.Types.ConciergeRoomNotFound), global::Keyapis.Device.V1.Device.Types.SavingError.Types.ConciergeRoomNotFound.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError.Types.LoginIsExist), global::Keyapis.Device.V1.Device.Types.SavingError.Types.LoginIsExist.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError.Types.CredentialsAreRequired), global::Keyapis.Device.V1.Device.Types.SavingError.Types.CredentialsAreRequired.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Device.Types.SavingError.Types.FieldIsNotSupported), global::Keyapis.Device.V1.Device.Types.SavingError.Types.FieldIsNotSupported.Parser, null, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeviceLite), global::Keyapis.Device.V1.DeviceLite.Parser, new[]{ "Id", "Type", "Title", "Location", "StatusType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeviceConfigurationStatus), global::Keyapis.Device.V1.DeviceConfigurationStatus.Parser, new[]{ "Id", "DeviceId", "ConfigurationType", "StatusType", "ConfiguredAt", "ErrorMessage", "RetryCount", "Payload", "NextRetryAt" }, null, new[]{ typeof(global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.ConfigurationType), typeof(global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.StatusType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload), global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload.Parser, new[]{ "Autocollect" }, new[]{ "Attribute" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload.Types.Autocollect), global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload.Types.Autocollect.Parser, new[]{ "EnabledAt", "ToBeDisabledAt" }, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeviceConfigurationStatusGrouped), global::Keyapis.Device.V1.DeviceConfigurationStatusGrouped.Parser, new[]{ "DeviceId", "Statuses" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.CameraStatus), global::Keyapis.Device.V1.CameraStatus.Parser, new[]{ "Id", "StatusType", "ErrorMessage" }, null, new[]{ typeof(global::Keyapis.Device.V1.CameraStatus.Types.StatusType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.SyncStatus), global::Keyapis.Device.V1.SyncStatus.Parser, new[]{ "StatusType", "ErrorMessage", "RetryCount", "SuccessfulAt", "SyncAt" }, null, new[]{ typeof(global::Keyapis.Device.V1.SyncStatus.Types.StatusType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceRequest), global::Keyapis.Device.V1.GetDeviceRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceResponse), global::Keyapis.Device.V1.GetDeviceResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceLiteRequest), global::Keyapis.Device.V1.GetDeviceLiteRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceLiteResponse), global::Keyapis.Device.V1.GetDeviceLiteResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceRequest), global::Keyapis.Device.V1.PostDeviceRequest.Parser, new[]{ "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceResponse), global::Keyapis.Device.V1.PostDeviceResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceResponse.Types.Error), global::Keyapis.Device.V1.PostDeviceResponse.Types.Error.Parser, new[]{ "Validation", "Saving" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceListRequest), global::Keyapis.Device.V1.GetDeviceListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceListResponse), global::Keyapis.Device.V1.GetDeviceListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceListResponse.Types.Error), global::Keyapis.Device.V1.GetDeviceListResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceCountRequest), global::Keyapis.Device.V1.GetDeviceCountRequest.Parser, new[]{ "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceCountResponse), global::Keyapis.Device.V1.GetDeviceCountResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceCountResponse.Types.Error), global::Keyapis.Device.V1.GetDeviceCountResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PutDeviceRequest), global::Keyapis.Device.V1.PutDeviceRequest.Parser, new[]{ "Id", "PresetId", "IsSl3ModeEnabled" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PutDeviceResponse), global::Keyapis.Device.V1.PutDeviceResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceInstallPresetRequest), global::Keyapis.Device.V1.PostDeviceInstallPresetRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceInstallPresetResponse), global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error), global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error.Parser, new[]{ "PresetStatusIsProcessing" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error.Types.PresetStatusIsProcessing), global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error.Types.PresetStatusIsProcessing.Parser, null, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceReplaceRequest), global::Keyapis.Device.V1.PostDeviceReplaceRequest.Parser, new[]{ "Id", "Host", "MacAddress", "SerialNumber", "Login" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceReplaceResponse), global::Keyapis.Device.V1.PostDeviceReplaceResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error), global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Parser, new[]{ "ValidationError", "HostExists", "MacAddressExists", "SerialNumberExists", "LoginExists", "LoginIsRequired", "ReinstallError" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.HostExists), global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.HostExists.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.MacAddressExists), global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.MacAddressExists.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.SerialNumberExists), global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.SerialNumberExists.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginExists), global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginExists.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginIsRequired), global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginIsRequired.Parser, null, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceReconfigureRequest), global::Keyapis.Device.V1.PostDeviceReconfigureRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceReconfigureResponse), global::Keyapis.Device.V1.PostDeviceReconfigureResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceReconfigureResponse.Types.Error), global::Keyapis.Device.V1.PostDeviceReconfigureResponse.Types.Error.Parser, new[]{ "ValidationError", "ReinstallError" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceConfigurationStatusesRequest), global::Keyapis.Device.V1.GetDeviceConfigurationStatusesRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse), global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Statuses), global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Statuses.Parser, new[]{ "DeviceConfigurationStatuses", "CameraStatus", "SyncStatus", "DeviceStatusType" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Error), global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Error.Parser, new[]{ "ValidationError" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceConfigurationStatusRequest), global::Keyapis.Device.V1.PostDeviceConfigurationStatusRequest.Parser, new[]{ "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceConfigurationStatusResponse), global::Keyapis.Device.V1.PostDeviceConfigurationStatusResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.PostDeviceConfigurationStatusResponse.Types.Error), global::Keyapis.Device.V1.PostDeviceConfigurationStatusResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListRequest), global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListResponse), global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListResponse.Types.Error), global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedCountRequest), global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedCountRequest.Parser, new[]{ "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedCountResponse), global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedCountResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeleteDeviceRequest), global::Keyapis.Device.V1.DeleteDeviceRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeleteDeviceResponse), global::Keyapis.Device.V1.DeleteDeviceResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ReinstallError), global::Keyapis.Device.V1.ReinstallError.Parser, new[]{ "SipLoginIsMissing" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ReinstallError.Types.SipLoginIsMissing), global::Keyapis.Device.V1.ReinstallError.Types.SipLoginIsMissing.Parser, null, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeviceFilter), global::Keyapis.Device.V1.DeviceFilter.Parser, new[]{ "OwnerCompanyIds", "Text", "FlatgrammIds", "SerialNumbers", "DeviceStatusTypes", "DeviceTypes", "DeviceModelTypes", "IsConciergeEnabled", "IsDispatchingEnabled", "DispatchingPublicNumber", "HardwareVersion", "SoftwareVersion", "IsAutochangePasswordEnabled", "AbcNumber", "CameraIds", "SyncStatusStatusTypes", "SyncRetryCountLessThen", "BeginSyncSuccessfulAt", "EndSyncSuccessfulAt", "BeginSyncAt", "EndSyncAt" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DevicePaging), global::Keyapis.Device.V1.DevicePaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.Device.V1.DevicePaging.Types.OrderByType), typeof(global::Keyapis.Device.V1.DevicePaging.Types.DirectionType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedFilter), global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedFilter.Parser, new[]{ "DeviceIds", "ConfigurationTypes", "StatusTypes", "IsReadyForRetry", "RetryCountLessThen" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging), global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.OrderByType), typeof(global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.DirectionType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.ValidationError), global::Keyapis.Device.V1.ValidationError.Parser, new[]{ "Path", "Message" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Preset), global::Keyapis.Device.V1.Preset.Parser, new[]{ "Id", "Title", "MrfIds", "RfIds", "Description", "CreatedAt", "ChangedAt", "StatusType", "Sip", "Ntp", "Syslog", "Rooms", "VideoConfig", "Dtmf", "FaceRecognition" }, null, new[]{ typeof(global::Keyapis.Device.V1.Preset.Types.StatusType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Preset.Types.Sip), global::Keyapis.Device.V1.Preset.Types.Sip.Parser, new[]{ "Host", "Port", "RegHost", "RegPort", "ProxyHost", "ProxyPort" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Preset.Types.Ntp), global::Keyapis.Device.V1.Preset.Types.Ntp.Parser, new[]{ "Host", "Port" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Preset.Types.Syslog), global::Keyapis.Device.V1.Preset.Types.Syslog.Parser, new[]{ "Host", "Port", "ProtocolType" }, null, new[]{ typeof(global::Keyapis.Device.V1.Preset.Types.Syslog.Types.ProtocolType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Preset.Types.Room), global::Keyapis.Device.V1.Preset.Types.Room.Parser, new[]{ "Phone", "Num" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Preset.Types.VideoConfig), global::Keyapis.Device.V1.Preset.Types.VideoConfig.Parser, new[]{ "QualityType", "RtspUser" }, null, new[]{ typeof(global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.QualityType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.RtspUser), global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.RtspUser.Parser, new[]{ "Username", "Password" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Preset.Types.Dtmf), global::Keyapis.Device.V1.Preset.Types.Dtmf.Parser, new[]{ "Code", "RelayIndex" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Preset.Types.FaceRecognition), global::Keyapis.Device.V1.Preset.Types.FaceRecognition.Parser, new[]{ "Host", "AltHost", "Endpoint", "AuthToken", "ConfigurationType", "OriginId", "GroupIds" }, null, new[]{ typeof(global::Keyapis.Device.V1.Preset.Types.FaceRecognition.Types.ConfigurationType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Preset.Types.SavingError), global::Keyapis.Device.V1.Preset.Types.SavingError.Parser, new[]{ "Conflict", "NotAllowedForDefault" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Preset.Types.SavingError.Types.Conflict), global::Keyapis.Device.V1.Preset.Types.SavingError.Types.Conflict.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.Preset.Types.SavingError.Types.NotAllowedForDefault), global::Keyapis.Device.V1.Preset.Types.SavingError.Types.NotAllowedForDefault.Parser, null, null, null, null, null)})}) })); } #endregion } #region Messages /// /// Устройство. /// # Описание модели /// public sealed partial class Device : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Device()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 Device() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Device(Device other) : this() { id_ = other.id_; presetId_ = other.presetId_; presetStatusType_ = other.presetStatusType_; presetConfiguredAt_ = other.presetConfiguredAt_ != null ? other.presetConfiguredAt_.Clone() : null; isSl3ModeEnabled_ = other.isSl3ModeEnabled_; type_ = other.type_; macAddress_ = other.macAddress_; title_ = other.title_; modelType_ = other.modelType_; ownerCompanyId_ = other.ownerCompanyId_; serialNumber_ = other.serialNumber_; flatgrammId_ = other.flatgrammId_; utcOffset_ = other.utcOffset_; statusType_ = other.statusType_; IpAddress = other.IpAddress; Port = other.Port; sputnikCredentials_ = other.sputnikCredentials_ != null ? other.sputnikCredentials_.Clone() : null; location_ = other.location_ != null ? other.location_.Clone() : null; CameraId = other.CameraId; tags_ = other.tags_.Clone(); settings_ = other.settings_ != null ? other.settings_.Clone() : null; hardwareVersion_ = other.hardwareVersion_; softwareVersion_ = other.softwareVersion_; dispatching_ = other.dispatching_ != null ? other.dispatching_.Clone() : null; sipTrunk_ = other.sipTrunk_ != null ? other.sipTrunk_.Clone() : null; redirect_ = other.redirect_ != null ? other.redirect_.Clone() : null; autochangePasswordSettings_ = other.autochangePasswordSettings_ != null ? other.autochangePasswordSettings_.Clone() : null; credentials_ = other.credentials_.Clone(); SipAccount = other.SipAccount; syncStatus_ = other.syncStatus_ != null ? other.syncStatus_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Device Clone() { return new Device(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор. /// # Диапазон: 0..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } /// Field number for the "preset_id" field. public const int PresetIdFieldNumber = 2; private int presetId_; /// /// Идентификатор пресета. /// # Диапазон: 1..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int PresetId { get { return presetId_; } set { presetId_ = value; } } /// Field number for the "preset_status_type" field. public const int PresetStatusTypeFieldNumber = 3; private global::Keyapis.Device.V1.Device.Types.PresetStatusType presetStatusType_ = global::Keyapis.Device.V1.Device.Types.PresetStatusType.Unknown; /// /// Статус установки пресета. /// # Поле вычисляется в коде приложения /// [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.PresetStatusType PresetStatusType { get { return presetStatusType_; } set { presetStatusType_ = value; } } /// Field number for the "preset_configured_at" field. public const int PresetConfiguredAtFieldNumber = 4; private global::Google.Protobuf.WellKnownTypes.Timestamp presetConfiguredAt_; /// /// Дата установки пресета на устройство. /// # Тип: DateTime /// [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp PresetConfiguredAt { get { return presetConfiguredAt_; } set { presetConfiguredAt_ = value; } } /// Field number for the "is_sl3_mode_enabled" field. public const int IsSl3ModeEnabledFieldNumber = 5; private bool isSl3ModeEnabled_; /// /// Настройка режима SL3 /// [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsSl3ModeEnabled { get { return isSl3ModeEnabled_; } set { isSl3ModeEnabled_ = value; } } /// Field number for the "type" field. public const int TypeFieldNumber = 6; private global::Keyapis.Device.V1.Device.Types.Type type_ = global::Keyapis.Device.V1.Device.Types.Type.Unknown; /// /// Тип назначения устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Type Type { get { return type_; } set { type_ = value; } } /// Field number for the "mac_address" field. public const int MacAddressFieldNumber = 7; private string macAddress_ = ""; /// /// MAC-адрес. /// # Диапазон: 17..17. /// # Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string MacAddress { get { return macAddress_; } set { macAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "title" field. public const int TitleFieldNumber = 8; private string title_ = ""; /// /// Наименование устройства. /// # Диапазон: 3..256 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Title { get { return title_; } set { title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "model_type" field. public const int ModelTypeFieldNumber = 9; private global::Keyapis.Device.V1.Device.Types.ModelType modelType_ = global::Keyapis.Device.V1.Device.Types.ModelType.Unknown; /// /// Модель устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.ModelType ModelType { get { return modelType_; } set { modelType_ = value; } } /// Field number for the "owner_company_id" field. public const int OwnerCompanyIdFieldNumber = 10; private int ownerCompanyId_; /// /// Идентификатор компании владельца. /// # Диапазон: 1..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int OwnerCompanyId { get { return ownerCompanyId_; } set { ownerCompanyId_ = value; } } /// Field number for the "serial_number" field. public const int SerialNumberFieldNumber = 11; private string serialNumber_ = ""; /// /// Серийный номер. /// # Диапазон: 1..16 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SerialNumber { get { return serialNumber_; } set { serialNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "flatgramm_id" field. public const int FlatgrammIdFieldNumber = 12; private int flatgrammId_; /// /// Идентификатор квартирограммы. /// # Диапазон: 1..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int FlatgrammId { get { return flatgrammId_; } set { flatgrammId_ = value; } } /// Field number for the "utc_offset" field. public const int UtcOffsetFieldNumber = 13; private int utcOffset_; /// /// Смещение таймзоны в минутах. /// # Диапазон: -720..840 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int UtcOffset { get { return utcOffset_; } set { utcOffset_ = value; } } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 14; private global::Keyapis.Device.V1.Device.Types.StatusType statusType_ = global::Keyapis.Device.V1.Device.Types.StatusType.Unknown; /// /// Статус устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } /// Field number for the "ip_address" field. public const int IpAddressFieldNumber = 15; private static readonly pb::FieldCodec _single_ipAddress_codec = pb::FieldCodec.ForClassWrapper(122); private string ipAddress_; /// /// Сетевой адрес. /// # Диапазон: 0..250 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string IpAddress { get { return ipAddress_; } set { ipAddress_ = value; } } /// Field number for the "port" field. public const int PortFieldNumber = 16; private static readonly pb::FieldCodec _single_port_codec = pb::FieldCodec.ForStructWrapper(130); private int? port_; /// /// Сетевой порт. /// # Диапазон: 0..65535 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? Port { get { return port_; } set { port_ = value; } } /// Field number for the "sputnik_credentials" field. public const int SputnikCredentialsFieldNumber = 17; private global::Keyapis.Device.V1.Device.Types.SputnikCredentials sputnikCredentials_; /// /// Учетные данные. /// Используется для устройств с типом модели SPUTNIK_IO /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SputnikCredentials SputnikCredentials { get { return sputnikCredentials_; } set { sputnikCredentials_ = value; } } /// Field number for the "location" field. public const int LocationFieldNumber = 18; private global::Keyapis.Device.V1.Device.Types.Location location_; /// /// Координаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Location Location { get { return location_; } set { location_ = value; } } /// Field number for the "camera_id" field. public const int CameraIdFieldNumber = 19; private static readonly pb::FieldCodec _single_cameraId_codec = pb::FieldCodec.ForClassWrapper(154); private string cameraId_; /// /// Идентификатор камеры uid. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CameraId { get { return cameraId_; } set { cameraId_ = value; } } /// Field number for the "tags" field. public const int TagsFieldNumber = 20; private static readonly pb::FieldCodec _repeated_tags_codec = pb::FieldCodec.ForString(162); private readonly pbc::RepeatedField tags_ = new pbc::RepeatedField(); /// /// Список тегов устройства. /// # Диапазон: 1..50 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Tags { get { return tags_; } } /// Field number for the "settings" field. public const int SettingsFieldNumber = 21; private global::Keyapis.Device.V1.Device.Types.Settings settings_; /// /// Настройки устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Settings Settings { get { return settings_; } set { settings_ = value; } } /// Field number for the "hardware_version" field. public const int HardwareVersionFieldNumber = 22; 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 "software_version" field. public const int SoftwareVersionFieldNumber = 23; private string softwareVersion_ = ""; /// /// Версия программного обеспенения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SoftwareVersion { get { return softwareVersion_; } set { softwareVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "dispatching" field. public const int DispatchingFieldNumber = 24; private global::Keyapis.Device.V1.Device.Types.Dispatching dispatching_; /// /// Диспетчеризации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Dispatching Dispatching { get { return dispatching_; } set { dispatching_ = value; } } /// Field number for the "sip_trunk" field. public const int SipTrunkFieldNumber = 25; private global::Keyapis.Device.V1.Device.Types.SipTrunk sipTrunk_; /// /// Транк /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SipTrunk SipTrunk { get { return sipTrunk_; } set { sipTrunk_ = value; } } /// Field number for the "redirect" field. public const int RedirectFieldNumber = 26; private global::Keyapis.Device.V1.Device.Types.Redirect redirect_; /// /// Переадресация /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Redirect Redirect { get { return redirect_; } set { redirect_ = value; } } /// Field number for the "autochange_password_settings" field. public const int AutochangePasswordSettingsFieldNumber = 27; private global::Keyapis.Device.V1.Device.Types.AutochangePasswordSettings autochangePasswordSettings_; /// /// Настройки автозамены пароля /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.AutochangePasswordSettings AutochangePasswordSettings { get { return autochangePasswordSettings_; } set { autochangePasswordSettings_ = value; } } /// Field number for the "credentials" field. public const int CredentialsFieldNumber = 28; private static readonly pb::FieldCodec _repeated_credentials_codec = pb::FieldCodec.ForMessage(226, global::Keyapis.Device.V1.Device.Types.Credentials.Parser); private readonly pbc::RepeatedField credentials_ = new pbc::RepeatedField(); /// /// Учетные данные пользователей /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Credentials { get { return credentials_; } } /// Field number for the "sip_account" field. public const int SipAccountFieldNumber = 29; private static readonly pb::FieldCodec _single_sipAccount_codec = pb::FieldCodec.ForClassWrapper(234); private string sipAccount_; /// /// Сип-аккаунт /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipAccount { get { return sipAccount_; } set { sipAccount_ = value; } } /// Field number for the "sync_status" field. public const int SyncStatusFieldNumber = 30; private global::Keyapis.Device.V1.SyncStatus syncStatus_; /// /// Статус синхронизации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.SyncStatus SyncStatus { get { return syncStatus_; } set { syncStatus_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Device); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Device other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (PresetId != other.PresetId) return false; if (PresetStatusType != other.PresetStatusType) return false; if (!object.Equals(PresetConfiguredAt, other.PresetConfiguredAt)) return false; if (IsSl3ModeEnabled != other.IsSl3ModeEnabled) return false; if (Type != other.Type) return false; if (MacAddress != other.MacAddress) return false; if (Title != other.Title) return false; if (ModelType != other.ModelType) return false; if (OwnerCompanyId != other.OwnerCompanyId) return false; if (SerialNumber != other.SerialNumber) return false; if (FlatgrammId != other.FlatgrammId) return false; if (UtcOffset != other.UtcOffset) return false; if (StatusType != other.StatusType) return false; if (IpAddress != other.IpAddress) return false; if (Port != other.Port) return false; if (!object.Equals(SputnikCredentials, other.SputnikCredentials)) return false; if (!object.Equals(Location, other.Location)) return false; if (CameraId != other.CameraId) return false; if(!tags_.Equals(other.tags_)) return false; if (!object.Equals(Settings, other.Settings)) return false; if (HardwareVersion != other.HardwareVersion) return false; if (SoftwareVersion != other.SoftwareVersion) return false; if (!object.Equals(Dispatching, other.Dispatching)) return false; if (!object.Equals(SipTrunk, other.SipTrunk)) return false; if (!object.Equals(Redirect, other.Redirect)) return false; if (!object.Equals(AutochangePasswordSettings, other.AutochangePasswordSettings)) return false; if(!credentials_.Equals(other.credentials_)) return false; if (SipAccount != other.SipAccount) return false; if (!object.Equals(SyncStatus, other.SyncStatus)) 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 (PresetId != 0) hash ^= PresetId.GetHashCode(); if (PresetStatusType != global::Keyapis.Device.V1.Device.Types.PresetStatusType.Unknown) hash ^= PresetStatusType.GetHashCode(); if (presetConfiguredAt_ != null) hash ^= PresetConfiguredAt.GetHashCode(); if (IsSl3ModeEnabled != false) hash ^= IsSl3ModeEnabled.GetHashCode(); if (Type != global::Keyapis.Device.V1.Device.Types.Type.Unknown) hash ^= Type.GetHashCode(); if (MacAddress.Length != 0) hash ^= MacAddress.GetHashCode(); if (Title.Length != 0) hash ^= Title.GetHashCode(); if (ModelType != global::Keyapis.Device.V1.Device.Types.ModelType.Unknown) hash ^= ModelType.GetHashCode(); if (OwnerCompanyId != 0) hash ^= OwnerCompanyId.GetHashCode(); if (SerialNumber.Length != 0) hash ^= SerialNumber.GetHashCode(); if (FlatgrammId != 0) hash ^= FlatgrammId.GetHashCode(); if (UtcOffset != 0) hash ^= UtcOffset.GetHashCode(); if (StatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); if (ipAddress_ != null) hash ^= IpAddress.GetHashCode(); if (port_ != null) hash ^= Port.GetHashCode(); if (sputnikCredentials_ != null) hash ^= SputnikCredentials.GetHashCode(); if (location_ != null) hash ^= Location.GetHashCode(); if (cameraId_ != null) hash ^= CameraId.GetHashCode(); hash ^= tags_.GetHashCode(); if (settings_ != null) hash ^= Settings.GetHashCode(); if (HardwareVersion.Length != 0) hash ^= HardwareVersion.GetHashCode(); if (SoftwareVersion.Length != 0) hash ^= SoftwareVersion.GetHashCode(); if (dispatching_ != null) hash ^= Dispatching.GetHashCode(); if (sipTrunk_ != null) hash ^= SipTrunk.GetHashCode(); if (redirect_ != null) hash ^= Redirect.GetHashCode(); if (autochangePasswordSettings_ != null) hash ^= AutochangePasswordSettings.GetHashCode(); hash ^= credentials_.GetHashCode(); if (sipAccount_ != null) hash ^= SipAccount.GetHashCode(); if (syncStatus_ != null) hash ^= SyncStatus.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 (PresetId != 0) { output.WriteRawTag(16); output.WriteInt32(PresetId); } if (PresetStatusType != global::Keyapis.Device.V1.Device.Types.PresetStatusType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) PresetStatusType); } if (presetConfiguredAt_ != null) { output.WriteRawTag(34); output.WriteMessage(PresetConfiguredAt); } if (IsSl3ModeEnabled != false) { output.WriteRawTag(40); output.WriteBool(IsSl3ModeEnabled); } if (Type != global::Keyapis.Device.V1.Device.Types.Type.Unknown) { output.WriteRawTag(48); output.WriteEnum((int) Type); } if (MacAddress.Length != 0) { output.WriteRawTag(58); output.WriteString(MacAddress); } if (Title.Length != 0) { output.WriteRawTag(66); output.WriteString(Title); } if (ModelType != global::Keyapis.Device.V1.Device.Types.ModelType.Unknown) { output.WriteRawTag(72); output.WriteEnum((int) ModelType); } if (OwnerCompanyId != 0) { output.WriteRawTag(80); output.WriteInt32(OwnerCompanyId); } if (SerialNumber.Length != 0) { output.WriteRawTag(90); output.WriteString(SerialNumber); } if (FlatgrammId != 0) { output.WriteRawTag(96); output.WriteInt32(FlatgrammId); } if (UtcOffset != 0) { output.WriteRawTag(104); output.WriteInt32(UtcOffset); } if (StatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) { output.WriteRawTag(112); output.WriteEnum((int) StatusType); } if (ipAddress_ != null) { _single_ipAddress_codec.WriteTagAndValue(output, IpAddress); } if (port_ != null) { _single_port_codec.WriteTagAndValue(output, Port); } if (sputnikCredentials_ != null) { output.WriteRawTag(138, 1); output.WriteMessage(SputnikCredentials); } if (location_ != null) { output.WriteRawTag(146, 1); output.WriteMessage(Location); } if (cameraId_ != null) { _single_cameraId_codec.WriteTagAndValue(output, CameraId); } tags_.WriteTo(output, _repeated_tags_codec); if (settings_ != null) { output.WriteRawTag(170, 1); output.WriteMessage(Settings); } if (HardwareVersion.Length != 0) { output.WriteRawTag(178, 1); output.WriteString(HardwareVersion); } if (SoftwareVersion.Length != 0) { output.WriteRawTag(186, 1); output.WriteString(SoftwareVersion); } if (dispatching_ != null) { output.WriteRawTag(194, 1); output.WriteMessage(Dispatching); } if (sipTrunk_ != null) { output.WriteRawTag(202, 1); output.WriteMessage(SipTrunk); } if (redirect_ != null) { output.WriteRawTag(210, 1); output.WriteMessage(Redirect); } if (autochangePasswordSettings_ != null) { output.WriteRawTag(218, 1); output.WriteMessage(AutochangePasswordSettings); } credentials_.WriteTo(output, _repeated_credentials_codec); if (sipAccount_ != null) { _single_sipAccount_codec.WriteTagAndValue(output, SipAccount); } if (syncStatus_ != null) { output.WriteRawTag(242, 1); output.WriteMessage(SyncStatus); } 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 (PresetId != 0) { output.WriteRawTag(16); output.WriteInt32(PresetId); } if (PresetStatusType != global::Keyapis.Device.V1.Device.Types.PresetStatusType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) PresetStatusType); } if (presetConfiguredAt_ != null) { output.WriteRawTag(34); output.WriteMessage(PresetConfiguredAt); } if (IsSl3ModeEnabled != false) { output.WriteRawTag(40); output.WriteBool(IsSl3ModeEnabled); } if (Type != global::Keyapis.Device.V1.Device.Types.Type.Unknown) { output.WriteRawTag(48); output.WriteEnum((int) Type); } if (MacAddress.Length != 0) { output.WriteRawTag(58); output.WriteString(MacAddress); } if (Title.Length != 0) { output.WriteRawTag(66); output.WriteString(Title); } if (ModelType != global::Keyapis.Device.V1.Device.Types.ModelType.Unknown) { output.WriteRawTag(72); output.WriteEnum((int) ModelType); } if (OwnerCompanyId != 0) { output.WriteRawTag(80); output.WriteInt32(OwnerCompanyId); } if (SerialNumber.Length != 0) { output.WriteRawTag(90); output.WriteString(SerialNumber); } if (FlatgrammId != 0) { output.WriteRawTag(96); output.WriteInt32(FlatgrammId); } if (UtcOffset != 0) { output.WriteRawTag(104); output.WriteInt32(UtcOffset); } if (StatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) { output.WriteRawTag(112); output.WriteEnum((int) StatusType); } if (ipAddress_ != null) { _single_ipAddress_codec.WriteTagAndValue(ref output, IpAddress); } if (port_ != null) { _single_port_codec.WriteTagAndValue(ref output, Port); } if (sputnikCredentials_ != null) { output.WriteRawTag(138, 1); output.WriteMessage(SputnikCredentials); } if (location_ != null) { output.WriteRawTag(146, 1); output.WriteMessage(Location); } if (cameraId_ != null) { _single_cameraId_codec.WriteTagAndValue(ref output, CameraId); } tags_.WriteTo(ref output, _repeated_tags_codec); if (settings_ != null) { output.WriteRawTag(170, 1); output.WriteMessage(Settings); } if (HardwareVersion.Length != 0) { output.WriteRawTag(178, 1); output.WriteString(HardwareVersion); } if (SoftwareVersion.Length != 0) { output.WriteRawTag(186, 1); output.WriteString(SoftwareVersion); } if (dispatching_ != null) { output.WriteRawTag(194, 1); output.WriteMessage(Dispatching); } if (sipTrunk_ != null) { output.WriteRawTag(202, 1); output.WriteMessage(SipTrunk); } if (redirect_ != null) { output.WriteRawTag(210, 1); output.WriteMessage(Redirect); } if (autochangePasswordSettings_ != null) { output.WriteRawTag(218, 1); output.WriteMessage(AutochangePasswordSettings); } credentials_.WriteTo(ref output, _repeated_credentials_codec); if (sipAccount_ != null) { _single_sipAccount_codec.WriteTagAndValue(ref output, SipAccount); } if (syncStatus_ != null) { output.WriteRawTag(242, 1); output.WriteMessage(SyncStatus); } 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 (PresetId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PresetId); } if (PresetStatusType != global::Keyapis.Device.V1.Device.Types.PresetStatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PresetStatusType); } if (presetConfiguredAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PresetConfiguredAt); } if (IsSl3ModeEnabled != false) { size += 1 + 1; } if (Type != global::Keyapis.Device.V1.Device.Types.Type.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (MacAddress.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(MacAddress); } if (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (ModelType != global::Keyapis.Device.V1.Device.Types.ModelType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModelType); } if (OwnerCompanyId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(OwnerCompanyId); } if (SerialNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SerialNumber); } if (FlatgrammId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(FlatgrammId); } if (UtcOffset != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(UtcOffset); } if (StatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } if (ipAddress_ != null) { size += _single_ipAddress_codec.CalculateSizeWithTag(IpAddress); } if (port_ != null) { size += _single_port_codec.CalculateSizeWithTag(Port); } if (sputnikCredentials_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(SputnikCredentials); } if (location_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(Location); } if (cameraId_ != null) { size += _single_cameraId_codec.CalculateSizeWithTag(CameraId); } size += tags_.CalculateSize(_repeated_tags_codec); if (settings_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(Settings); } if (HardwareVersion.Length != 0) { size += 2 + pb::CodedOutputStream.ComputeStringSize(HardwareVersion); } if (SoftwareVersion.Length != 0) { size += 2 + pb::CodedOutputStream.ComputeStringSize(SoftwareVersion); } if (dispatching_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(Dispatching); } if (sipTrunk_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(SipTrunk); } if (redirect_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(Redirect); } if (autochangePasswordSettings_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(AutochangePasswordSettings); } size += credentials_.CalculateSize(_repeated_credentials_codec); if (sipAccount_ != null) { size += _single_sipAccount_codec.CalculateSizeWithTag(SipAccount); } if (syncStatus_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(SyncStatus); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Device other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.PresetId != 0) { PresetId = other.PresetId; } if (other.PresetStatusType != global::Keyapis.Device.V1.Device.Types.PresetStatusType.Unknown) { PresetStatusType = other.PresetStatusType; } if (other.presetConfiguredAt_ != null) { if (presetConfiguredAt_ == null) { PresetConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } PresetConfiguredAt.MergeFrom(other.PresetConfiguredAt); } if (other.IsSl3ModeEnabled != false) { IsSl3ModeEnabled = other.IsSl3ModeEnabled; } if (other.Type != global::Keyapis.Device.V1.Device.Types.Type.Unknown) { Type = other.Type; } if (other.MacAddress.Length != 0) { MacAddress = other.MacAddress; } if (other.Title.Length != 0) { Title = other.Title; } if (other.ModelType != global::Keyapis.Device.V1.Device.Types.ModelType.Unknown) { ModelType = other.ModelType; } if (other.OwnerCompanyId != 0) { OwnerCompanyId = other.OwnerCompanyId; } if (other.SerialNumber.Length != 0) { SerialNumber = other.SerialNumber; } if (other.FlatgrammId != 0) { FlatgrammId = other.FlatgrammId; } if (other.UtcOffset != 0) { UtcOffset = other.UtcOffset; } if (other.StatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) { StatusType = other.StatusType; } if (other.ipAddress_ != null) { if (ipAddress_ == null || other.IpAddress != "") { IpAddress = other.IpAddress; } } if (other.port_ != null) { if (port_ == null || other.Port != 0) { Port = other.Port; } } if (other.sputnikCredentials_ != null) { if (sputnikCredentials_ == null) { SputnikCredentials = new global::Keyapis.Device.V1.Device.Types.SputnikCredentials(); } SputnikCredentials.MergeFrom(other.SputnikCredentials); } if (other.location_ != null) { if (location_ == null) { Location = new global::Keyapis.Device.V1.Device.Types.Location(); } Location.MergeFrom(other.Location); } if (other.cameraId_ != null) { if (cameraId_ == null || other.CameraId != "") { CameraId = other.CameraId; } } tags_.Add(other.tags_); if (other.settings_ != null) { if (settings_ == null) { Settings = new global::Keyapis.Device.V1.Device.Types.Settings(); } Settings.MergeFrom(other.Settings); } if (other.HardwareVersion.Length != 0) { HardwareVersion = other.HardwareVersion; } if (other.SoftwareVersion.Length != 0) { SoftwareVersion = other.SoftwareVersion; } if (other.dispatching_ != null) { if (dispatching_ == null) { Dispatching = new global::Keyapis.Device.V1.Device.Types.Dispatching(); } Dispatching.MergeFrom(other.Dispatching); } if (other.sipTrunk_ != null) { if (sipTrunk_ == null) { SipTrunk = new global::Keyapis.Device.V1.Device.Types.SipTrunk(); } SipTrunk.MergeFrom(other.SipTrunk); } if (other.redirect_ != null) { if (redirect_ == null) { Redirect = new global::Keyapis.Device.V1.Device.Types.Redirect(); } Redirect.MergeFrom(other.Redirect); } if (other.autochangePasswordSettings_ != null) { if (autochangePasswordSettings_ == null) { AutochangePasswordSettings = new global::Keyapis.Device.V1.Device.Types.AutochangePasswordSettings(); } AutochangePasswordSettings.MergeFrom(other.AutochangePasswordSettings); } credentials_.Add(other.credentials_); if (other.sipAccount_ != null) { if (sipAccount_ == null || other.SipAccount != "") { SipAccount = other.SipAccount; } } if (other.syncStatus_ != null) { if (syncStatus_ == null) { SyncStatus = new global::Keyapis.Device.V1.SyncStatus(); } SyncStatus.MergeFrom(other.SyncStatus); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } case 16: { PresetId = input.ReadInt32(); break; } case 24: { PresetStatusType = (global::Keyapis.Device.V1.Device.Types.PresetStatusType) input.ReadEnum(); break; } case 34: { if (presetConfiguredAt_ == null) { PresetConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(PresetConfiguredAt); break; } case 40: { IsSl3ModeEnabled = input.ReadBool(); break; } case 48: { Type = (global::Keyapis.Device.V1.Device.Types.Type) input.ReadEnum(); break; } case 58: { MacAddress = input.ReadString(); break; } case 66: { Title = input.ReadString(); break; } case 72: { ModelType = (global::Keyapis.Device.V1.Device.Types.ModelType) input.ReadEnum(); break; } case 80: { OwnerCompanyId = input.ReadInt32(); break; } case 90: { SerialNumber = input.ReadString(); break; } case 96: { FlatgrammId = input.ReadInt32(); break; } case 104: { UtcOffset = input.ReadInt32(); break; } case 112: { StatusType = (global::Keyapis.Device.V1.Device.Types.StatusType) input.ReadEnum(); break; } case 122: { string value = _single_ipAddress_codec.Read(input); if (ipAddress_ == null || value != "") { IpAddress = value; } break; } case 130: { int? value = _single_port_codec.Read(input); if (port_ == null || value != 0) { Port = value; } break; } case 138: { if (sputnikCredentials_ == null) { SputnikCredentials = new global::Keyapis.Device.V1.Device.Types.SputnikCredentials(); } input.ReadMessage(SputnikCredentials); break; } case 146: { if (location_ == null) { Location = new global::Keyapis.Device.V1.Device.Types.Location(); } input.ReadMessage(Location); break; } case 154: { string value = _single_cameraId_codec.Read(input); if (cameraId_ == null || value != "") { CameraId = value; } break; } case 162: { tags_.AddEntriesFrom(input, _repeated_tags_codec); break; } case 170: { if (settings_ == null) { Settings = new global::Keyapis.Device.V1.Device.Types.Settings(); } input.ReadMessage(Settings); break; } case 178: { HardwareVersion = input.ReadString(); break; } case 186: { SoftwareVersion = input.ReadString(); break; } case 194: { if (dispatching_ == null) { Dispatching = new global::Keyapis.Device.V1.Device.Types.Dispatching(); } input.ReadMessage(Dispatching); break; } case 202: { if (sipTrunk_ == null) { SipTrunk = new global::Keyapis.Device.V1.Device.Types.SipTrunk(); } input.ReadMessage(SipTrunk); break; } case 210: { if (redirect_ == null) { Redirect = new global::Keyapis.Device.V1.Device.Types.Redirect(); } input.ReadMessage(Redirect); break; } case 218: { if (autochangePasswordSettings_ == null) { AutochangePasswordSettings = new global::Keyapis.Device.V1.Device.Types.AutochangePasswordSettings(); } input.ReadMessage(AutochangePasswordSettings); break; } case 226: { credentials_.AddEntriesFrom(input, _repeated_credentials_codec); break; } case 234: { string value = _single_sipAccount_codec.Read(input); if (sipAccount_ == null || value != "") { SipAccount = value; } break; } case 242: { if (syncStatus_ == null) { SyncStatus = new global::Keyapis.Device.V1.SyncStatus(); } input.ReadMessage(SyncStatus); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } case 16: { PresetId = input.ReadInt32(); break; } case 24: { PresetStatusType = (global::Keyapis.Device.V1.Device.Types.PresetStatusType) input.ReadEnum(); break; } case 34: { if (presetConfiguredAt_ == null) { PresetConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(PresetConfiguredAt); break; } case 40: { IsSl3ModeEnabled = input.ReadBool(); break; } case 48: { Type = (global::Keyapis.Device.V1.Device.Types.Type) input.ReadEnum(); break; } case 58: { MacAddress = input.ReadString(); break; } case 66: { Title = input.ReadString(); break; } case 72: { ModelType = (global::Keyapis.Device.V1.Device.Types.ModelType) input.ReadEnum(); break; } case 80: { OwnerCompanyId = input.ReadInt32(); break; } case 90: { SerialNumber = input.ReadString(); break; } case 96: { FlatgrammId = input.ReadInt32(); break; } case 104: { UtcOffset = input.ReadInt32(); break; } case 112: { StatusType = (global::Keyapis.Device.V1.Device.Types.StatusType) input.ReadEnum(); break; } case 122: { string value = _single_ipAddress_codec.Read(ref input); if (ipAddress_ == null || value != "") { IpAddress = value; } break; } case 130: { int? value = _single_port_codec.Read(ref input); if (port_ == null || value != 0) { Port = value; } break; } case 138: { if (sputnikCredentials_ == null) { SputnikCredentials = new global::Keyapis.Device.V1.Device.Types.SputnikCredentials(); } input.ReadMessage(SputnikCredentials); break; } case 146: { if (location_ == null) { Location = new global::Keyapis.Device.V1.Device.Types.Location(); } input.ReadMessage(Location); break; } case 154: { string value = _single_cameraId_codec.Read(ref input); if (cameraId_ == null || value != "") { CameraId = value; } break; } case 162: { tags_.AddEntriesFrom(ref input, _repeated_tags_codec); break; } case 170: { if (settings_ == null) { Settings = new global::Keyapis.Device.V1.Device.Types.Settings(); } input.ReadMessage(Settings); break; } case 178: { HardwareVersion = input.ReadString(); break; } case 186: { SoftwareVersion = input.ReadString(); break; } case 194: { if (dispatching_ == null) { Dispatching = new global::Keyapis.Device.V1.Device.Types.Dispatching(); } input.ReadMessage(Dispatching); break; } case 202: { if (sipTrunk_ == null) { SipTrunk = new global::Keyapis.Device.V1.Device.Types.SipTrunk(); } input.ReadMessage(SipTrunk); break; } case 210: { if (redirect_ == null) { Redirect = new global::Keyapis.Device.V1.Device.Types.Redirect(); } input.ReadMessage(Redirect); break; } case 218: { if (autochangePasswordSettings_ == null) { AutochangePasswordSettings = new global::Keyapis.Device.V1.Device.Types.AutochangePasswordSettings(); } input.ReadMessage(AutochangePasswordSettings); break; } case 226: { credentials_.AddEntriesFrom(ref input, _repeated_credentials_codec); break; } case 234: { string value = _single_sipAccount_codec.Read(ref input); if (sipAccount_ == null || value != "") { SipAccount = value; } break; } case 242: { if (syncStatus_ == null) { SyncStatus = new global::Keyapis.Device.V1.SyncStatus(); } input.ReadMessage(SyncStatus); break; } } } } #endif #region Nested types /// Container for nested types declared in the Device message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник статусов установки пресета. /// # Тип: byte /// [global::System.ObsoleteAttribute] public enum PresetStatusType { /// /// Значение не указано /// [global::System.ObsoleteAttribute] [pbr::OriginalName("PRESET_STATUS_TYPE_UNKNOWN")] Unknown = 0, /// /// Устанавливается /// [global::System.ObsoleteAttribute] [pbr::OriginalName("PROCESSING")] Processing = 1, /// /// Установлен /// [global::System.ObsoleteAttribute] [pbr::OriginalName("SUCCESS")] Success = 2, /// /// Ошибка /// [global::System.ObsoleteAttribute] [pbr::OriginalName("ERROR")] Error = 3, } /// /// Справочник назначений типов устройств (в качестве чего выступает устройство). /// # Тип: byte /// public enum Type { /// /// Значение не указано /// [pbr::OriginalName("TYPE_UNKNOWN")] Unknown = 0, /// /// Домофон /// [pbr::OriginalName("INTERCOM")] Intercom = 1, /// /// Видеокамера /// [global::System.ObsoleteAttribute] [pbr::OriginalName("VIDEOCAMERA")] Videocamera = 2, /// /// Шлагбаум /// [pbr::OriginalName("BARRIER")] Barrier = 3, /// /// Калитка /// [pbr::OriginalName("GATE")] Gate = 4, /// /// СКУД /// [global::System.ObsoleteAttribute] [pbr::OriginalName("ACCESS_CONTROL_PANEL")] AccessControlPanel = 5, /// /// Наружняя видеокамера /// [global::System.ObsoleteAttribute] [pbr::OriginalName("OUTDOOR_CAMERA")] OutdoorCamera = 6, } /// /// Модель устройства. /// # Тип: byte /// public enum ModelType { /// /// Значение не указано /// [pbr::OriginalName("MODEL_TYPE_UNKNOWN")] Unknown = 0, /// /// Модель RODOS-8 /// [pbr::OriginalName("RODOS8")] Rodos8 = 1, /// /// Модель Beward /// [pbr::OriginalName("BEWARD")] Beward = 2, /// /// Модель QTECH /// [pbr::OriginalName("QTECH")] Qtech = 3, /// /// Модель Натекс /// [pbr::OriginalName("NATEKS")] Nateks = 4, /// /// Модель ТНБ /// [pbr::OriginalName("TNB")] Tnb = 5, /// /// Модель Maxet Line /// [pbr::OriginalName("MAXETLINE")] Maxetline = 6, /// /// Модель Двойная открывашка /// [pbr::OriginalName("TNB_DO2")] TnbDo2 = 7, /// /// Модель Beward DS86017CP /// [pbr::OriginalName("BEWARD_DS86017CP")] BewardDs86017Cp = 8, /// /// Модель Beward DS85006MP /// [pbr::OriginalName("BEWARD_DS85006MP")] BewardDs85006Mp = 9, /// /// Модель Dahua DHI-VTO2101E-P /// [pbr::OriginalName("DAHUA_VTO2101E_P")] DahuaVto2101EP = 10, /// /// Модель Hikvision DS-KV8155-IM /// [pbr::OriginalName("HIKVISION_DS_KV8155_IM")] HikvisionDsKv8155Im = 11, /// /// Модель RODOS-8-2 /// [pbr::OriginalName("RODOS8_2")] Rodos82 = 12, /// /// Модель Akuvox R29C /// [pbr::OriginalName("AKUVOX_R29C")] AkuvoxR29C = 13, /// /// Модель Safe-logic /// [pbr::OriginalName("SAFE_LOGIC")] SafeLogic = 14, /// /// Модель Beward DS86006AP /// [pbr::OriginalName("BEWARD_DS86006AP")] BewardDs86006Ap = 15, /// /// Модель Спутник Ио /// [pbr::OriginalName("SPUTNIK_IO")] SputnikIo = 16, /// /// Модель Beward c FR /// [pbr::OriginalName("BEWARD_FR")] BewardFr = 17, /// /// Модель QTECH с FR /// [pbr::OriginalName("QTECH_FR")] QtechFr = 18, /// /// Модель Eltex IPA-ER-10 /// [pbr::OriginalName("ELTEX_IPA_ER_010")] EltexIpaEr010 = 19, /// /// Модель Beward с новым API ключей /// [pbr::OriginalName("BEWARD_MIFARE")] BewardMifare = 20, /// /// Модель BAS-IP AA-12FB /// [pbr::OriginalName("BAS_IP_AA_12FB")] BasIpAa12Fb = 21, /// /// Модель Akuvox X915S /// [pbr::OriginalName("AKUVOX_X915S")] AkuvoxX915S = 22, /// /// Модель Rubetek RV-3434 /// [pbr::OriginalName("RUBETEK_RV_3434")] RubetekRv3434 = 23, /// /// Модель Сокол плюс /// [pbr::OriginalName("SOKOL_PLUS")] SokolPlus = 24, /// /// Модель Beward Эконом /// [pbr::OriginalName("BEWARD_LOW_COST")] BewardLowCost = 25, } /// /// Справочник статусов устройства. /// # Тип: byte /// public enum StatusType { /// /// Значение не указано /// [pbr::OriginalName("STATUS_TYPE_UNKNOWN")] Unknown = 0, /// /// Не в сети /// [pbr::OriginalName("OFFLINE")] Offline = 1, /// /// В сети /// [pbr::OriginalName("ONLINE")] Online = 2, } /// /// Учетные данные. /// Используется для устройств с типом модели SPUTNIK_IO /// public sealed partial class SputnikCredentials : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SputnikCredentials()); 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.Device.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SputnikCredentials() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SputnikCredentials(SputnikCredentials other) : this() { login_ = other.login_; Password = other.Password; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SputnikCredentials Clone() { return new SputnikCredentials(this); } /// Field number for the "login" field. public const int LoginFieldNumber = 1; private string login_ = ""; /// /// Логин. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Login { get { return login_; } set { login_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "password" field. public const int PasswordFieldNumber = 2; private static readonly pb::FieldCodec _single_password_codec = pb::FieldCodec.ForClassWrapper(18); private string password_; /// /// Пароль. /// На чтение выводится только для пользователя с типом service /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SputnikCredentials); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SputnikCredentials other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Login != other.Login) 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 (Login.Length != 0) hash ^= Login.GetHashCode(); if (password_ != null) 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 (Login.Length != 0) { output.WriteRawTag(10); output.WriteString(Login); } if (password_ != null) { _single_password_codec.WriteTagAndValue(output, 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 (Login.Length != 0) { output.WriteRawTag(10); output.WriteString(Login); } if (password_ != null) { _single_password_codec.WriteTagAndValue(ref output, 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 (Login.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Login); } if (password_ != null) { size += _single_password_codec.CalculateSizeWithTag(Password); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SputnikCredentials other) { if (other == null) { return; } if (other.Login.Length != 0) { Login = other.Login; } if (other.password_ != null) { if (password_ == null || other.Password != "") { 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: { Login = input.ReadString(); break; } case 18: { string value = _single_password_codec.Read(input); if (password_ == null || value != "") { Password = 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: { Login = input.ReadString(); break; } case 18: { string value = _single_password_codec.Read(ref input); if (password_ == null || value != "") { Password = value; } break; } } } } #endif } /// /// Координаты /// public sealed partial class Location : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Location()); 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.Device.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Location() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Location(Location other) : this() { latitude_ = other.latitude_; longitude_ = other.longitude_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Location Clone() { return new Location(this); } /// Field number for the "latitude" field. public const int LatitudeFieldNumber = 1; private float latitude_; /// /// Широта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Latitude { get { return latitude_; } set { latitude_ = value; } } /// Field number for the "longitude" field. public const int LongitudeFieldNumber = 2; private float longitude_; /// /// Долгота /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float Longitude { get { return longitude_; } set { longitude_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Location); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Location other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Latitude, other.Latitude)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Longitude, other.Longitude)) 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 (Latitude != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Latitude); if (Longitude != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Longitude); 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 (Latitude != 0F) { output.WriteRawTag(13); output.WriteFloat(Latitude); } if (Longitude != 0F) { output.WriteRawTag(21); output.WriteFloat(Longitude); } 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 (Latitude != 0F) { output.WriteRawTag(13); output.WriteFloat(Latitude); } if (Longitude != 0F) { output.WriteRawTag(21); output.WriteFloat(Longitude); } 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 (Latitude != 0F) { size += 1 + 4; } if (Longitude != 0F) { size += 1 + 4; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Location other) { if (other == null) { return; } if (other.Latitude != 0F) { Latitude = other.Latitude; } if (other.Longitude != 0F) { Longitude = other.Longitude; } _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 13: { Latitude = input.ReadFloat(); break; } case 21: { Longitude = input.ReadFloat(); 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 13: { Latitude = input.ReadFloat(); break; } case 21: { Longitude = input.ReadFloat(); break; } } } } #endif } /// /// Настройки устройства /// 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.Device.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 Settings() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Settings(Settings other) : this() { coordinateMatrixSwitch_ = other.coordinateMatrixSwitch_ != null ? other.coordinateMatrixSwitch_.Clone() : null; conciergeCall_ = other.conciergeCall_ != null ? other.conciergeCall_.Clone() : null; autocollect_ = other.autocollect_ != null ? other.autocollect_.Clone() : null; faceRecognition_ = other.faceRecognition_ != null ? other.faceRecognition_.Clone() : null; sl3Mode_ = other.sl3Mode_ != null ? other.sl3Mode_.Clone() : null; emergencyCall_ = other.emergencyCall_ != null ? other.emergencyCall_.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 "coordinate_matrix_switch" field. public const int CoordinateMatrixSwitchFieldNumber = 1; private global::Keyapis.Device.V1.Device.Types.Settings.Types.CoordinateMatrixSwitch coordinateMatrixSwitch_; /// /// Настройки ККМ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Settings.Types.CoordinateMatrixSwitch CoordinateMatrixSwitch { get { return coordinateMatrixSwitch_; } set { coordinateMatrixSwitch_ = value; } } /// Field number for the "concierge_call" field. public const int ConciergeCallFieldNumber = 2; private global::Keyapis.Device.V1.Device.Types.Settings.Types.ConciergeCall conciergeCall_; /// /// Настройки вызова консьержа. /// Требуется капабилити CONCIERGE_CALL /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Settings.Types.ConciergeCall ConciergeCall { get { return conciergeCall_; } set { conciergeCall_ = value; } } /// Field number for the "autocollect" field. public const int AutocollectFieldNumber = 3; private global::Keyapis.Device.V1.Device.Types.Settings.Types.Autocollect autocollect_; /// /// Настройки автосбора /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Settings.Types.Autocollect Autocollect { get { return autocollect_; } set { autocollect_ = value; } } /// Field number for the "face_recognition" field. public const int FaceRecognitionFieldNumber = 4; private global::Keyapis.Device.V1.Device.Types.Settings.Types.FaceRecognition faceRecognition_; /// /// Настройки распознования лиц /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Settings.Types.FaceRecognition FaceRecognition { get { return faceRecognition_; } set { faceRecognition_ = value; } } /// Field number for the "sl3_mode" field. public const int Sl3ModeFieldNumber = 5; private global::Keyapis.Device.V1.Device.Types.Settings.Types.Sl3Mode sl3Mode_; /// /// Настройки режима SL3 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Settings.Types.Sl3Mode Sl3Mode { get { return sl3Mode_; } set { sl3Mode_ = value; } } /// Field number for the "emergency_call" field. public const int EmergencyCallFieldNumber = 6; private global::Keyapis.Device.V1.Device.Types.Settings.Types.EmergencyCall emergencyCall_; /// /// Настройки вызова экстренной службы. /// Только для устройств с CapabilityType=EMERGENCY_CALL /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Settings.Types.EmergencyCall EmergencyCall { get { return emergencyCall_; } set { emergencyCall_ = 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(CoordinateMatrixSwitch, other.CoordinateMatrixSwitch)) return false; if (!object.Equals(ConciergeCall, other.ConciergeCall)) return false; if (!object.Equals(Autocollect, other.Autocollect)) return false; if (!object.Equals(FaceRecognition, other.FaceRecognition)) return false; if (!object.Equals(Sl3Mode, other.Sl3Mode)) return false; if (!object.Equals(EmergencyCall, other.EmergencyCall)) 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 (coordinateMatrixSwitch_ != null) hash ^= CoordinateMatrixSwitch.GetHashCode(); if (conciergeCall_ != null) hash ^= ConciergeCall.GetHashCode(); if (autocollect_ != null) hash ^= Autocollect.GetHashCode(); if (faceRecognition_ != null) hash ^= FaceRecognition.GetHashCode(); if (sl3Mode_ != null) hash ^= Sl3Mode.GetHashCode(); if (emergencyCall_ != null) hash ^= EmergencyCall.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 (coordinateMatrixSwitch_ != null) { output.WriteRawTag(10); output.WriteMessage(CoordinateMatrixSwitch); } if (conciergeCall_ != null) { output.WriteRawTag(18); output.WriteMessage(ConciergeCall); } if (autocollect_ != null) { output.WriteRawTag(26); output.WriteMessage(Autocollect); } if (faceRecognition_ != null) { output.WriteRawTag(34); output.WriteMessage(FaceRecognition); } if (sl3Mode_ != null) { output.WriteRawTag(42); output.WriteMessage(Sl3Mode); } if (emergencyCall_ != null) { output.WriteRawTag(50); output.WriteMessage(EmergencyCall); } 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 (coordinateMatrixSwitch_ != null) { output.WriteRawTag(10); output.WriteMessage(CoordinateMatrixSwitch); } if (conciergeCall_ != null) { output.WriteRawTag(18); output.WriteMessage(ConciergeCall); } if (autocollect_ != null) { output.WriteRawTag(26); output.WriteMessage(Autocollect); } if (faceRecognition_ != null) { output.WriteRawTag(34); output.WriteMessage(FaceRecognition); } if (sl3Mode_ != null) { output.WriteRawTag(42); output.WriteMessage(Sl3Mode); } if (emergencyCall_ != null) { output.WriteRawTag(50); output.WriteMessage(EmergencyCall); } 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 (coordinateMatrixSwitch_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CoordinateMatrixSwitch); } if (conciergeCall_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConciergeCall); } if (autocollect_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Autocollect); } if (faceRecognition_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(FaceRecognition); } if (sl3Mode_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sl3Mode); } if (emergencyCall_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmergencyCall); } 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.coordinateMatrixSwitch_ != null) { if (coordinateMatrixSwitch_ == null) { CoordinateMatrixSwitch = new global::Keyapis.Device.V1.Device.Types.Settings.Types.CoordinateMatrixSwitch(); } CoordinateMatrixSwitch.MergeFrom(other.CoordinateMatrixSwitch); } if (other.conciergeCall_ != null) { if (conciergeCall_ == null) { ConciergeCall = new global::Keyapis.Device.V1.Device.Types.Settings.Types.ConciergeCall(); } ConciergeCall.MergeFrom(other.ConciergeCall); } if (other.autocollect_ != null) { if (autocollect_ == null) { Autocollect = new global::Keyapis.Device.V1.Device.Types.Settings.Types.Autocollect(); } Autocollect.MergeFrom(other.Autocollect); } if (other.faceRecognition_ != null) { if (faceRecognition_ == null) { FaceRecognition = new global::Keyapis.Device.V1.Device.Types.Settings.Types.FaceRecognition(); } FaceRecognition.MergeFrom(other.FaceRecognition); } if (other.sl3Mode_ != null) { if (sl3Mode_ == null) { Sl3Mode = new global::Keyapis.Device.V1.Device.Types.Settings.Types.Sl3Mode(); } Sl3Mode.MergeFrom(other.Sl3Mode); } if (other.emergencyCall_ != null) { if (emergencyCall_ == null) { EmergencyCall = new global::Keyapis.Device.V1.Device.Types.Settings.Types.EmergencyCall(); } EmergencyCall.MergeFrom(other.EmergencyCall); } _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 (coordinateMatrixSwitch_ == null) { CoordinateMatrixSwitch = new global::Keyapis.Device.V1.Device.Types.Settings.Types.CoordinateMatrixSwitch(); } input.ReadMessage(CoordinateMatrixSwitch); break; } case 18: { if (conciergeCall_ == null) { ConciergeCall = new global::Keyapis.Device.V1.Device.Types.Settings.Types.ConciergeCall(); } input.ReadMessage(ConciergeCall); break; } case 26: { if (autocollect_ == null) { Autocollect = new global::Keyapis.Device.V1.Device.Types.Settings.Types.Autocollect(); } input.ReadMessage(Autocollect); break; } case 34: { if (faceRecognition_ == null) { FaceRecognition = new global::Keyapis.Device.V1.Device.Types.Settings.Types.FaceRecognition(); } input.ReadMessage(FaceRecognition); break; } case 42: { if (sl3Mode_ == null) { Sl3Mode = new global::Keyapis.Device.V1.Device.Types.Settings.Types.Sl3Mode(); } input.ReadMessage(Sl3Mode); break; } case 50: { if (emergencyCall_ == null) { EmergencyCall = new global::Keyapis.Device.V1.Device.Types.Settings.Types.EmergencyCall(); } input.ReadMessage(EmergencyCall); 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 (coordinateMatrixSwitch_ == null) { CoordinateMatrixSwitch = new global::Keyapis.Device.V1.Device.Types.Settings.Types.CoordinateMatrixSwitch(); } input.ReadMessage(CoordinateMatrixSwitch); break; } case 18: { if (conciergeCall_ == null) { ConciergeCall = new global::Keyapis.Device.V1.Device.Types.Settings.Types.ConciergeCall(); } input.ReadMessage(ConciergeCall); break; } case 26: { if (autocollect_ == null) { Autocollect = new global::Keyapis.Device.V1.Device.Types.Settings.Types.Autocollect(); } input.ReadMessage(Autocollect); break; } case 34: { if (faceRecognition_ == null) { FaceRecognition = new global::Keyapis.Device.V1.Device.Types.Settings.Types.FaceRecognition(); } input.ReadMessage(FaceRecognition); break; } case 42: { if (sl3Mode_ == null) { Sl3Mode = new global::Keyapis.Device.V1.Device.Types.Settings.Types.Sl3Mode(); } input.ReadMessage(Sl3Mode); break; } case 50: { if (emergencyCall_ == null) { EmergencyCall = new global::Keyapis.Device.V1.Device.Types.Settings.Types.EmergencyCall(); } input.ReadMessage(EmergencyCall); 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 { /// /// Настройки ККМ. /// Коммутатор координатно-матричный (устройство для подключения аналоговых трубок к домофону) /// public sealed partial class CoordinateMatrixSwitch : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CoordinateMatrixSwitch()); 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.Device.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 CoordinateMatrixSwitch() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CoordinateMatrixSwitch(CoordinateMatrixSwitch other) : this() { isEnabled_ = other.isEnabled_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CoordinateMatrixSwitch Clone() { return new CoordinateMatrixSwitch(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 CoordinateMatrixSwitch); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CoordinateMatrixSwitch 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(CoordinateMatrixSwitch 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 ConciergeCall : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConciergeCall()); 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.Device.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 ConciergeCall() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ConciergeCall(ConciergeCall other) : this() { isEnabled_ = other.isEnabled_; orpon_ = other.orpon_; roomNumber_ = other.roomNumber_; sipNumber_ = other.sipNumber_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ConciergeCall Clone() { return new ConciergeCall(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; } } /// Field number for the "orpon" field. public const int OrponFieldNumber = 2; private long orpon_; /// /// Идентификатор ОРПОН /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Orpon { get { return orpon_; } set { orpon_ = value; } } /// Field number for the "room_number" field. public const int RoomNumberFieldNumber = 3; private string roomNumber_ = ""; /// /// Номер квартиры. /// # Диапазон: 1..5 /// [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 "sip_number" field. public const int SipNumberFieldNumber = 4; private string sipNumber_ = ""; /// /// Номер сип-трубки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipNumber { get { return sipNumber_; } set { sipNumber_ = 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 ConciergeCall); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ConciergeCall other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsEnabled != other.IsEnabled) return false; if (Orpon != other.Orpon) return false; if (RoomNumber != other.RoomNumber) return false; if (SipNumber != other.SipNumber) 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 (Orpon != 0L) hash ^= Orpon.GetHashCode(); if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode(); if (SipNumber.Length != 0) hash ^= SipNumber.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 (Orpon != 0L) { output.WriteRawTag(16); output.WriteInt64(Orpon); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } if (SipNumber.Length != 0) { output.WriteRawTag(34); output.WriteString(SipNumber); } 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 (Orpon != 0L) { output.WriteRawTag(16); output.WriteInt64(Orpon); } if (RoomNumber.Length != 0) { output.WriteRawTag(26); output.WriteString(RoomNumber); } if (SipNumber.Length != 0) { output.WriteRawTag(34); output.WriteString(SipNumber); } 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 (Orpon != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Orpon); } if (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } if (SipNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SipNumber); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ConciergeCall other) { if (other == null) { return; } if (other.IsEnabled != false) { IsEnabled = other.IsEnabled; } if (other.Orpon != 0L) { Orpon = other.Orpon; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } if (other.SipNumber.Length != 0) { SipNumber = other.SipNumber; } _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 16: { Orpon = input.ReadInt64(); break; } case 26: { RoomNumber = input.ReadString(); break; } case 34: { SipNumber = 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: { IsEnabled = input.ReadBool(); break; } case 16: { Orpon = input.ReadInt64(); break; } case 26: { RoomNumber = input.ReadString(); break; } case 34: { SipNumber = input.ReadString(); 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.Device.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 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 } /// /// Настройки распознования лиц /// 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.Device.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 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 } /// /// Настройки режима SL3 /// public sealed partial class Sl3Mode : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Sl3Mode()); 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.Device.Types.Settings.Descriptor.NestedTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Sl3Mode() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Sl3Mode(Sl3Mode other) : this() { isEnabled_ = other.isEnabled_; EncryptionProfileId = other.EncryptionProfileId; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Sl3Mode Clone() { return new Sl3Mode(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; } } /// Field number for the "encryption_profile_id" field. public const int EncryptionProfileIdFieldNumber = 2; private static readonly pb::FieldCodec _single_encryptionProfileId_codec = pb::FieldCodec.ForClassWrapper(18); private string encryptionProfileId_; /// /// Идентификатор профиля шифрования /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string EncryptionProfileId { get { return encryptionProfileId_; } set { encryptionProfileId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Sl3Mode); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Sl3Mode other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsEnabled != other.IsEnabled) return false; if (EncryptionProfileId != other.EncryptionProfileId) 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 (encryptionProfileId_ != null) hash ^= EncryptionProfileId.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 (encryptionProfileId_ != null) { _single_encryptionProfileId_codec.WriteTagAndValue(output, EncryptionProfileId); } 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 (encryptionProfileId_ != null) { _single_encryptionProfileId_codec.WriteTagAndValue(ref output, EncryptionProfileId); } 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 (encryptionProfileId_ != null) { size += _single_encryptionProfileId_codec.CalculateSizeWithTag(EncryptionProfileId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Sl3Mode other) { if (other == null) { return; } if (other.IsEnabled != false) { IsEnabled = other.IsEnabled; } if (other.encryptionProfileId_ != null) { if (encryptionProfileId_ == null || other.EncryptionProfileId != "") { EncryptionProfileId = other.EncryptionProfileId; } } _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: { string value = _single_encryptionProfileId_codec.Read(input); if (encryptionProfileId_ == null || value != "") { EncryptionProfileId = value; } break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { IsEnabled = input.ReadBool(); break; } case 18: { string value = _single_encryptionProfileId_codec.Read(ref input); if (encryptionProfileId_ == null || value != "") { EncryptionProfileId = value; } break; } } } } #endif } /// /// Настройки вызова экстренной службы. /// Только для устройств с CapabilityType=EMERGENCY_CALL /// public sealed partial class EmergencyCall : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EmergencyCall()); 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.Device.Types.Settings.Descriptor.NestedTypes[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 EmergencyCall() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EmergencyCall(EmergencyCall other) : this() { isCallAvailable_ = other.isCallAvailable_; emergencyNumber_ = other.emergencyNumber_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EmergencyCall Clone() { return new EmergencyCall(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_number" field. public const int EmergencyNumberFieldNumber = 2; 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"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EmergencyCall); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EmergencyCall other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsCallAvailable != other.IsCallAvailable) return false; if (EmergencyNumber != other.EmergencyNumber) 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 (EmergencyNumber.Length != 0) hash ^= EmergencyNumber.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 (EmergencyNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(EmergencyNumber); } 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 (EmergencyNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(EmergencyNumber); } 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 (EmergencyNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(EmergencyNumber); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EmergencyCall other) { if (other == null) { return; } if (other.IsCallAvailable != false) { IsCallAvailable = other.IsCallAvailable; } if (other.EmergencyNumber.Length != 0) { EmergencyNumber = other.EmergencyNumber; } _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: { EmergencyNumber = 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: { IsCallAvailable = input.ReadBool(); break; } case 18: { EmergencyNumber = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Диспетчеризации /// public sealed partial class Dispatching : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Dispatching()); 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.Device.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 Dispatching() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Dispatching(Dispatching other) : this() { isEnabled_ = other.isEnabled_; PublicIdentity = other.PublicIdentity; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Dispatching Clone() { return new Dispatching(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; } } /// Field number for the "public_identity" field. public const int PublicIdentityFieldNumber = 2; private static readonly pb::FieldCodec _single_publicIdentity_codec = pb::FieldCodec.ForClassWrapper(18); private string publicIdentity_; /// /// Публичный номер. /// # Паттерн: /^[1-9]\d{3,7}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PublicIdentity { get { return publicIdentity_; } set { publicIdentity_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Dispatching); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Dispatching other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsEnabled != other.IsEnabled) return false; if (PublicIdentity != other.PublicIdentity) 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 (publicIdentity_ != null) hash ^= PublicIdentity.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 (publicIdentity_ != null) { _single_publicIdentity_codec.WriteTagAndValue(output, PublicIdentity); } 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 (publicIdentity_ != null) { _single_publicIdentity_codec.WriteTagAndValue(ref output, PublicIdentity); } 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 (publicIdentity_ != null) { size += _single_publicIdentity_codec.CalculateSizeWithTag(PublicIdentity); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Dispatching other) { if (other == null) { return; } if (other.IsEnabled != false) { IsEnabled = other.IsEnabled; } if (other.publicIdentity_ != null) { if (publicIdentity_ == null || other.PublicIdentity != "") { PublicIdentity = other.PublicIdentity; } } _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: { string value = _single_publicIdentity_codec.Read(input); if (publicIdentity_ == null || value != "") { PublicIdentity = value; } break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { IsEnabled = input.ReadBool(); break; } case 18: { string value = _single_publicIdentity_codec.Read(ref input); if (publicIdentity_ == null || value != "") { PublicIdentity = value; } break; } } } } #endif } /// /// Транк. /// Параметры для соединения между устрйоством и телефонной сетью общего пользования. /// Требуется капабилити SIP_CALLS /// public sealed partial class SipTrunk : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SipTrunk()); 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.Device.Descriptor.NestedTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipTrunk() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipTrunk(SipTrunk other) : this() { abcNumber_ = other.abcNumber_; Host = other.Host; Port = other.Port; sipType_ = other.sipType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipTrunk Clone() { return new SipTrunk(this); } /// Field number for the "abc_number" field. public const int AbcNumberFieldNumber = 1; private string abcNumber_ = ""; /// /// ABC-номер. /// # Паттерн: /^(\+7)(\d{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 "host" field. public const int HostFieldNumber = 2; private static readonly pb::FieldCodec _single_host_codec = pb::FieldCodec.ForClassWrapper(18); private string host_; /// /// Хост. /// # Диапазон: 0..250 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = value; } } /// Field number for the "port" field. public const int PortFieldNumber = 3; private static readonly pb::FieldCodec _single_port_codec = pb::FieldCodec.ForStructWrapper(26); private int? port_; /// /// Порт. /// # Диапазон: 0..65535 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? Port { get { return port_; } set { port_ = value; } } /// Field number for the "sip_type" field. public const int SipTypeFieldNumber = 4; private global::Keyapis.Device.V1.Device.Types.SipTrunk.Types.SipType sipType_ = global::Keyapis.Device.V1.Device.Types.SipTrunk.Types.SipType.Unknown; /// /// Тип сети связи /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SipTrunk.Types.SipType SipType { get { return sipType_; } set { sipType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SipTrunk); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SipTrunk other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (AbcNumber != other.AbcNumber) return false; if (Host != other.Host) return false; if (Port != other.Port) return false; if (SipType != other.SipType) 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 (AbcNumber.Length != 0) hash ^= AbcNumber.GetHashCode(); if (host_ != null) hash ^= Host.GetHashCode(); if (port_ != null) hash ^= Port.GetHashCode(); if (SipType != global::Keyapis.Device.V1.Device.Types.SipTrunk.Types.SipType.Unknown) hash ^= SipType.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 (AbcNumber.Length != 0) { output.WriteRawTag(10); output.WriteString(AbcNumber); } if (host_ != null) { _single_host_codec.WriteTagAndValue(output, Host); } if (port_ != null) { _single_port_codec.WriteTagAndValue(output, Port); } if (SipType != global::Keyapis.Device.V1.Device.Types.SipTrunk.Types.SipType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) SipType); } 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 (AbcNumber.Length != 0) { output.WriteRawTag(10); output.WriteString(AbcNumber); } if (host_ != null) { _single_host_codec.WriteTagAndValue(ref output, Host); } if (port_ != null) { _single_port_codec.WriteTagAndValue(ref output, Port); } if (SipType != global::Keyapis.Device.V1.Device.Types.SipTrunk.Types.SipType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) SipType); } 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 (AbcNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(AbcNumber); } if (host_ != null) { size += _single_host_codec.CalculateSizeWithTag(Host); } if (port_ != null) { size += _single_port_codec.CalculateSizeWithTag(Port); } if (SipType != global::Keyapis.Device.V1.Device.Types.SipTrunk.Types.SipType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SipType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SipTrunk other) { if (other == null) { return; } if (other.AbcNumber.Length != 0) { AbcNumber = other.AbcNumber; } if (other.host_ != null) { if (host_ == null || other.Host != "") { Host = other.Host; } } if (other.port_ != null) { if (port_ == null || other.Port != 0) { Port = other.Port; } } if (other.SipType != global::Keyapis.Device.V1.Device.Types.SipTrunk.Types.SipType.Unknown) { SipType = other.SipType; } _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: { AbcNumber = input.ReadString(); break; } case 18: { string value = _single_host_codec.Read(input); if (host_ == null || value != "") { Host = value; } break; } case 26: { int? value = _single_port_codec.Read(input); if (port_ == null || value != 0) { Port = value; } break; } case 32: { SipType = (global::Keyapis.Device.V1.Device.Types.SipTrunk.Types.SipType) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { AbcNumber = input.ReadString(); break; } case 18: { string value = _single_host_codec.Read(ref input); if (host_ == null || value != "") { Host = value; } break; } case 26: { int? value = _single_port_codec.Read(ref input); if (port_ == null || value != 0) { Port = value; } break; } case 32: { SipType = (global::Keyapis.Device.V1.Device.Types.SipTrunk.Types.SipType) input.ReadEnum(); break; } } } } #endif #region Nested types /// Container for nested types declared in the SipTrunk message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Тип сети связи. /// # Тип: byte /// public enum SipType { /// /// Значение не указано /// [pbr::OriginalName("SIP_TYPE_UNKNOWN")] Unknown = 0, /// /// Тип Viprtual IP Multimedia Subsystem /// [pbr::OriginalName("VIMS")] Vims = 1, /// /// Тип Next Generation Networks /// [pbr::OriginalName("NGN")] Ngn = 2, } } #endregion } /// /// Переадресация. /// Требуется капабилити SIP_CALLS /// public sealed partial class Redirect : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Redirect()); 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.Device.Descriptor.NestedTypes[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 Redirect() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Redirect(Redirect other) : this() { isEnabledSip_ = other.isEnabledSip_; isEnabledPhone_ = other.isEnabledPhone_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Redirect Clone() { return new Redirect(this); } /// Field number for the "is_enabled_sip" field. public const int IsEnabledSipFieldNumber = 1; private bool isEnabledSip_; /// /// Переадресация на SIP /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsEnabledSip { get { return isEnabledSip_; } set { isEnabledSip_ = value; } } /// Field number for the "is_enabled_phone" field. public const int IsEnabledPhoneFieldNumber = 2; private bool isEnabledPhone_; /// /// Переадресация на телефон /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsEnabledPhone { get { return isEnabledPhone_; } set { isEnabledPhone_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Redirect); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Redirect other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsEnabledSip != other.IsEnabledSip) return false; if (IsEnabledPhone != other.IsEnabledPhone) 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 (IsEnabledSip != false) hash ^= IsEnabledSip.GetHashCode(); if (IsEnabledPhone != false) hash ^= IsEnabledPhone.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 (IsEnabledSip != false) { output.WriteRawTag(8); output.WriteBool(IsEnabledSip); } if (IsEnabledPhone != false) { output.WriteRawTag(16); output.WriteBool(IsEnabledPhone); } 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 (IsEnabledSip != false) { output.WriteRawTag(8); output.WriteBool(IsEnabledSip); } if (IsEnabledPhone != false) { output.WriteRawTag(16); output.WriteBool(IsEnabledPhone); } 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 (IsEnabledSip != false) { size += 1 + 1; } if (IsEnabledPhone != 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(Redirect other) { if (other == null) { return; } if (other.IsEnabledSip != false) { IsEnabledSip = other.IsEnabledSip; } if (other.IsEnabledPhone != false) { IsEnabledPhone = other.IsEnabledPhone; } _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: { IsEnabledSip = input.ReadBool(); break; } case 16: { IsEnabledPhone = 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: { IsEnabledSip = input.ReadBool(); break; } case 16: { IsEnabledPhone = input.ReadBool(); break; } } } } #endif } /// /// Настройки автозамены пароля /// public sealed partial class AutochangePasswordSettings : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AutochangePasswordSettings()); 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.Device.Descriptor.NestedTypes[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 AutochangePasswordSettings() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AutochangePasswordSettings(AutochangePasswordSettings other) : this() { isEnabled_ = other.isEnabled_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AutochangePasswordSettings Clone() { return new AutochangePasswordSettings(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 AutochangePasswordSettings); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AutochangePasswordSettings 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(AutochangePasswordSettings 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 Credentials : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Credentials()); 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.Device.Descriptor.NestedTypes[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 Credentials() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Credentials(Credentials other) : this() { Login = other.Login; Password = other.Password; userAccessType_ = other.userAccessType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Credentials Clone() { return new Credentials(this); } /// Field number for the "login" field. public const int LoginFieldNumber = 1; private static readonly pb::FieldCodec _single_login_codec = pb::FieldCodec.ForClassWrapper(10); private string login_; /// /// Логин. /// # Диапазон: 0..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Login { get { return login_; } set { login_ = value; } } /// Field number for the "password" field. public const int PasswordFieldNumber = 2; private static readonly pb::FieldCodec _single_password_codec = pb::FieldCodec.ForClassWrapper(18); private string password_; /// /// Пароль. /// # Диапазон: 0..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Password { get { return password_; } set { password_ = value; } } /// Field number for the "user_access_type" field. public const int UserAccessTypeFieldNumber = 3; private global::Keyapis.Device.V1.Device.Types.Credentials.Types.UserAccessType userAccessType_ = global::Keyapis.Device.V1.Device.Types.Credentials.Types.UserAccessType.Unknown; /// /// Тип доступа пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Credentials.Types.UserAccessType UserAccessType { get { return userAccessType_; } set { userAccessType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Credentials); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Credentials other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Login != other.Login) return false; if (Password != other.Password) return false; if (UserAccessType != other.UserAccessType) 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 (login_ != null) hash ^= Login.GetHashCode(); if (password_ != null) hash ^= Password.GetHashCode(); if (UserAccessType != global::Keyapis.Device.V1.Device.Types.Credentials.Types.UserAccessType.Unknown) hash ^= UserAccessType.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 (login_ != null) { _single_login_codec.WriteTagAndValue(output, Login); } if (password_ != null) { _single_password_codec.WriteTagAndValue(output, Password); } if (UserAccessType != global::Keyapis.Device.V1.Device.Types.Credentials.Types.UserAccessType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) UserAccessType); } 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 (login_ != null) { _single_login_codec.WriteTagAndValue(ref output, Login); } if (password_ != null) { _single_password_codec.WriteTagAndValue(ref output, Password); } if (UserAccessType != global::Keyapis.Device.V1.Device.Types.Credentials.Types.UserAccessType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) UserAccessType); } 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 (login_ != null) { size += _single_login_codec.CalculateSizeWithTag(Login); } if (password_ != null) { size += _single_password_codec.CalculateSizeWithTag(Password); } if (UserAccessType != global::Keyapis.Device.V1.Device.Types.Credentials.Types.UserAccessType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) UserAccessType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Credentials other) { if (other == null) { return; } if (other.login_ != null) { if (login_ == null || other.Login != "") { Login = other.Login; } } if (other.password_ != null) { if (password_ == null || other.Password != "") { Password = other.Password; } } if (other.UserAccessType != global::Keyapis.Device.V1.Device.Types.Credentials.Types.UserAccessType.Unknown) { UserAccessType = other.UserAccessType; } _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: { string value = _single_login_codec.Read(input); if (login_ == null || value != "") { Login = value; } break; } case 18: { string value = _single_password_codec.Read(input); if (password_ == null || value != "") { Password = value; } break; } case 24: { UserAccessType = (global::Keyapis.Device.V1.Device.Types.Credentials.Types.UserAccessType) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { string value = _single_login_codec.Read(ref input); if (login_ == null || value != "") { Login = value; } break; } case 18: { string value = _single_password_codec.Read(ref input); if (password_ == null || value != "") { Password = value; } break; } case 24: { UserAccessType = (global::Keyapis.Device.V1.Device.Types.Credentials.Types.UserAccessType) input.ReadEnum(); break; } } } } #endif #region Nested types /// Container for nested types declared in the Credentials message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Тип доступа пользователя. /// # Тип: byte /// public enum UserAccessType { /// /// Значение не указано /// [pbr::OriginalName("USER_ACCESS_TYPE_UNKNOWN")] Unknown = 0, /// /// Доступ к api /// [pbr::OriginalName("API")] Api = 1, /// /// Доступ к web-интерфейсу /// [pbr::OriginalName("WEB")] Web = 2, /// /// Доступ к rtsp-потоку /// [pbr::OriginalName("RTSP")] Rtsp = 3, /// /// Полный доступ /// [pbr::OriginalName("SU")] Su = 4, } } #endregion } /// /// Ошибка сохранения. /// Эти проверки выполняются при работе с базой данных и сторонними сервисами /// public sealed partial class SavingError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SavingError()); 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.Device.Descriptor.NestedTypes[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 SavingError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SavingError(SavingError other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.MacAddressInvalid: MacAddressInvalid = other.MacAddressInvalid.Clone(); break; case ReasonOneofCase.SerialNumberInvalid: SerialNumberInvalid = other.SerialNumberInvalid.Clone(); break; case ReasonOneofCase.NotAllowedForType: NotAllowedForType = other.NotAllowedForType.Clone(); break; case ReasonOneofCase.NotAllowedForModel: NotAllowedForModel = other.NotAllowedForModel.Clone(); break; case ReasonOneofCase.SerialNumberForModelIsExist: SerialNumberForModelIsExist = other.SerialNumberForModelIsExist.Clone(); break; case ReasonOneofCase.MacAddressIsExist: MacAddressIsExist = other.MacAddressIsExist.Clone(); break; case ReasonOneofCase.CapabilityIsNotSupported: CapabilityIsNotSupported = other.CapabilityIsNotSupported.Clone(); break; case ReasonOneofCase.AbcNumberIsExistOnAnotherDevice: AbcNumberIsExistOnAnotherDevice = other.AbcNumberIsExistOnAnotherDevice.Clone(); break; case ReasonOneofCase.PublicIdentityIsExist: PublicIdentityIsExist = other.PublicIdentityIsExist.Clone(); break; case ReasonOneofCase.ConciergeRoomNotFound: ConciergeRoomNotFound = other.ConciergeRoomNotFound.Clone(); break; case ReasonOneofCase.LoginIsExist: LoginIsExist = other.LoginIsExist.Clone(); break; case ReasonOneofCase.CredentialsAreRequired: CredentialsAreRequired = other.CredentialsAreRequired.Clone(); break; case ReasonOneofCase.FieldIsNotSupported: FieldIsNotSupported = other.FieldIsNotSupported.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SavingError Clone() { return new SavingError(this); } /// Field number for the "mac_address_invalid" field. public const int MacAddressInvalidFieldNumber = 1; /// /// Переданный мак-адрес не валидный /// [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressInvalid MacAddressInvalid { get { return reasonCase_ == ReasonOneofCase.MacAddressInvalid ? (global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressInvalid) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.MacAddressInvalid; } } /// Field number for the "serial_number_invalid" field. public const int SerialNumberInvalidFieldNumber = 2; /// /// Переданный серийный номер не валидный /// [global::System.ObsoleteAttribute] [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberInvalid SerialNumberInvalid { get { return reasonCase_ == ReasonOneofCase.SerialNumberInvalid ? (global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberInvalid) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.SerialNumberInvalid; } } /// Field number for the "not_allowed_for_type" field. public const int NotAllowedForTypeFieldNumber = 3; /// /// Нельзя изменить тип назначения девайса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForType NotAllowedForType { get { return reasonCase_ == ReasonOneofCase.NotAllowedForType ? (global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForType) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.NotAllowedForType; } } /// Field number for the "not_allowed_for_model" field. public const int NotAllowedForModelFieldNumber = 4; /// /// Нельзя изменить модель девайса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForModel NotAllowedForModel { get { return reasonCase_ == ReasonOneofCase.NotAllowedForModel ? (global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForModel) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.NotAllowedForModel; } } /// Field number for the "serial_number_for_model_is_exist" field. public const int SerialNumberForModelIsExistFieldNumber = 5; /// /// Серийный номер для данной модели уже существует на платформе /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberForModelIsExist SerialNumberForModelIsExist { get { return reasonCase_ == ReasonOneofCase.SerialNumberForModelIsExist ? (global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberForModelIsExist) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.SerialNumberForModelIsExist; } } /// Field number for the "mac_address_is_exist" field. public const int MacAddressIsExistFieldNumber = 6; /// /// MAC-адрес уже существует на платформе /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressIsExist MacAddressIsExist { get { return reasonCase_ == ReasonOneofCase.MacAddressIsExist ? (global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressIsExist) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.MacAddressIsExist; } } /// Field number for the "capability_is_not_supported" field. public const int CapabilityIsNotSupportedFieldNumber = 7; /// /// Настройка не поддерживается /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError.Types.CapabilityIsNotSupported CapabilityIsNotSupported { get { return reasonCase_ == ReasonOneofCase.CapabilityIsNotSupported ? (global::Keyapis.Device.V1.Device.Types.SavingError.Types.CapabilityIsNotSupported) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.CapabilityIsNotSupported; } } /// Field number for the "abc_number_is_exist_on_another_device" field. public const int AbcNumberIsExistOnAnotherDeviceFieldNumber = 8; /// /// ABC-номер присвоен другому устройству /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError.Types.AbcNumberIsExistOnAnotherDevice AbcNumberIsExistOnAnotherDevice { get { return reasonCase_ == ReasonOneofCase.AbcNumberIsExistOnAnotherDevice ? (global::Keyapis.Device.V1.Device.Types.SavingError.Types.AbcNumberIsExistOnAnotherDevice) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.AbcNumberIsExistOnAnotherDevice; } } /// Field number for the "public_identity_is_exist" field. public const int PublicIdentityIsExistFieldNumber = 9; /// /// Публичный номер уже существует на платформе /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError.Types.PublicIdentityIsExist PublicIdentityIsExist { get { return reasonCase_ == ReasonOneofCase.PublicIdentityIsExist ? (global::Keyapis.Device.V1.Device.Types.SavingError.Types.PublicIdentityIsExist) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.PublicIdentityIsExist; } } /// Field number for the "concierge_room_not_found" field. public const int ConciergeRoomNotFoundFieldNumber = 10; /// /// Не найдена квартира для консьержа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError.Types.ConciergeRoomNotFound ConciergeRoomNotFound { get { return reasonCase_ == ReasonOneofCase.ConciergeRoomNotFound ? (global::Keyapis.Device.V1.Device.Types.SavingError.Types.ConciergeRoomNotFound) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.ConciergeRoomNotFound; } } /// Field number for the "login_is_exist" field. public const int LoginIsExistFieldNumber = 11; /// /// Логин уже существует на платформе /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError.Types.LoginIsExist LoginIsExist { get { return reasonCase_ == ReasonOneofCase.LoginIsExist ? (global::Keyapis.Device.V1.Device.Types.SavingError.Types.LoginIsExist) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.LoginIsExist; } } /// Field number for the "credentials_are_required" field. public const int CredentialsAreRequiredFieldNumber = 12; /// /// Отсутствуют реквизиты для модели "Спутник" /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError.Types.CredentialsAreRequired CredentialsAreRequired { get { return reasonCase_ == ReasonOneofCase.CredentialsAreRequired ? (global::Keyapis.Device.V1.Device.Types.SavingError.Types.CredentialsAreRequired) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.CredentialsAreRequired; } } /// Field number for the "field_is_not_supported" field. public const int FieldIsNotSupportedFieldNumber = 13; /// /// Переданное поле не поддерживается /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError.Types.FieldIsNotSupported FieldIsNotSupported { get { return reasonCase_ == ReasonOneofCase.FieldIsNotSupported ? (global::Keyapis.Device.V1.Device.Types.SavingError.Types.FieldIsNotSupported) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.FieldIsNotSupported; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, MacAddressInvalid = 1, SerialNumberInvalid = 2, NotAllowedForType = 3, NotAllowedForModel = 4, SerialNumberForModelIsExist = 5, MacAddressIsExist = 6, CapabilityIsNotSupported = 7, AbcNumberIsExistOnAnotherDevice = 8, PublicIdentityIsExist = 9, ConciergeRoomNotFound = 10, LoginIsExist = 11, CredentialsAreRequired = 12, FieldIsNotSupported = 13, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SavingError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SavingError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(MacAddressInvalid, other.MacAddressInvalid)) return false; if (!object.Equals(SerialNumberInvalid, other.SerialNumberInvalid)) return false; if (!object.Equals(NotAllowedForType, other.NotAllowedForType)) return false; if (!object.Equals(NotAllowedForModel, other.NotAllowedForModel)) return false; if (!object.Equals(SerialNumberForModelIsExist, other.SerialNumberForModelIsExist)) return false; if (!object.Equals(MacAddressIsExist, other.MacAddressIsExist)) return false; if (!object.Equals(CapabilityIsNotSupported, other.CapabilityIsNotSupported)) return false; if (!object.Equals(AbcNumberIsExistOnAnotherDevice, other.AbcNumberIsExistOnAnotherDevice)) return false; if (!object.Equals(PublicIdentityIsExist, other.PublicIdentityIsExist)) return false; if (!object.Equals(ConciergeRoomNotFound, other.ConciergeRoomNotFound)) return false; if (!object.Equals(LoginIsExist, other.LoginIsExist)) return false; if (!object.Equals(CredentialsAreRequired, other.CredentialsAreRequired)) return false; if (!object.Equals(FieldIsNotSupported, other.FieldIsNotSupported)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.MacAddressInvalid) hash ^= MacAddressInvalid.GetHashCode(); if (reasonCase_ == ReasonOneofCase.SerialNumberInvalid) hash ^= SerialNumberInvalid.GetHashCode(); if (reasonCase_ == ReasonOneofCase.NotAllowedForType) hash ^= NotAllowedForType.GetHashCode(); if (reasonCase_ == ReasonOneofCase.NotAllowedForModel) hash ^= NotAllowedForModel.GetHashCode(); if (reasonCase_ == ReasonOneofCase.SerialNumberForModelIsExist) hash ^= SerialNumberForModelIsExist.GetHashCode(); if (reasonCase_ == ReasonOneofCase.MacAddressIsExist) hash ^= MacAddressIsExist.GetHashCode(); if (reasonCase_ == ReasonOneofCase.CapabilityIsNotSupported) hash ^= CapabilityIsNotSupported.GetHashCode(); if (reasonCase_ == ReasonOneofCase.AbcNumberIsExistOnAnotherDevice) hash ^= AbcNumberIsExistOnAnotherDevice.GetHashCode(); if (reasonCase_ == ReasonOneofCase.PublicIdentityIsExist) hash ^= PublicIdentityIsExist.GetHashCode(); if (reasonCase_ == ReasonOneofCase.ConciergeRoomNotFound) hash ^= ConciergeRoomNotFound.GetHashCode(); if (reasonCase_ == ReasonOneofCase.LoginIsExist) hash ^= LoginIsExist.GetHashCode(); if (reasonCase_ == ReasonOneofCase.CredentialsAreRequired) hash ^= CredentialsAreRequired.GetHashCode(); if (reasonCase_ == ReasonOneofCase.FieldIsNotSupported) hash ^= FieldIsNotSupported.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.MacAddressInvalid) { output.WriteRawTag(10); output.WriteMessage(MacAddressInvalid); } if (reasonCase_ == ReasonOneofCase.SerialNumberInvalid) { output.WriteRawTag(18); output.WriteMessage(SerialNumberInvalid); } if (reasonCase_ == ReasonOneofCase.NotAllowedForType) { output.WriteRawTag(26); output.WriteMessage(NotAllowedForType); } if (reasonCase_ == ReasonOneofCase.NotAllowedForModel) { output.WriteRawTag(34); output.WriteMessage(NotAllowedForModel); } if (reasonCase_ == ReasonOneofCase.SerialNumberForModelIsExist) { output.WriteRawTag(42); output.WriteMessage(SerialNumberForModelIsExist); } if (reasonCase_ == ReasonOneofCase.MacAddressIsExist) { output.WriteRawTag(50); output.WriteMessage(MacAddressIsExist); } if (reasonCase_ == ReasonOneofCase.CapabilityIsNotSupported) { output.WriteRawTag(58); output.WriteMessage(CapabilityIsNotSupported); } if (reasonCase_ == ReasonOneofCase.AbcNumberIsExistOnAnotherDevice) { output.WriteRawTag(66); output.WriteMessage(AbcNumberIsExistOnAnotherDevice); } if (reasonCase_ == ReasonOneofCase.PublicIdentityIsExist) { output.WriteRawTag(74); output.WriteMessage(PublicIdentityIsExist); } if (reasonCase_ == ReasonOneofCase.ConciergeRoomNotFound) { output.WriteRawTag(82); output.WriteMessage(ConciergeRoomNotFound); } if (reasonCase_ == ReasonOneofCase.LoginIsExist) { output.WriteRawTag(90); output.WriteMessage(LoginIsExist); } if (reasonCase_ == ReasonOneofCase.CredentialsAreRequired) { output.WriteRawTag(98); output.WriteMessage(CredentialsAreRequired); } if (reasonCase_ == ReasonOneofCase.FieldIsNotSupported) { output.WriteRawTag(106); output.WriteMessage(FieldIsNotSupported); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.MacAddressInvalid) { output.WriteRawTag(10); output.WriteMessage(MacAddressInvalid); } if (reasonCase_ == ReasonOneofCase.SerialNumberInvalid) { output.WriteRawTag(18); output.WriteMessage(SerialNumberInvalid); } if (reasonCase_ == ReasonOneofCase.NotAllowedForType) { output.WriteRawTag(26); output.WriteMessage(NotAllowedForType); } if (reasonCase_ == ReasonOneofCase.NotAllowedForModel) { output.WriteRawTag(34); output.WriteMessage(NotAllowedForModel); } if (reasonCase_ == ReasonOneofCase.SerialNumberForModelIsExist) { output.WriteRawTag(42); output.WriteMessage(SerialNumberForModelIsExist); } if (reasonCase_ == ReasonOneofCase.MacAddressIsExist) { output.WriteRawTag(50); output.WriteMessage(MacAddressIsExist); } if (reasonCase_ == ReasonOneofCase.CapabilityIsNotSupported) { output.WriteRawTag(58); output.WriteMessage(CapabilityIsNotSupported); } if (reasonCase_ == ReasonOneofCase.AbcNumberIsExistOnAnotherDevice) { output.WriteRawTag(66); output.WriteMessage(AbcNumberIsExistOnAnotherDevice); } if (reasonCase_ == ReasonOneofCase.PublicIdentityIsExist) { output.WriteRawTag(74); output.WriteMessage(PublicIdentityIsExist); } if (reasonCase_ == ReasonOneofCase.ConciergeRoomNotFound) { output.WriteRawTag(82); output.WriteMessage(ConciergeRoomNotFound); } if (reasonCase_ == ReasonOneofCase.LoginIsExist) { output.WriteRawTag(90); output.WriteMessage(LoginIsExist); } if (reasonCase_ == ReasonOneofCase.CredentialsAreRequired) { output.WriteRawTag(98); output.WriteMessage(CredentialsAreRequired); } if (reasonCase_ == ReasonOneofCase.FieldIsNotSupported) { output.WriteRawTag(106); output.WriteMessage(FieldIsNotSupported); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.MacAddressInvalid) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(MacAddressInvalid); } if (reasonCase_ == ReasonOneofCase.SerialNumberInvalid) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SerialNumberInvalid); } if (reasonCase_ == ReasonOneofCase.NotAllowedForType) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(NotAllowedForType); } if (reasonCase_ == ReasonOneofCase.NotAllowedForModel) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(NotAllowedForModel); } if (reasonCase_ == ReasonOneofCase.SerialNumberForModelIsExist) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SerialNumberForModelIsExist); } if (reasonCase_ == ReasonOneofCase.MacAddressIsExist) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(MacAddressIsExist); } if (reasonCase_ == ReasonOneofCase.CapabilityIsNotSupported) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CapabilityIsNotSupported); } if (reasonCase_ == ReasonOneofCase.AbcNumberIsExistOnAnotherDevice) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(AbcNumberIsExistOnAnotherDevice); } if (reasonCase_ == ReasonOneofCase.PublicIdentityIsExist) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PublicIdentityIsExist); } if (reasonCase_ == ReasonOneofCase.ConciergeRoomNotFound) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConciergeRoomNotFound); } if (reasonCase_ == ReasonOneofCase.LoginIsExist) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoginIsExist); } if (reasonCase_ == ReasonOneofCase.CredentialsAreRequired) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CredentialsAreRequired); } if (reasonCase_ == ReasonOneofCase.FieldIsNotSupported) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(FieldIsNotSupported); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SavingError other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.MacAddressInvalid: if (MacAddressInvalid == null) { MacAddressInvalid = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressInvalid(); } MacAddressInvalid.MergeFrom(other.MacAddressInvalid); break; case ReasonOneofCase.SerialNumberInvalid: if (SerialNumberInvalid == null) { SerialNumberInvalid = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberInvalid(); } SerialNumberInvalid.MergeFrom(other.SerialNumberInvalid); break; case ReasonOneofCase.NotAllowedForType: if (NotAllowedForType == null) { NotAllowedForType = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForType(); } NotAllowedForType.MergeFrom(other.NotAllowedForType); break; case ReasonOneofCase.NotAllowedForModel: if (NotAllowedForModel == null) { NotAllowedForModel = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForModel(); } NotAllowedForModel.MergeFrom(other.NotAllowedForModel); break; case ReasonOneofCase.SerialNumberForModelIsExist: if (SerialNumberForModelIsExist == null) { SerialNumberForModelIsExist = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberForModelIsExist(); } SerialNumberForModelIsExist.MergeFrom(other.SerialNumberForModelIsExist); break; case ReasonOneofCase.MacAddressIsExist: if (MacAddressIsExist == null) { MacAddressIsExist = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressIsExist(); } MacAddressIsExist.MergeFrom(other.MacAddressIsExist); break; case ReasonOneofCase.CapabilityIsNotSupported: if (CapabilityIsNotSupported == null) { CapabilityIsNotSupported = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.CapabilityIsNotSupported(); } CapabilityIsNotSupported.MergeFrom(other.CapabilityIsNotSupported); break; case ReasonOneofCase.AbcNumberIsExistOnAnotherDevice: if (AbcNumberIsExistOnAnotherDevice == null) { AbcNumberIsExistOnAnotherDevice = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.AbcNumberIsExistOnAnotherDevice(); } AbcNumberIsExistOnAnotherDevice.MergeFrom(other.AbcNumberIsExistOnAnotherDevice); break; case ReasonOneofCase.PublicIdentityIsExist: if (PublicIdentityIsExist == null) { PublicIdentityIsExist = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.PublicIdentityIsExist(); } PublicIdentityIsExist.MergeFrom(other.PublicIdentityIsExist); break; case ReasonOneofCase.ConciergeRoomNotFound: if (ConciergeRoomNotFound == null) { ConciergeRoomNotFound = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.ConciergeRoomNotFound(); } ConciergeRoomNotFound.MergeFrom(other.ConciergeRoomNotFound); break; case ReasonOneofCase.LoginIsExist: if (LoginIsExist == null) { LoginIsExist = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.LoginIsExist(); } LoginIsExist.MergeFrom(other.LoginIsExist); break; case ReasonOneofCase.CredentialsAreRequired: if (CredentialsAreRequired == null) { CredentialsAreRequired = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.CredentialsAreRequired(); } CredentialsAreRequired.MergeFrom(other.CredentialsAreRequired); break; case ReasonOneofCase.FieldIsNotSupported: if (FieldIsNotSupported == null) { FieldIsNotSupported = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.FieldIsNotSupported(); } FieldIsNotSupported.MergeFrom(other.FieldIsNotSupported); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressInvalid subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressInvalid(); if (reasonCase_ == ReasonOneofCase.MacAddressInvalid) { subBuilder.MergeFrom(MacAddressInvalid); } input.ReadMessage(subBuilder); MacAddressInvalid = subBuilder; break; } case 18: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberInvalid subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberInvalid(); if (reasonCase_ == ReasonOneofCase.SerialNumberInvalid) { subBuilder.MergeFrom(SerialNumberInvalid); } input.ReadMessage(subBuilder); SerialNumberInvalid = subBuilder; break; } case 26: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForType subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForType(); if (reasonCase_ == ReasonOneofCase.NotAllowedForType) { subBuilder.MergeFrom(NotAllowedForType); } input.ReadMessage(subBuilder); NotAllowedForType = subBuilder; break; } case 34: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForModel subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForModel(); if (reasonCase_ == ReasonOneofCase.NotAllowedForModel) { subBuilder.MergeFrom(NotAllowedForModel); } input.ReadMessage(subBuilder); NotAllowedForModel = subBuilder; break; } case 42: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberForModelIsExist subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberForModelIsExist(); if (reasonCase_ == ReasonOneofCase.SerialNumberForModelIsExist) { subBuilder.MergeFrom(SerialNumberForModelIsExist); } input.ReadMessage(subBuilder); SerialNumberForModelIsExist = subBuilder; break; } case 50: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressIsExist subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressIsExist(); if (reasonCase_ == ReasonOneofCase.MacAddressIsExist) { subBuilder.MergeFrom(MacAddressIsExist); } input.ReadMessage(subBuilder); MacAddressIsExist = subBuilder; break; } case 58: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.CapabilityIsNotSupported subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.CapabilityIsNotSupported(); if (reasonCase_ == ReasonOneofCase.CapabilityIsNotSupported) { subBuilder.MergeFrom(CapabilityIsNotSupported); } input.ReadMessage(subBuilder); CapabilityIsNotSupported = subBuilder; break; } case 66: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.AbcNumberIsExistOnAnotherDevice subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.AbcNumberIsExistOnAnotherDevice(); if (reasonCase_ == ReasonOneofCase.AbcNumberIsExistOnAnotherDevice) { subBuilder.MergeFrom(AbcNumberIsExistOnAnotherDevice); } input.ReadMessage(subBuilder); AbcNumberIsExistOnAnotherDevice = subBuilder; break; } case 74: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.PublicIdentityIsExist subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.PublicIdentityIsExist(); if (reasonCase_ == ReasonOneofCase.PublicIdentityIsExist) { subBuilder.MergeFrom(PublicIdentityIsExist); } input.ReadMessage(subBuilder); PublicIdentityIsExist = subBuilder; break; } case 82: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.ConciergeRoomNotFound subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.ConciergeRoomNotFound(); if (reasonCase_ == ReasonOneofCase.ConciergeRoomNotFound) { subBuilder.MergeFrom(ConciergeRoomNotFound); } input.ReadMessage(subBuilder); ConciergeRoomNotFound = subBuilder; break; } case 90: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.LoginIsExist subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.LoginIsExist(); if (reasonCase_ == ReasonOneofCase.LoginIsExist) { subBuilder.MergeFrom(LoginIsExist); } input.ReadMessage(subBuilder); LoginIsExist = subBuilder; break; } case 98: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.CredentialsAreRequired subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.CredentialsAreRequired(); if (reasonCase_ == ReasonOneofCase.CredentialsAreRequired) { subBuilder.MergeFrom(CredentialsAreRequired); } input.ReadMessage(subBuilder); CredentialsAreRequired = subBuilder; break; } case 106: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.FieldIsNotSupported subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.FieldIsNotSupported(); if (reasonCase_ == ReasonOneofCase.FieldIsNotSupported) { subBuilder.MergeFrom(FieldIsNotSupported); } input.ReadMessage(subBuilder); FieldIsNotSupported = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressInvalid subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressInvalid(); if (reasonCase_ == ReasonOneofCase.MacAddressInvalid) { subBuilder.MergeFrom(MacAddressInvalid); } input.ReadMessage(subBuilder); MacAddressInvalid = subBuilder; break; } case 18: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberInvalid subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberInvalid(); if (reasonCase_ == ReasonOneofCase.SerialNumberInvalid) { subBuilder.MergeFrom(SerialNumberInvalid); } input.ReadMessage(subBuilder); SerialNumberInvalid = subBuilder; break; } case 26: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForType subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForType(); if (reasonCase_ == ReasonOneofCase.NotAllowedForType) { subBuilder.MergeFrom(NotAllowedForType); } input.ReadMessage(subBuilder); NotAllowedForType = subBuilder; break; } case 34: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForModel subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.NotAllowedForModel(); if (reasonCase_ == ReasonOneofCase.NotAllowedForModel) { subBuilder.MergeFrom(NotAllowedForModel); } input.ReadMessage(subBuilder); NotAllowedForModel = subBuilder; break; } case 42: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberForModelIsExist subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.SerialNumberForModelIsExist(); if (reasonCase_ == ReasonOneofCase.SerialNumberForModelIsExist) { subBuilder.MergeFrom(SerialNumberForModelIsExist); } input.ReadMessage(subBuilder); SerialNumberForModelIsExist = subBuilder; break; } case 50: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressIsExist subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.MacAddressIsExist(); if (reasonCase_ == ReasonOneofCase.MacAddressIsExist) { subBuilder.MergeFrom(MacAddressIsExist); } input.ReadMessage(subBuilder); MacAddressIsExist = subBuilder; break; } case 58: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.CapabilityIsNotSupported subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.CapabilityIsNotSupported(); if (reasonCase_ == ReasonOneofCase.CapabilityIsNotSupported) { subBuilder.MergeFrom(CapabilityIsNotSupported); } input.ReadMessage(subBuilder); CapabilityIsNotSupported = subBuilder; break; } case 66: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.AbcNumberIsExistOnAnotherDevice subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.AbcNumberIsExistOnAnotherDevice(); if (reasonCase_ == ReasonOneofCase.AbcNumberIsExistOnAnotherDevice) { subBuilder.MergeFrom(AbcNumberIsExistOnAnotherDevice); } input.ReadMessage(subBuilder); AbcNumberIsExistOnAnotherDevice = subBuilder; break; } case 74: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.PublicIdentityIsExist subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.PublicIdentityIsExist(); if (reasonCase_ == ReasonOneofCase.PublicIdentityIsExist) { subBuilder.MergeFrom(PublicIdentityIsExist); } input.ReadMessage(subBuilder); PublicIdentityIsExist = subBuilder; break; } case 82: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.ConciergeRoomNotFound subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.ConciergeRoomNotFound(); if (reasonCase_ == ReasonOneofCase.ConciergeRoomNotFound) { subBuilder.MergeFrom(ConciergeRoomNotFound); } input.ReadMessage(subBuilder); ConciergeRoomNotFound = subBuilder; break; } case 90: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.LoginIsExist subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.LoginIsExist(); if (reasonCase_ == ReasonOneofCase.LoginIsExist) { subBuilder.MergeFrom(LoginIsExist); } input.ReadMessage(subBuilder); LoginIsExist = subBuilder; break; } case 98: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.CredentialsAreRequired subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.CredentialsAreRequired(); if (reasonCase_ == ReasonOneofCase.CredentialsAreRequired) { subBuilder.MergeFrom(CredentialsAreRequired); } input.ReadMessage(subBuilder); CredentialsAreRequired = subBuilder; break; } case 106: { global::Keyapis.Device.V1.Device.Types.SavingError.Types.FieldIsNotSupported subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError.Types.FieldIsNotSupported(); if (reasonCase_ == ReasonOneofCase.FieldIsNotSupported) { subBuilder.MergeFrom(FieldIsNotSupported); } input.ReadMessage(subBuilder); FieldIsNotSupported = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the SavingError message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Переданный мак-адрес не валидный /// public sealed partial class MacAddressInvalid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MacAddressInvalid()); 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.Device.Types.SavingError.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 MacAddressInvalid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MacAddressInvalid(MacAddressInvalid other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MacAddressInvalid Clone() { return new MacAddressInvalid(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MacAddressInvalid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MacAddressInvalid other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(MacAddressInvalid other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Переданный серийный номер не валидный /// public sealed partial class SerialNumberInvalid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SerialNumberInvalid()); 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.Device.Types.SavingError.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 SerialNumberInvalid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SerialNumberInvalid(SerialNumberInvalid other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SerialNumberInvalid Clone() { return new SerialNumberInvalid(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SerialNumberInvalid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SerialNumberInvalid other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SerialNumberInvalid other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Нельзя изменить тип назначения девайса /// public sealed partial class NotAllowedForType : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NotAllowedForType()); 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.Device.Types.SavingError.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 NotAllowedForType() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NotAllowedForType(NotAllowedForType other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NotAllowedForType Clone() { return new NotAllowedForType(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as NotAllowedForType); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(NotAllowedForType other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(NotAllowedForType other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Нельзя изменить модель девайса /// public sealed partial class NotAllowedForModel : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NotAllowedForModel()); 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.Device.Types.SavingError.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 NotAllowedForModel() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NotAllowedForModel(NotAllowedForModel other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NotAllowedForModel Clone() { return new NotAllowedForModel(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as NotAllowedForModel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(NotAllowedForModel other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(NotAllowedForModel other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Серийный номер для данной модели уже существует на платформе /// public sealed partial class SerialNumberForModelIsExist : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SerialNumberForModelIsExist()); 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.Device.Types.SavingError.Descriptor.NestedTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SerialNumberForModelIsExist() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SerialNumberForModelIsExist(SerialNumberForModelIsExist other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SerialNumberForModelIsExist Clone() { return new SerialNumberForModelIsExist(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SerialNumberForModelIsExist); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SerialNumberForModelIsExist other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SerialNumberForModelIsExist other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// MAC-адрес уже существует на платформе /// public sealed partial class MacAddressIsExist : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MacAddressIsExist()); 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.Device.Types.SavingError.Descriptor.NestedTypes[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 MacAddressIsExist() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MacAddressIsExist(MacAddressIsExist other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MacAddressIsExist Clone() { return new MacAddressIsExist(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MacAddressIsExist); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MacAddressIsExist other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(MacAddressIsExist other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Функциональность не поддерживается моделью устройства /// public sealed partial class CapabilityIsNotSupported : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CapabilityIsNotSupported()); 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.Device.Types.SavingError.Descriptor.NestedTypes[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 CapabilityIsNotSupported() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CapabilityIsNotSupported(CapabilityIsNotSupported other) : this() { modelCapabilityType_ = other.modelCapabilityType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CapabilityIsNotSupported Clone() { return new CapabilityIsNotSupported(this); } /// Field number for the "model_capability_type" field. public const int ModelCapabilityTypeFieldNumber = 1; private global::Keyapis.Device.V1.Model.Types.CapabilityType modelCapabilityType_ = global::Keyapis.Device.V1.Model.Types.CapabilityType.Unknown; /// /// Возможность /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Model.Types.CapabilityType ModelCapabilityType { get { return modelCapabilityType_; } set { modelCapabilityType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CapabilityIsNotSupported); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CapabilityIsNotSupported other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ModelCapabilityType != other.ModelCapabilityType) 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 (ModelCapabilityType != global::Keyapis.Device.V1.Model.Types.CapabilityType.Unknown) hash ^= ModelCapabilityType.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 (ModelCapabilityType != global::Keyapis.Device.V1.Model.Types.CapabilityType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) ModelCapabilityType); } 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 (ModelCapabilityType != global::Keyapis.Device.V1.Model.Types.CapabilityType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) ModelCapabilityType); } 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 (ModelCapabilityType != global::Keyapis.Device.V1.Model.Types.CapabilityType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ModelCapabilityType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CapabilityIsNotSupported other) { if (other == null) { return; } if (other.ModelCapabilityType != global::Keyapis.Device.V1.Model.Types.CapabilityType.Unknown) { ModelCapabilityType = other.ModelCapabilityType; } _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: { ModelCapabilityType = (global::Keyapis.Device.V1.Model.Types.CapabilityType) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { ModelCapabilityType = (global::Keyapis.Device.V1.Model.Types.CapabilityType) input.ReadEnum(); break; } } } } #endif } /// /// ABC-номер присвоен другому устройству /// public sealed partial class AbcNumberIsExistOnAnotherDevice : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AbcNumberIsExistOnAnotherDevice()); 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.Device.Types.SavingError.Descriptor.NestedTypes[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 AbcNumberIsExistOnAnotherDevice() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AbcNumberIsExistOnAnotherDevice(AbcNumberIsExistOnAnotherDevice other) : this() { deviceId_ = other.deviceId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AbcNumberIsExistOnAnotherDevice Clone() { return new AbcNumberIsExistOnAnotherDevice(this); } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 1; private int deviceId_; /// /// Идентификатор устройства на котором находится ABC-номер /// [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 AbcNumberIsExistOnAnotherDevice); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AbcNumberIsExistOnAnotherDevice other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } 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 (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 (DeviceId != 0) { output.WriteRawTag(8); 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 (DeviceId != 0) { output.WriteRawTag(8); 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 (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(AbcNumberIsExistOnAnotherDevice other) { if (other == null) { return; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { DeviceId = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { DeviceId = input.ReadInt32(); break; } } } } #endif } /// /// Публичный номер уже существует на платформе /// public sealed partial class PublicIdentityIsExist : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PublicIdentityIsExist()); 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.Device.Types.SavingError.Descriptor.NestedTypes[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 PublicIdentityIsExist() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublicIdentityIsExist(PublicIdentityIsExist other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PublicIdentityIsExist Clone() { return new PublicIdentityIsExist(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PublicIdentityIsExist); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PublicIdentityIsExist other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PublicIdentityIsExist other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Не найдена квартира для консьержа /// public sealed partial class ConciergeRoomNotFound : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConciergeRoomNotFound()); 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.Device.Types.SavingError.Descriptor.NestedTypes[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 ConciergeRoomNotFound() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ConciergeRoomNotFound(ConciergeRoomNotFound other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ConciergeRoomNotFound Clone() { return new ConciergeRoomNotFound(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ConciergeRoomNotFound); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ConciergeRoomNotFound other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ConciergeRoomNotFound other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Логин уже существует на платформе /// public sealed partial class LoginIsExist : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoginIsExist()); 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.Device.Types.SavingError.Descriptor.NestedTypes[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 LoginIsExist() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LoginIsExist(LoginIsExist other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LoginIsExist Clone() { return new LoginIsExist(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as LoginIsExist); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(LoginIsExist other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(LoginIsExist other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Отсутствуют реквизиты для модели "Спутник" /// public sealed partial class CredentialsAreRequired : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CredentialsAreRequired()); 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.Device.Types.SavingError.Descriptor.NestedTypes[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 CredentialsAreRequired() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CredentialsAreRequired(CredentialsAreRequired other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CredentialsAreRequired Clone() { return new CredentialsAreRequired(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CredentialsAreRequired); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CredentialsAreRequired other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CredentialsAreRequired other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Переданное поле не поддерживается /// public sealed partial class FieldIsNotSupported : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FieldIsNotSupported()); 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.Device.Types.SavingError.Descriptor.NestedTypes[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 FieldIsNotSupported() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FieldIsNotSupported(FieldIsNotSupported other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FieldIsNotSupported Clone() { return new FieldIsNotSupported(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as FieldIsNotSupported); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(FieldIsNotSupported other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(FieldIsNotSupported other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } } #endregion } } #endregion } /// /// Облегчённое устройство. /// # Описание модели /// public sealed partial class DeviceLite : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceLite()); 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.KeyapisDeviceDeviceV1Reflection.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 DeviceLite() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceLite(DeviceLite other) : this() { id_ = other.id_; type_ = other.type_; title_ = other.title_; location_ = other.location_ != null ? other.location_.Clone() : null; statusType_ = other.statusType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceLite Clone() { return new DeviceLite(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор. /// # Диапазон: 0..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } /// Field number for the "type" field. public const int TypeFieldNumber = 2; private global::Keyapis.Device.V1.Device.Types.Type type_ = global::Keyapis.Device.V1.Device.Types.Type.Unknown; /// /// Тип назначения устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Type Type { get { return type_; } set { type_ = value; } } /// Field number for the "title" field. public const int TitleFieldNumber = 3; private string title_ = ""; /// /// # Диапазон: 3..256 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Title { get { return title_; } set { title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "location" field. public const int LocationFieldNumber = 4; private global::Keyapis.Device.V1.Device.Types.Location location_; /// /// Координаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.Location Location { get { return location_; } set { location_ = value; } } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 5; private global::Keyapis.Device.V1.Device.Types.StatusType statusType_ = global::Keyapis.Device.V1.Device.Types.StatusType.Unknown; /// /// Статус устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeviceLite); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceLite other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (Type != other.Type) return false; if (Title != other.Title) return false; if (!object.Equals(Location, other.Location)) return false; if (StatusType != other.StatusType) 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 (Type != global::Keyapis.Device.V1.Device.Types.Type.Unknown) hash ^= Type.GetHashCode(); if (Title.Length != 0) hash ^= Title.GetHashCode(); if (location_ != null) hash ^= Location.GetHashCode(); if (StatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) hash ^= StatusType.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 (Type != global::Keyapis.Device.V1.Device.Types.Type.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) Type); } if (Title.Length != 0) { output.WriteRawTag(26); output.WriteString(Title); } if (location_ != null) { output.WriteRawTag(34); output.WriteMessage(Location); } if (StatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) StatusType); } 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 (Type != global::Keyapis.Device.V1.Device.Types.Type.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) Type); } if (Title.Length != 0) { output.WriteRawTag(26); output.WriteString(Title); } if (location_ != null) { output.WriteRawTag(34); output.WriteMessage(Location); } if (StatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) StatusType); } 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 (Type != global::Keyapis.Device.V1.Device.Types.Type.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (location_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Location); } if (StatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceLite other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.Type != global::Keyapis.Device.V1.Device.Types.Type.Unknown) { Type = other.Type; } if (other.Title.Length != 0) { Title = other.Title; } if (other.location_ != null) { if (location_ == null) { Location = new global::Keyapis.Device.V1.Device.Types.Location(); } Location.MergeFrom(other.Location); } if (other.StatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) { StatusType = other.StatusType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } case 16: { Type = (global::Keyapis.Device.V1.Device.Types.Type) input.ReadEnum(); break; } case 26: { Title = input.ReadString(); break; } case 34: { if (location_ == null) { Location = new global::Keyapis.Device.V1.Device.Types.Location(); } input.ReadMessage(Location); break; } case 40: { StatusType = (global::Keyapis.Device.V1.Device.Types.StatusType) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } case 16: { Type = (global::Keyapis.Device.V1.Device.Types.Type) input.ReadEnum(); break; } case 26: { Title = input.ReadString(); break; } case 34: { if (location_ == null) { Location = new global::Keyapis.Device.V1.Device.Types.Location(); } input.ReadMessage(Location); break; } case 40: { StatusType = (global::Keyapis.Device.V1.Device.Types.StatusType) input.ReadEnum(); break; } } } } #endif } /// /// Статус конфигурации устройства. /// # Описание модели /// public sealed partial class DeviceConfigurationStatus : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceConfigurationStatus()); 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.KeyapisDeviceDeviceV1Reflection.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 DeviceConfigurationStatus() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceConfigurationStatus(DeviceConfigurationStatus other) : this() { id_ = other.id_; deviceId_ = other.deviceId_; configurationType_ = other.configurationType_; statusType_ = other.statusType_; configuredAt_ = other.configuredAt_ != null ? other.configuredAt_.Clone() : null; ErrorMessage = other.ErrorMessage; retryCount_ = other.retryCount_; payload_ = other.payload_ != null ? other.payload_.Clone() : null; nextRetryAt_ = other.nextRetryAt_ != null ? other.nextRetryAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceConfigurationStatus Clone() { return new DeviceConfigurationStatus(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 2; private int deviceId_; /// /// Идентификатор устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DeviceId { get { return deviceId_; } set { deviceId_ = value; } } /// Field number for the "configuration_type" field. public const int ConfigurationTypeFieldNumber = 3; private global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.ConfigurationType configurationType_ = global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.ConfigurationType.Unknown; /// /// Тип конфигурации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.ConfigurationType ConfigurationType { get { return configurationType_; } set { configurationType_ = value; } } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 4; private global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.StatusType statusType_ = global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.StatusType.Unknown; /// /// Статус конфигурации настройки устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } /// Field number for the "configured_at" field. public const int ConfiguredAtFieldNumber = 5; private global::Google.Protobuf.WellKnownTypes.Timestamp configuredAt_; /// /// Дата последней конфигурации устройства. /// # Тип: DateTime /// [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 "error_message" field. public const int ErrorMessageFieldNumber = 6; private static readonly pb::FieldCodec _single_errorMessage_codec = pb::FieldCodec.ForClassWrapper(50); private string errorMessage_; /// /// Текст ошибки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ErrorMessage { get { return errorMessage_; } set { errorMessage_ = value; } } /// Field number for the "retry_count" field. public const int RetryCountFieldNumber = 7; private int retryCount_; /// /// Количество попыток /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RetryCount { get { return retryCount_; } set { retryCount_ = value; } } /// Field number for the "payload" field. public const int PayloadFieldNumber = 8; private global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload payload_; /// /// Дополнительная полезная нагрузка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload Payload { get { return payload_; } set { payload_ = value; } } /// Field number for the "next_retry_at" field. public const int NextRetryAtFieldNumber = 9; private global::Google.Protobuf.WellKnownTypes.Timestamp nextRetryAt_; /// /// Минимально возможная дата выполнения следующей попытки. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp NextRetryAt { get { return nextRetryAt_; } set { nextRetryAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeviceConfigurationStatus); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceConfigurationStatus other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (DeviceId != other.DeviceId) return false; if (ConfigurationType != other.ConfigurationType) return false; if (StatusType != other.StatusType) return false; if (!object.Equals(ConfiguredAt, other.ConfiguredAt)) return false; if (ErrorMessage != other.ErrorMessage) return false; if (RetryCount != other.RetryCount) return false; if (!object.Equals(Payload, other.Payload)) return false; if (!object.Equals(NextRetryAt, other.NextRetryAt)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (ConfigurationType != global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.ConfigurationType.Unknown) hash ^= ConfigurationType.GetHashCode(); if (StatusType != global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); if (configuredAt_ != null) hash ^= ConfiguredAt.GetHashCode(); if (errorMessage_ != null) hash ^= ErrorMessage.GetHashCode(); if (RetryCount != 0) hash ^= RetryCount.GetHashCode(); if (payload_ != null) hash ^= Payload.GetHashCode(); if (nextRetryAt_ != null) hash ^= NextRetryAt.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (ConfigurationType != global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.ConfigurationType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) ConfigurationType); } if (StatusType != global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.StatusType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) StatusType); } if (configuredAt_ != null) { output.WriteRawTag(42); output.WriteMessage(ConfiguredAt); } if (errorMessage_ != null) { _single_errorMessage_codec.WriteTagAndValue(output, ErrorMessage); } if (RetryCount != 0) { output.WriteRawTag(56); output.WriteInt32(RetryCount); } if (payload_ != null) { output.WriteRawTag(66); output.WriteMessage(Payload); } if (nextRetryAt_ != null) { output.WriteRawTag(74); output.WriteMessage(NextRetryAt); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (ConfigurationType != global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.ConfigurationType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) ConfigurationType); } if (StatusType != global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.StatusType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) StatusType); } if (configuredAt_ != null) { output.WriteRawTag(42); output.WriteMessage(ConfiguredAt); } if (errorMessage_ != null) { _single_errorMessage_codec.WriteTagAndValue(ref output, ErrorMessage); } if (RetryCount != 0) { output.WriteRawTag(56); output.WriteInt32(RetryCount); } if (payload_ != null) { output.WriteRawTag(66); output.WriteMessage(Payload); } if (nextRetryAt_ != null) { output.WriteRawTag(74); output.WriteMessage(NextRetryAt); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (ConfigurationType != global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.ConfigurationType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ConfigurationType); } if (StatusType != global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } if (configuredAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ConfiguredAt); } if (errorMessage_ != null) { size += _single_errorMessage_codec.CalculateSizeWithTag(ErrorMessage); } if (RetryCount != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RetryCount); } if (payload_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Payload); } if (nextRetryAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(NextRetryAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceConfigurationStatus other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.ConfigurationType != global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.ConfigurationType.Unknown) { ConfigurationType = other.ConfigurationType; } if (other.StatusType != global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.StatusType.Unknown) { StatusType = other.StatusType; } if (other.configuredAt_ != null) { if (configuredAt_ == null) { ConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ConfiguredAt.MergeFrom(other.ConfiguredAt); } if (other.errorMessage_ != null) { if (errorMessage_ == null || other.ErrorMessage != "") { ErrorMessage = other.ErrorMessage; } } if (other.RetryCount != 0) { RetryCount = other.RetryCount; } if (other.payload_ != null) { if (payload_ == null) { Payload = new global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload(); } Payload.MergeFrom(other.Payload); } if (other.nextRetryAt_ != null) { if (nextRetryAt_ == null) { NextRetryAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } NextRetryAt.MergeFrom(other.NextRetryAt); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 24: { ConfigurationType = (global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.ConfigurationType) input.ReadEnum(); break; } case 32: { StatusType = (global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.StatusType) input.ReadEnum(); break; } case 42: { if (configuredAt_ == null) { ConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ConfiguredAt); break; } case 50: { string value = _single_errorMessage_codec.Read(input); if (errorMessage_ == null || value != "") { ErrorMessage = value; } break; } case 56: { RetryCount = input.ReadInt32(); break; } case 66: { if (payload_ == null) { Payload = new global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload(); } input.ReadMessage(Payload); break; } case 74: { if (nextRetryAt_ == null) { NextRetryAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(NextRetryAt); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 24: { ConfigurationType = (global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.ConfigurationType) input.ReadEnum(); break; } case 32: { StatusType = (global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.StatusType) input.ReadEnum(); break; } case 42: { if (configuredAt_ == null) { ConfiguredAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ConfiguredAt); break; } case 50: { string value = _single_errorMessage_codec.Read(ref input); if (errorMessage_ == null || value != "") { ErrorMessage = value; } break; } case 56: { RetryCount = input.ReadInt32(); break; } case 66: { if (payload_ == null) { Payload = new global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload(); } input.ReadMessage(Payload); break; } case 74: { if (nextRetryAt_ == null) { NextRetryAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(NextRetryAt); break; } } } } #endif #region Nested types /// Container for nested types declared in the DeviceConfigurationStatus message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Тип конфигурации. /// # Тип: byte /// public enum ConfigurationType { /// /// Значение не указано /// [pbr::OriginalName("CONFIGURATION_TYPE_UNKNOWN")] Unknown = 0, /// /// Пресет /// [pbr::OriginalName("PRESET")] Preset = 1, /// /// Сип-аккаунт /// [pbr::OriginalName("SIP_ACCOUNT")] SipAccount = 2, /// /// сип-номера в помещениях /// [pbr::OriginalName("SIP_ROOMS")] SipRooms = 3, /// /// Калитка /// [pbr::OriginalName("GATE")] Gate = 4, /// /// Ключи /// [pbr::OriginalName("RFIDS")] Rfids = 5, /// /// Коды /// [pbr::OriginalName("CODES")] Codes = 6, /// /// Распознование лиц /// [pbr::OriginalName("FACE_RECOGNITION")] FaceRecognition = 7, /// /// Консьерж /// [pbr::OriginalName("CONCIERGE")] Concierge = 8, /// /// Автосбор /// [pbr::OriginalName("AUTOCOLLECT")] Autocollect = 9, /// /// Режим Sl3 /// [pbr::OriginalName("SL3")] Sl3 = 10, /// /// Вызов экстренной службы /// [pbr::OriginalName("EMERGENCY_CALL")] EmergencyCall = 11, } /// /// Справочник статусов конфигурации настройки устройства. /// # Тип: byte /// public enum StatusType { /// /// Значение не указано /// [pbr::OriginalName("STATUS_TYPE_UNKNOWN")] Unknown = 0, /// /// Настроен /// [pbr::OriginalName("SUCCESS")] Success = 1, /// /// Ошибка /// [pbr::OriginalName("ERROR")] Error = 2, /// /// В ожидании обработки /// [pbr::OriginalName("PENDING")] Pending = 3, /// /// В процессе обработки /// [pbr::OriginalName("PROCESSING")] Processing = 4, } /// /// Дополнительная полезная нагрузка /// public sealed partial class Payload : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Payload()); 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.DeviceConfigurationStatus.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 Payload() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Payload(Payload other) : this() { switch (other.AttributeCase) { case AttributeOneofCase.Autocollect: Autocollect = other.Autocollect.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Payload Clone() { return new Payload(this); } /// Field number for the "autocollect" field. public const int AutocollectFieldNumber = 1; /// /// Автоколлект /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload.Types.Autocollect Autocollect { get { return attributeCase_ == AttributeOneofCase.Autocollect ? (global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload.Types.Autocollect) attribute_ : null; } set { attribute_ = value; attributeCase_ = value == null ? AttributeOneofCase.None : AttributeOneofCase.Autocollect; } } private object attribute_; /// Enum of possible cases for the "attribute" oneof. public enum AttributeOneofCase { None = 0, Autocollect = 1, } private AttributeOneofCase attributeCase_ = AttributeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AttributeOneofCase AttributeCase { get { return attributeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearAttribute() { attributeCase_ = AttributeOneofCase.None; attribute_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Payload); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Payload other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Autocollect, other.Autocollect)) return false; if (AttributeCase != other.AttributeCase) 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 (attributeCase_ == AttributeOneofCase.Autocollect) hash ^= Autocollect.GetHashCode(); hash ^= (int) attributeCase_; 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 (attributeCase_ == AttributeOneofCase.Autocollect) { output.WriteRawTag(10); output.WriteMessage(Autocollect); } 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 (attributeCase_ == AttributeOneofCase.Autocollect) { output.WriteRawTag(10); output.WriteMessage(Autocollect); } 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 (attributeCase_ == AttributeOneofCase.Autocollect) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Autocollect); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Payload other) { if (other == null) { return; } switch (other.AttributeCase) { case AttributeOneofCase.Autocollect: if (Autocollect == null) { Autocollect = new global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload.Types.Autocollect(); } Autocollect.MergeFrom(other.Autocollect); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload.Types.Autocollect subBuilder = new global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload.Types.Autocollect(); if (attributeCase_ == AttributeOneofCase.Autocollect) { subBuilder.MergeFrom(Autocollect); } input.ReadMessage(subBuilder); Autocollect = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload.Types.Autocollect subBuilder = new global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.Payload.Types.Autocollect(); if (attributeCase_ == AttributeOneofCase.Autocollect) { subBuilder.MergeFrom(Autocollect); } input.ReadMessage(subBuilder); Autocollect = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the Payload message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Автоколлект /// 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.DeviceConfigurationStatus.Types.Payload.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 Autocollect() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Autocollect(Autocollect other) : this() { enabledAt_ = other.enabledAt_ != null ? other.enabledAt_.Clone() : null; toBeDisabledAt_ = other.toBeDisabledAt_ != null ? other.toBeDisabledAt_.Clone() : null; _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 "enabled_at" field. public const int EnabledAtFieldNumber = 1; private global::Google.Protobuf.WellKnownTypes.Timestamp enabledAt_; /// /// Дата включения автосбора. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp EnabledAt { get { return enabledAt_; } set { enabledAt_ = value; } } /// Field number for the "to_be_disabled_at" field. public const int ToBeDisabledAtFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.Timestamp toBeDisabledAt_; /// /// Дата отключения автосбора. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ToBeDisabledAt { get { return toBeDisabledAt_; } set { toBeDisabledAt_ = 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 (!object.Equals(EnabledAt, other.EnabledAt)) return false; if (!object.Equals(ToBeDisabledAt, other.ToBeDisabledAt)) 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 (enabledAt_ != null) hash ^= EnabledAt.GetHashCode(); if (toBeDisabledAt_ != null) hash ^= ToBeDisabledAt.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 (enabledAt_ != null) { output.WriteRawTag(10); output.WriteMessage(EnabledAt); } if (toBeDisabledAt_ != null) { output.WriteRawTag(18); output.WriteMessage(ToBeDisabledAt); } 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 (enabledAt_ != null) { output.WriteRawTag(10); output.WriteMessage(EnabledAt); } if (toBeDisabledAt_ != null) { output.WriteRawTag(18); output.WriteMessage(ToBeDisabledAt); } 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 (enabledAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(EnabledAt); } if (toBeDisabledAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ToBeDisabledAt); } 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.enabledAt_ != null) { if (enabledAt_ == null) { EnabledAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } EnabledAt.MergeFrom(other.EnabledAt); } if (other.toBeDisabledAt_ != null) { if (toBeDisabledAt_ == null) { ToBeDisabledAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ToBeDisabledAt.MergeFrom(other.ToBeDisabledAt); } _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 (enabledAt_ == null) { EnabledAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(EnabledAt); break; } case 18: { if (toBeDisabledAt_ == null) { ToBeDisabledAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ToBeDisabledAt); 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 (enabledAt_ == null) { EnabledAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(EnabledAt); break; } case 18: { if (toBeDisabledAt_ == null) { ToBeDisabledAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ToBeDisabledAt); break; } } } } #endif } } #endregion } } #endregion } /// /// Сгруппированный по устройству список конфигураций /// public sealed partial class DeviceConfigurationStatusGrouped : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceConfigurationStatusGrouped()); 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.KeyapisDeviceDeviceV1Reflection.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 DeviceConfigurationStatusGrouped() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceConfigurationStatusGrouped(DeviceConfigurationStatusGrouped other) : this() { deviceId_ = other.deviceId_; statuses_ = other.statuses_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceConfigurationStatusGrouped Clone() { return new DeviceConfigurationStatusGrouped(this); } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 1; private int deviceId_; /// /// Идентификатор устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DeviceId { get { return deviceId_; } set { deviceId_ = value; } } /// Field number for the "statuses" field. public const int StatusesFieldNumber = 2; private static readonly pb::FieldCodec _repeated_statuses_codec = pb::FieldCodec.ForMessage(18, global::Keyapis.Device.V1.DeviceConfigurationStatus.Parser); private readonly pbc::RepeatedField statuses_ = new pbc::RepeatedField(); /// /// Список конфигураций /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Statuses { get { return statuses_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeviceConfigurationStatusGrouped); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceConfigurationStatusGrouped other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (DeviceId != other.DeviceId) return false; if(!statuses_.Equals(other.statuses_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); hash ^= statuses_.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 (DeviceId != 0) { output.WriteRawTag(8); output.WriteInt32(DeviceId); } statuses_.WriteTo(output, _repeated_statuses_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 (DeviceId != 0) { output.WriteRawTag(8); output.WriteInt32(DeviceId); } statuses_.WriteTo(ref output, _repeated_statuses_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 (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } size += statuses_.CalculateSize(_repeated_statuses_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceConfigurationStatusGrouped other) { if (other == null) { return; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } statuses_.Add(other.statuses_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { DeviceId = input.ReadInt32(); break; } case 18: { statuses_.AddEntriesFrom(input, _repeated_statuses_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: { DeviceId = input.ReadInt32(); break; } case 18: { statuses_.AddEntriesFrom(ref input, _repeated_statuses_codec); break; } } } } #endif } /// /// Статус камеры. /// # Описание модели /// public sealed partial class CameraStatus : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CameraStatus()); 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.KeyapisDeviceDeviceV1Reflection.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 CameraStatus() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CameraStatus(CameraStatus other) : this() { Id = other.Id; statusType_ = other.statusType_; errorMessage_ = other.errorMessage_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CameraStatus Clone() { return new CameraStatus(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private static readonly pb::FieldCodec _single_id_codec = pb::FieldCodec.ForClassWrapper(10); private string id_; /// /// Идентификатор камеры uid. /// # Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Id { get { return id_; } set { id_ = value; } } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 2; private global::Keyapis.Device.V1.CameraStatus.Types.StatusType statusType_ = global::Keyapis.Device.V1.CameraStatus.Types.StatusType.Unknown; /// /// Статус камеры /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.CameraStatus.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = 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"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CameraStatus); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CameraStatus other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; 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 (id_ != null) hash ^= Id.GetHashCode(); if (StatusType != global::Keyapis.Device.V1.CameraStatus.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 (id_ != null) { _single_id_codec.WriteTagAndValue(output, Id); } if (StatusType != global::Keyapis.Device.V1.CameraStatus.Types.StatusType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) StatusType); } if (ErrorMessage.Length != 0) { output.WriteRawTag(26); 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 (id_ != null) { _single_id_codec.WriteTagAndValue(ref output, Id); } if (StatusType != global::Keyapis.Device.V1.CameraStatus.Types.StatusType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) StatusType); } if (ErrorMessage.Length != 0) { output.WriteRawTag(26); output.WriteString(ErrorMessage); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (id_ != null) { size += _single_id_codec.CalculateSizeWithTag(Id); } if (StatusType != global::Keyapis.Device.V1.CameraStatus.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(CameraStatus other) { if (other == null) { return; } if (other.id_ != null) { if (id_ == null || other.Id != "") { Id = other.Id; } } if (other.StatusType != global::Keyapis.Device.V1.CameraStatus.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 10: { string value = _single_id_codec.Read(input); if (id_ == null || value != "") { Id = value; } break; } case 16: { StatusType = (global::Keyapis.Device.V1.CameraStatus.Types.StatusType) input.ReadEnum(); break; } case 26: { ErrorMessage = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { string value = _single_id_codec.Read(ref input); if (id_ == null || value != "") { Id = value; } break; } case 16: { StatusType = (global::Keyapis.Device.V1.CameraStatus.Types.StatusType) input.ReadEnum(); break; } case 26: { ErrorMessage = input.ReadString(); break; } } } } #endif #region Nested types /// Container for nested types declared in the CameraStatus 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("PROCESSING")] Processing = 1, /// /// Ошибка регистрации /// [pbr::OriginalName("PROCESSING_ERROR")] ProcessingError = 2, /// /// Активна /// [pbr::OriginalName("ACTIVE")] Active = 3, } } #endregion } /// /// Статус синхронизации. /// # Описание модели /// public sealed partial class SyncStatus : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyncStatus()); 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.KeyapisDeviceDeviceV1Reflection.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 SyncStatus() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SyncStatus(SyncStatus other) : this() { statusType_ = other.statusType_; errorMessage_ = other.errorMessage_; retryCount_ = other.retryCount_; successfulAt_ = other.successfulAt_ != null ? other.successfulAt_.Clone() : null; syncAt_ = other.syncAt_ != null ? other.syncAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SyncStatus Clone() { return new SyncStatus(this); } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 1; private global::Keyapis.Device.V1.SyncStatus.Types.StatusType statusType_ = global::Keyapis.Device.V1.SyncStatus.Types.StatusType.Unknown; /// /// Статус синхронизации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.SyncStatus.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 "retry_count" field. public const int RetryCountFieldNumber = 3; private int retryCount_; /// /// Количество попыток /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RetryCount { get { return retryCount_; } set { retryCount_ = value; } } /// Field number for the "successful_at" field. public const int SuccessfulAtFieldNumber = 4; private global::Google.Protobuf.WellKnownTypes.Timestamp successfulAt_; /// /// Дата последней успешной синхронизации. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp SuccessfulAt { get { return successfulAt_; } set { successfulAt_ = value; } } /// Field number for the "sync_at" field. public const int SyncAtFieldNumber = 5; private global::Google.Protobuf.WellKnownTypes.Timestamp syncAt_; /// /// Дата последней синхронизации. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp SyncAt { get { return syncAt_; } set { syncAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SyncStatus); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SyncStatus 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 (RetryCount != other.RetryCount) return false; if (!object.Equals(SuccessfulAt, other.SuccessfulAt)) return false; if (!object.Equals(SyncAt, other.SyncAt)) 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.SyncStatus.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode(); if (RetryCount != 0) hash ^= RetryCount.GetHashCode(); if (successfulAt_ != null) hash ^= SuccessfulAt.GetHashCode(); if (syncAt_ != null) hash ^= SyncAt.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.SyncStatus.Types.StatusType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) StatusType); } if (ErrorMessage.Length != 0) { output.WriteRawTag(18); output.WriteString(ErrorMessage); } if (RetryCount != 0) { output.WriteRawTag(24); output.WriteInt32(RetryCount); } if (successfulAt_ != null) { output.WriteRawTag(34); output.WriteMessage(SuccessfulAt); } if (syncAt_ != null) { output.WriteRawTag(42); output.WriteMessage(SyncAt); } 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.SyncStatus.Types.StatusType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) StatusType); } if (ErrorMessage.Length != 0) { output.WriteRawTag(18); output.WriteString(ErrorMessage); } if (RetryCount != 0) { output.WriteRawTag(24); output.WriteInt32(RetryCount); } if (successfulAt_ != null) { output.WriteRawTag(34); output.WriteMessage(SuccessfulAt); } if (syncAt_ != null) { output.WriteRawTag(42); output.WriteMessage(SyncAt); } 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.SyncStatus.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } if (ErrorMessage.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage); } if (RetryCount != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RetryCount); } if (successfulAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SuccessfulAt); } if (syncAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SyncAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SyncStatus other) { if (other == null) { return; } if (other.StatusType != global::Keyapis.Device.V1.SyncStatus.Types.StatusType.Unknown) { StatusType = other.StatusType; } if (other.ErrorMessage.Length != 0) { ErrorMessage = other.ErrorMessage; } if (other.RetryCount != 0) { RetryCount = other.RetryCount; } if (other.successfulAt_ != null) { if (successfulAt_ == null) { SuccessfulAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } SuccessfulAt.MergeFrom(other.SuccessfulAt); } if (other.syncAt_ != null) { if (syncAt_ == null) { SyncAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } SyncAt.MergeFrom(other.SyncAt); } _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.SyncStatus.Types.StatusType) input.ReadEnum(); break; } case 18: { ErrorMessage = input.ReadString(); break; } case 24: { RetryCount = input.ReadInt32(); break; } case 34: { if (successfulAt_ == null) { SuccessfulAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(SuccessfulAt); break; } case 42: { if (syncAt_ == null) { SyncAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(SyncAt); 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.SyncStatus.Types.StatusType) input.ReadEnum(); break; } case 18: { ErrorMessage = input.ReadString(); break; } case 24: { RetryCount = input.ReadInt32(); break; } case 34: { if (successfulAt_ == null) { SuccessfulAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(SuccessfulAt); break; } case 42: { if (syncAt_ == null) { SyncAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(SyncAt); break; } } } } #endif #region Nested types /// Container for nested types declared in the SyncStatus 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("NEW")] New = 1, /// /// В процессе /// [pbr::OriginalName("PENDING")] Pending = 2, /// /// Ошибка /// [pbr::OriginalName("ERROR")] Error = 3, /// /// Успешно /// [pbr::OriginalName("SUCCESS")] Success = 4, /// /// Выключено /// [pbr::OriginalName("DISABLED")] Disabled = 5, } } #endregion } /// /// Запрос получения устройства /// public sealed partial class GetDeviceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 GetDeviceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceRequest(GetDeviceRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceRequest Clone() { return new GetDeviceRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на запрос получения устройства /// public sealed partial class GetDeviceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 GetDeviceResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceResponse(GetDeviceResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceResponse Clone() { return new GetDeviceResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Устройство /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Device.V1.Device) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Device.V1.Device(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.Device subBuilder = new global::Keyapis.Device.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.Device subBuilder = new global::Keyapis.Device.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос получения устройства /// public sealed partial class GetDeviceLiteRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceLiteRequest()); 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.KeyapisDeviceDeviceV1Reflection.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 GetDeviceLiteRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceLiteRequest(GetDeviceLiteRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceLiteRequest Clone() { return new GetDeviceLiteRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceLiteRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceLiteRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceLiteRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на запрос получения устройства /// public sealed partial class GetDeviceLiteResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceLiteResponse()); 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.KeyapisDeviceDeviceV1Reflection.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 GetDeviceLiteResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceLiteResponse(GetDeviceLiteResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceLiteResponse Clone() { return new GetDeviceLiteResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Устройство /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceLite Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Device.V1.DeviceLite) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceLiteResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceLiteResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceLiteResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Device.V1.DeviceLite(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.DeviceLite subBuilder = new global::Keyapis.Device.V1.DeviceLite(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.DeviceLite subBuilder = new global::Keyapis.Device.V1.DeviceLite(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос на создание/изменение устройства /// public sealed partial class PostDeviceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 PostDeviceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceRequest(PostDeviceRequest other) : this() { data_ = other.data_ != null ? other.data_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceRequest Clone() { return new PostDeviceRequest(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Keyapis.Device.V1.Device data_; /// /// Устройство /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device Data { get { return data_; } set { data_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostDeviceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (data_ != null) hash ^= Data.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (data_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceRequest other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Keyapis.Device.V1.Device(); } Data.MergeFrom(other.Data); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (data_ == null) { Data = new global::Keyapis.Device.V1.Device(); } input.ReadMessage(Data); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (data_ == null) { Data = new global::Keyapis.Device.V1.Device(); } input.ReadMessage(Data); break; } } } } #endif } /// /// Ответ на запрос на создание/изменение устройства /// public sealed partial class PostDeviceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 PostDeviceResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceResponse(PostDeviceResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceResponse Clone() { return new PostDeviceResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Устройство /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Device.V1.Device) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.PostDeviceResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Device.V1.PostDeviceResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostDeviceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Device.V1.Device(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Device.V1.PostDeviceResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.Device subBuilder = new global::Keyapis.Device.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Device.V1.PostDeviceResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.PostDeviceResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.Device subBuilder = new global::Keyapis.Device.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Device.V1.PostDeviceResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.PostDeviceResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostDeviceResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса сохранения устройства /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.PostDeviceResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; case ReasonOneofCase.Saving: Saving = other.Saving.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Device.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } /// Field number for the "saving" field. public const int SavingFieldNumber = 2; /// /// Ошибка сохранения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.SavingError Saving { get { return reasonCase_ == ReasonOneofCase.Saving ? (global::Keyapis.Device.V1.Device.Types.SavingError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Saving; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, Saving = 2, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (!object.Equals(Saving, other.Saving)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); if (reasonCase_ == ReasonOneofCase.Saving) hash ^= Saving.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (reasonCase_ == ReasonOneofCase.Saving) { output.WriteRawTag(18); output.WriteMessage(Saving); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (reasonCase_ == ReasonOneofCase.Saving) { output.WriteRawTag(18); output.WriteMessage(Saving); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (reasonCase_ == ReasonOneofCase.Saving) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Saving); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.Device.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; case ReasonOneofCase.Saving: if (Saving == null) { Saving = new global::Keyapis.Device.V1.Device.Types.SavingError(); } Saving.MergeFrom(other.Saving); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } case 18: { global::Keyapis.Device.V1.Device.Types.SavingError subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError(); if (reasonCase_ == ReasonOneofCase.Saving) { subBuilder.MergeFrom(Saving); } input.ReadMessage(subBuilder); Saving = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } case 18: { global::Keyapis.Device.V1.Device.Types.SavingError subBuilder = new global::Keyapis.Device.V1.Device.Types.SavingError(); if (reasonCase_ == ReasonOneofCase.Saving) { subBuilder.MergeFrom(Saving); } input.ReadMessage(subBuilder); Saving = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения списка устройств /// public sealed partial class GetDeviceListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceListRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 GetDeviceListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceListRequest(GetDeviceListRequest other) : this() { filter_ = other.filter_ != null ? other.filter_.Clone() : null; switch (other.PaginationCase) { case PaginationOneofCase.Paging: Paging = other.Paging.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceListRequest Clone() { return new GetDeviceListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.Device.V1.DeviceFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceFilter Filter { get { return filter_; } set { filter_ = value; } } /// Field number for the "paging" field. public const int PagingFieldNumber = 2; /// /// Пагинация /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DevicePaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.Device.V1.DevicePaging) pagination_ : null; } set { pagination_ = value; paginationCase_ = value == null ? PaginationOneofCase.None : PaginationOneofCase.Paging; } } private object pagination_; /// Enum of possible cases for the "pagination" oneof. public enum PaginationOneofCase { None = 0, Paging = 2, } private PaginationOneofCase paginationCase_ = PaginationOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PaginationOneofCase PaginationCase { get { return paginationCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearPagination() { paginationCase_ = PaginationOneofCase.None; pagination_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceListRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Filter, other.Filter)) return false; if (!object.Equals(Paging, other.Paging)) return false; if (PaginationCase != other.PaginationCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (filter_ != null) hash ^= Filter.GetHashCode(); if (paginationCase_ == PaginationOneofCase.Paging) hash ^= Paging.GetHashCode(); hash ^= (int) paginationCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(18); output.WriteMessage(Paging); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(18); output.WriteMessage(Paging); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Paging); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.Device.V1.DeviceFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.Device.V1.DevicePaging(); } Paging.MergeFrom(other.Paging); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Device.V1.DeviceFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.Device.V1.DevicePaging subBuilder = new global::Keyapis.Device.V1.DevicePaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Device.V1.DeviceFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.Device.V1.DevicePaging subBuilder = new global::Keyapis.Device.V1.DevicePaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Ответ на запрос получения списка устройств /// public sealed partial class GetDeviceListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceListResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 GetDeviceListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceListResponse(GetDeviceListResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceListResponse Clone() { return new GetDeviceListResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Устройство /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Device.V1.Device) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.GetDeviceListResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Device.V1.GetDeviceListResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceListResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Device.V1.Device(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Device.V1.GetDeviceListResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.Device subBuilder = new global::Keyapis.Device.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Device.V1.GetDeviceListResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.GetDeviceListResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.Device subBuilder = new global::Keyapis.Device.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Device.V1.GetDeviceListResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.GetDeviceListResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetDeviceListResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса на получение списка устройств /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.GetDeviceListResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Device.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.Device.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения количества устройств /// public sealed partial class GetDeviceCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceCountRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 GetDeviceCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceCountRequest(GetDeviceCountRequest other) : this() { filter_ = other.filter_ != null ? other.filter_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceCountRequest Clone() { return new GetDeviceCountRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.Device.V1.DeviceFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceFilter Filter { get { return filter_; } set { filter_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceCountRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Filter, other.Filter)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (filter_ != null) hash ^= Filter.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceCountRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.Device.V1.DeviceFilter(); } Filter.MergeFrom(other.Filter); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Device.V1.DeviceFilter(); } input.ReadMessage(Filter); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Device.V1.DeviceFilter(); } input.ReadMessage(Filter); break; } } } } #endif } /// /// Ответ на запрос получения количества устройств /// public sealed partial class GetDeviceCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceCountResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 GetDeviceCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceCountResponse(GetDeviceCountResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceCountResponse Clone() { return new GetDeviceCountResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Количество /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Data { get { return HasData ? (int) type_ : 0; } set { type_ = value; typeCase_ = TypeOneofCase.Data; } } /// Gets whether the "data" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasData { get { return typeCase_ == TypeOneofCase.Data; } } /// Clears the value of the oneof if it's currently set to "data" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearData() { if (HasData) { ClearType(); } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.GetDeviceCountResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Device.V1.GetDeviceCountResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceCountResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Data != other.Data) return false; if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HasData) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (HasData) { output.WriteRawTag(8); output.WriteInt32(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HasData) { output.WriteRawTag(8); output.WriteInt32(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HasData) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceCountResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Device.V1.GetDeviceCountResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Data = input.ReadInt32(); break; } case 18: { global::Keyapis.Device.V1.GetDeviceCountResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.GetDeviceCountResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Data = input.ReadInt32(); break; } case 18: { global::Keyapis.Device.V1.GetDeviceCountResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.GetDeviceCountResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetDeviceCountResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.GetDeviceCountResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Device.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.Device.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос изменения устройства /// public sealed partial class PutDeviceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PutDeviceRequest()); 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.KeyapisDeviceDeviceV1Reflection.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 PutDeviceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceRequest(PutDeviceRequest other) : this() { id_ = other.id_; presetId_ = other.presetId_; isSl3ModeEnabled_ = other.isSl3ModeEnabled_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceRequest Clone() { return new PutDeviceRequest(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 "preset_id" field. public const int PresetIdFieldNumber = 2; private int presetId_; /// /// Идентификатор пресета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int PresetId { get { return presetId_; } set { presetId_ = value; } } /// Field number for the "is_sl3_mode_enabled" field. public const int IsSl3ModeEnabledFieldNumber = 3; private bool isSl3ModeEnabled_; /// /// Настройка режима SL3 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsSl3ModeEnabled { get { return isSl3ModeEnabled_; } set { isSl3ModeEnabled_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PutDeviceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PutDeviceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (PresetId != other.PresetId) return false; if (IsSl3ModeEnabled != other.IsSl3ModeEnabled) 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 (PresetId != 0) hash ^= PresetId.GetHashCode(); if (IsSl3ModeEnabled != false) hash ^= IsSl3ModeEnabled.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 (PresetId != 0) { output.WriteRawTag(16); output.WriteInt32(PresetId); } if (IsSl3ModeEnabled != false) { output.WriteRawTag(24); output.WriteBool(IsSl3ModeEnabled); } 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 (PresetId != 0) { output.WriteRawTag(16); output.WriteInt32(PresetId); } if (IsSl3ModeEnabled != false) { output.WriteRawTag(24); output.WriteBool(IsSl3ModeEnabled); } 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 (PresetId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PresetId); } if (IsSl3ModeEnabled != 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(PutDeviceRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.PresetId != 0) { PresetId = other.PresetId; } if (other.IsSl3ModeEnabled != false) { IsSl3ModeEnabled = other.IsSl3ModeEnabled; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } case 16: { PresetId = input.ReadInt32(); break; } case 24: { IsSl3ModeEnabled = input.ReadBool(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } case 16: { PresetId = input.ReadInt32(); break; } case 24: { IsSl3ModeEnabled = input.ReadBool(); break; } } } } #endif } /// ///ответ на завпрос изменения устройства /// public sealed partial class PutDeviceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PutDeviceResponse()); 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.KeyapisDeviceDeviceV1Reflection.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 PutDeviceResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceResponse(PutDeviceResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PutDeviceResponse Clone() { return new PutDeviceResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Устройство /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Device.V1.Device) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PutDeviceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PutDeviceResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PutDeviceResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Device.V1.Device(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.Device subBuilder = new global::Keyapis.Device.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.Device subBuilder = new global::Keyapis.Device.V1.Device(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Запрос установки пресета на устройство /// public sealed partial class PostDeviceInstallPresetRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceInstallPresetRequest()); 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.KeyapisDeviceDeviceV1Reflection.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 PostDeviceInstallPresetRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceInstallPresetRequest(PostDeviceInstallPresetRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceInstallPresetRequest Clone() { return new PostDeviceInstallPresetRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostDeviceInstallPresetRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceInstallPresetRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceInstallPresetRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на запрос установки пресета на устройство /// public sealed partial class PostDeviceInstallPresetResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceInstallPresetResponse()); 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.KeyapisDeviceDeviceV1Reflection.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 PostDeviceInstallPresetResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceInstallPresetResponse(PostDeviceInstallPresetResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceInstallPresetResponse Clone() { return new PostDeviceInstallPresetResponse(this); } /// Field number for the "error" field. public const int ErrorFieldNumber = 1; /// ///Ошибка при установке пресета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Error = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostDeviceInstallPresetResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceInstallPresetResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceInstallPresetResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostDeviceInstallPresetResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка при установке пресета /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.PresetStatusIsProcessing: PresetStatusIsProcessing = other.PresetStatusIsProcessing.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "preset_status_is_processing" field. public const int PresetStatusIsProcessingFieldNumber = 1; /// /// Пресет в процессе установки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error.Types.PresetStatusIsProcessing PresetStatusIsProcessing { get { return reasonCase_ == ReasonOneofCase.PresetStatusIsProcessing ? (global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error.Types.PresetStatusIsProcessing) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.PresetStatusIsProcessing; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, PresetStatusIsProcessing = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(PresetStatusIsProcessing, other.PresetStatusIsProcessing)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.PresetStatusIsProcessing) hash ^= PresetStatusIsProcessing.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.PresetStatusIsProcessing) { output.WriteRawTag(10); output.WriteMessage(PresetStatusIsProcessing); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.PresetStatusIsProcessing) { output.WriteRawTag(10); output.WriteMessage(PresetStatusIsProcessing); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.PresetStatusIsProcessing) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PresetStatusIsProcessing); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.PresetStatusIsProcessing: if (PresetStatusIsProcessing == null) { PresetStatusIsProcessing = new global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error.Types.PresetStatusIsProcessing(); } PresetStatusIsProcessing.MergeFrom(other.PresetStatusIsProcessing); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error.Types.PresetStatusIsProcessing subBuilder = new global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error.Types.PresetStatusIsProcessing(); if (reasonCase_ == ReasonOneofCase.PresetStatusIsProcessing) { subBuilder.MergeFrom(PresetStatusIsProcessing); } input.ReadMessage(subBuilder); PresetStatusIsProcessing = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error.Types.PresetStatusIsProcessing subBuilder = new global::Keyapis.Device.V1.PostDeviceInstallPresetResponse.Types.Error.Types.PresetStatusIsProcessing(); if (reasonCase_ == ReasonOneofCase.PresetStatusIsProcessing) { subBuilder.MergeFrom(PresetStatusIsProcessing); } input.ReadMessage(subBuilder); PresetStatusIsProcessing = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the Error message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Пресет в процессе установки /// public sealed partial class PresetStatusIsProcessing : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PresetStatusIsProcessing()); 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.PostDeviceInstallPresetResponse.Types.Error.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PresetStatusIsProcessing() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PresetStatusIsProcessing(PresetStatusIsProcessing other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PresetStatusIsProcessing Clone() { return new PresetStatusIsProcessing(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PresetStatusIsProcessing); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PresetStatusIsProcessing other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PresetStatusIsProcessing other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } } #endregion } } #endregion } /// /// Запрос на замену устройства /// public sealed partial class PostDeviceReplaceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceReplaceRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 PostDeviceReplaceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReplaceRequest(PostDeviceReplaceRequest other) : this() { id_ = other.id_; host_ = other.host_; macAddress_ = other.macAddress_; serialNumber_ = other.serialNumber_; login_ = other.login_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReplaceRequest Clone() { return new PostDeviceReplaceRequest(this); } /// Field number for the "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 "host" field. public const int HostFieldNumber = 2; 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 "mac_address" field. public const int MacAddressFieldNumber = 3; private string macAddress_ = ""; /// /// MAC-адрес. /// # Диапазон: 17..17. /// # Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string MacAddress { get { return macAddress_; } set { macAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "serial_number" field. public const int SerialNumberFieldNumber = 4; private string serialNumber_ = ""; /// /// Серийный номер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SerialNumber { get { return serialNumber_; } set { serialNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "login" field. public const int LoginFieldNumber = 5; private string login_ = ""; /// /// Логин (для модели спутник) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Login { get { return login_; } set { login_ = 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 PostDeviceReplaceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceReplaceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (Host != other.Host) return false; if (MacAddress != other.MacAddress) return false; if (SerialNumber != other.SerialNumber) return false; if (Login != other.Login) 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 (Host.Length != 0) hash ^= Host.GetHashCode(); if (MacAddress.Length != 0) hash ^= MacAddress.GetHashCode(); if (SerialNumber.Length != 0) hash ^= SerialNumber.GetHashCode(); if (Login.Length != 0) hash ^= Login.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 (Host.Length != 0) { output.WriteRawTag(18); output.WriteString(Host); } if (MacAddress.Length != 0) { output.WriteRawTag(26); output.WriteString(MacAddress); } if (SerialNumber.Length != 0) { output.WriteRawTag(34); output.WriteString(SerialNumber); } if (Login.Length != 0) { output.WriteRawTag(42); output.WriteString(Login); } 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 (Host.Length != 0) { output.WriteRawTag(18); output.WriteString(Host); } if (MacAddress.Length != 0) { output.WriteRawTag(26); output.WriteString(MacAddress); } if (SerialNumber.Length != 0) { output.WriteRawTag(34); output.WriteString(SerialNumber); } if (Login.Length != 0) { output.WriteRawTag(42); output.WriteString(Login); } 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 (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (MacAddress.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(MacAddress); } if (SerialNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SerialNumber); } if (Login.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Login); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceReplaceRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.Host.Length != 0) { Host = other.Host; } if (other.MacAddress.Length != 0) { MacAddress = other.MacAddress; } if (other.SerialNumber.Length != 0) { SerialNumber = other.SerialNumber; } if (other.Login.Length != 0) { Login = other.Login; } _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: { Host = input.ReadString(); break; } case 26: { MacAddress = input.ReadString(); break; } case 34: { SerialNumber = input.ReadString(); break; } case 42: { Login = 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: { Host = input.ReadString(); break; } case 26: { MacAddress = input.ReadString(); break; } case 34: { SerialNumber = input.ReadString(); break; } case 42: { Login = input.ReadString(); break; } } } } #endif } /// /// Ответ на запрос на замену устройства /// public sealed partial class PostDeviceReplaceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceReplaceResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 PostDeviceReplaceResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReplaceResponse(PostDeviceReplaceResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReplaceResponse Clone() { return new PostDeviceReplaceResponse(this); } /// Field number for the "error" field. public const int ErrorFieldNumber = 1; /// /// Ошибка замены устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Error = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostDeviceReplaceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceReplaceResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceReplaceResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostDeviceReplaceResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка замены устройства /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.PostDeviceReplaceResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.ValidationError: ValidationError = other.ValidationError.Clone(); break; case ReasonOneofCase.HostExists: HostExists = other.HostExists.Clone(); break; case ReasonOneofCase.MacAddressExists: MacAddressExists = other.MacAddressExists.Clone(); break; case ReasonOneofCase.SerialNumberExists: SerialNumberExists = other.SerialNumberExists.Clone(); break; case ReasonOneofCase.LoginExists: LoginExists = other.LoginExists.Clone(); break; case ReasonOneofCase.LoginIsRequired: LoginIsRequired = other.LoginIsRequired.Clone(); break; case ReasonOneofCase.ReinstallError: ReinstallError = other.ReinstallError.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation_error" field. public const int ValidationErrorFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ValidationError ValidationError { get { return reasonCase_ == ReasonOneofCase.ValidationError ? (global::Keyapis.Device.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.ValidationError; } } /// Field number for the "host_exists" field. public const int HostExistsFieldNumber = 2; /// /// На платформе уже существует устройство с таким хостом /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.HostExists HostExists { get { return reasonCase_ == ReasonOneofCase.HostExists ? (global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.HostExists) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.HostExists; } } /// Field number for the "mac_address_exists" field. public const int MacAddressExistsFieldNumber = 3; /// /// На платформе уже существует устройство с таким MAC-адресом /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.MacAddressExists MacAddressExists { get { return reasonCase_ == ReasonOneofCase.MacAddressExists ? (global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.MacAddressExists) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.MacAddressExists; } } /// Field number for the "serial_number_exists" field. public const int SerialNumberExistsFieldNumber = 4; /// /// На платформе уже существует устройство с таким серийным номером /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.SerialNumberExists SerialNumberExists { get { return reasonCase_ == ReasonOneofCase.SerialNumberExists ? (global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.SerialNumberExists) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.SerialNumberExists; } } /// Field number for the "login_exists" field. public const int LoginExistsFieldNumber = 5; /// /// На платформе уже существует устройство с таким логином (для устройст модели "Спутник") /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginExists LoginExists { get { return reasonCase_ == ReasonOneofCase.LoginExists ? (global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginExists) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.LoginExists; } } /// Field number for the "login_is_required" field. public const int LoginIsRequiredFieldNumber = 6; /// /// Отсутствует поле Login для модели "Спутник" /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginIsRequired LoginIsRequired { get { return reasonCase_ == ReasonOneofCase.LoginIsRequired ? (global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginIsRequired) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.LoginIsRequired; } } /// Field number for the "reinstall_error" field. public const int ReinstallErrorFieldNumber = 7; /// /// Ошибка реинстала /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ReinstallError ReinstallError { get { return reasonCase_ == ReasonOneofCase.ReinstallError ? (global::Keyapis.Device.V1.ReinstallError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.ReinstallError; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, ValidationError = 1, HostExists = 2, MacAddressExists = 3, SerialNumberExists = 4, LoginExists = 5, LoginIsRequired = 6, ReinstallError = 7, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(ValidationError, other.ValidationError)) return false; if (!object.Equals(HostExists, other.HostExists)) return false; if (!object.Equals(MacAddressExists, other.MacAddressExists)) return false; if (!object.Equals(SerialNumberExists, other.SerialNumberExists)) return false; if (!object.Equals(LoginExists, other.LoginExists)) return false; if (!object.Equals(LoginIsRequired, other.LoginIsRequired)) return false; if (!object.Equals(ReinstallError, other.ReinstallError)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.ValidationError) hash ^= ValidationError.GetHashCode(); if (reasonCase_ == ReasonOneofCase.HostExists) hash ^= HostExists.GetHashCode(); if (reasonCase_ == ReasonOneofCase.MacAddressExists) hash ^= MacAddressExists.GetHashCode(); if (reasonCase_ == ReasonOneofCase.SerialNumberExists) hash ^= SerialNumberExists.GetHashCode(); if (reasonCase_ == ReasonOneofCase.LoginExists) hash ^= LoginExists.GetHashCode(); if (reasonCase_ == ReasonOneofCase.LoginIsRequired) hash ^= LoginIsRequired.GetHashCode(); if (reasonCase_ == ReasonOneofCase.ReinstallError) hash ^= ReinstallError.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.ValidationError) { output.WriteRawTag(10); output.WriteMessage(ValidationError); } if (reasonCase_ == ReasonOneofCase.HostExists) { output.WriteRawTag(18); output.WriteMessage(HostExists); } if (reasonCase_ == ReasonOneofCase.MacAddressExists) { output.WriteRawTag(26); output.WriteMessage(MacAddressExists); } if (reasonCase_ == ReasonOneofCase.SerialNumberExists) { output.WriteRawTag(34); output.WriteMessage(SerialNumberExists); } if (reasonCase_ == ReasonOneofCase.LoginExists) { output.WriteRawTag(42); output.WriteMessage(LoginExists); } if (reasonCase_ == ReasonOneofCase.LoginIsRequired) { output.WriteRawTag(50); output.WriteMessage(LoginIsRequired); } if (reasonCase_ == ReasonOneofCase.ReinstallError) { output.WriteRawTag(58); output.WriteMessage(ReinstallError); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.ValidationError) { output.WriteRawTag(10); output.WriteMessage(ValidationError); } if (reasonCase_ == ReasonOneofCase.HostExists) { output.WriteRawTag(18); output.WriteMessage(HostExists); } if (reasonCase_ == ReasonOneofCase.MacAddressExists) { output.WriteRawTag(26); output.WriteMessage(MacAddressExists); } if (reasonCase_ == ReasonOneofCase.SerialNumberExists) { output.WriteRawTag(34); output.WriteMessage(SerialNumberExists); } if (reasonCase_ == ReasonOneofCase.LoginExists) { output.WriteRawTag(42); output.WriteMessage(LoginExists); } if (reasonCase_ == ReasonOneofCase.LoginIsRequired) { output.WriteRawTag(50); output.WriteMessage(LoginIsRequired); } if (reasonCase_ == ReasonOneofCase.ReinstallError) { output.WriteRawTag(58); output.WriteMessage(ReinstallError); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.ValidationError) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ValidationError); } if (reasonCase_ == ReasonOneofCase.HostExists) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(HostExists); } if (reasonCase_ == ReasonOneofCase.MacAddressExists) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(MacAddressExists); } if (reasonCase_ == ReasonOneofCase.SerialNumberExists) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SerialNumberExists); } if (reasonCase_ == ReasonOneofCase.LoginExists) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoginExists); } if (reasonCase_ == ReasonOneofCase.LoginIsRequired) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(LoginIsRequired); } if (reasonCase_ == ReasonOneofCase.ReinstallError) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReinstallError); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.ValidationError: if (ValidationError == null) { ValidationError = new global::Keyapis.Device.V1.ValidationError(); } ValidationError.MergeFrom(other.ValidationError); break; case ReasonOneofCase.HostExists: if (HostExists == null) { HostExists = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.HostExists(); } HostExists.MergeFrom(other.HostExists); break; case ReasonOneofCase.MacAddressExists: if (MacAddressExists == null) { MacAddressExists = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.MacAddressExists(); } MacAddressExists.MergeFrom(other.MacAddressExists); break; case ReasonOneofCase.SerialNumberExists: if (SerialNumberExists == null) { SerialNumberExists = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.SerialNumberExists(); } SerialNumberExists.MergeFrom(other.SerialNumberExists); break; case ReasonOneofCase.LoginExists: if (LoginExists == null) { LoginExists = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginExists(); } LoginExists.MergeFrom(other.LoginExists); break; case ReasonOneofCase.LoginIsRequired: if (LoginIsRequired == null) { LoginIsRequired = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginIsRequired(); } LoginIsRequired.MergeFrom(other.LoginIsRequired); break; case ReasonOneofCase.ReinstallError: if (ReinstallError == null) { ReinstallError = new global::Keyapis.Device.V1.ReinstallError(); } ReinstallError.MergeFrom(other.ReinstallError); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.ValidationError) { subBuilder.MergeFrom(ValidationError); } input.ReadMessage(subBuilder); ValidationError = subBuilder; break; } case 18: { global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.HostExists subBuilder = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.HostExists(); if (reasonCase_ == ReasonOneofCase.HostExists) { subBuilder.MergeFrom(HostExists); } input.ReadMessage(subBuilder); HostExists = subBuilder; break; } case 26: { global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.MacAddressExists subBuilder = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.MacAddressExists(); if (reasonCase_ == ReasonOneofCase.MacAddressExists) { subBuilder.MergeFrom(MacAddressExists); } input.ReadMessage(subBuilder); MacAddressExists = subBuilder; break; } case 34: { global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.SerialNumberExists subBuilder = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.SerialNumberExists(); if (reasonCase_ == ReasonOneofCase.SerialNumberExists) { subBuilder.MergeFrom(SerialNumberExists); } input.ReadMessage(subBuilder); SerialNumberExists = subBuilder; break; } case 42: { global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginExists subBuilder = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginExists(); if (reasonCase_ == ReasonOneofCase.LoginExists) { subBuilder.MergeFrom(LoginExists); } input.ReadMessage(subBuilder); LoginExists = subBuilder; break; } case 50: { global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginIsRequired subBuilder = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginIsRequired(); if (reasonCase_ == ReasonOneofCase.LoginIsRequired) { subBuilder.MergeFrom(LoginIsRequired); } input.ReadMessage(subBuilder); LoginIsRequired = subBuilder; break; } case 58: { global::Keyapis.Device.V1.ReinstallError subBuilder = new global::Keyapis.Device.V1.ReinstallError(); if (reasonCase_ == ReasonOneofCase.ReinstallError) { subBuilder.MergeFrom(ReinstallError); } input.ReadMessage(subBuilder); ReinstallError = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.ValidationError) { subBuilder.MergeFrom(ValidationError); } input.ReadMessage(subBuilder); ValidationError = subBuilder; break; } case 18: { global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.HostExists subBuilder = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.HostExists(); if (reasonCase_ == ReasonOneofCase.HostExists) { subBuilder.MergeFrom(HostExists); } input.ReadMessage(subBuilder); HostExists = subBuilder; break; } case 26: { global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.MacAddressExists subBuilder = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.MacAddressExists(); if (reasonCase_ == ReasonOneofCase.MacAddressExists) { subBuilder.MergeFrom(MacAddressExists); } input.ReadMessage(subBuilder); MacAddressExists = subBuilder; break; } case 34: { global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.SerialNumberExists subBuilder = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.SerialNumberExists(); if (reasonCase_ == ReasonOneofCase.SerialNumberExists) { subBuilder.MergeFrom(SerialNumberExists); } input.ReadMessage(subBuilder); SerialNumberExists = subBuilder; break; } case 42: { global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginExists subBuilder = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginExists(); if (reasonCase_ == ReasonOneofCase.LoginExists) { subBuilder.MergeFrom(LoginExists); } input.ReadMessage(subBuilder); LoginExists = subBuilder; break; } case 50: { global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginIsRequired subBuilder = new global::Keyapis.Device.V1.PostDeviceReplaceResponse.Types.Error.Types.LoginIsRequired(); if (reasonCase_ == ReasonOneofCase.LoginIsRequired) { subBuilder.MergeFrom(LoginIsRequired); } input.ReadMessage(subBuilder); LoginIsRequired = subBuilder; break; } case 58: { global::Keyapis.Device.V1.ReinstallError subBuilder = new global::Keyapis.Device.V1.ReinstallError(); if (reasonCase_ == ReasonOneofCase.ReinstallError) { subBuilder.MergeFrom(ReinstallError); } input.ReadMessage(subBuilder); ReinstallError = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the Error message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// На платформе уже существует устройство с таким хостом /// public sealed partial class HostExists : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HostExists()); 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.PostDeviceReplaceResponse.Types.Error.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public HostExists() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public HostExists(HostExists other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public HostExists Clone() { return new HostExists(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as HostExists); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(HostExists other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(HostExists other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// На платформе уже существует устройство с таким MAC-адресом /// public sealed partial class MacAddressExists : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MacAddressExists()); 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.PostDeviceReplaceResponse.Types.Error.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MacAddressExists() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MacAddressExists(MacAddressExists other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MacAddressExists Clone() { return new MacAddressExists(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MacAddressExists); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MacAddressExists other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(MacAddressExists other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// На платформе уже существует устройство с таким серийным номером /// public sealed partial class SerialNumberExists : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SerialNumberExists()); 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.PostDeviceReplaceResponse.Types.Error.Descriptor.NestedTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SerialNumberExists() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SerialNumberExists(SerialNumberExists other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SerialNumberExists Clone() { return new SerialNumberExists(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SerialNumberExists); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SerialNumberExists other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SerialNumberExists other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// На платформе уже существует устройство с таким логином (для устройст модели "Спутник") /// public sealed partial class LoginExists : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoginExists()); 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.PostDeviceReplaceResponse.Types.Error.Descriptor.NestedTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LoginExists() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LoginExists(LoginExists other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LoginExists Clone() { return new LoginExists(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as LoginExists); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(LoginExists other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(LoginExists other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Отсутствует поле Login для модели "Спутник" /// public sealed partial class LoginIsRequired : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoginIsRequired()); 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.PostDeviceReplaceResponse.Types.Error.Descriptor.NestedTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LoginIsRequired() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LoginIsRequired(LoginIsRequired other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public LoginIsRequired Clone() { return new LoginIsRequired(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as LoginIsRequired); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(LoginIsRequired other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(LoginIsRequired other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } } #endregion } } #endregion } /// /// Запрос на переконфигурирование устройства /// public sealed partial class PostDeviceReconfigureRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceReconfigureRequest()); 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.KeyapisDeviceDeviceV1Reflection.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 PostDeviceReconfigureRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReconfigureRequest(PostDeviceReconfigureRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReconfigureRequest Clone() { return new PostDeviceReconfigureRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostDeviceReconfigureRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceReconfigureRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceReconfigureRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на запрос на переконфигурирование устройства /// public sealed partial class PostDeviceReconfigureResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceReconfigureResponse()); 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.KeyapisDeviceDeviceV1Reflection.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 PostDeviceReconfigureResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReconfigureResponse(PostDeviceReconfigureResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceReconfigureResponse Clone() { return new PostDeviceReconfigureResponse(this); } /// Field number for the "error" field. public const int ErrorFieldNumber = 1; /// /// Ошибка переконфигурирования устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.PostDeviceReconfigureResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Device.V1.PostDeviceReconfigureResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Error = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostDeviceReconfigureResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceReconfigureResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceReconfigureResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Device.V1.PostDeviceReconfigureResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.PostDeviceReconfigureResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.PostDeviceReconfigureResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.PostDeviceReconfigureResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.PostDeviceReconfigureResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostDeviceReconfigureResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка переконфигурирования устройства /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.PostDeviceReconfigureResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.ValidationError: ValidationError = other.ValidationError.Clone(); break; case ReasonOneofCase.ReinstallError: ReinstallError = other.ReinstallError.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation_error" field. public const int ValidationErrorFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ValidationError ValidationError { get { return reasonCase_ == ReasonOneofCase.ValidationError ? (global::Keyapis.Device.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.ValidationError; } } /// Field number for the "reinstall_error" field. public const int ReinstallErrorFieldNumber = 2; /// /// Ошибка реинстала /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ReinstallError ReinstallError { get { return reasonCase_ == ReasonOneofCase.ReinstallError ? (global::Keyapis.Device.V1.ReinstallError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.ReinstallError; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, ValidationError = 1, ReinstallError = 2, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(ValidationError, other.ValidationError)) return false; if (!object.Equals(ReinstallError, other.ReinstallError)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.ValidationError) hash ^= ValidationError.GetHashCode(); if (reasonCase_ == ReasonOneofCase.ReinstallError) hash ^= ReinstallError.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.ValidationError) { output.WriteRawTag(10); output.WriteMessage(ValidationError); } if (reasonCase_ == ReasonOneofCase.ReinstallError) { output.WriteRawTag(18); output.WriteMessage(ReinstallError); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.ValidationError) { output.WriteRawTag(10); output.WriteMessage(ValidationError); } if (reasonCase_ == ReasonOneofCase.ReinstallError) { output.WriteRawTag(18); output.WriteMessage(ReinstallError); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.ValidationError) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ValidationError); } if (reasonCase_ == ReasonOneofCase.ReinstallError) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReinstallError); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.ValidationError: if (ValidationError == null) { ValidationError = new global::Keyapis.Device.V1.ValidationError(); } ValidationError.MergeFrom(other.ValidationError); break; case ReasonOneofCase.ReinstallError: if (ReinstallError == null) { ReinstallError = new global::Keyapis.Device.V1.ReinstallError(); } ReinstallError.MergeFrom(other.ReinstallError); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.ValidationError) { subBuilder.MergeFrom(ValidationError); } input.ReadMessage(subBuilder); ValidationError = subBuilder; break; } case 18: { global::Keyapis.Device.V1.ReinstallError subBuilder = new global::Keyapis.Device.V1.ReinstallError(); if (reasonCase_ == ReasonOneofCase.ReinstallError) { subBuilder.MergeFrom(ReinstallError); } input.ReadMessage(subBuilder); ReinstallError = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.ValidationError) { subBuilder.MergeFrom(ValidationError); } input.ReadMessage(subBuilder); ValidationError = subBuilder; break; } case 18: { global::Keyapis.Device.V1.ReinstallError subBuilder = new global::Keyapis.Device.V1.ReinstallError(); if (reasonCase_ == ReasonOneofCase.ReinstallError) { subBuilder.MergeFrom(ReinstallError); } input.ReadMessage(subBuilder); ReinstallError = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения статусов конфигурации устройства /// public sealed partial class GetDeviceConfigurationStatusesRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceConfigurationStatusesRequest()); 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.KeyapisDeviceDeviceV1Reflection.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 GetDeviceConfigurationStatusesRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceConfigurationStatusesRequest(GetDeviceConfigurationStatusesRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceConfigurationStatusesRequest Clone() { return new GetDeviceConfigurationStatusesRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceConfigurationStatusesRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceConfigurationStatusesRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceConfigurationStatusesRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на запрос получения статусов конфигурации устройства /// public sealed partial class GetDeviceConfigurationStatusesResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceConfigurationStatusesResponse()); 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.KeyapisDeviceDeviceV1Reflection.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 GetDeviceConfigurationStatusesResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceConfigurationStatusesResponse(GetDeviceConfigurationStatusesResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceConfigurationStatusesResponse Clone() { return new GetDeviceConfigurationStatusesResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Устройство /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Statuses Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Statuses) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceConfigurationStatusesResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceConfigurationStatusesResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceConfigurationStatusesResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Statuses(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Statuses subBuilder = new global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Statuses(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Statuses subBuilder = new global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Statuses(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetDeviceConfigurationStatusesResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Статусы /// public sealed partial class Statuses : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Statuses()); 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.GetDeviceConfigurationStatusesResponse.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 Statuses() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Statuses(Statuses other) : this() { deviceConfigurationStatuses_ = other.deviceConfigurationStatuses_.Clone(); cameraStatus_ = other.cameraStatus_ != null ? other.cameraStatus_.Clone() : null; syncStatus_ = other.syncStatus_ != null ? other.syncStatus_.Clone() : null; deviceStatusType_ = other.deviceStatusType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Statuses Clone() { return new Statuses(this); } /// Field number for the "device_configuration_statuses" field. public const int DeviceConfigurationStatusesFieldNumber = 1; private static readonly pb::FieldCodec _repeated_deviceConfigurationStatuses_codec = pb::FieldCodec.ForMessage(10, global::Keyapis.Device.V1.DeviceConfigurationStatus.Parser); private readonly pbc::RepeatedField deviceConfigurationStatuses_ = new pbc::RepeatedField(); /// /// Статусы конфигурации устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceConfigurationStatuses { get { return deviceConfigurationStatuses_; } } /// Field number for the "camera_status" field. public const int CameraStatusFieldNumber = 2; private global::Keyapis.Device.V1.CameraStatus cameraStatus_; /// /// Статус камеры /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.CameraStatus CameraStatus { get { return cameraStatus_; } set { cameraStatus_ = value; } } /// Field number for the "sync_status" field. public const int SyncStatusFieldNumber = 3; private global::Keyapis.Device.V1.SyncStatus syncStatus_; /// /// Статус синхронизации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.SyncStatus SyncStatus { get { return syncStatus_; } set { syncStatus_ = value; } } /// Field number for the "device_status_type" field. public const int DeviceStatusTypeFieldNumber = 4; private global::Keyapis.Device.V1.Device.Types.StatusType deviceStatusType_ = global::Keyapis.Device.V1.Device.Types.StatusType.Unknown; /// /// Статус устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Device.Types.StatusType DeviceStatusType { get { return deviceStatusType_; } set { deviceStatusType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Statuses); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Statuses other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!deviceConfigurationStatuses_.Equals(other.deviceConfigurationStatuses_)) return false; if (!object.Equals(CameraStatus, other.CameraStatus)) return false; if (!object.Equals(SyncStatus, other.SyncStatus)) return false; if (DeviceStatusType != other.DeviceStatusType) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= deviceConfigurationStatuses_.GetHashCode(); if (cameraStatus_ != null) hash ^= CameraStatus.GetHashCode(); if (syncStatus_ != null) hash ^= SyncStatus.GetHashCode(); if (DeviceStatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) hash ^= DeviceStatusType.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 deviceConfigurationStatuses_.WriteTo(output, _repeated_deviceConfigurationStatuses_codec); if (cameraStatus_ != null) { output.WriteRawTag(18); output.WriteMessage(CameraStatus); } if (syncStatus_ != null) { output.WriteRawTag(26); output.WriteMessage(SyncStatus); } if (DeviceStatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) DeviceStatusType); } 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) { deviceConfigurationStatuses_.WriteTo(ref output, _repeated_deviceConfigurationStatuses_codec); if (cameraStatus_ != null) { output.WriteRawTag(18); output.WriteMessage(CameraStatus); } if (syncStatus_ != null) { output.WriteRawTag(26); output.WriteMessage(SyncStatus); } if (DeviceStatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) DeviceStatusType); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += deviceConfigurationStatuses_.CalculateSize(_repeated_deviceConfigurationStatuses_codec); if (cameraStatus_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CameraStatus); } if (syncStatus_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SyncStatus); } if (DeviceStatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DeviceStatusType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Statuses other) { if (other == null) { return; } deviceConfigurationStatuses_.Add(other.deviceConfigurationStatuses_); if (other.cameraStatus_ != null) { if (cameraStatus_ == null) { CameraStatus = new global::Keyapis.Device.V1.CameraStatus(); } CameraStatus.MergeFrom(other.CameraStatus); } if (other.syncStatus_ != null) { if (syncStatus_ == null) { SyncStatus = new global::Keyapis.Device.V1.SyncStatus(); } SyncStatus.MergeFrom(other.SyncStatus); } if (other.DeviceStatusType != global::Keyapis.Device.V1.Device.Types.StatusType.Unknown) { DeviceStatusType = other.DeviceStatusType; } _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: { deviceConfigurationStatuses_.AddEntriesFrom(input, _repeated_deviceConfigurationStatuses_codec); break; } case 18: { if (cameraStatus_ == null) { CameraStatus = new global::Keyapis.Device.V1.CameraStatus(); } input.ReadMessage(CameraStatus); break; } case 26: { if (syncStatus_ == null) { SyncStatus = new global::Keyapis.Device.V1.SyncStatus(); } input.ReadMessage(SyncStatus); break; } case 32: { DeviceStatusType = (global::Keyapis.Device.V1.Device.Types.StatusType) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { deviceConfigurationStatuses_.AddEntriesFrom(ref input, _repeated_deviceConfigurationStatuses_codec); break; } case 18: { if (cameraStatus_ == null) { CameraStatus = new global::Keyapis.Device.V1.CameraStatus(); } input.ReadMessage(CameraStatus); break; } case 26: { if (syncStatus_ == null) { SyncStatus = new global::Keyapis.Device.V1.SyncStatus(); } input.ReadMessage(SyncStatus); break; } case 32: { DeviceStatusType = (global::Keyapis.Device.V1.Device.Types.StatusType) input.ReadEnum(); break; } } } } #endif } /// /// Ошибка /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.GetDeviceConfigurationStatusesResponse.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.ValidationError: ValidationError = other.ValidationError.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation_error" field. public const int ValidationErrorFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ValidationError ValidationError { get { return reasonCase_ == ReasonOneofCase.ValidationError ? (global::Keyapis.Device.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.ValidationError; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, ValidationError = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(ValidationError, other.ValidationError)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.ValidationError) hash ^= ValidationError.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.ValidationError) { output.WriteRawTag(10); output.WriteMessage(ValidationError); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.ValidationError) { output.WriteRawTag(10); output.WriteMessage(ValidationError); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.ValidationError) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ValidationError); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.ValidationError: if (ValidationError == null) { ValidationError = new global::Keyapis.Device.V1.ValidationError(); } ValidationError.MergeFrom(other.ValidationError); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.ValidationError) { subBuilder.MergeFrom(ValidationError); } input.ReadMessage(subBuilder); ValidationError = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.ValidationError) { subBuilder.MergeFrom(ValidationError); } input.ReadMessage(subBuilder); ValidationError = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос на изменение статуса конфигурации устройства /// public sealed partial class PostDeviceConfigurationStatusRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceConfigurationStatusRequest()); 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.KeyapisDeviceDeviceV1Reflection.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 PostDeviceConfigurationStatusRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceConfigurationStatusRequest(PostDeviceConfigurationStatusRequest other) : this() { data_ = other.data_ != null ? other.data_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceConfigurationStatusRequest Clone() { return new PostDeviceConfigurationStatusRequest(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Keyapis.Device.V1.DeviceConfigurationStatus data_; /// /// Статус конфигурации устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceConfigurationStatus Data { get { return data_; } set { data_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostDeviceConfigurationStatusRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceConfigurationStatusRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (data_ != null) hash ^= Data.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (data_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceConfigurationStatusRequest other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Keyapis.Device.V1.DeviceConfigurationStatus(); } Data.MergeFrom(other.Data); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (data_ == null) { Data = new global::Keyapis.Device.V1.DeviceConfigurationStatus(); } input.ReadMessage(Data); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (data_ == null) { Data = new global::Keyapis.Device.V1.DeviceConfigurationStatus(); } input.ReadMessage(Data); break; } } } } #endif } /// /// Ответ на запрос на изменение статуса конфигурации устройства /// public sealed partial class PostDeviceConfigurationStatusResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostDeviceConfigurationStatusResponse()); 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.KeyapisDeviceDeviceV1Reflection.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 PostDeviceConfigurationStatusResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceConfigurationStatusResponse(PostDeviceConfigurationStatusResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostDeviceConfigurationStatusResponse Clone() { return new PostDeviceConfigurationStatusResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Статус конфигурации устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceConfigurationStatus Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Device.V1.DeviceConfigurationStatus) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.PostDeviceConfigurationStatusResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Device.V1.PostDeviceConfigurationStatusResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostDeviceConfigurationStatusResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostDeviceConfigurationStatusResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostDeviceConfigurationStatusResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Device.V1.DeviceConfigurationStatus(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Device.V1.PostDeviceConfigurationStatusResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.DeviceConfigurationStatus subBuilder = new global::Keyapis.Device.V1.DeviceConfigurationStatus(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Device.V1.PostDeviceConfigurationStatusResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.PostDeviceConfigurationStatusResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.DeviceConfigurationStatus subBuilder = new global::Keyapis.Device.V1.DeviceConfigurationStatus(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Device.V1.PostDeviceConfigurationStatusResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.PostDeviceConfigurationStatusResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostDeviceConfigurationStatusResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса сохранения статуса конфигурации устройства /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.PostDeviceConfigurationStatusResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Device.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.Device.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения списка конфигураций сгруппированных по устройству /// public sealed partial class GetDeviceConfigurationStatusGroupedListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceConfigurationStatusGroupedListRequest()); 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.KeyapisDeviceDeviceV1Reflection.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 GetDeviceConfigurationStatusGroupedListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceConfigurationStatusGroupedListRequest(GetDeviceConfigurationStatusGroupedListRequest other) : this() { filter_ = other.filter_ != null ? other.filter_.Clone() : null; switch (other.PaginationCase) { case PaginationOneofCase.Paging: Paging = other.Paging.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceConfigurationStatusGroupedListRequest Clone() { return new GetDeviceConfigurationStatusGroupedListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedFilter Filter { get { return filter_; } set { filter_ = value; } } /// Field number for the "paging" field. public const int PagingFieldNumber = 2; /// /// Стандартный постраничный вывод /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging) pagination_ : null; } set { pagination_ = value; paginationCase_ = value == null ? PaginationOneofCase.None : PaginationOneofCase.Paging; } } private object pagination_; /// Enum of possible cases for the "pagination" oneof. public enum PaginationOneofCase { None = 0, Paging = 2, } private PaginationOneofCase paginationCase_ = PaginationOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PaginationOneofCase PaginationCase { get { return paginationCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearPagination() { paginationCase_ = PaginationOneofCase.None; pagination_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceConfigurationStatusGroupedListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceConfigurationStatusGroupedListRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Filter, other.Filter)) return false; if (!object.Equals(Paging, other.Paging)) return false; if (PaginationCase != other.PaginationCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (filter_ != null) hash ^= Filter.GetHashCode(); if (paginationCase_ == PaginationOneofCase.Paging) hash ^= Paging.GetHashCode(); hash ^= (int) paginationCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(18); output.WriteMessage(Paging); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { output.WriteRawTag(18); output.WriteMessage(Paging); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (paginationCase_ == PaginationOneofCase.Paging) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Paging); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceConfigurationStatusGroupedListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging(); } Paging.MergeFrom(other.Paging); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging subBuilder = new global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging subBuilder = new global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Ответ на запрос получения списка конфигураций сгруппированных по устройству /// public sealed partial class GetDeviceConfigurationStatusGroupedListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceConfigurationStatusGroupedListResponse()); 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.KeyapisDeviceDeviceV1Reflection.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 GetDeviceConfigurationStatusGroupedListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceConfigurationStatusGroupedListResponse(GetDeviceConfigurationStatusGroupedListResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceConfigurationStatusGroupedListResponse Clone() { return new GetDeviceConfigurationStatusGroupedListResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Конфигурации устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceConfigurationStatusGrouped Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Device.V1.DeviceConfigurationStatusGrouped) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 2; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, Error = 2, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceConfigurationStatusGroupedListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceConfigurationStatusGroupedListResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(18); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceConfigurationStatusGroupedListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Device.V1.DeviceConfigurationStatusGrouped(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.DeviceConfigurationStatusGrouped subBuilder = new global::Keyapis.Device.V1.DeviceConfigurationStatusGrouped(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.DeviceConfigurationStatusGrouped subBuilder = new global::Keyapis.Device.V1.DeviceConfigurationStatusGrouped(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListResponse.Types.Error subBuilder = new global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the GetDeviceConfigurationStatusGroupedListResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.GetDeviceConfigurationStatusGroupedListResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Device.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Keyapis.Device.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.ValidationError subBuilder = new global::Keyapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения количества конфигураций сгруппированных по устройству /// public sealed partial class GetDeviceConfigurationStatusGroupedCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceConfigurationStatusGroupedCountRequest()); 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.KeyapisDeviceDeviceV1Reflection.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 GetDeviceConfigurationStatusGroupedCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceConfigurationStatusGroupedCountRequest(GetDeviceConfigurationStatusGroupedCountRequest other) : this() { filter_ = other.filter_ != null ? other.filter_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceConfigurationStatusGroupedCountRequest Clone() { return new GetDeviceConfigurationStatusGroupedCountRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedFilter Filter { get { return filter_; } set { filter_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceConfigurationStatusGroupedCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceConfigurationStatusGroupedCountRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Filter, other.Filter)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (filter_ != null) hash ^= Filter.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (filter_ != null) { output.WriteRawTag(10); output.WriteMessage(Filter); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (filter_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Filter); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceConfigurationStatusGroupedCountRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedFilter(); } Filter.MergeFrom(other.Filter); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedFilter(); } input.ReadMessage(Filter); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (filter_ == null) { Filter = new global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedFilter(); } input.ReadMessage(Filter); break; } } } } #endif } /// /// Ответ на запрос получения количества конфигураций сгруппированных по устройству /// public sealed partial class GetDeviceConfigurationStatusGroupedCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDeviceConfigurationStatusGroupedCountResponse()); 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.KeyapisDeviceDeviceV1Reflection.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 GetDeviceConfigurationStatusGroupedCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceConfigurationStatusGroupedCountResponse(GetDeviceConfigurationStatusGroupedCountResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetDeviceConfigurationStatusGroupedCountResponse Clone() { return new GetDeviceConfigurationStatusGroupedCountResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Количество /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Data { get { return HasData ? (int) type_ : 0; } set { type_ = value; typeCase_ = TypeOneofCase.Data; } } /// Gets whether the "data" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasData { get { return typeCase_ == TypeOneofCase.Data; } } /// Clears the value of the oneof if it's currently set to "data" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearData() { if (HasData) { ClearType(); } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetDeviceConfigurationStatusGroupedCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetDeviceConfigurationStatusGroupedCountResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Data != other.Data) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HasData) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (HasData) { output.WriteRawTag(8); output.WriteInt32(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HasData) { output.WriteRawTag(8); output.WriteInt32(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HasData) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetDeviceConfigurationStatusGroupedCountResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Data = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Data = input.ReadInt32(); break; } } } } #endif } /// /// Запрос удаления устройства /// public sealed partial class DeleteDeviceRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 DeleteDeviceRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceRequest(DeleteDeviceRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceRequest Clone() { return new DeleteDeviceRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteDeviceRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteDeviceRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeleteDeviceRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } } } } #endif } /// /// Ответ на запрос удаления устройства /// public sealed partial class DeleteDeviceResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteDeviceResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 DeleteDeviceResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceResponse(DeleteDeviceResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteDeviceResponse Clone() { return new DeleteDeviceResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteDeviceResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteDeviceResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeleteDeviceResponse other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Ошибки реинстала /// public sealed partial class ReinstallError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ReinstallError()); 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.KeyapisDeviceDeviceV1Reflection.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 ReinstallError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReinstallError(ReinstallError other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.SipLoginIsMissing: SipLoginIsMissing = other.SipLoginIsMissing.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReinstallError Clone() { return new ReinstallError(this); } /// Field number for the "sip_login_is_missing" field. public const int SipLoginIsMissingFieldNumber = 1; /// /// Сип-логин отсутствует на устройстве /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.ReinstallError.Types.SipLoginIsMissing SipLoginIsMissing { get { return reasonCase_ == ReasonOneofCase.SipLoginIsMissing ? (global::Keyapis.Device.V1.ReinstallError.Types.SipLoginIsMissing) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.SipLoginIsMissing; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, SipLoginIsMissing = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ReinstallError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ReinstallError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(SipLoginIsMissing, other.SipLoginIsMissing)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.SipLoginIsMissing) hash ^= SipLoginIsMissing.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.SipLoginIsMissing) { output.WriteRawTag(10); output.WriteMessage(SipLoginIsMissing); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.SipLoginIsMissing) { output.WriteRawTag(10); output.WriteMessage(SipLoginIsMissing); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.SipLoginIsMissing) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SipLoginIsMissing); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ReinstallError other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.SipLoginIsMissing: if (SipLoginIsMissing == null) { SipLoginIsMissing = new global::Keyapis.Device.V1.ReinstallError.Types.SipLoginIsMissing(); } SipLoginIsMissing.MergeFrom(other.SipLoginIsMissing); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.ReinstallError.Types.SipLoginIsMissing subBuilder = new global::Keyapis.Device.V1.ReinstallError.Types.SipLoginIsMissing(); if (reasonCase_ == ReasonOneofCase.SipLoginIsMissing) { subBuilder.MergeFrom(SipLoginIsMissing); } input.ReadMessage(subBuilder); SipLoginIsMissing = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.ReinstallError.Types.SipLoginIsMissing subBuilder = new global::Keyapis.Device.V1.ReinstallError.Types.SipLoginIsMissing(); if (reasonCase_ == ReasonOneofCase.SipLoginIsMissing) { subBuilder.MergeFrom(SipLoginIsMissing); } input.ReadMessage(subBuilder); SipLoginIsMissing = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the ReinstallError message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Сип-логин отсутствует на устройстве /// public sealed partial class SipLoginIsMissing : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SipLoginIsMissing()); 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.ReinstallError.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 SipLoginIsMissing() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipLoginIsMissing(SipLoginIsMissing other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SipLoginIsMissing Clone() { return new SipLoginIsMissing(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SipLoginIsMissing); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SipLoginIsMissing other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SipLoginIsMissing other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } } #endregion } /// /// Фильтр устройств /// public sealed partial class DeviceFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceFilter()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.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 DeviceFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceFilter(DeviceFilter other) : this() { ownerCompanyIds_ = other.ownerCompanyIds_.Clone(); Text = other.Text; flatgrammIds_ = other.flatgrammIds_.Clone(); serialNumbers_ = other.serialNumbers_.Clone(); deviceStatusTypes_ = other.deviceStatusTypes_.Clone(); deviceTypes_ = other.deviceTypes_.Clone(); deviceModelTypes_ = other.deviceModelTypes_.Clone(); IsConciergeEnabled = other.IsConciergeEnabled; IsDispatchingEnabled = other.IsDispatchingEnabled; DispatchingPublicNumber = other.DispatchingPublicNumber; HardwareVersion = other.HardwareVersion; SoftwareVersion = other.SoftwareVersion; IsAutochangePasswordEnabled = other.IsAutochangePasswordEnabled; abcNumber_ = other.abcNumber_.Clone(); cameraIds_ = other.cameraIds_.Clone(); syncStatusStatusTypes_ = other.syncStatusStatusTypes_.Clone(); SyncRetryCountLessThen = other.SyncRetryCountLessThen; beginSyncSuccessfulAt_ = other.beginSyncSuccessfulAt_ != null ? other.beginSyncSuccessfulAt_.Clone() : null; endSyncSuccessfulAt_ = other.endSyncSuccessfulAt_ != null ? other.endSyncSuccessfulAt_.Clone() : null; beginSyncAt_ = other.beginSyncAt_ != null ? other.beginSyncAt_.Clone() : null; endSyncAt_ = other.endSyncAt_ != null ? other.endSyncAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceFilter Clone() { return new DeviceFilter(this); } /// Field number for the "owner_company_ids" field. public const int OwnerCompanyIdsFieldNumber = 1; private static readonly pb::FieldCodec _repeated_ownerCompanyIds_codec = pb::FieldCodec.ForInt32(10); private readonly pbc::RepeatedField ownerCompanyIds_ = new pbc::RepeatedField(); /// /// По идентификаторам компании владельца /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField OwnerCompanyIds { get { return ownerCompanyIds_; } } /// Field number for the "text" field. public const int TextFieldNumber = 2; private static readonly pb::FieldCodec _single_text_codec = pb::FieldCodec.ForClassWrapper(18); private string text_; /// /// Поиск по тексту. /// Если значение не передано то поиск по нему не производится. /// # Диапазон: 3..64. /// # Поиск производится по полям: /// # - Наименование; /// # - MAC-адрес; /// # - Список тегов устройства; /// # - Сетевой адрес; /// # - Серийный номер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Text { get { return text_; } set { text_ = value; } } /// Field number for the "flatgramm_ids" field. public const int FlatgrammIdsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_flatgrammIds_codec = pb::FieldCodec.ForInt32(26); private readonly pbc::RepeatedField flatgrammIds_ = new pbc::RepeatedField(); /// /// Идентификатор квартирограммы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField FlatgrammIds { get { return flatgrammIds_; } } /// Field number for the "serial_numbers" field. public const int SerialNumbersFieldNumber = 4; private static readonly pb::FieldCodec _repeated_serialNumbers_codec = pb::FieldCodec.ForString(34); private readonly pbc::RepeatedField serialNumbers_ = new pbc::RepeatedField(); /// /// Серийный номер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SerialNumbers { get { return serialNumbers_; } } /// Field number for the "device_status_types" field. public const int DeviceStatusTypesFieldNumber = 5; private static readonly pb::FieldCodec _repeated_deviceStatusTypes_codec = pb::FieldCodec.ForEnum(42, x => (int) x, x => (global::Keyapis.Device.V1.Device.Types.StatusType) x); private readonly pbc::RepeatedField deviceStatusTypes_ = new pbc::RepeatedField(); /// /// Статус устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceStatusTypes { get { return deviceStatusTypes_; } } /// Field number for the "device_types" field. public const int DeviceTypesFieldNumber = 6; private static readonly pb::FieldCodec _repeated_deviceTypes_codec = pb::FieldCodec.ForEnum(50, x => (int) x, x => (global::Keyapis.Device.V1.Device.Types.Type) x); private readonly pbc::RepeatedField deviceTypes_ = new pbc::RepeatedField(); /// /// Тип назначения устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceTypes { get { return deviceTypes_; } } /// Field number for the "device_model_types" field. public const int DeviceModelTypesFieldNumber = 7; private static readonly pb::FieldCodec _repeated_deviceModelTypes_codec = pb::FieldCodec.ForEnum(58, x => (int) x, x => (global::Keyapis.Device.V1.Device.Types.ModelType) x); private readonly pbc::RepeatedField deviceModelTypes_ = new pbc::RepeatedField(); /// /// Модель устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceModelTypes { get { return deviceModelTypes_; } } /// Field number for the "is_concierge_enabled" field. public const int IsConciergeEnabledFieldNumber = 8; private static readonly pb::FieldCodec _single_isConciergeEnabled_codec = pb::FieldCodec.ForStructWrapper(66); private bool? isConciergeEnabled_; /// /// Переадресация на консъержа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool? IsConciergeEnabled { get { return isConciergeEnabled_; } set { isConciergeEnabled_ = value; } } /// Field number for the "is_dispatching_enabled" field. public const int IsDispatchingEnabledFieldNumber = 9; private static readonly pb::FieldCodec _single_isDispatchingEnabled_codec = pb::FieldCodec.ForStructWrapper(74); private bool? isDispatchingEnabled_; /// /// Диспетчеризация /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool? IsDispatchingEnabled { get { return isDispatchingEnabled_; } set { isDispatchingEnabled_ = value; } } /// Field number for the "dispatching_public_number" field. public const int DispatchingPublicNumberFieldNumber = 10; private static readonly pb::FieldCodec _single_dispatchingPublicNumber_codec = pb::FieldCodec.ForClassWrapper(82); private string dispatchingPublicNumber_; /// /// Поиск по публичному номеру диспетчеризации. /// Если значение не передано то поиск по нему не производится. /// # Диапазон: 3..64 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DispatchingPublicNumber { get { return dispatchingPublicNumber_; } set { dispatchingPublicNumber_ = value; } } /// Field number for the "hardware_version" field. public const int HardwareVersionFieldNumber = 11; private static readonly pb::FieldCodec _single_hardwareVersion_codec = pb::FieldCodec.ForClassWrapper(90); private string hardwareVersion_; /// /// Версия аппаратного обеспенения. /// # Диапазон: 3..64 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string HardwareVersion { get { return hardwareVersion_; } set { hardwareVersion_ = value; } } /// Field number for the "software_version" field. public const int SoftwareVersionFieldNumber = 12; private static readonly pb::FieldCodec _single_softwareVersion_codec = pb::FieldCodec.ForClassWrapper(98); private string softwareVersion_; /// /// Версия программного обеспенения. /// # Диапазон: 3..64 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SoftwareVersion { get { return softwareVersion_; } set { softwareVersion_ = value; } } /// Field number for the "is_autochange_password_enabled" field. public const int IsAutochangePasswordEnabledFieldNumber = 13; private static readonly pb::FieldCodec _single_isAutochangePasswordEnabled_codec = pb::FieldCodec.ForStructWrapper(106); private bool? isAutochangePasswordEnabled_; /// /// Автозамена пароля /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool? IsAutochangePasswordEnabled { get { return isAutochangePasswordEnabled_; } set { isAutochangePasswordEnabled_ = value; } } /// Field number for the "abc_number" field. public const int AbcNumberFieldNumber = 14; private static readonly pb::FieldCodec _repeated_abcNumber_codec = pb::FieldCodec.ForString(114); private readonly pbc::RepeatedField abcNumber_ = new pbc::RepeatedField(); /// /// ABC-номер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField AbcNumber { get { return abcNumber_; } } /// Field number for the "camera_ids" field. public const int CameraIdsFieldNumber = 15; private static readonly pb::FieldCodec _repeated_cameraIds_codec = pb::FieldCodec.ForString(122); private readonly pbc::RepeatedField cameraIds_ = new pbc::RepeatedField(); /// /// Идентификаторы камер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField CameraIds { get { return cameraIds_; } } /// Field number for the "sync_status_status_types" field. public const int SyncStatusStatusTypesFieldNumber = 16; private static readonly pb::FieldCodec _repeated_syncStatusStatusTypes_codec = pb::FieldCodec.ForEnum(130, x => (int) x, x => (global::Keyapis.Device.V1.SyncStatus.Types.StatusType) x); private readonly pbc::RepeatedField syncStatusStatusTypes_ = new pbc::RepeatedField(); /// /// Фильтр по статусу синхронизации (SyncStatus.status_type) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField SyncStatusStatusTypes { get { return syncStatusStatusTypes_; } } /// Field number for the "sync_retry_count_less_then" field. public const int SyncRetryCountLessThenFieldNumber = 17; private static readonly pb::FieldCodec _single_syncRetryCountLessThen_codec = pb::FieldCodec.ForStructWrapper(138); private int? syncRetryCountLessThen_; /// /// Пороговое значение количества попыток синхронизации. /// Возвращает записи, у которых sync_retry_count меньше этого значения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? SyncRetryCountLessThen { get { return syncRetryCountLessThen_; } set { syncRetryCountLessThen_ = value; } } /// Field number for the "begin_sync_successful_at" field. public const int BeginSyncSuccessfulAtFieldNumber = 18; private global::Google.Protobuf.WellKnownTypes.Timestamp beginSyncSuccessfulAt_; /// /// От даты успешной синхронизации включительно (>=) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp BeginSyncSuccessfulAt { get { return beginSyncSuccessfulAt_; } set { beginSyncSuccessfulAt_ = value; } } /// Field number for the "end_sync_successful_at" field. public const int EndSyncSuccessfulAtFieldNumber = 19; private global::Google.Protobuf.WellKnownTypes.Timestamp endSyncSuccessfulAt_; /// /// До даты успешной синхронизации (<) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp EndSyncSuccessfulAt { get { return endSyncSuccessfulAt_; } set { endSyncSuccessfulAt_ = value; } } /// Field number for the "begin_sync_at" field. public const int BeginSyncAtFieldNumber = 20; private global::Google.Protobuf.WellKnownTypes.Timestamp beginSyncAt_; /// /// От даты синхронизации включительно (>=) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp BeginSyncAt { get { return beginSyncAt_; } set { beginSyncAt_ = value; } } /// Field number for the "end_sync_at" field. public const int EndSyncAtFieldNumber = 21; private global::Google.Protobuf.WellKnownTypes.Timestamp endSyncAt_; /// /// До даты синхронизации (<) /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp EndSyncAt { get { return endSyncAt_; } set { endSyncAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeviceFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!ownerCompanyIds_.Equals(other.ownerCompanyIds_)) return false; if (Text != other.Text) return false; if(!flatgrammIds_.Equals(other.flatgrammIds_)) return false; if(!serialNumbers_.Equals(other.serialNumbers_)) return false; if(!deviceStatusTypes_.Equals(other.deviceStatusTypes_)) return false; if(!deviceTypes_.Equals(other.deviceTypes_)) return false; if(!deviceModelTypes_.Equals(other.deviceModelTypes_)) return false; if (IsConciergeEnabled != other.IsConciergeEnabled) return false; if (IsDispatchingEnabled != other.IsDispatchingEnabled) return false; if (DispatchingPublicNumber != other.DispatchingPublicNumber) return false; if (HardwareVersion != other.HardwareVersion) return false; if (SoftwareVersion != other.SoftwareVersion) return false; if (IsAutochangePasswordEnabled != other.IsAutochangePasswordEnabled) return false; if(!abcNumber_.Equals(other.abcNumber_)) return false; if(!cameraIds_.Equals(other.cameraIds_)) return false; if(!syncStatusStatusTypes_.Equals(other.syncStatusStatusTypes_)) return false; if (SyncRetryCountLessThen != other.SyncRetryCountLessThen) return false; if (!object.Equals(BeginSyncSuccessfulAt, other.BeginSyncSuccessfulAt)) return false; if (!object.Equals(EndSyncSuccessfulAt, other.EndSyncSuccessfulAt)) return false; if (!object.Equals(BeginSyncAt, other.BeginSyncAt)) return false; if (!object.Equals(EndSyncAt, other.EndSyncAt)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= ownerCompanyIds_.GetHashCode(); if (text_ != null) hash ^= Text.GetHashCode(); hash ^= flatgrammIds_.GetHashCode(); hash ^= serialNumbers_.GetHashCode(); hash ^= deviceStatusTypes_.GetHashCode(); hash ^= deviceTypes_.GetHashCode(); hash ^= deviceModelTypes_.GetHashCode(); if (isConciergeEnabled_ != null) hash ^= IsConciergeEnabled.GetHashCode(); if (isDispatchingEnabled_ != null) hash ^= IsDispatchingEnabled.GetHashCode(); if (dispatchingPublicNumber_ != null) hash ^= DispatchingPublicNumber.GetHashCode(); if (hardwareVersion_ != null) hash ^= HardwareVersion.GetHashCode(); if (softwareVersion_ != null) hash ^= SoftwareVersion.GetHashCode(); if (isAutochangePasswordEnabled_ != null) hash ^= IsAutochangePasswordEnabled.GetHashCode(); hash ^= abcNumber_.GetHashCode(); hash ^= cameraIds_.GetHashCode(); hash ^= syncStatusStatusTypes_.GetHashCode(); if (syncRetryCountLessThen_ != null) hash ^= SyncRetryCountLessThen.GetHashCode(); if (beginSyncSuccessfulAt_ != null) hash ^= BeginSyncSuccessfulAt.GetHashCode(); if (endSyncSuccessfulAt_ != null) hash ^= EndSyncSuccessfulAt.GetHashCode(); if (beginSyncAt_ != null) hash ^= BeginSyncAt.GetHashCode(); if (endSyncAt_ != null) hash ^= EndSyncAt.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 ownerCompanyIds_.WriteTo(output, _repeated_ownerCompanyIds_codec); if (text_ != null) { _single_text_codec.WriteTagAndValue(output, Text); } flatgrammIds_.WriteTo(output, _repeated_flatgrammIds_codec); serialNumbers_.WriteTo(output, _repeated_serialNumbers_codec); deviceStatusTypes_.WriteTo(output, _repeated_deviceStatusTypes_codec); deviceTypes_.WriteTo(output, _repeated_deviceTypes_codec); deviceModelTypes_.WriteTo(output, _repeated_deviceModelTypes_codec); if (isConciergeEnabled_ != null) { _single_isConciergeEnabled_codec.WriteTagAndValue(output, IsConciergeEnabled); } if (isDispatchingEnabled_ != null) { _single_isDispatchingEnabled_codec.WriteTagAndValue(output, IsDispatchingEnabled); } if (dispatchingPublicNumber_ != null) { _single_dispatchingPublicNumber_codec.WriteTagAndValue(output, DispatchingPublicNumber); } if (hardwareVersion_ != null) { _single_hardwareVersion_codec.WriteTagAndValue(output, HardwareVersion); } if (softwareVersion_ != null) { _single_softwareVersion_codec.WriteTagAndValue(output, SoftwareVersion); } if (isAutochangePasswordEnabled_ != null) { _single_isAutochangePasswordEnabled_codec.WriteTagAndValue(output, IsAutochangePasswordEnabled); } abcNumber_.WriteTo(output, _repeated_abcNumber_codec); cameraIds_.WriteTo(output, _repeated_cameraIds_codec); syncStatusStatusTypes_.WriteTo(output, _repeated_syncStatusStatusTypes_codec); if (syncRetryCountLessThen_ != null) { _single_syncRetryCountLessThen_codec.WriteTagAndValue(output, SyncRetryCountLessThen); } if (beginSyncSuccessfulAt_ != null) { output.WriteRawTag(146, 1); output.WriteMessage(BeginSyncSuccessfulAt); } if (endSyncSuccessfulAt_ != null) { output.WriteRawTag(154, 1); output.WriteMessage(EndSyncSuccessfulAt); } if (beginSyncAt_ != null) { output.WriteRawTag(162, 1); output.WriteMessage(BeginSyncAt); } if (endSyncAt_ != null) { output.WriteRawTag(170, 1); output.WriteMessage(EndSyncAt); } 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) { ownerCompanyIds_.WriteTo(ref output, _repeated_ownerCompanyIds_codec); if (text_ != null) { _single_text_codec.WriteTagAndValue(ref output, Text); } flatgrammIds_.WriteTo(ref output, _repeated_flatgrammIds_codec); serialNumbers_.WriteTo(ref output, _repeated_serialNumbers_codec); deviceStatusTypes_.WriteTo(ref output, _repeated_deviceStatusTypes_codec); deviceTypes_.WriteTo(ref output, _repeated_deviceTypes_codec); deviceModelTypes_.WriteTo(ref output, _repeated_deviceModelTypes_codec); if (isConciergeEnabled_ != null) { _single_isConciergeEnabled_codec.WriteTagAndValue(ref output, IsConciergeEnabled); } if (isDispatchingEnabled_ != null) { _single_isDispatchingEnabled_codec.WriteTagAndValue(ref output, IsDispatchingEnabled); } if (dispatchingPublicNumber_ != null) { _single_dispatchingPublicNumber_codec.WriteTagAndValue(ref output, DispatchingPublicNumber); } if (hardwareVersion_ != null) { _single_hardwareVersion_codec.WriteTagAndValue(ref output, HardwareVersion); } if (softwareVersion_ != null) { _single_softwareVersion_codec.WriteTagAndValue(ref output, SoftwareVersion); } if (isAutochangePasswordEnabled_ != null) { _single_isAutochangePasswordEnabled_codec.WriteTagAndValue(ref output, IsAutochangePasswordEnabled); } abcNumber_.WriteTo(ref output, _repeated_abcNumber_codec); cameraIds_.WriteTo(ref output, _repeated_cameraIds_codec); syncStatusStatusTypes_.WriteTo(ref output, _repeated_syncStatusStatusTypes_codec); if (syncRetryCountLessThen_ != null) { _single_syncRetryCountLessThen_codec.WriteTagAndValue(ref output, SyncRetryCountLessThen); } if (beginSyncSuccessfulAt_ != null) { output.WriteRawTag(146, 1); output.WriteMessage(BeginSyncSuccessfulAt); } if (endSyncSuccessfulAt_ != null) { output.WriteRawTag(154, 1); output.WriteMessage(EndSyncSuccessfulAt); } if (beginSyncAt_ != null) { output.WriteRawTag(162, 1); output.WriteMessage(BeginSyncAt); } if (endSyncAt_ != null) { output.WriteRawTag(170, 1); output.WriteMessage(EndSyncAt); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += ownerCompanyIds_.CalculateSize(_repeated_ownerCompanyIds_codec); if (text_ != null) { size += _single_text_codec.CalculateSizeWithTag(Text); } size += flatgrammIds_.CalculateSize(_repeated_flatgrammIds_codec); size += serialNumbers_.CalculateSize(_repeated_serialNumbers_codec); size += deviceStatusTypes_.CalculateSize(_repeated_deviceStatusTypes_codec); size += deviceTypes_.CalculateSize(_repeated_deviceTypes_codec); size += deviceModelTypes_.CalculateSize(_repeated_deviceModelTypes_codec); if (isConciergeEnabled_ != null) { size += _single_isConciergeEnabled_codec.CalculateSizeWithTag(IsConciergeEnabled); } if (isDispatchingEnabled_ != null) { size += _single_isDispatchingEnabled_codec.CalculateSizeWithTag(IsDispatchingEnabled); } if (dispatchingPublicNumber_ != null) { size += _single_dispatchingPublicNumber_codec.CalculateSizeWithTag(DispatchingPublicNumber); } if (hardwareVersion_ != null) { size += _single_hardwareVersion_codec.CalculateSizeWithTag(HardwareVersion); } if (softwareVersion_ != null) { size += _single_softwareVersion_codec.CalculateSizeWithTag(SoftwareVersion); } if (isAutochangePasswordEnabled_ != null) { size += _single_isAutochangePasswordEnabled_codec.CalculateSizeWithTag(IsAutochangePasswordEnabled); } size += abcNumber_.CalculateSize(_repeated_abcNumber_codec); size += cameraIds_.CalculateSize(_repeated_cameraIds_codec); size += syncStatusStatusTypes_.CalculateSize(_repeated_syncStatusStatusTypes_codec); if (syncRetryCountLessThen_ != null) { size += _single_syncRetryCountLessThen_codec.CalculateSizeWithTag(SyncRetryCountLessThen); } if (beginSyncSuccessfulAt_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(BeginSyncSuccessfulAt); } if (endSyncSuccessfulAt_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(EndSyncSuccessfulAt); } if (beginSyncAt_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(BeginSyncAt); } if (endSyncAt_ != null) { size += 2 + pb::CodedOutputStream.ComputeMessageSize(EndSyncAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceFilter other) { if (other == null) { return; } ownerCompanyIds_.Add(other.ownerCompanyIds_); if (other.text_ != null) { if (text_ == null || other.Text != "") { Text = other.Text; } } flatgrammIds_.Add(other.flatgrammIds_); serialNumbers_.Add(other.serialNumbers_); deviceStatusTypes_.Add(other.deviceStatusTypes_); deviceTypes_.Add(other.deviceTypes_); deviceModelTypes_.Add(other.deviceModelTypes_); if (other.isConciergeEnabled_ != null) { if (isConciergeEnabled_ == null || other.IsConciergeEnabled != false) { IsConciergeEnabled = other.IsConciergeEnabled; } } if (other.isDispatchingEnabled_ != null) { if (isDispatchingEnabled_ == null || other.IsDispatchingEnabled != false) { IsDispatchingEnabled = other.IsDispatchingEnabled; } } if (other.dispatchingPublicNumber_ != null) { if (dispatchingPublicNumber_ == null || other.DispatchingPublicNumber != "") { DispatchingPublicNumber = other.DispatchingPublicNumber; } } if (other.hardwareVersion_ != null) { if (hardwareVersion_ == null || other.HardwareVersion != "") { HardwareVersion = other.HardwareVersion; } } if (other.softwareVersion_ != null) { if (softwareVersion_ == null || other.SoftwareVersion != "") { SoftwareVersion = other.SoftwareVersion; } } if (other.isAutochangePasswordEnabled_ != null) { if (isAutochangePasswordEnabled_ == null || other.IsAutochangePasswordEnabled != false) { IsAutochangePasswordEnabled = other.IsAutochangePasswordEnabled; } } abcNumber_.Add(other.abcNumber_); cameraIds_.Add(other.cameraIds_); syncStatusStatusTypes_.Add(other.syncStatusStatusTypes_); if (other.syncRetryCountLessThen_ != null) { if (syncRetryCountLessThen_ == null || other.SyncRetryCountLessThen != 0) { SyncRetryCountLessThen = other.SyncRetryCountLessThen; } } if (other.beginSyncSuccessfulAt_ != null) { if (beginSyncSuccessfulAt_ == null) { BeginSyncSuccessfulAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } BeginSyncSuccessfulAt.MergeFrom(other.BeginSyncSuccessfulAt); } if (other.endSyncSuccessfulAt_ != null) { if (endSyncSuccessfulAt_ == null) { EndSyncSuccessfulAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } EndSyncSuccessfulAt.MergeFrom(other.EndSyncSuccessfulAt); } if (other.beginSyncAt_ != null) { if (beginSyncAt_ == null) { BeginSyncAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } BeginSyncAt.MergeFrom(other.BeginSyncAt); } if (other.endSyncAt_ != null) { if (endSyncAt_ == null) { EndSyncAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } EndSyncAt.MergeFrom(other.EndSyncAt); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: case 8: { ownerCompanyIds_.AddEntriesFrom(input, _repeated_ownerCompanyIds_codec); break; } case 18: { string value = _single_text_codec.Read(input); if (text_ == null || value != "") { Text = value; } break; } case 26: case 24: { flatgrammIds_.AddEntriesFrom(input, _repeated_flatgrammIds_codec); break; } case 34: { serialNumbers_.AddEntriesFrom(input, _repeated_serialNumbers_codec); break; } case 42: case 40: { deviceStatusTypes_.AddEntriesFrom(input, _repeated_deviceStatusTypes_codec); break; } case 50: case 48: { deviceTypes_.AddEntriesFrom(input, _repeated_deviceTypes_codec); break; } case 58: case 56: { deviceModelTypes_.AddEntriesFrom(input, _repeated_deviceModelTypes_codec); break; } case 66: { bool? value = _single_isConciergeEnabled_codec.Read(input); if (isConciergeEnabled_ == null || value != false) { IsConciergeEnabled = value; } break; } case 74: { bool? value = _single_isDispatchingEnabled_codec.Read(input); if (isDispatchingEnabled_ == null || value != false) { IsDispatchingEnabled = value; } break; } case 82: { string value = _single_dispatchingPublicNumber_codec.Read(input); if (dispatchingPublicNumber_ == null || value != "") { DispatchingPublicNumber = value; } break; } case 90: { string value = _single_hardwareVersion_codec.Read(input); if (hardwareVersion_ == null || value != "") { HardwareVersion = value; } break; } case 98: { string value = _single_softwareVersion_codec.Read(input); if (softwareVersion_ == null || value != "") { SoftwareVersion = value; } break; } case 106: { bool? value = _single_isAutochangePasswordEnabled_codec.Read(input); if (isAutochangePasswordEnabled_ == null || value != false) { IsAutochangePasswordEnabled = value; } break; } case 114: { abcNumber_.AddEntriesFrom(input, _repeated_abcNumber_codec); break; } case 122: { cameraIds_.AddEntriesFrom(input, _repeated_cameraIds_codec); break; } case 130: case 128: { syncStatusStatusTypes_.AddEntriesFrom(input, _repeated_syncStatusStatusTypes_codec); break; } case 138: { int? value = _single_syncRetryCountLessThen_codec.Read(input); if (syncRetryCountLessThen_ == null || value != 0) { SyncRetryCountLessThen = value; } break; } case 146: { if (beginSyncSuccessfulAt_ == null) { BeginSyncSuccessfulAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(BeginSyncSuccessfulAt); break; } case 154: { if (endSyncSuccessfulAt_ == null) { EndSyncSuccessfulAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(EndSyncSuccessfulAt); break; } case 162: { if (beginSyncAt_ == null) { BeginSyncAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(BeginSyncAt); break; } case 170: { if (endSyncAt_ == null) { EndSyncAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(EndSyncAt); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: case 8: { ownerCompanyIds_.AddEntriesFrom(ref input, _repeated_ownerCompanyIds_codec); break; } case 18: { string value = _single_text_codec.Read(ref input); if (text_ == null || value != "") { Text = value; } break; } case 26: case 24: { flatgrammIds_.AddEntriesFrom(ref input, _repeated_flatgrammIds_codec); break; } case 34: { serialNumbers_.AddEntriesFrom(ref input, _repeated_serialNumbers_codec); break; } case 42: case 40: { deviceStatusTypes_.AddEntriesFrom(ref input, _repeated_deviceStatusTypes_codec); break; } case 50: case 48: { deviceTypes_.AddEntriesFrom(ref input, _repeated_deviceTypes_codec); break; } case 58: case 56: { deviceModelTypes_.AddEntriesFrom(ref input, _repeated_deviceModelTypes_codec); break; } case 66: { bool? value = _single_isConciergeEnabled_codec.Read(ref input); if (isConciergeEnabled_ == null || value != false) { IsConciergeEnabled = value; } break; } case 74: { bool? value = _single_isDispatchingEnabled_codec.Read(ref input); if (isDispatchingEnabled_ == null || value != false) { IsDispatchingEnabled = value; } break; } case 82: { string value = _single_dispatchingPublicNumber_codec.Read(ref input); if (dispatchingPublicNumber_ == null || value != "") { DispatchingPublicNumber = value; } break; } case 90: { string value = _single_hardwareVersion_codec.Read(ref input); if (hardwareVersion_ == null || value != "") { HardwareVersion = value; } break; } case 98: { string value = _single_softwareVersion_codec.Read(ref input); if (softwareVersion_ == null || value != "") { SoftwareVersion = value; } break; } case 106: { bool? value = _single_isAutochangePasswordEnabled_codec.Read(ref input); if (isAutochangePasswordEnabled_ == null || value != false) { IsAutochangePasswordEnabled = value; } break; } case 114: { abcNumber_.AddEntriesFrom(ref input, _repeated_abcNumber_codec); break; } case 122: { cameraIds_.AddEntriesFrom(ref input, _repeated_cameraIds_codec); break; } case 130: case 128: { syncStatusStatusTypes_.AddEntriesFrom(ref input, _repeated_syncStatusStatusTypes_codec); break; } case 138: { int? value = _single_syncRetryCountLessThen_codec.Read(ref input); if (syncRetryCountLessThen_ == null || value != 0) { SyncRetryCountLessThen = value; } break; } case 146: { if (beginSyncSuccessfulAt_ == null) { BeginSyncSuccessfulAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(BeginSyncSuccessfulAt); break; } case 154: { if (endSyncSuccessfulAt_ == null) { EndSyncSuccessfulAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(EndSyncSuccessfulAt); break; } case 162: { if (beginSyncAt_ == null) { BeginSyncAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(BeginSyncAt); break; } case 170: { if (endSyncAt_ == null) { EndSyncAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(EndSyncAt); break; } } } } #endif } /// /// Постраничный вывод /// public sealed partial class DevicePaging : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DevicePaging()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.Descriptor.MessageTypes[36]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DevicePaging() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DevicePaging(DevicePaging other) : this() { orderByType_ = other.orderByType_; directionType_ = other.directionType_; limit_ = other.limit_; offset_ = other.offset_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DevicePaging Clone() { return new DevicePaging(this); } /// Field number for the "order_by_type" field. public const int OrderByTypeFieldNumber = 1; private global::Keyapis.Device.V1.DevicePaging.Types.OrderByType orderByType_ = global::Keyapis.Device.V1.DevicePaging.Types.OrderByType.Unknown; /// /// Тип значения сортировки. /// Если значение не передано, то будет взято значение по умолчанию. /// # По умолчанию: ID /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DevicePaging.Types.OrderByType OrderByType { get { return orderByType_; } set { orderByType_ = value; } } /// Field number for the "direction_type" field. public const int DirectionTypeFieldNumber = 2; private global::Keyapis.Device.V1.DevicePaging.Types.DirectionType directionType_ = global::Keyapis.Device.V1.DevicePaging.Types.DirectionType.Unknown; /// /// Тип направления сортировки. /// # По умолчанию: DESC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DevicePaging.Types.DirectionType DirectionType { get { return directionType_; } set { directionType_ = value; } } /// Field number for the "limit" field. public const int LimitFieldNumber = 3; private int limit_; /// /// Количество записей на страницу. /// Если значение 0 (не передано), то будет взято значение по умолчанию. /// # Диапазон: 0..100. /// # По умолчанию: 20 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Limit { get { return limit_; } set { limit_ = value; } } /// Field number for the "offset" field. public const int OffsetFieldNumber = 4; private int offset_; /// /// Сдвиг. /// # Диапазон: 0..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Offset { get { return offset_; } set { offset_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DevicePaging); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DevicePaging other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (OrderByType != other.OrderByType) return false; if (DirectionType != other.DirectionType) return false; if (Limit != other.Limit) return false; if (Offset != other.Offset) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (OrderByType != global::Keyapis.Device.V1.DevicePaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode(); if (DirectionType != global::Keyapis.Device.V1.DevicePaging.Types.DirectionType.Unknown) hash ^= DirectionType.GetHashCode(); if (Limit != 0) hash ^= Limit.GetHashCode(); if (Offset != 0) hash ^= Offset.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (OrderByType != global::Keyapis.Device.V1.DevicePaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.Device.V1.DevicePaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (OrderByType != global::Keyapis.Device.V1.DevicePaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.Device.V1.DevicePaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (OrderByType != global::Keyapis.Device.V1.DevicePaging.Types.OrderByType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType); } if (DirectionType != global::Keyapis.Device.V1.DevicePaging.Types.DirectionType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DirectionType); } if (Limit != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit); } if (Offset != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Offset); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DevicePaging other) { if (other == null) { return; } if (other.OrderByType != global::Keyapis.Device.V1.DevicePaging.Types.OrderByType.Unknown) { OrderByType = other.OrderByType; } if (other.DirectionType != global::Keyapis.Device.V1.DevicePaging.Types.DirectionType.Unknown) { DirectionType = other.DirectionType; } if (other.Limit != 0) { Limit = other.Limit; } if (other.Offset != 0) { Offset = other.Offset; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { OrderByType = (global::Keyapis.Device.V1.DevicePaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.Device.V1.DevicePaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { OrderByType = (global::Keyapis.Device.V1.DevicePaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.Device.V1.DevicePaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = input.ReadInt32(); break; } } } } #endif #region Nested types /// Container for nested types declared in the DevicePaging message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов значений сортировки. /// # Тип: byte /// public enum OrderByType { /// /// Значение не указано /// [pbr::OriginalName("ORDER_BY_TYPE_UNKNOWN")] Unknown = 0, /// /// По идентификатору /// [pbr::OriginalName("ID")] Id = 1, /// /// По наименованию /// [pbr::OriginalName("TITLE")] Title = 2, /// /// По дате последней попытки синхронизации /// [pbr::OriginalName("SYNC_AT")] SyncAt = 3, } /// /// Справочник типов направлений сортировки. /// # Тип: byte /// public enum DirectionType { /// /// Значение не указано /// [pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0, /// /// От большего к меньшему /// [pbr::OriginalName("DESC")] Desc = 1, /// /// От меньшего к большему /// [pbr::OriginalName("ASC")] Asc = 2, } } #endregion } /// /// Фильтр конфигураций сгруппированных по устройству /// public sealed partial class DeviceConfigurationStatusGroupedFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceConfigurationStatusGroupedFilter()); 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.KeyapisDeviceDeviceV1Reflection.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 DeviceConfigurationStatusGroupedFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceConfigurationStatusGroupedFilter(DeviceConfigurationStatusGroupedFilter other) : this() { deviceIds_ = other.deviceIds_.Clone(); configurationTypes_ = other.configurationTypes_.Clone(); statusTypes_ = other.statusTypes_.Clone(); IsReadyForRetry = other.IsReadyForRetry; RetryCountLessThen = other.RetryCountLessThen; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceConfigurationStatusGroupedFilter Clone() { return new DeviceConfigurationStatusGroupedFilter(this); } /// Field number for the "device_ids" field. public const int DeviceIdsFieldNumber = 1; private static readonly pb::FieldCodec _repeated_deviceIds_codec = pb::FieldCodec.ForInt32(10); private readonly pbc::RepeatedField deviceIds_ = new pbc::RepeatedField(); /// /// По идентификаторам устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceIds { get { return deviceIds_; } } /// Field number for the "configuration_types" field. public const int ConfigurationTypesFieldNumber = 2; private static readonly pb::FieldCodec _repeated_configurationTypes_codec = pb::FieldCodec.ForEnum(18, x => (int) x, x => (global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.ConfigurationType) x); private readonly pbc::RepeatedField configurationTypes_ = new pbc::RepeatedField(); /// /// По типам конфигурации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField ConfigurationTypes { get { return configurationTypes_; } } /// Field number for the "status_types" field. public const int StatusTypesFieldNumber = 3; private static readonly pb::FieldCodec _repeated_statusTypes_codec = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::Keyapis.Device.V1.DeviceConfigurationStatus.Types.StatusType) x); private readonly pbc::RepeatedField statusTypes_ = new pbc::RepeatedField(); /// /// По статусам конфигурации настройки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField StatusTypes { get { return statusTypes_; } } /// Field number for the "is_ready_for_retry" field. public const int IsReadyForRetryFieldNumber = 4; private static readonly pb::FieldCodec _single_isReadyForRetry_codec = pb::FieldCodec.ForStructWrapper(34); private bool? isReadyForRetry_; /// /// Флаг, указывающий на готовность настройки к конфигурированию. /// Значение next_retry_at меньше текущей даты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool? IsReadyForRetry { get { return isReadyForRetry_; } set { isReadyForRetry_ = value; } } /// Field number for the "retry_count_less_then" field. public const int RetryCountLessThenFieldNumber = 5; private static readonly pb::FieldCodec _single_retryCountLessThen_codec = pb::FieldCodec.ForStructWrapper(42); private int? retryCountLessThen_; /// /// Пороговое значение количества попыток. /// Возвращает записи, у которых retry_count меньше этого значения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? RetryCountLessThen { get { return retryCountLessThen_; } set { retryCountLessThen_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeviceConfigurationStatusGroupedFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceConfigurationStatusGroupedFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!deviceIds_.Equals(other.deviceIds_)) return false; if(!configurationTypes_.Equals(other.configurationTypes_)) return false; if(!statusTypes_.Equals(other.statusTypes_)) return false; if (IsReadyForRetry != other.IsReadyForRetry) return false; if (RetryCountLessThen != other.RetryCountLessThen) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= deviceIds_.GetHashCode(); hash ^= configurationTypes_.GetHashCode(); hash ^= statusTypes_.GetHashCode(); if (isReadyForRetry_ != null) hash ^= IsReadyForRetry.GetHashCode(); if (retryCountLessThen_ != null) hash ^= RetryCountLessThen.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else deviceIds_.WriteTo(output, _repeated_deviceIds_codec); configurationTypes_.WriteTo(output, _repeated_configurationTypes_codec); statusTypes_.WriteTo(output, _repeated_statusTypes_codec); if (isReadyForRetry_ != null) { _single_isReadyForRetry_codec.WriteTagAndValue(output, IsReadyForRetry); } if (retryCountLessThen_ != null) { _single_retryCountLessThen_codec.WriteTagAndValue(output, RetryCountLessThen); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { deviceIds_.WriteTo(ref output, _repeated_deviceIds_codec); configurationTypes_.WriteTo(ref output, _repeated_configurationTypes_codec); statusTypes_.WriteTo(ref output, _repeated_statusTypes_codec); if (isReadyForRetry_ != null) { _single_isReadyForRetry_codec.WriteTagAndValue(ref output, IsReadyForRetry); } if (retryCountLessThen_ != null) { _single_retryCountLessThen_codec.WriteTagAndValue(ref output, RetryCountLessThen); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += deviceIds_.CalculateSize(_repeated_deviceIds_codec); size += configurationTypes_.CalculateSize(_repeated_configurationTypes_codec); size += statusTypes_.CalculateSize(_repeated_statusTypes_codec); if (isReadyForRetry_ != null) { size += _single_isReadyForRetry_codec.CalculateSizeWithTag(IsReadyForRetry); } if (retryCountLessThen_ != null) { size += _single_retryCountLessThen_codec.CalculateSizeWithTag(RetryCountLessThen); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceConfigurationStatusGroupedFilter other) { if (other == null) { return; } deviceIds_.Add(other.deviceIds_); configurationTypes_.Add(other.configurationTypes_); statusTypes_.Add(other.statusTypes_); if (other.isReadyForRetry_ != null) { if (isReadyForRetry_ == null || other.IsReadyForRetry != false) { IsReadyForRetry = other.IsReadyForRetry; } } if (other.retryCountLessThen_ != null) { if (retryCountLessThen_ == null || other.RetryCountLessThen != 0) { RetryCountLessThen = other.RetryCountLessThen; } } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: case 8: { deviceIds_.AddEntriesFrom(input, _repeated_deviceIds_codec); break; } case 18: case 16: { configurationTypes_.AddEntriesFrom(input, _repeated_configurationTypes_codec); break; } case 26: case 24: { statusTypes_.AddEntriesFrom(input, _repeated_statusTypes_codec); break; } case 34: { bool? value = _single_isReadyForRetry_codec.Read(input); if (isReadyForRetry_ == null || value != false) { IsReadyForRetry = value; } break; } case 42: { int? value = _single_retryCountLessThen_codec.Read(input); if (retryCountLessThen_ == null || value != 0) { RetryCountLessThen = value; } break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: case 8: { deviceIds_.AddEntriesFrom(ref input, _repeated_deviceIds_codec); break; } case 18: case 16: { configurationTypes_.AddEntriesFrom(ref input, _repeated_configurationTypes_codec); break; } case 26: case 24: { statusTypes_.AddEntriesFrom(ref input, _repeated_statusTypes_codec); break; } case 34: { bool? value = _single_isReadyForRetry_codec.Read(ref input); if (isReadyForRetry_ == null || value != false) { IsReadyForRetry = value; } break; } case 42: { int? value = _single_retryCountLessThen_codec.Read(ref input); if (retryCountLessThen_ == null || value != 0) { RetryCountLessThen = value; } break; } } } } #endif } /// /// Постраничный вывод конфигураций сгруппированных по устройству /// public sealed partial class DeviceConfigurationStatusGroupedPaging : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceConfigurationStatusGroupedPaging()); 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.KeyapisDeviceDeviceV1Reflection.Descriptor.MessageTypes[38]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceConfigurationStatusGroupedPaging() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceConfigurationStatusGroupedPaging(DeviceConfigurationStatusGroupedPaging other) : this() { orderByType_ = other.orderByType_; directionType_ = other.directionType_; limit_ = other.limit_; offset_ = other.offset_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceConfigurationStatusGroupedPaging Clone() { return new DeviceConfigurationStatusGroupedPaging(this); } /// Field number for the "order_by_type" field. public const int OrderByTypeFieldNumber = 1; private global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.OrderByType orderByType_ = global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.OrderByType.Unknown; /// /// Тип значения сортировки. /// Если значение не передано, то будет взято значение по умолчанию. /// # По умолчанию: DEVICE_ID /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.OrderByType OrderByType { get { return orderByType_; } set { orderByType_ = value; } } /// Field number for the "direction_type" field. public const int DirectionTypeFieldNumber = 2; private global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.DirectionType directionType_ = global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.DirectionType.Unknown; /// /// Тип направления сортировки. /// # По умолчанию: DESC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.DirectionType DirectionType { get { return directionType_; } set { directionType_ = value; } } /// Field number for the "limit" field. public const int LimitFieldNumber = 3; private int limit_; /// /// Количество записей на страницу. /// Если значение 0 (не передано), то будет взято значение по умолчанию. /// # Диапазон: 0..1000. /// # По умолчанию: 20 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Limit { get { return limit_; } set { limit_ = value; } } /// Field number for the "offset" field. public const int OffsetFieldNumber = 4; private int offset_; /// /// Сдвиг. /// # Диапазон: 0..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Offset { get { return offset_; } set { offset_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeviceConfigurationStatusGroupedPaging); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceConfigurationStatusGroupedPaging other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (OrderByType != other.OrderByType) return false; if (DirectionType != other.DirectionType) return false; if (Limit != other.Limit) return false; if (Offset != other.Offset) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (OrderByType != global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode(); if (DirectionType != global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.DirectionType.Unknown) hash ^= DirectionType.GetHashCode(); if (Limit != 0) hash ^= Limit.GetHashCode(); if (Offset != 0) hash ^= Offset.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (OrderByType != global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (OrderByType != global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (OrderByType != global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.OrderByType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType); } if (DirectionType != global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.DirectionType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DirectionType); } if (Limit != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit); } if (Offset != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Offset); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceConfigurationStatusGroupedPaging other) { if (other == null) { return; } if (other.OrderByType != global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.OrderByType.Unknown) { OrderByType = other.OrderByType; } if (other.DirectionType != global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.DirectionType.Unknown) { DirectionType = other.DirectionType; } if (other.Limit != 0) { Limit = other.Limit; } if (other.Offset != 0) { Offset = other.Offset; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { OrderByType = (global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { OrderByType = (global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.Device.V1.DeviceConfigurationStatusGroupedPaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = input.ReadInt32(); break; } } } } #endif #region Nested types /// Container for nested types declared in the DeviceConfigurationStatusGroupedPaging message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов значений сортировки. /// # Тип: byte /// public enum OrderByType { /// /// Значение не указано /// [pbr::OriginalName("ORDER_BY_TYPE_UNKNOWN")] Unknown = 0, /// /// По идентификатору устройства /// [pbr::OriginalName("DEVICE_ID")] DeviceId = 1, } /// /// Справочник типов направлений сортировки. /// # Тип: byte /// public enum DirectionType { /// /// Значение не указано /// [pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0, /// /// От большего к меньшему /// [pbr::OriginalName("DESC")] Desc = 1, /// /// От меньшего к большему /// [pbr::OriginalName("ASC")] Asc = 2, } } #endregion } /// /// Ошибки валидации. /// Эти проверки выполняются до обращения в базу данных /// public sealed partial class ValidationError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ValidationError()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.Descriptor.MessageTypes[39]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError(ValidationError other) : this() { path_ = other.path_; message_ = other.message_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ValidationError Clone() { return new ValidationError(this); } /// Field number for the "path" field. public const int PathFieldNumber = 1; private string path_ = ""; /// /// Путь к полю в формате наименования прото /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Path { get { return path_; } set { path_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "message" field. public const int MessageFieldNumber = 2; private string message_ = ""; /// /// Валидационное сообщение /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { get { return message_; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ValidationError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ValidationError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Path != other.Path) return false; if (Message != other.Message) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Path.Length != 0) hash ^= Path.GetHashCode(); if (Message.Length != 0) hash ^= Message.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Path.Length != 0) { output.WriteRawTag(10); output.WriteString(Path); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Path.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Path); } if (Message.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ValidationError other) { if (other == null) { return; } if (other.Path.Length != 0) { Path = other.Path; } if (other.Message.Length != 0) { Message = other.Message; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Path = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Path = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } } } } #endif } /// /// Пресет. /// Пресет с id=1 устанавливается при создании устройства по умолчанию /// public sealed partial class Preset : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Preset()); 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.KeyapisDeviceDeviceV1Reflection.Descriptor.MessageTypes[40]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Preset() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Preset(Preset other) : this() { id_ = other.id_; title_ = other.title_; mrfIds_ = other.mrfIds_.Clone(); rfIds_ = other.rfIds_.Clone(); Description = other.Description; createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; changedAt_ = other.changedAt_ != null ? other.changedAt_.Clone() : null; statusType_ = other.statusType_; sip_ = other.sip_ != null ? other.sip_.Clone() : null; ntp_ = other.ntp_ != null ? other.ntp_.Clone() : null; syslog_ = other.syslog_ != null ? other.syslog_.Clone() : null; rooms_ = other.rooms_.Clone(); videoConfig_ = other.videoConfig_ != null ? other.videoConfig_.Clone() : null; dtmf_ = other.dtmf_.Clone(); faceRecognition_ = other.faceRecognition_ != null ? other.faceRecognition_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Preset Clone() { return new Preset(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор. /// # Диапазон: 1..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } /// Field number for the "title" field. public const int TitleFieldNumber = 2; private string title_ = ""; /// /// Наименование. /// # Диапазон: 3..256 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Title { get { return title_; } set { title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "mrf_ids" field. public const int MrfIdsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_mrfIds_codec = pb::FieldCodec.ForInt32(26); private readonly pbc::RepeatedField mrfIds_ = new pbc::RepeatedField(); /// /// Идентификатор МРФ. /// # Диапазон: 0..10 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MrfIds { get { return mrfIds_; } } /// Field number for the "rf_ids" field. public const int RfIdsFieldNumber = 4; private static readonly pb::FieldCodec _repeated_rfIds_codec = pb::FieldCodec.ForInt32(34); private readonly pbc::RepeatedField rfIds_ = new pbc::RepeatedField(); /// /// Идентификатор РФ. /// # Диапазон: 0..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RfIds { get { return rfIds_; } } /// Field number for the "description" field. public const int DescriptionFieldNumber = 5; private static readonly pb::FieldCodec _single_description_codec = pb::FieldCodec.ForClassWrapper(42); private string description_; /// /// Описание. /// # Диапазон: 3..1024 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Description { get { return description_; } set { description_ = value; } } /// Field number for the "created_at" field. public const int CreatedAtFieldNumber = 6; private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; /// /// Дата и время создания. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { get { return createdAt_; } set { createdAt_ = value; } } /// Field number for the "changed_at" field. public const int ChangedAtFieldNumber = 7; private global::Google.Protobuf.WellKnownTypes.Timestamp changedAt_; /// /// Дата последнего изменения. /// Заполняется и обновляется сервером. /// Заполняется при создании и изменении. /// Является версией объекта. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ChangedAt { get { return changedAt_; } set { changedAt_ = value; } } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 8; private global::Keyapis.Device.V1.Preset.Types.StatusType statusType_ = global::Keyapis.Device.V1.Preset.Types.StatusType.Unknown; /// /// Статус /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } /// Field number for the "sip" field. public const int SipFieldNumber = 9; private global::Keyapis.Device.V1.Preset.Types.Sip sip_; /// /// Параметр SIP /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset.Types.Sip Sip { get { return sip_; } set { sip_ = value; } } /// Field number for the "ntp" field. public const int NtpFieldNumber = 10; private global::Keyapis.Device.V1.Preset.Types.Ntp ntp_; /// /// Параметр NTP /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset.Types.Ntp Ntp { get { return ntp_; } set { ntp_ = value; } } /// Field number for the "syslog" field. public const int SyslogFieldNumber = 11; private global::Keyapis.Device.V1.Preset.Types.Syslog syslog_; /// /// Параметр Syslog /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset.Types.Syslog Syslog { get { return syslog_; } set { syslog_ = value; } } /// Field number for the "rooms" field. public const int RoomsFieldNumber = 12; private static readonly pb::FieldCodec _repeated_rooms_codec = pb::FieldCodec.ForMessage(98, global::Keyapis.Device.V1.Preset.Types.Room.Parser); private readonly pbc::RepeatedField rooms_ = new pbc::RepeatedField(); /// /// Помещения. /// # Диапазон: 0..10000 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Rooms { get { return rooms_; } } /// Field number for the "video_config" field. public const int VideoConfigFieldNumber = 13; private global::Keyapis.Device.V1.Preset.Types.VideoConfig videoConfig_; /// /// Параметры конфигурации видео /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset.Types.VideoConfig VideoConfig { get { return videoConfig_; } set { videoConfig_ = value; } } /// Field number for the "dtmf" field. public const int DtmfFieldNumber = 14; private static readonly pb::FieldCodec _repeated_dtmf_codec = pb::FieldCodec.ForMessage(114, global::Keyapis.Device.V1.Preset.Types.Dtmf.Parser); private readonly pbc::RepeatedField dtmf_ = new pbc::RepeatedField(); /// /// Параметр DTMF. /// # Диапазон: 0..64 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Dtmf { get { return dtmf_; } } /// Field number for the "face_recognition" field. public const int FaceRecognitionFieldNumber = 15; private global::Keyapis.Device.V1.Preset.Types.FaceRecognition faceRecognition_; /// /// Распознование лиц /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset.Types.FaceRecognition FaceRecognition { get { return faceRecognition_; } set { faceRecognition_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Preset); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Preset other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (Title != other.Title) return false; if(!mrfIds_.Equals(other.mrfIds_)) return false; if(!rfIds_.Equals(other.rfIds_)) return false; if (Description != other.Description) return false; if (!object.Equals(CreatedAt, other.CreatedAt)) return false; if (!object.Equals(ChangedAt, other.ChangedAt)) return false; if (StatusType != other.StatusType) return false; if (!object.Equals(Sip, other.Sip)) return false; if (!object.Equals(Ntp, other.Ntp)) return false; if (!object.Equals(Syslog, other.Syslog)) return false; if(!rooms_.Equals(other.rooms_)) return false; if (!object.Equals(VideoConfig, other.VideoConfig)) return false; if(!dtmf_.Equals(other.dtmf_)) return false; if (!object.Equals(FaceRecognition, other.FaceRecognition)) 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 (Title.Length != 0) hash ^= Title.GetHashCode(); hash ^= mrfIds_.GetHashCode(); hash ^= rfIds_.GetHashCode(); if (description_ != null) hash ^= Description.GetHashCode(); if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); if (changedAt_ != null) hash ^= ChangedAt.GetHashCode(); if (StatusType != global::Keyapis.Device.V1.Preset.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); if (sip_ != null) hash ^= Sip.GetHashCode(); if (ntp_ != null) hash ^= Ntp.GetHashCode(); if (syslog_ != null) hash ^= Syslog.GetHashCode(); hash ^= rooms_.GetHashCode(); if (videoConfig_ != null) hash ^= VideoConfig.GetHashCode(); hash ^= dtmf_.GetHashCode(); if (faceRecognition_ != null) hash ^= FaceRecognition.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 (Title.Length != 0) { output.WriteRawTag(18); output.WriteString(Title); } mrfIds_.WriteTo(output, _repeated_mrfIds_codec); rfIds_.WriteTo(output, _repeated_rfIds_codec); if (description_ != null) { _single_description_codec.WriteTagAndValue(output, Description); } if (createdAt_ != null) { output.WriteRawTag(50); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(58); output.WriteMessage(ChangedAt); } if (StatusType != global::Keyapis.Device.V1.Preset.Types.StatusType.Unknown) { output.WriteRawTag(64); output.WriteEnum((int) StatusType); } if (sip_ != null) { output.WriteRawTag(74); output.WriteMessage(Sip); } if (ntp_ != null) { output.WriteRawTag(82); output.WriteMessage(Ntp); } if (syslog_ != null) { output.WriteRawTag(90); output.WriteMessage(Syslog); } rooms_.WriteTo(output, _repeated_rooms_codec); if (videoConfig_ != null) { output.WriteRawTag(106); output.WriteMessage(VideoConfig); } dtmf_.WriteTo(output, _repeated_dtmf_codec); if (faceRecognition_ != null) { output.WriteRawTag(122); output.WriteMessage(FaceRecognition); } 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 (Title.Length != 0) { output.WriteRawTag(18); output.WriteString(Title); } mrfIds_.WriteTo(ref output, _repeated_mrfIds_codec); rfIds_.WriteTo(ref output, _repeated_rfIds_codec); if (description_ != null) { _single_description_codec.WriteTagAndValue(ref output, Description); } if (createdAt_ != null) { output.WriteRawTag(50); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(58); output.WriteMessage(ChangedAt); } if (StatusType != global::Keyapis.Device.V1.Preset.Types.StatusType.Unknown) { output.WriteRawTag(64); output.WriteEnum((int) StatusType); } if (sip_ != null) { output.WriteRawTag(74); output.WriteMessage(Sip); } if (ntp_ != null) { output.WriteRawTag(82); output.WriteMessage(Ntp); } if (syslog_ != null) { output.WriteRawTag(90); output.WriteMessage(Syslog); } rooms_.WriteTo(ref output, _repeated_rooms_codec); if (videoConfig_ != null) { output.WriteRawTag(106); output.WriteMessage(VideoConfig); } dtmf_.WriteTo(ref output, _repeated_dtmf_codec); if (faceRecognition_ != null) { output.WriteRawTag(122); output.WriteMessage(FaceRecognition); } 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 (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } size += mrfIds_.CalculateSize(_repeated_mrfIds_codec); size += rfIds_.CalculateSize(_repeated_rfIds_codec); if (description_ != null) { size += _single_description_codec.CalculateSizeWithTag(Description); } if (createdAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); } if (changedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedAt); } if (StatusType != global::Keyapis.Device.V1.Preset.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } if (sip_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Sip); } if (ntp_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ntp); } if (syslog_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Syslog); } size += rooms_.CalculateSize(_repeated_rooms_codec); if (videoConfig_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(VideoConfig); } size += dtmf_.CalculateSize(_repeated_dtmf_codec); if (faceRecognition_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(FaceRecognition); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Preset other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.Title.Length != 0) { Title = other.Title; } mrfIds_.Add(other.mrfIds_); rfIds_.Add(other.rfIds_); if (other.description_ != null) { if (description_ == null || other.Description != "") { Description = other.Description; } } if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.changedAt_ != null) { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ChangedAt.MergeFrom(other.ChangedAt); } if (other.StatusType != global::Keyapis.Device.V1.Preset.Types.StatusType.Unknown) { StatusType = other.StatusType; } if (other.sip_ != null) { if (sip_ == null) { Sip = new global::Keyapis.Device.V1.Preset.Types.Sip(); } Sip.MergeFrom(other.Sip); } if (other.ntp_ != null) { if (ntp_ == null) { Ntp = new global::Keyapis.Device.V1.Preset.Types.Ntp(); } Ntp.MergeFrom(other.Ntp); } if (other.syslog_ != null) { if (syslog_ == null) { Syslog = new global::Keyapis.Device.V1.Preset.Types.Syslog(); } Syslog.MergeFrom(other.Syslog); } rooms_.Add(other.rooms_); if (other.videoConfig_ != null) { if (videoConfig_ == null) { VideoConfig = new global::Keyapis.Device.V1.Preset.Types.VideoConfig(); } VideoConfig.MergeFrom(other.VideoConfig); } dtmf_.Add(other.dtmf_); if (other.faceRecognition_ != null) { if (faceRecognition_ == null) { FaceRecognition = new global::Keyapis.Device.V1.Preset.Types.FaceRecognition(); } FaceRecognition.MergeFrom(other.FaceRecognition); } _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: { Title = input.ReadString(); break; } case 26: case 24: { mrfIds_.AddEntriesFrom(input, _repeated_mrfIds_codec); break; } case 34: case 32: { rfIds_.AddEntriesFrom(input, _repeated_rfIds_codec); break; } case 42: { string value = _single_description_codec.Read(input); if (description_ == null || value != "") { Description = value; } break; } case 50: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 58: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 64: { StatusType = (global::Keyapis.Device.V1.Preset.Types.StatusType) input.ReadEnum(); break; } case 74: { if (sip_ == null) { Sip = new global::Keyapis.Device.V1.Preset.Types.Sip(); } input.ReadMessage(Sip); break; } case 82: { if (ntp_ == null) { Ntp = new global::Keyapis.Device.V1.Preset.Types.Ntp(); } input.ReadMessage(Ntp); break; } case 90: { if (syslog_ == null) { Syslog = new global::Keyapis.Device.V1.Preset.Types.Syslog(); } input.ReadMessage(Syslog); break; } case 98: { rooms_.AddEntriesFrom(input, _repeated_rooms_codec); break; } case 106: { if (videoConfig_ == null) { VideoConfig = new global::Keyapis.Device.V1.Preset.Types.VideoConfig(); } input.ReadMessage(VideoConfig); break; } case 114: { dtmf_.AddEntriesFrom(input, _repeated_dtmf_codec); break; } case 122: { if (faceRecognition_ == null) { FaceRecognition = new global::Keyapis.Device.V1.Preset.Types.FaceRecognition(); } input.ReadMessage(FaceRecognition); 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: { Title = input.ReadString(); break; } case 26: case 24: { mrfIds_.AddEntriesFrom(ref input, _repeated_mrfIds_codec); break; } case 34: case 32: { rfIds_.AddEntriesFrom(ref input, _repeated_rfIds_codec); break; } case 42: { string value = _single_description_codec.Read(ref input); if (description_ == null || value != "") { Description = value; } break; } case 50: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 58: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 64: { StatusType = (global::Keyapis.Device.V1.Preset.Types.StatusType) input.ReadEnum(); break; } case 74: { if (sip_ == null) { Sip = new global::Keyapis.Device.V1.Preset.Types.Sip(); } input.ReadMessage(Sip); break; } case 82: { if (ntp_ == null) { Ntp = new global::Keyapis.Device.V1.Preset.Types.Ntp(); } input.ReadMessage(Ntp); break; } case 90: { if (syslog_ == null) { Syslog = new global::Keyapis.Device.V1.Preset.Types.Syslog(); } input.ReadMessage(Syslog); break; } case 98: { rooms_.AddEntriesFrom(ref input, _repeated_rooms_codec); break; } case 106: { if (videoConfig_ == null) { VideoConfig = new global::Keyapis.Device.V1.Preset.Types.VideoConfig(); } input.ReadMessage(VideoConfig); break; } case 114: { dtmf_.AddEntriesFrom(ref input, _repeated_dtmf_codec); break; } case 122: { if (faceRecognition_ == null) { FaceRecognition = new global::Keyapis.Device.V1.Preset.Types.FaceRecognition(); } input.ReadMessage(FaceRecognition); break; } } } } #endif #region Nested types /// Container for nested types declared in the Preset 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("ACTIVE")] Active = 1, /// /// Архивный /// [pbr::OriginalName("ARCHIVE")] Archive = 2, } /// /// Параметр SIP /// public sealed partial class Sip : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Sip()); 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.Preset.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 Sip() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Sip(Sip other) : this() { host_ = other.host_; port_ = other.port_; regHost_ = other.regHost_; regPort_ = other.regPort_; proxyHost_ = other.proxyHost_; proxyPort_ = other.proxyPort_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Sip Clone() { return new Sip(this); } /// Field number for the "host" field. public const int HostFieldNumber = 1; private string host_ = ""; /// /// Хост. /// # Диапазон: 5..256 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "port" field. public const int PortFieldNumber = 2; private int port_; /// /// Порт. /// # Диапазон: 1..65536 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Port { get { return port_; } set { port_ = value; } } /// Field number for the "reg_host" field. public const int RegHostFieldNumber = 3; private string regHost_ = ""; /// /// Хост reg. /// # Диапазон: 5..256 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RegHost { get { return regHost_; } set { regHost_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "reg_port" field. public const int RegPortFieldNumber = 4; private int regPort_; /// /// Порт reg. /// # Диапазон: 1..65536 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RegPort { get { return regPort_; } set { regPort_ = value; } } /// Field number for the "proxy_host" field. public const int ProxyHostFieldNumber = 5; private string proxyHost_ = ""; /// /// Хост proxy. /// # Диапазон: 5..256 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ProxyHost { get { return proxyHost_; } set { proxyHost_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "proxy_port" field. public const int ProxyPortFieldNumber = 6; private int proxyPort_; /// /// Порт proxy. /// # Диапазон: 1..65536 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ProxyPort { get { return proxyPort_; } set { proxyPort_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Sip); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Sip other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Host != other.Host) return false; if (Port != other.Port) return false; if (RegHost != other.RegHost) return false; if (RegPort != other.RegPort) return false; if (ProxyHost != other.ProxyHost) return false; if (ProxyPort != other.ProxyPort) 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 (Host.Length != 0) hash ^= Host.GetHashCode(); if (Port != 0) hash ^= Port.GetHashCode(); if (RegHost.Length != 0) hash ^= RegHost.GetHashCode(); if (RegPort != 0) hash ^= RegPort.GetHashCode(); if (ProxyHost.Length != 0) hash ^= ProxyHost.GetHashCode(); if (ProxyPort != 0) hash ^= ProxyPort.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 (Host.Length != 0) { output.WriteRawTag(10); output.WriteString(Host); } if (Port != 0) { output.WriteRawTag(16); output.WriteInt32(Port); } if (RegHost.Length != 0) { output.WriteRawTag(26); output.WriteString(RegHost); } if (RegPort != 0) { output.WriteRawTag(32); output.WriteInt32(RegPort); } if (ProxyHost.Length != 0) { output.WriteRawTag(42); output.WriteString(ProxyHost); } if (ProxyPort != 0) { output.WriteRawTag(48); output.WriteInt32(ProxyPort); } 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 (Host.Length != 0) { output.WriteRawTag(10); output.WriteString(Host); } if (Port != 0) { output.WriteRawTag(16); output.WriteInt32(Port); } if (RegHost.Length != 0) { output.WriteRawTag(26); output.WriteString(RegHost); } if (RegPort != 0) { output.WriteRawTag(32); output.WriteInt32(RegPort); } if (ProxyHost.Length != 0) { output.WriteRawTag(42); output.WriteString(ProxyHost); } if (ProxyPort != 0) { output.WriteRawTag(48); output.WriteInt32(ProxyPort); } 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 (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Port != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); } if (RegHost.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RegHost); } if (RegPort != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RegPort); } if (ProxyHost.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ProxyHost); } if (ProxyPort != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ProxyPort); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Sip other) { if (other == null) { return; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Port != 0) { Port = other.Port; } if (other.RegHost.Length != 0) { RegHost = other.RegHost; } if (other.RegPort != 0) { RegPort = other.RegPort; } if (other.ProxyHost.Length != 0) { ProxyHost = other.ProxyHost; } if (other.ProxyPort != 0) { ProxyPort = other.ProxyPort; } _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: { Host = input.ReadString(); break; } case 16: { Port = input.ReadInt32(); break; } case 26: { RegHost = input.ReadString(); break; } case 32: { RegPort = input.ReadInt32(); break; } case 42: { ProxyHost = input.ReadString(); break; } case 48: { ProxyPort = 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: { Host = input.ReadString(); break; } case 16: { Port = input.ReadInt32(); break; } case 26: { RegHost = input.ReadString(); break; } case 32: { RegPort = input.ReadInt32(); break; } case 42: { ProxyHost = input.ReadString(); break; } case 48: { ProxyPort = input.ReadInt32(); break; } } } } #endif } /// /// Параметр NTP /// public sealed partial class Ntp : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Ntp()); 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.Preset.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 Ntp() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Ntp(Ntp other) : this() { host_ = other.host_; port_ = other.port_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Ntp Clone() { return new Ntp(this); } /// Field number for the "host" field. public const int HostFieldNumber = 1; private string host_ = ""; /// /// Хост. /// # Диапазон: 5..256 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "port" field. public const int PortFieldNumber = 2; private int port_; /// /// Порт. /// # Диапазон: 1..65536 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Port { get { return port_; } set { port_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Ntp); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Ntp other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Host != other.Host) return false; if (Port != other.Port) 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 (Host.Length != 0) hash ^= Host.GetHashCode(); if (Port != 0) hash ^= Port.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 (Host.Length != 0) { output.WriteRawTag(10); output.WriteString(Host); } if (Port != 0) { output.WriteRawTag(16); output.WriteInt32(Port); } 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 (Host.Length != 0) { output.WriteRawTag(10); output.WriteString(Host); } if (Port != 0) { output.WriteRawTag(16); output.WriteInt32(Port); } 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 (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Port != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Ntp other) { if (other == null) { return; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Port != 0) { Port = other.Port; } _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: { Host = input.ReadString(); break; } case 16: { Port = 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: { Host = input.ReadString(); break; } case 16: { Port = input.ReadInt32(); break; } } } } #endif } /// /// Параметр Syslog /// public sealed partial class Syslog : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Syslog()); 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.Preset.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 Syslog() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Syslog(Syslog other) : this() { host_ = other.host_; port_ = other.port_; protocolType_ = other.protocolType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Syslog Clone() { return new Syslog(this); } /// Field number for the "host" field. public const int HostFieldNumber = 1; private string host_ = ""; /// /// Хост. /// # Диапазон: 5..256 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "port" field. public const int PortFieldNumber = 2; private int port_; /// /// Порт. /// # Диапазон: 1..65536 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Port { get { return port_; } set { port_ = value; } } /// Field number for the "protocol_type" field. public const int ProtocolTypeFieldNumber = 3; private global::Keyapis.Device.V1.Preset.Types.Syslog.Types.ProtocolType protocolType_ = global::Keyapis.Device.V1.Preset.Types.Syslog.Types.ProtocolType.Unknown; /// /// Протокол /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset.Types.Syslog.Types.ProtocolType ProtocolType { get { return protocolType_; } set { protocolType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Syslog); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Syslog other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Host != other.Host) return false; if (Port != other.Port) return false; if (ProtocolType != other.ProtocolType) 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 (Host.Length != 0) hash ^= Host.GetHashCode(); if (Port != 0) hash ^= Port.GetHashCode(); if (ProtocolType != global::Keyapis.Device.V1.Preset.Types.Syslog.Types.ProtocolType.Unknown) hash ^= ProtocolType.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 (Host.Length != 0) { output.WriteRawTag(10); output.WriteString(Host); } if (Port != 0) { output.WriteRawTag(16); output.WriteInt32(Port); } if (ProtocolType != global::Keyapis.Device.V1.Preset.Types.Syslog.Types.ProtocolType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) ProtocolType); } 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 (Host.Length != 0) { output.WriteRawTag(10); output.WriteString(Host); } if (Port != 0) { output.WriteRawTag(16); output.WriteInt32(Port); } if (ProtocolType != global::Keyapis.Device.V1.Preset.Types.Syslog.Types.ProtocolType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) ProtocolType); } 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 (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (Port != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); } if (ProtocolType != global::Keyapis.Device.V1.Preset.Types.Syslog.Types.ProtocolType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProtocolType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Syslog other) { if (other == null) { return; } if (other.Host.Length != 0) { Host = other.Host; } if (other.Port != 0) { Port = other.Port; } if (other.ProtocolType != global::Keyapis.Device.V1.Preset.Types.Syslog.Types.ProtocolType.Unknown) { ProtocolType = other.ProtocolType; } _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: { Host = input.ReadString(); break; } case 16: { Port = input.ReadInt32(); break; } case 24: { ProtocolType = (global::Keyapis.Device.V1.Preset.Types.Syslog.Types.ProtocolType) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Host = input.ReadString(); break; } case 16: { Port = input.ReadInt32(); break; } case 24: { ProtocolType = (global::Keyapis.Device.V1.Preset.Types.Syslog.Types.ProtocolType) input.ReadEnum(); break; } } } } #endif #region Nested types /// Container for nested types declared in the Syslog message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Тип протокола. /// # Тип: byte /// public enum ProtocolType { /// /// Значение не указано /// [pbr::OriginalName("PROTOCOL_TYPE_UNKNOWN")] Unknown = 0, /// /// Протокол UDP /// [pbr::OriginalName("UDP")] Udp = 1, /// /// Протокол TCP /// [pbr::OriginalName("TCP")] Tcp = 2, } } #endregion } /// /// Помещение /// public sealed partial class Room : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Room()); 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.Preset.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 Room() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Room(Room other) : this() { phone_ = other.phone_; num_ = other.num_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Room Clone() { return new Room(this); } /// Field number for the "phone" field. public const int PhoneFieldNumber = 1; private string phone_ = ""; /// /// Номер телефона. /// # Диапазон: 5..14 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Phone { get { return phone_; } set { phone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "num" field. public const int NumFieldNumber = 2; private int num_; /// /// Номер помещения. /// # Диапазон: 1..10000 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Num { get { return num_; } set { num_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Room); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Room other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Phone != other.Phone) return false; if (Num != other.Num) 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 (Phone.Length != 0) hash ^= Phone.GetHashCode(); if (Num != 0) hash ^= Num.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 (Phone.Length != 0) { output.WriteRawTag(10); output.WriteString(Phone); } if (Num != 0) { output.WriteRawTag(16); output.WriteInt32(Num); } 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 (Phone.Length != 0) { output.WriteRawTag(10); output.WriteString(Phone); } if (Num != 0) { output.WriteRawTag(16); output.WriteInt32(Num); } 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 (Phone.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Phone); } if (Num != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Room other) { if (other == null) { return; } if (other.Phone.Length != 0) { Phone = other.Phone; } if (other.Num != 0) { Num = other.Num; } _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: { Phone = input.ReadString(); break; } case 16: { Num = 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: { Phone = input.ReadString(); break; } case 16: { Num = input.ReadInt32(); break; } } } } #endif } /// /// Параметры конфигурации видео /// public sealed partial class VideoConfig : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoConfig()); 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.Preset.Descriptor.NestedTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoConfig() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoConfig(VideoConfig other) : this() { qualityType_ = other.qualityType_; rtspUser_ = other.rtspUser_ != null ? other.rtspUser_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoConfig Clone() { return new VideoConfig(this); } /// Field number for the "quality_type" field. public const int QualityTypeFieldNumber = 1; private global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.QualityType qualityType_ = global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.QualityType.Unknown; /// /// Тип пресета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.QualityType QualityType { get { return qualityType_; } set { qualityType_ = value; } } /// Field number for the "rtsp_user" field. public const int RtspUserFieldNumber = 2; private global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.RtspUser rtspUser_; /// /// Пользователь /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.RtspUser RtspUser { get { return rtspUser_; } set { rtspUser_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as VideoConfig); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(VideoConfig other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (QualityType != other.QualityType) return false; if (!object.Equals(RtspUser, other.RtspUser)) 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 (QualityType != global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.QualityType.Unknown) hash ^= QualityType.GetHashCode(); if (rtspUser_ != null) hash ^= RtspUser.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 (QualityType != global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.QualityType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) QualityType); } if (rtspUser_ != null) { output.WriteRawTag(18); output.WriteMessage(RtspUser); } 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 (QualityType != global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.QualityType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) QualityType); } if (rtspUser_ != null) { output.WriteRawTag(18); output.WriteMessage(RtspUser); } 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 (QualityType != global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.QualityType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) QualityType); } if (rtspUser_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(RtspUser); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(VideoConfig other) { if (other == null) { return; } if (other.QualityType != global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.QualityType.Unknown) { QualityType = other.QualityType; } if (other.rtspUser_ != null) { if (rtspUser_ == null) { RtspUser = new global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.RtspUser(); } RtspUser.MergeFrom(other.RtspUser); } _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: { QualityType = (global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.QualityType) input.ReadEnum(); break; } case 18: { if (rtspUser_ == null) { RtspUser = new global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.RtspUser(); } input.ReadMessage(RtspUser); 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: { QualityType = (global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.QualityType) input.ReadEnum(); break; } case 18: { if (rtspUser_ == null) { RtspUser = new global::Keyapis.Device.V1.Preset.Types.VideoConfig.Types.RtspUser(); } input.ReadMessage(RtspUser); break; } } } } #endif #region Nested types /// Container for nested types declared in the VideoConfig message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник качеств. /// # Тип: byte /// public enum QualityType { /// /// Значение не указано /// [pbr::OriginalName("QUALITY_TYPE_UNKNOWN")] Unknown = 0, /// /// Высокое качество /// [pbr::OriginalName("HIGH")] High = 1, /// /// Среднее качество /// [pbr::OriginalName("MEDIUM")] Medium = 2, } /// /// Пользователь /// public sealed partial class RtspUser : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RtspUser()); 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.Preset.Types.VideoConfig.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 RtspUser() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RtspUser(RtspUser other) : this() { username_ = other.username_; password_ = other.password_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RtspUser Clone() { return new RtspUser(this); } /// Field number for the "username" field. public const int UsernameFieldNumber = 1; private string username_ = ""; /// /// Имя пользователя. /// # Диапазон: 3..256 /// [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 = 2; private string password_ = ""; /// /// Пароль. /// # Диапазон: 3..256 /// [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 RtspUser); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RtspUser other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Username != other.Username) 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 (Username.Length != 0) hash ^= Username.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 (Username.Length != 0) { output.WriteRawTag(10); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(18); 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 (Username.Length != 0) { output.WriteRawTag(10); output.WriteString(Username); } if (Password.Length != 0) { output.WriteRawTag(18); 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 (Username.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Username); } 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(RtspUser other) { if (other == null) { return; } if (other.Username.Length != 0) { Username = other.Username; } 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: { Username = input.ReadString(); break; } case 18: { 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: { Username = input.ReadString(); break; } case 18: { Password = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Параметр DTMF /// public sealed partial class Dtmf : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Dtmf()); 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.Preset.Descriptor.NestedTypes[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 Dtmf() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Dtmf(Dtmf other) : this() { code_ = other.code_; relayIndex_ = other.relayIndex_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Dtmf Clone() { return new Dtmf(this); } /// Field number for the "code" field. public const int CodeFieldNumber = 1; private string code_ = ""; /// /// Код. /// # Диапазон: 1..1 /// [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 "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 Dtmf); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Dtmf other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Code != other.Code) 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 (Code.Length != 0) hash ^= Code.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 (Code.Length != 0) { output.WriteRawTag(10); output.WriteString(Code); } 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 (Code.Length != 0) { output.WriteRawTag(10); output.WriteString(Code); } 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 (Code.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Code); } 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(Dtmf other) { if (other == null) { return; } if (other.Code.Length != 0) { Code = other.Code; } 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 10: { Code = input.ReadString(); 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 10: { Code = input.ReadString(); break; } case 16: { RelayIndex = input.ReadInt32(); break; } } } } #endif } /// /// Распознование лиц /// 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.Preset.Descriptor.NestedTypes[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 FaceRecognition() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public FaceRecognition(FaceRecognition other) : this() { host_ = other.host_; altHost_ = other.altHost_; endpoint_ = other.endpoint_; authToken_ = other.authToken_; configurationType_ = other.configurationType_; originId_ = other.originId_; groupIds_ = other.groupIds_.Clone(); _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 "host" field. public const int HostFieldNumber = 1; 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 "alt_host" field. public const int AltHostFieldNumber = 2; private string altHost_ = ""; /// /// Альтернативный адрес /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string AltHost { get { return altHost_; } set { altHost_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "endpoint" field. public const int EndpointFieldNumber = 3; private string endpoint_ = ""; /// /// Путь запроса к серверу /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Endpoint { get { return endpoint_; } set { endpoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "auth_token" field. public const int AuthTokenFieldNumber = 4; private string authToken_ = ""; /// /// Токен /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string AuthToken { get { return authToken_; } set { authToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "configuration_type" field. public const int ConfigurationTypeFieldNumber = 5; private global::Keyapis.Device.V1.Preset.Types.FaceRecognition.Types.ConfigurationType configurationType_ = global::Keyapis.Device.V1.Preset.Types.FaceRecognition.Types.ConfigurationType.Unknown; /// /// Тип конфигурации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset.Types.FaceRecognition.Types.ConfigurationType ConfigurationType { get { return configurationType_; } set { configurationType_ = value; } } /// Field number for the "origin_id" field. public const int OriginIdFieldNumber = 6; private string originId_ = ""; /// /// Идентификатор источника в identix /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string OriginId { get { return originId_; } set { originId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "group_ids" field. public const int GroupIdsFieldNumber = 7; private static readonly pb::FieldCodec _repeated_groupIds_codec = pb::FieldCodec.ForInt32(58); private readonly pbc::RepeatedField groupIds_ = new pbc::RepeatedField(); /// /// Идентификаторы групп профилей в identix /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField GroupIds { get { return groupIds_; } } [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 (Host != other.Host) return false; if (AltHost != other.AltHost) return false; if (Endpoint != other.Endpoint) return false; if (AuthToken != other.AuthToken) return false; if (ConfigurationType != other.ConfigurationType) return false; if (OriginId != other.OriginId) return false; if(!groupIds_.Equals(other.groupIds_)) 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 (Host.Length != 0) hash ^= Host.GetHashCode(); if (AltHost.Length != 0) hash ^= AltHost.GetHashCode(); if (Endpoint.Length != 0) hash ^= Endpoint.GetHashCode(); if (AuthToken.Length != 0) hash ^= AuthToken.GetHashCode(); if (ConfigurationType != global::Keyapis.Device.V1.Preset.Types.FaceRecognition.Types.ConfigurationType.Unknown) hash ^= ConfigurationType.GetHashCode(); if (OriginId.Length != 0) hash ^= OriginId.GetHashCode(); hash ^= groupIds_.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 (Host.Length != 0) { output.WriteRawTag(10); output.WriteString(Host); } if (AltHost.Length != 0) { output.WriteRawTag(18); output.WriteString(AltHost); } if (Endpoint.Length != 0) { output.WriteRawTag(26); output.WriteString(Endpoint); } if (AuthToken.Length != 0) { output.WriteRawTag(34); output.WriteString(AuthToken); } if (ConfigurationType != global::Keyapis.Device.V1.Preset.Types.FaceRecognition.Types.ConfigurationType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) ConfigurationType); } if (OriginId.Length != 0) { output.WriteRawTag(50); output.WriteString(OriginId); } groupIds_.WriteTo(output, _repeated_groupIds_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 (Host.Length != 0) { output.WriteRawTag(10); output.WriteString(Host); } if (AltHost.Length != 0) { output.WriteRawTag(18); output.WriteString(AltHost); } if (Endpoint.Length != 0) { output.WriteRawTag(26); output.WriteString(Endpoint); } if (AuthToken.Length != 0) { output.WriteRawTag(34); output.WriteString(AuthToken); } if (ConfigurationType != global::Keyapis.Device.V1.Preset.Types.FaceRecognition.Types.ConfigurationType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) ConfigurationType); } if (OriginId.Length != 0) { output.WriteRawTag(50); output.WriteString(OriginId); } groupIds_.WriteTo(ref output, _repeated_groupIds_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 (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (AltHost.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(AltHost); } if (Endpoint.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Endpoint); } if (AuthToken.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(AuthToken); } if (ConfigurationType != global::Keyapis.Device.V1.Preset.Types.FaceRecognition.Types.ConfigurationType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ConfigurationType); } if (OriginId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(OriginId); } size += groupIds_.CalculateSize(_repeated_groupIds_codec); 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.Host.Length != 0) { Host = other.Host; } if (other.AltHost.Length != 0) { AltHost = other.AltHost; } if (other.Endpoint.Length != 0) { Endpoint = other.Endpoint; } if (other.AuthToken.Length != 0) { AuthToken = other.AuthToken; } if (other.ConfigurationType != global::Keyapis.Device.V1.Preset.Types.FaceRecognition.Types.ConfigurationType.Unknown) { ConfigurationType = other.ConfigurationType; } if (other.OriginId.Length != 0) { OriginId = other.OriginId; } groupIds_.Add(other.groupIds_); _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: { Host = input.ReadString(); break; } case 18: { AltHost = input.ReadString(); break; } case 26: { Endpoint = input.ReadString(); break; } case 34: { AuthToken = input.ReadString(); break; } case 40: { ConfigurationType = (global::Keyapis.Device.V1.Preset.Types.FaceRecognition.Types.ConfigurationType) input.ReadEnum(); break; } case 50: { OriginId = input.ReadString(); break; } case 58: case 56: { groupIds_.AddEntriesFrom(input, _repeated_groupIds_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: { Host = input.ReadString(); break; } case 18: { AltHost = input.ReadString(); break; } case 26: { Endpoint = input.ReadString(); break; } case 34: { AuthToken = input.ReadString(); break; } case 40: { ConfigurationType = (global::Keyapis.Device.V1.Preset.Types.FaceRecognition.Types.ConfigurationType) input.ReadEnum(); break; } case 50: { OriginId = input.ReadString(); break; } case 58: case 56: { groupIds_.AddEntriesFrom(ref input, _repeated_groupIds_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the FaceRecognition message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Тип конфигурации. /// # Тип: byte /// public enum ConfigurationType { /// /// Значение не указано /// [pbr::OriginalName("CONFIGURATION_TYPE_UNKNOWN")] Unknown = 0, /// /// По умолчанию /// [pbr::OriginalName("DEFAULT")] Default = 1, } } #endregion } /// /// Ошибка сохранения. /// Эти проверки выполняются при работе с базой данных и сторонними сервисами /// public sealed partial class SavingError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SavingError()); 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.Preset.Descriptor.NestedTypes[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 SavingError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SavingError(SavingError other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Conflict: Conflict = other.Conflict.Clone(); break; case ReasonOneofCase.NotAllowedForDefault: NotAllowedForDefault = other.NotAllowedForDefault.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SavingError Clone() { return new SavingError(this); } /// Field number for the "conflict" field. public const int ConflictFieldNumber = 1; /// /// Конфликт версий /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset.Types.SavingError.Types.Conflict Conflict { get { return reasonCase_ == ReasonOneofCase.Conflict ? (global::Keyapis.Device.V1.Preset.Types.SavingError.Types.Conflict) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Conflict; } } /// Field number for the "not_allowed_for_default" field. public const int NotAllowedForDefaultFieldNumber = 2; /// /// Запрещено для дефолтного пресета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.Preset.Types.SavingError.Types.NotAllowedForDefault NotAllowedForDefault { get { return reasonCase_ == ReasonOneofCase.NotAllowedForDefault ? (global::Keyapis.Device.V1.Preset.Types.SavingError.Types.NotAllowedForDefault) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.NotAllowedForDefault; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Conflict = 1, NotAllowedForDefault = 2, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SavingError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SavingError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Conflict, other.Conflict)) return false; if (!object.Equals(NotAllowedForDefault, other.NotAllowedForDefault)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Conflict) hash ^= Conflict.GetHashCode(); if (reasonCase_ == ReasonOneofCase.NotAllowedForDefault) hash ^= NotAllowedForDefault.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Conflict) { output.WriteRawTag(10); output.WriteMessage(Conflict); } if (reasonCase_ == ReasonOneofCase.NotAllowedForDefault) { output.WriteRawTag(18); output.WriteMessage(NotAllowedForDefault); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Conflict) { output.WriteRawTag(10); output.WriteMessage(Conflict); } if (reasonCase_ == ReasonOneofCase.NotAllowedForDefault) { output.WriteRawTag(18); output.WriteMessage(NotAllowedForDefault); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Conflict) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Conflict); } if (reasonCase_ == ReasonOneofCase.NotAllowedForDefault) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(NotAllowedForDefault); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SavingError other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Conflict: if (Conflict == null) { Conflict = new global::Keyapis.Device.V1.Preset.Types.SavingError.Types.Conflict(); } Conflict.MergeFrom(other.Conflict); break; case ReasonOneofCase.NotAllowedForDefault: if (NotAllowedForDefault == null) { NotAllowedForDefault = new global::Keyapis.Device.V1.Preset.Types.SavingError.Types.NotAllowedForDefault(); } NotAllowedForDefault.MergeFrom(other.NotAllowedForDefault); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Keyapis.Device.V1.Preset.Types.SavingError.Types.Conflict subBuilder = new global::Keyapis.Device.V1.Preset.Types.SavingError.Types.Conflict(); if (reasonCase_ == ReasonOneofCase.Conflict) { subBuilder.MergeFrom(Conflict); } input.ReadMessage(subBuilder); Conflict = subBuilder; break; } case 18: { global::Keyapis.Device.V1.Preset.Types.SavingError.Types.NotAllowedForDefault subBuilder = new global::Keyapis.Device.V1.Preset.Types.SavingError.Types.NotAllowedForDefault(); if (reasonCase_ == ReasonOneofCase.NotAllowedForDefault) { subBuilder.MergeFrom(NotAllowedForDefault); } input.ReadMessage(subBuilder); NotAllowedForDefault = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Keyapis.Device.V1.Preset.Types.SavingError.Types.Conflict subBuilder = new global::Keyapis.Device.V1.Preset.Types.SavingError.Types.Conflict(); if (reasonCase_ == ReasonOneofCase.Conflict) { subBuilder.MergeFrom(Conflict); } input.ReadMessage(subBuilder); Conflict = subBuilder; break; } case 18: { global::Keyapis.Device.V1.Preset.Types.SavingError.Types.NotAllowedForDefault subBuilder = new global::Keyapis.Device.V1.Preset.Types.SavingError.Types.NotAllowedForDefault(); if (reasonCase_ == ReasonOneofCase.NotAllowedForDefault) { subBuilder.MergeFrom(NotAllowedForDefault); } input.ReadMessage(subBuilder); NotAllowedForDefault = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the SavingError message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Конфликт версий. /// Причины: /// - В базе хранится другая версия строки, значения changed_at отличаются /// public sealed partial class Conflict : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Conflict()); 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.Preset.Types.SavingError.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 Conflict() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Conflict(Conflict other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Conflict Clone() { return new Conflict(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Conflict); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Conflict other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Conflict other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Недоступно для дефолтного пресета. /// Причины: /// - Смена статуса на Архивный /// public sealed partial class NotAllowedForDefault : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NotAllowedForDefault()); 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.Preset.Types.SavingError.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 NotAllowedForDefault() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NotAllowedForDefault(NotAllowedForDefault other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public NotAllowedForDefault Clone() { return new NotAllowedForDefault(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as NotAllowedForDefault); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(NotAllowedForDefault other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(NotAllowedForDefault other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } } #endregion } } #endregion } #endregion } #endregion Designer generated code