//
// 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);
}
///