// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/access_control/v1/keyapis_access_control_rfid_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.AccessControl.V1 { /// Holder for reflection information generated from keyapis/access_control/v1/keyapis_access_control_rfid_v1.proto public static partial class KeyapisAccessControlRfidV1Reflection { #region Descriptor /// File descriptor for keyapis/access_control/v1/keyapis_access_control_rfid_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisAccessControlRfidV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Cj5rZXlhcGlzL2FjY2Vzc19jb250cm9sL3YxL2tleWFwaXNfYWNjZXNzX2Nv", "bnRyb2xfcmZpZF92MS5wcm90bxIZa2V5YXBpcy5hY2Nlc3NfY29udHJvbC52", "MRocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL2FwaS9m", "aWVsZF9iZWhhdmlvci5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFt", "cC5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL3dyYXBwZXJzLnByb3RvGkhrZXlh", "cGlzL2FjY2Vzc19jb250cm9sL3YxL2tleWFwaXNfYWNjZXNzX2NvbnRyb2xf", "YWNjZXNzX2NvbnRyb2xfdjEucHJvdG8izwoKBFJmaWQSCgoCaWQYASABKAUS", "LAoHdXNlcl9pZBgCIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVl", "EjEKC2Rlc2NyaXB0aW9uGAMgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmlu", "Z1ZhbHVlEi8KCmNvbXBhbnlfaWQYBCABKAsyGy5nb29nbGUucHJvdG9idWYu", "SW50MzJWYWx1ZRIvCgpjcmVhdG9yX2lkGAUgASgLMhsuZ29vZ2xlLnByb3Rv", "YnVmLkludDMyVmFsdWUSEAoDa2V5GAYgASgJQgPgQQISPgoIcGF5X3R5cGUY", "ByABKA4yJy5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYxLlJmaWQuUGF5VHlw", "ZUID4EECEkQKC2hvbGRlcl90eXBlGAggASgOMioua2V5YXBpcy5hY2Nlc3Nf", "Y29udHJvbC52MS5SZmlkLkhvbGRlclR5cGVCA+BBAhIzCgpjcmVhdGVkX2F0", "GAkgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID4EEDEi4KCmNo", "YW5nZWRfYXQYCiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhIK", "BW9ycG9uGAsgASgDQgPgQQISGAoLcm9vbV9udW1iZXIYDCABKAlCA+BBAhq2", "BQoLU2F2aW5nRXJyb3ISSAoIY29uZmxpY3QYASABKAsyNC5rZXlhcGlzLmFj", "Y2Vzc19jb250cm9sLnYxLlJmaWQuU2F2aW5nRXJyb3IuQ29uZmxpY3RIABJJ", "CglrZXlfZXhpc3QYAiABKAsyNC5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYx", "LlJmaWQuU2F2aW5nRXJyb3IuS2V5RXhpc3RIABJoChprZXlfY29kZV9jYW5u", "b3RfYmVfY2hhbmdlZBgDIAEoCzJCLmtleWFwaXMuYWNjZXNzX2NvbnRyb2wu", "djEuUmZpZC5TYXZpbmdFcnJvci5LZXlDb2RlQ2Fubm90QmVDaGFuZ2VkSAAS", "dwoiZXhjZWVkZWRfcXVhbnRpdHlfb2Zfa2V5c19mb3Jfcm9vbRgEIAEoCzJJ", "LmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuUmZpZC5TYXZpbmdFcnJvci5F", "eGNlZWRlZFF1YW50aXR5T2ZLZXlzRm9yUm9vbUgAEkwKC2tleV9pc191c2Vk", "GAUgASgLMjUua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MS5SZmlkLlNhdmlu", "Z0Vycm9yLktleUlzVXNlZEgAEmAKFWhvbGRlcl90eXBlX2ZvcmJpZGRlbhgG", "IAEoCzI/LmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuUmZpZC5TYXZpbmdF", "cnJvci5Ib2xkZXJUeXBlRm9yYmlkZGVuSAAaCgoIQ29uZmxpY3QaCgoIS2V5", "RXhpc3QaGAoWS2V5Q29kZUNhbm5vdEJlQ2hhbmdlZBofCh1FeGNlZWRlZFF1", "YW50aXR5T2ZLZXlzRm9yUm9vbRoLCglLZXlJc1VzZWQaFQoTSG9sZGVyVHlw", "ZUZvcmJpZGRlbkIICgZyZWFzb24iMwoHUGF5VHlwZRIUChBQQVlfVFlQRV9V", "TktOT1dOEAASCAoEUEFJRBABEggKBEZSRUUQAiJfCgpIb2xkZXJUeXBlEhcK", "E0hPTERFUl9UWVBFX1VOS05PV04QABIKCgZNQVNURVIQARILCgdDT01QQU5Z", "EAISEwoPRVhURVJOQUxfU0VMTEVSEAMSCgoGU1lTVEVNEAQiIQoOR2V0UmZp", "ZFJlcXVlc3QSDwoCaWQYASABKAVCA+BBAiLiAQoPR2V0UmZpZFJlc3BvbnNl", "Ei8KBGRhdGEYASABKAsyHy5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYxLlJm", "aWRIABJBCgVlcnJvchgCIAEoCzIwLmtleWFwaXMuYWNjZXNzX2NvbnRyb2wu", "djEuR2V0UmZpZFJlc3BvbnNlLkVycm9ySAAaUwoFRXJyb3ISQAoKdmFsaWRh", "dGlvbhgBIAEoCzIqLmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuVmFsaWRh", "dGlvbkVycm9ySABCCAoGcmVhc29uQgYKBHR5cGUikgEKEkdldFJmaWRMaXN0", "UmVxdWVzdBI1CgZmaWx0ZXIYASABKAsyJS5rZXlhcGlzLmFjY2Vzc19jb250", "cm9sLnYxLlJmaWRGaWx0ZXISNwoGcGFnaW5nGAIgASgLMiUua2V5YXBpcy5h", "Y2Nlc3NfY29udHJvbC52MS5SZmlkUGFnaW5nSABCDAoKcGFnaW5hdGlvbiLq", "AQoTR2V0UmZpZExpc3RSZXNwb25zZRIvCgRkYXRhGAEgASgLMh8ua2V5YXBp", "cy5hY2Nlc3NfY29udHJvbC52MS5SZmlkSAASRQoFZXJyb3IYAiABKAsyNC5r", "ZXlhcGlzLmFjY2Vzc19jb250cm9sLnYxLkdldFJmaWRMaXN0UmVzcG9uc2Uu", "RXJyb3JIABpTCgVFcnJvchJACgp2YWxpZGF0aW9uGAEgASgLMioua2V5YXBp", "cy5hY2Nlc3NfY29udHJvbC52MS5WYWxpZGF0aW9uRXJyb3JIAEIICgZyZWFz", "b25CBgoEdHlwZSJMChNHZXRSZmlkQ291bnRSZXF1ZXN0EjUKBmZpbHRlchgB", "IAEoCzIlLmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuUmZpZEZpbHRlciLL", "AQoUR2V0UmZpZENvdW50UmVzcG9uc2USDgoEZGF0YRgBIAEoBUgAEkYKBWVy", "cm9yGAIgASgLMjUua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MS5HZXRSZmlk", "Q291bnRSZXNwb25zZS5FcnJvckgAGlMKBUVycm9yEkAKCnZhbGlkYXRpb24Y", "ASABKAsyKi5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYxLlZhbGlkYXRpb25F", "cnJvckgAQggKBnJlYXNvbkIGCgR0eXBlIkUKD1Bvc3RSZmlkUmVxdWVzdBIy", "CgRkYXRhGAEgASgLMh8ua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MS5SZmlk", "QgPgQQIipAIKEFBvc3RSZmlkUmVzcG9uc2USLwoEZGF0YRgBIAEoCzIfLmtl", "eWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuUmZpZEgAEkIKBWVycm9yGAIgASgL", "MjEua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MS5Qb3N0UmZpZFJlc3BvbnNl", "LkVycm9ySAAakgEKBUVycm9yEkAKCnZhbGlkYXRpb24YASABKAsyKi5rZXlh", "cGlzLmFjY2Vzc19jb250cm9sLnYxLlZhbGlkYXRpb25FcnJvckgAEj0KBnNh", "dmluZxgCIAEoCzIrLmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuUmZpZC5T", "YXZpbmdFcnJvckgAQggKBnJlYXNvbkIGCgR0eXBlIj0KEURlbGV0ZVJmaWRS", "ZXF1ZXN0Eg8KAmlkGAEgASgFQgPgQQISFwoPaXNfZm9yY2VfZGVsZXRlGAIg", "ASgIIrcBChJEZWxldGVSZmlkUmVzcG9uc2USRAoFZXJyb3IYASABKAsyMy5r", "ZXlhcGlzLmFjY2Vzc19jb250cm9sLnYxLkRlbGV0ZVJmaWRSZXNwb25zZS5F", "cnJvckgAGlMKBUVycm9yEkAKCnZhbGlkYXRpb24YASABKAsyKi5rZXlhcGlz", "LmFjY2Vzc19jb250cm9sLnYxLlZhbGlkYXRpb25FcnJvckgAQggKBnJlYXNv", "bkIGCgR0eXBlIuUBCgpSZmlkRmlsdGVyEkAKDGhvbGRlcl90eXBlcxgBIAMo", "DjIqLmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuUmZpZC5Ib2xkZXJUeXBl", "EjoKCXBheV90eXBlcxgCIAMoDjInLmtleWFwaXMuYWNjZXNzX2NvbnRyb2wu", "djEuUmZpZC5QYXlUeXBlEg4KBm9ycG9ucxgDIAMoAxIUCgxyb29tX251bWJl", "cnMYBCADKAkSEAoIdXNlcl9pZHMYBSADKAUSEwoLY29tcGFueV9pZHMYBiAD", "KAUSDAoEa2V5cxgHIAMoCSLMAgoKUmZpZFBhZ2luZxJICg1vcmRlcl9ieV90", "eXBlGAEgASgOMjEua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MS5SZmlkUGFn", "aW5nLk9yZGVyQnlUeXBlEksKDmRpcmVjdGlvbl90eXBlGAIgASgOMjMua2V5", "YXBpcy5hY2Nlc3NfY29udHJvbC52MS5SZmlkUGFnaW5nLkRpcmVjdGlvblR5", "cGUSDQoFbGltaXQYAyABKAUSDgoGb2Zmc2V0GAQgASgFIkgKC09yZGVyQnlU", "eXBlEhkKFU9SREVSX0JZX1RZUEVfVU5LTk9XThAAEg4KCkNSRUFURURfQVQQ", "ARIOCgpDSEFOR0VEX0FUEAIiPgoNRGlyZWN0aW9uVHlwZRIaChZESVJFQ1RJ", "T05fVFlQRV9VTktOT1dOEAASCAoEREVTQxABEgcKA0FTQxACMvYFCgtSZmlk", "U2VydmljZRKKAQoHR2V0UmZpZBIpLmtleWFwaXMuYWNjZXNzX2NvbnRyb2wu", "djEuR2V0UmZpZFJlcXVlc3QaKi5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYx", "LkdldFJmaWRSZXNwb25zZSIogtPkkwIiEiAvYWNjZXNzX2NvbnRyb2wvYXBp", "L3YxL3JmaWQve2lkfRKYAQoLR2V0UmZpZExpc3QSLS5rZXlhcGlzLmFjY2Vz", "c19jb250cm9sLnYxLkdldFJmaWRMaXN0UmVxdWVzdBouLmtleWFwaXMuYWNj", "ZXNzX2NvbnRyb2wudjEuR2V0UmZpZExpc3RSZXNwb25zZSIogtPkkwIiEiAv", "YWNjZXNzX2NvbnRyb2wvYXBpL3YxL3JmaWQvbGlzdDABEpoBCgxHZXRSZmlk", "Q291bnQSLi5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYxLkdldFJmaWRDb3Vu", "dFJlcXVlc3QaLy5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYxLkdldFJmaWRD", "b3VudFJlc3BvbnNlIimC0+STAiMSIS9hY2Nlc3NfY29udHJvbC9hcGkvdjEv", "cmZpZC9jb3VudBKLAQoIUG9zdFJmaWQSKi5rZXlhcGlzLmFjY2Vzc19jb250", "cm9sLnYxLlBvc3RSZmlkUmVxdWVzdBorLmtleWFwaXMuYWNjZXNzX2NvbnRy", "b2wudjEuUG9zdFJmaWRSZXNwb25zZSImgtPkkwIgIhsvYWNjZXNzX2NvbnRy", "b2wvYXBpL3YxL3JmaWQ6ASoSkwEKCkRlbGV0ZVJmaWQSLC5rZXlhcGlzLmFj", "Y2Vzc19jb250cm9sLnYxLkRlbGV0ZVJmaWRSZXF1ZXN0Gi0ua2V5YXBpcy5h", "Y2Nlc3NfY29udHJvbC52MS5EZWxldGVSZmlkUmVzcG9uc2UiKILT5JMCIiog", "L2FjY2Vzc19jb250cm9sL2FwaS92MS9yZmlkL3tpZH1CzQEKHHJ1LmtleWFw", "aXMuYWNjZXNzX2NvbnRyb2wudjFCG0tleWFwaXNBY2Nlc3NDb250cm9sVjFQ", "cm90b0gDUABaGi9rZXlhcGlzX2FjY2Vzc19jb250cm9sX3Yx2AEB+AEBogIW", "S0VZQVBJU0FDQ0VTU0NPTlRST0xWMaoCGEtleWFwaXMuQWNjZXNzQ29udHJv", "bC5WMcoCGEtleWFwaXNcQWNjZXNzQ29udHJvbFxWMeoCGktleWFwaXM6OkFj", "Y2Vzc0NvbnRyb2w6OlYxYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Keyapis.AccessControl.V1.KeyapisAccessControlAccessControlV1Reflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.Rfid), global::Keyapis.AccessControl.V1.Rfid.Parser, new[]{ "Id", "UserId", "Description", "CompanyId", "CreatorId", "Key", "PayType", "HolderType", "CreatedAt", "ChangedAt", "Orpon", "RoomNumber" }, null, new[]{ typeof(global::Keyapis.AccessControl.V1.Rfid.Types.PayType), typeof(global::Keyapis.AccessControl.V1.Rfid.Types.HolderType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.Rfid.Types.SavingError), global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Parser, new[]{ "Conflict", "KeyExist", "KeyCodeCannotBeChanged", "ExceededQuantityOfKeysForRoom", "KeyIsUsed", "HolderTypeForbidden" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.Conflict), global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.Conflict.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyExist), global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyExist.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyCodeCannotBeChanged), global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyCodeCannotBeChanged.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.ExceededQuantityOfKeysForRoom), global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.ExceededQuantityOfKeysForRoom.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyIsUsed), global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyIsUsed.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.HolderTypeForbidden), global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.HolderTypeForbidden.Parser, null, null, null, null, null)})}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetRfidRequest), global::Keyapis.AccessControl.V1.GetRfidRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetRfidResponse), global::Keyapis.AccessControl.V1.GetRfidResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetRfidResponse.Types.Error), global::Keyapis.AccessControl.V1.GetRfidResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetRfidListRequest), global::Keyapis.AccessControl.V1.GetRfidListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetRfidListResponse), global::Keyapis.AccessControl.V1.GetRfidListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetRfidListResponse.Types.Error), global::Keyapis.AccessControl.V1.GetRfidListResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetRfidCountRequest), global::Keyapis.AccessControl.V1.GetRfidCountRequest.Parser, new[]{ "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetRfidCountResponse), global::Keyapis.AccessControl.V1.GetRfidCountResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetRfidCountResponse.Types.Error), global::Keyapis.AccessControl.V1.GetRfidCountResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PostRfidRequest), global::Keyapis.AccessControl.V1.PostRfidRequest.Parser, new[]{ "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PostRfidResponse), global::Keyapis.AccessControl.V1.PostRfidResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PostRfidResponse.Types.Error), global::Keyapis.AccessControl.V1.PostRfidResponse.Types.Error.Parser, new[]{ "Validation", "Saving" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.DeleteRfidRequest), global::Keyapis.AccessControl.V1.DeleteRfidRequest.Parser, new[]{ "Id", "IsForceDelete" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.DeleteRfidResponse), global::Keyapis.AccessControl.V1.DeleteRfidResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.DeleteRfidResponse.Types.Error), global::Keyapis.AccessControl.V1.DeleteRfidResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.RfidFilter), global::Keyapis.AccessControl.V1.RfidFilter.Parser, new[]{ "HolderTypes", "PayTypes", "Orpons", "RoomNumbers", "UserIds", "CompanyIds", "Keys" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.RfidPaging), global::Keyapis.AccessControl.V1.RfidPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.AccessControl.V1.RfidPaging.Types.OrderByType), typeof(global::Keyapis.AccessControl.V1.RfidPaging.Types.DirectionType) }, null, null) })); } #endregion } #region Messages /// /// Ключ. /// # Описание модели /// public sealed partial class Rfid : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Rfid()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlRfidV1Reflection.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 Rfid() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Rfid(Rfid other) : this() { id_ = other.id_; UserId = other.UserId; Description = other.Description; CompanyId = other.CompanyId; CreatorId = other.CreatorId; key_ = other.key_; payType_ = other.payType_; holderType_ = other.holderType_; createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; changedAt_ = other.changedAt_ != null ? other.changedAt_.Clone() : null; orpon_ = other.orpon_; roomNumber_ = other.roomNumber_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Rfid Clone() { return new Rfid(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор ключа. /// # Диапазон: 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 "user_id" field. public const int UserIdFieldNumber = 2; private static readonly pb::FieldCodec _single_userId_codec = pb::FieldCodec.ForStructWrapper(18); private int? userId_; /// /// Идентификатор пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? UserId { get { return userId_; } set { userId_ = value; } } /// Field number for the "description" field. public const int DescriptionFieldNumber = 3; private static readonly pb::FieldCodec _single_description_codec = pb::FieldCodec.ForClassWrapper(26); private string description_; /// /// Системное описание. /// Обычно оставляет УК/Админ, пользователь его не видет /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Description { get { return description_; } set { description_ = value; } } /// Field number for the "company_id" field. public const int CompanyIdFieldNumber = 4; private static readonly pb::FieldCodec _single_companyId_codec = pb::FieldCodec.ForStructWrapper(34); private int? companyId_; /// /// Идентификатор компании /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? CompanyId { get { return companyId_; } set { companyId_ = value; } } /// Field number for the "creator_id" field. public const int CreatorIdFieldNumber = 5; private static readonly pb::FieldCodec _single_creatorId_codec = pb::FieldCodec.ForStructWrapper(42); private int? creatorId_; /// /// Идентификатор создателя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? CreatorId { get { return creatorId_; } set { creatorId_ = value; } } /// Field number for the "key" field. public const int KeyFieldNumber = 6; private string key_ = ""; /// /// Код ключа (UID). /// Уникальное значение. /// # Паттерн: /^[0-9a-fA-F]{1,14}$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Key { get { return key_; } set { key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "pay_type" field. public const int PayTypeFieldNumber = 7; private global::Keyapis.AccessControl.V1.Rfid.Types.PayType payType_ = global::Keyapis.AccessControl.V1.Rfid.Types.PayType.Unknown; /// /// Тип оплаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.Rfid.Types.PayType PayType { get { return payType_; } set { payType_ = value; } } /// Field number for the "holder_type" field. public const int HolderTypeFieldNumber = 8; private global::Keyapis.AccessControl.V1.Rfid.Types.HolderType holderType_ = global::Keyapis.AccessControl.V1.Rfid.Types.HolderType.Unknown; /// /// Тип владельца ключа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.Rfid.Types.HolderType HolderType { get { return holderType_; } set { holderType_ = value; } } /// Field number for the "created_at" field. public const int CreatedAtFieldNumber = 9; private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; /// /// Дата создания. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { get { return createdAt_; } set { createdAt_ = value; } } /// Field number for the "changed_at" field. public const int ChangedAtFieldNumber = 10; private global::Google.Protobuf.WellKnownTypes.Timestamp changedAt_; /// /// Дата обновления. /// # Тип: DateTime? /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp ChangedAt { get { return changedAt_; } set { changedAt_ = value; } } /// Field number for the "orpon" field. public const int OrponFieldNumber = 11; private long orpon_; /// /// ОРПОН дома. /// # Диапазон: 1..9223372036854775807 /// [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 = 12; private string roomNumber_ = ""; /// /// Номер квартиры. /// # Диапазон: 1..4 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RoomNumber { get { return roomNumber_; } set { roomNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Rfid); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Rfid other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (UserId != other.UserId) return false; if (Description != other.Description) return false; if (CompanyId != other.CompanyId) return false; if (CreatorId != other.CreatorId) return false; if (Key != other.Key) return false; if (PayType != other.PayType) return false; if (HolderType != other.HolderType) return false; if (!object.Equals(CreatedAt, other.CreatedAt)) return false; if (!object.Equals(ChangedAt, other.ChangedAt)) return false; if (Orpon != other.Orpon) return false; if (RoomNumber != other.RoomNumber) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (userId_ != null) hash ^= UserId.GetHashCode(); if (description_ != null) hash ^= Description.GetHashCode(); if (companyId_ != null) hash ^= CompanyId.GetHashCode(); if (creatorId_ != null) hash ^= CreatorId.GetHashCode(); if (Key.Length != 0) hash ^= Key.GetHashCode(); if (PayType != global::Keyapis.AccessControl.V1.Rfid.Types.PayType.Unknown) hash ^= PayType.GetHashCode(); if (HolderType != global::Keyapis.AccessControl.V1.Rfid.Types.HolderType.Unknown) hash ^= HolderType.GetHashCode(); if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); if (changedAt_ != null) hash ^= ChangedAt.GetHashCode(); if (Orpon != 0L) hash ^= Orpon.GetHashCode(); if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (userId_ != null) { _single_userId_codec.WriteTagAndValue(output, UserId); } if (description_ != null) { _single_description_codec.WriteTagAndValue(output, Description); } if (companyId_ != null) { _single_companyId_codec.WriteTagAndValue(output, CompanyId); } if (creatorId_ != null) { _single_creatorId_codec.WriteTagAndValue(output, CreatorId); } if (Key.Length != 0) { output.WriteRawTag(50); output.WriteString(Key); } if (PayType != global::Keyapis.AccessControl.V1.Rfid.Types.PayType.Unknown) { output.WriteRawTag(56); output.WriteEnum((int) PayType); } if (HolderType != global::Keyapis.AccessControl.V1.Rfid.Types.HolderType.Unknown) { output.WriteRawTag(64); output.WriteEnum((int) HolderType); } if (createdAt_ != null) { output.WriteRawTag(74); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(82); output.WriteMessage(ChangedAt); } if (Orpon != 0L) { output.WriteRawTag(88); output.WriteInt64(Orpon); } if (RoomNumber.Length != 0) { output.WriteRawTag(98); output.WriteString(RoomNumber); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (userId_ != null) { _single_userId_codec.WriteTagAndValue(ref output, UserId); } if (description_ != null) { _single_description_codec.WriteTagAndValue(ref output, Description); } if (companyId_ != null) { _single_companyId_codec.WriteTagAndValue(ref output, CompanyId); } if (creatorId_ != null) { _single_creatorId_codec.WriteTagAndValue(ref output, CreatorId); } if (Key.Length != 0) { output.WriteRawTag(50); output.WriteString(Key); } if (PayType != global::Keyapis.AccessControl.V1.Rfid.Types.PayType.Unknown) { output.WriteRawTag(56); output.WriteEnum((int) PayType); } if (HolderType != global::Keyapis.AccessControl.V1.Rfid.Types.HolderType.Unknown) { output.WriteRawTag(64); output.WriteEnum((int) HolderType); } if (createdAt_ != null) { output.WriteRawTag(74); output.WriteMessage(CreatedAt); } if (changedAt_ != null) { output.WriteRawTag(82); output.WriteMessage(ChangedAt); } if (Orpon != 0L) { output.WriteRawTag(88); output.WriteInt64(Orpon); } if (RoomNumber.Length != 0) { output.WriteRawTag(98); output.WriteString(RoomNumber); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (userId_ != null) { size += _single_userId_codec.CalculateSizeWithTag(UserId); } if (description_ != null) { size += _single_description_codec.CalculateSizeWithTag(Description); } if (companyId_ != null) { size += _single_companyId_codec.CalculateSizeWithTag(CompanyId); } if (creatorId_ != null) { size += _single_creatorId_codec.CalculateSizeWithTag(CreatorId); } if (Key.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); } if (PayType != global::Keyapis.AccessControl.V1.Rfid.Types.PayType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PayType); } if (HolderType != global::Keyapis.AccessControl.V1.Rfid.Types.HolderType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) HolderType); } if (createdAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); } if (changedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ChangedAt); } if (Orpon != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Orpon); } if (RoomNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Rfid other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.userId_ != null) { if (userId_ == null || other.UserId != 0) { UserId = other.UserId; } } if (other.description_ != null) { if (description_ == null || other.Description != "") { Description = other.Description; } } if (other.companyId_ != null) { if (companyId_ == null || other.CompanyId != 0) { CompanyId = other.CompanyId; } } if (other.creatorId_ != null) { if (creatorId_ == null || other.CreatorId != 0) { CreatorId = other.CreatorId; } } if (other.Key.Length != 0) { Key = other.Key; } if (other.PayType != global::Keyapis.AccessControl.V1.Rfid.Types.PayType.Unknown) { PayType = other.PayType; } if (other.HolderType != global::Keyapis.AccessControl.V1.Rfid.Types.HolderType.Unknown) { HolderType = other.HolderType; } if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.changedAt_ != null) { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } ChangedAt.MergeFrom(other.ChangedAt); } if (other.Orpon != 0L) { Orpon = other.Orpon; } if (other.RoomNumber.Length != 0) { RoomNumber = other.RoomNumber; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } case 18: { int? value = _single_userId_codec.Read(input); if (userId_ == null || value != 0) { UserId = value; } break; } case 26: { string value = _single_description_codec.Read(input); if (description_ == null || value != "") { Description = value; } break; } case 34: { int? value = _single_companyId_codec.Read(input); if (companyId_ == null || value != 0) { CompanyId = value; } break; } case 42: { int? value = _single_creatorId_codec.Read(input); if (creatorId_ == null || value != 0) { CreatorId = value; } break; } case 50: { Key = input.ReadString(); break; } case 56: { PayType = (global::Keyapis.AccessControl.V1.Rfid.Types.PayType) input.ReadEnum(); break; } case 64: { HolderType = (global::Keyapis.AccessControl.V1.Rfid.Types.HolderType) input.ReadEnum(); break; } case 74: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 82: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 88: { Orpon = input.ReadInt64(); break; } case 98: { RoomNumber = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } case 18: { int? value = _single_userId_codec.Read(ref input); if (userId_ == null || value != 0) { UserId = value; } break; } case 26: { string value = _single_description_codec.Read(ref input); if (description_ == null || value != "") { Description = value; } break; } case 34: { int? value = _single_companyId_codec.Read(ref input); if (companyId_ == null || value != 0) { CompanyId = value; } break; } case 42: { int? value = _single_creatorId_codec.Read(ref input); if (creatorId_ == null || value != 0) { CreatorId = value; } break; } case 50: { Key = input.ReadString(); break; } case 56: { PayType = (global::Keyapis.AccessControl.V1.Rfid.Types.PayType) input.ReadEnum(); break; } case 64: { HolderType = (global::Keyapis.AccessControl.V1.Rfid.Types.HolderType) input.ReadEnum(); break; } case 74: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 82: { if (changedAt_ == null) { ChangedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(ChangedAt); break; } case 88: { Orpon = input.ReadInt64(); break; } case 98: { RoomNumber = input.ReadString(); break; } } } } #endif #region Nested types /// Container for nested types declared in the Rfid message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Тип оплаты /// public enum PayType { /// /// Значение не указано /// [pbr::OriginalName("PAY_TYPE_UNKNOWN")] Unknown = 0, /// /// Платный /// [pbr::OriginalName("PAID")] Paid = 1, /// /// Бесплатный /// [pbr::OriginalName("FREE")] Free = 2, } /// /// Тип владельца ключа /// public enum HolderType { /// /// Значение не указано /// [pbr::OriginalName("HOLDER_TYPE_UNKNOWN")] Unknown = 0, /// /// Жилец /// [pbr::OriginalName("MASTER")] Master = 1, /// /// Сотрудник УК /// [pbr::OriginalName("COMPANY")] Company = 2, /// /// Ключ сотрудника ГАП /// [pbr::OriginalName("EXTERNAL_SELLER")] ExternalSeller = 3, /// /// Системный ключ /// [pbr::OriginalName("SYSTEM")] System = 4, } /// /// Ошибка сохранения ключа. /// Эти проверки выполняются при работе с базой данных и сторонними сервисами /// 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.AccessControl.V1.Rfid.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 SavingError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SavingError(SavingError other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Conflict: Conflict = other.Conflict.Clone(); break; case ReasonOneofCase.KeyExist: KeyExist = other.KeyExist.Clone(); break; case ReasonOneofCase.KeyCodeCannotBeChanged: KeyCodeCannotBeChanged = other.KeyCodeCannotBeChanged.Clone(); break; case ReasonOneofCase.ExceededQuantityOfKeysForRoom: ExceededQuantityOfKeysForRoom = other.ExceededQuantityOfKeysForRoom.Clone(); break; case ReasonOneofCase.KeyIsUsed: KeyIsUsed = other.KeyIsUsed.Clone(); break; case ReasonOneofCase.HolderTypeForbidden: HolderTypeForbidden = other.HolderTypeForbidden.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SavingError Clone() { return new SavingError(this); } /// Field number for the "conflict" field. public const int ConflictFieldNumber = 1; /// /// Конфликт версий /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.Conflict Conflict { get { return reasonCase_ == ReasonOneofCase.Conflict ? (global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.Conflict) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Conflict; } } /// Field number for the "key_exist" field. public const int KeyExistFieldNumber = 2; /// /// Данный ключ уже существует /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyExist KeyExist { get { return reasonCase_ == ReasonOneofCase.KeyExist ? (global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyExist) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.KeyExist; } } /// Field number for the "key_code_cannot_be_changed" field. public const int KeyCodeCannotBeChangedFieldNumber = 3; /// /// Нельзя изменить код ключа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyCodeCannotBeChanged KeyCodeCannotBeChanged { get { return reasonCase_ == ReasonOneofCase.KeyCodeCannotBeChanged ? (global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyCodeCannotBeChanged) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.KeyCodeCannotBeChanged; } } /// Field number for the "exceeded_quantity_of_keys_for_room" field. public const int ExceededQuantityOfKeysForRoomFieldNumber = 4; /// /// Превышено максимально допустимое количество ключей (16) для квартиры /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.ExceededQuantityOfKeysForRoom ExceededQuantityOfKeysForRoom { get { return reasonCase_ == ReasonOneofCase.ExceededQuantityOfKeysForRoom ? (global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.ExceededQuantityOfKeysForRoom) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.ExceededQuantityOfKeysForRoom; } } /// Field number for the "key_is_used" field. public const int KeyIsUsedFieldNumber = 5; /// /// Ключ используется на другой квартире /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyIsUsed KeyIsUsed { get { return reasonCase_ == ReasonOneofCase.KeyIsUsed ? (global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyIsUsed) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.KeyIsUsed; } } /// Field number for the "holder_type_forbidden" field. public const int HolderTypeForbiddenFieldNumber = 6; /// /// Нельзя создавать / изменять ключ с переданным типом владельца /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.HolderTypeForbidden HolderTypeForbidden { get { return reasonCase_ == ReasonOneofCase.HolderTypeForbidden ? (global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.HolderTypeForbidden) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.HolderTypeForbidden; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Conflict = 1, KeyExist = 2, KeyCodeCannotBeChanged = 3, ExceededQuantityOfKeysForRoom = 4, KeyIsUsed = 5, HolderTypeForbidden = 6, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SavingError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SavingError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Conflict, other.Conflict)) return false; if (!object.Equals(KeyExist, other.KeyExist)) return false; if (!object.Equals(KeyCodeCannotBeChanged, other.KeyCodeCannotBeChanged)) return false; if (!object.Equals(ExceededQuantityOfKeysForRoom, other.ExceededQuantityOfKeysForRoom)) return false; if (!object.Equals(KeyIsUsed, other.KeyIsUsed)) return false; if (!object.Equals(HolderTypeForbidden, other.HolderTypeForbidden)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Conflict) hash ^= Conflict.GetHashCode(); if (reasonCase_ == ReasonOneofCase.KeyExist) hash ^= KeyExist.GetHashCode(); if (reasonCase_ == ReasonOneofCase.KeyCodeCannotBeChanged) hash ^= KeyCodeCannotBeChanged.GetHashCode(); if (reasonCase_ == ReasonOneofCase.ExceededQuantityOfKeysForRoom) hash ^= ExceededQuantityOfKeysForRoom.GetHashCode(); if (reasonCase_ == ReasonOneofCase.KeyIsUsed) hash ^= KeyIsUsed.GetHashCode(); if (reasonCase_ == ReasonOneofCase.HolderTypeForbidden) hash ^= HolderTypeForbidden.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Conflict) { output.WriteRawTag(10); output.WriteMessage(Conflict); } if (reasonCase_ == ReasonOneofCase.KeyExist) { output.WriteRawTag(18); output.WriteMessage(KeyExist); } if (reasonCase_ == ReasonOneofCase.KeyCodeCannotBeChanged) { output.WriteRawTag(26); output.WriteMessage(KeyCodeCannotBeChanged); } if (reasonCase_ == ReasonOneofCase.ExceededQuantityOfKeysForRoom) { output.WriteRawTag(34); output.WriteMessage(ExceededQuantityOfKeysForRoom); } if (reasonCase_ == ReasonOneofCase.KeyIsUsed) { output.WriteRawTag(42); output.WriteMessage(KeyIsUsed); } if (reasonCase_ == ReasonOneofCase.HolderTypeForbidden) { output.WriteRawTag(50); output.WriteMessage(HolderTypeForbidden); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Conflict) { output.WriteRawTag(10); output.WriteMessage(Conflict); } if (reasonCase_ == ReasonOneofCase.KeyExist) { output.WriteRawTag(18); output.WriteMessage(KeyExist); } if (reasonCase_ == ReasonOneofCase.KeyCodeCannotBeChanged) { output.WriteRawTag(26); output.WriteMessage(KeyCodeCannotBeChanged); } if (reasonCase_ == ReasonOneofCase.ExceededQuantityOfKeysForRoom) { output.WriteRawTag(34); output.WriteMessage(ExceededQuantityOfKeysForRoom); } if (reasonCase_ == ReasonOneofCase.KeyIsUsed) { output.WriteRawTag(42); output.WriteMessage(KeyIsUsed); } if (reasonCase_ == ReasonOneofCase.HolderTypeForbidden) { output.WriteRawTag(50); output.WriteMessage(HolderTypeForbidden); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Conflict) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Conflict); } if (reasonCase_ == ReasonOneofCase.KeyExist) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyExist); } if (reasonCase_ == ReasonOneofCase.KeyCodeCannotBeChanged) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyCodeCannotBeChanged); } if (reasonCase_ == ReasonOneofCase.ExceededQuantityOfKeysForRoom) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ExceededQuantityOfKeysForRoom); } if (reasonCase_ == ReasonOneofCase.KeyIsUsed) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(KeyIsUsed); } if (reasonCase_ == ReasonOneofCase.HolderTypeForbidden) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(HolderTypeForbidden); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(SavingError other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Conflict: if (Conflict == null) { Conflict = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.Conflict(); } Conflict.MergeFrom(other.Conflict); break; case ReasonOneofCase.KeyExist: if (KeyExist == null) { KeyExist = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyExist(); } KeyExist.MergeFrom(other.KeyExist); break; case ReasonOneofCase.KeyCodeCannotBeChanged: if (KeyCodeCannotBeChanged == null) { KeyCodeCannotBeChanged = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyCodeCannotBeChanged(); } KeyCodeCannotBeChanged.MergeFrom(other.KeyCodeCannotBeChanged); break; case ReasonOneofCase.ExceededQuantityOfKeysForRoom: if (ExceededQuantityOfKeysForRoom == null) { ExceededQuantityOfKeysForRoom = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.ExceededQuantityOfKeysForRoom(); } ExceededQuantityOfKeysForRoom.MergeFrom(other.ExceededQuantityOfKeysForRoom); break; case ReasonOneofCase.KeyIsUsed: if (KeyIsUsed == null) { KeyIsUsed = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyIsUsed(); } KeyIsUsed.MergeFrom(other.KeyIsUsed); break; case ReasonOneofCase.HolderTypeForbidden: if (HolderTypeForbidden == null) { HolderTypeForbidden = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.HolderTypeForbidden(); } HolderTypeForbidden.MergeFrom(other.HolderTypeForbidden); 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.AccessControl.V1.Rfid.Types.SavingError.Types.Conflict subBuilder = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.Conflict(); if (reasonCase_ == ReasonOneofCase.Conflict) { subBuilder.MergeFrom(Conflict); } input.ReadMessage(subBuilder); Conflict = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyExist subBuilder = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyExist(); if (reasonCase_ == ReasonOneofCase.KeyExist) { subBuilder.MergeFrom(KeyExist); } input.ReadMessage(subBuilder); KeyExist = subBuilder; break; } case 26: { global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyCodeCannotBeChanged subBuilder = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyCodeCannotBeChanged(); if (reasonCase_ == ReasonOneofCase.KeyCodeCannotBeChanged) { subBuilder.MergeFrom(KeyCodeCannotBeChanged); } input.ReadMessage(subBuilder); KeyCodeCannotBeChanged = subBuilder; break; } case 34: { global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.ExceededQuantityOfKeysForRoom subBuilder = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.ExceededQuantityOfKeysForRoom(); if (reasonCase_ == ReasonOneofCase.ExceededQuantityOfKeysForRoom) { subBuilder.MergeFrom(ExceededQuantityOfKeysForRoom); } input.ReadMessage(subBuilder); ExceededQuantityOfKeysForRoom = subBuilder; break; } case 42: { global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyIsUsed subBuilder = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyIsUsed(); if (reasonCase_ == ReasonOneofCase.KeyIsUsed) { subBuilder.MergeFrom(KeyIsUsed); } input.ReadMessage(subBuilder); KeyIsUsed = subBuilder; break; } case 50: { global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.HolderTypeForbidden subBuilder = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.HolderTypeForbidden(); if (reasonCase_ == ReasonOneofCase.HolderTypeForbidden) { subBuilder.MergeFrom(HolderTypeForbidden); } input.ReadMessage(subBuilder); HolderTypeForbidden = 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.AccessControl.V1.Rfid.Types.SavingError.Types.Conflict subBuilder = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.Conflict(); if (reasonCase_ == ReasonOneofCase.Conflict) { subBuilder.MergeFrom(Conflict); } input.ReadMessage(subBuilder); Conflict = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyExist subBuilder = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyExist(); if (reasonCase_ == ReasonOneofCase.KeyExist) { subBuilder.MergeFrom(KeyExist); } input.ReadMessage(subBuilder); KeyExist = subBuilder; break; } case 26: { global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyCodeCannotBeChanged subBuilder = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyCodeCannotBeChanged(); if (reasonCase_ == ReasonOneofCase.KeyCodeCannotBeChanged) { subBuilder.MergeFrom(KeyCodeCannotBeChanged); } input.ReadMessage(subBuilder); KeyCodeCannotBeChanged = subBuilder; break; } case 34: { global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.ExceededQuantityOfKeysForRoom subBuilder = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.ExceededQuantityOfKeysForRoom(); if (reasonCase_ == ReasonOneofCase.ExceededQuantityOfKeysForRoom) { subBuilder.MergeFrom(ExceededQuantityOfKeysForRoom); } input.ReadMessage(subBuilder); ExceededQuantityOfKeysForRoom = subBuilder; break; } case 42: { global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyIsUsed subBuilder = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.KeyIsUsed(); if (reasonCase_ == ReasonOneofCase.KeyIsUsed) { subBuilder.MergeFrom(KeyIsUsed); } input.ReadMessage(subBuilder); KeyIsUsed = subBuilder; break; } case 50: { global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.HolderTypeForbidden subBuilder = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Types.HolderTypeForbidden(); if (reasonCase_ == ReasonOneofCase.HolderTypeForbidden) { subBuilder.MergeFrom(HolderTypeForbidden); } input.ReadMessage(subBuilder); HolderTypeForbidden = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the SavingError message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Конфликт версий. /// Причины: /// - В базе хранится другая версия строки, значения changed_at отличаются /// public sealed partial class Conflict : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Conflict()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.Rfid.Types.SavingError.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Conflict() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Conflict(Conflict other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Conflict Clone() { return new Conflict(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Conflict); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Conflict other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Conflict other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Данный ключ уже существует. /// Причины: /// - При попытке создания ключа в системе уже существует ключ с таким же кодом /// public sealed partial class KeyExist : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyExist()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.Rfid.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 KeyExist() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public KeyExist(KeyExist other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public KeyExist Clone() { return new KeyExist(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as KeyExist); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(KeyExist 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(KeyExist 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 } /// /// Нельзя изменить код ключа. /// Причины: /// - При изменении ключа нельзя менять поле key (код ключа) /// public sealed partial class KeyCodeCannotBeChanged : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyCodeCannotBeChanged()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.Rfid.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 KeyCodeCannotBeChanged() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public KeyCodeCannotBeChanged(KeyCodeCannotBeChanged other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public KeyCodeCannotBeChanged Clone() { return new KeyCodeCannotBeChanged(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as KeyCodeCannotBeChanged); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(KeyCodeCannotBeChanged 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(KeyCodeCannotBeChanged 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 } /// /// Превышено максимально допустимое количество ключей (16) для квартиры /// public sealed partial class ExceededQuantityOfKeysForRoom : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExceededQuantityOfKeysForRoom()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.Rfid.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 ExceededQuantityOfKeysForRoom() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExceededQuantityOfKeysForRoom(ExceededQuantityOfKeysForRoom other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ExceededQuantityOfKeysForRoom Clone() { return new ExceededQuantityOfKeysForRoom(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ExceededQuantityOfKeysForRoom); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ExceededQuantityOfKeysForRoom 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(ExceededQuantityOfKeysForRoom 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 KeyIsUsed : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new KeyIsUsed()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.Rfid.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 KeyIsUsed() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public KeyIsUsed(KeyIsUsed other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public KeyIsUsed Clone() { return new KeyIsUsed(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as KeyIsUsed); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(KeyIsUsed 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(KeyIsUsed 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 HolderTypeForbidden : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new HolderTypeForbidden()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.Rfid.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 HolderTypeForbidden() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public HolderTypeForbidden(HolderTypeForbidden other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public HolderTypeForbidden Clone() { return new HolderTypeForbidden(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as HolderTypeForbidden); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(HolderTypeForbidden 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(HolderTypeForbidden 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 GetRfidRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRfidRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlRfidV1Reflection.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 GetRfidRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetRfidRequest(GetRfidRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetRfidRequest Clone() { return new GetRfidRequest(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; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetRfidRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetRfidRequest 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(GetRfidRequest 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 GetRfidResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRfidResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlRfidV1Reflection.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 GetRfidResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetRfidResponse(GetRfidResponse 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 GetRfidResponse Clone() { return new GetRfidResponse(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.AccessControl.V1.Rfid Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.AccessControl.V1.Rfid) 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.AccessControl.V1.GetRfidResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.AccessControl.V1.GetRfidResponse.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 GetRfidResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetRfidResponse 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(GetRfidResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.AccessControl.V1.Rfid(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.AccessControl.V1.GetRfidResponse.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.AccessControl.V1.Rfid subBuilder = new global::Keyapis.AccessControl.V1.Rfid(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.GetRfidResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetRfidResponse.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.AccessControl.V1.Rfid subBuilder = new global::Keyapis.AccessControl.V1.Rfid(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.GetRfidResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetRfidResponse.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 GetRfidResponse 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.AccessControl.V1.GetRfidResponse.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.AccessControl.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.AccessControl.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.AccessControl.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.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.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.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения списка ключей /// public sealed partial class GetRfidListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRfidListRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlRfidV1Reflection.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 GetRfidListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetRfidListRequest(GetRfidListRequest 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 GetRfidListRequest Clone() { return new GetRfidListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.AccessControl.V1.RfidFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.RfidFilter 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.AccessControl.V1.RfidPaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.AccessControl.V1.RfidPaging) 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 GetRfidListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetRfidListRequest 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(GetRfidListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.AccessControl.V1.RfidFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.AccessControl.V1.RfidPaging(); } 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.AccessControl.V1.RfidFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.AccessControl.V1.RfidPaging subBuilder = new global::Keyapis.AccessControl.V1.RfidPaging(); 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.AccessControl.V1.RfidFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.AccessControl.V1.RfidPaging subBuilder = new global::Keyapis.AccessControl.V1.RfidPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Ответ на запрос получения списка ключей /// public sealed partial class GetRfidListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRfidListResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlRfidV1Reflection.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 GetRfidListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetRfidListResponse(GetRfidListResponse 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 GetRfidListResponse Clone() { return new GetRfidListResponse(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.AccessControl.V1.Rfid Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.AccessControl.V1.Rfid) 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.AccessControl.V1.GetRfidListResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.AccessControl.V1.GetRfidListResponse.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 GetRfidListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetRfidListResponse 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(GetRfidListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.AccessControl.V1.Rfid(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.AccessControl.V1.GetRfidListResponse.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.AccessControl.V1.Rfid subBuilder = new global::Keyapis.AccessControl.V1.Rfid(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.GetRfidListResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetRfidListResponse.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.AccessControl.V1.Rfid subBuilder = new global::Keyapis.AccessControl.V1.Rfid(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.GetRfidListResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetRfidListResponse.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 GetRfidListResponse 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.AccessControl.V1.GetRfidListResponse.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.AccessControl.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.AccessControl.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.AccessControl.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.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.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.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения количества ключей /// public sealed partial class GetRfidCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRfidCountRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlRfidV1Reflection.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 GetRfidCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetRfidCountRequest(GetRfidCountRequest 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 GetRfidCountRequest Clone() { return new GetRfidCountRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.AccessControl.V1.RfidFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.RfidFilter 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 GetRfidCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetRfidCountRequest 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(GetRfidCountRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.AccessControl.V1.RfidFilter(); } 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.AccessControl.V1.RfidFilter(); } 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.AccessControl.V1.RfidFilter(); } input.ReadMessage(Filter); break; } } } } #endif } /// /// Ответ на запрос получения количества ключей /// public sealed partial class GetRfidCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetRfidCountResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlRfidV1Reflection.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 GetRfidCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetRfidCountResponse(GetRfidCountResponse 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 GetRfidCountResponse Clone() { return new GetRfidCountResponse(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.AccessControl.V1.GetRfidCountResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.AccessControl.V1.GetRfidCountResponse.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 GetRfidCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetRfidCountResponse 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(GetRfidCountResponse 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.AccessControl.V1.GetRfidCountResponse.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.AccessControl.V1.GetRfidCountResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetRfidCountResponse.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.AccessControl.V1.GetRfidCountResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetRfidCountResponse.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 GetRfidCountResponse 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.AccessControl.V1.GetRfidCountResponse.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.AccessControl.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.AccessControl.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.AccessControl.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.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.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.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос создания ключа /// public sealed partial class PostRfidRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostRfidRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlRfidV1Reflection.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 PostRfidRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostRfidRequest(PostRfidRequest 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 PostRfidRequest Clone() { return new PostRfidRequest(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Keyapis.AccessControl.V1.Rfid data_; /// /// Ключ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.Rfid 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 PostRfidRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostRfidRequest 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(PostRfidRequest other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Keyapis.AccessControl.V1.Rfid(); } 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.AccessControl.V1.Rfid(); } 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.AccessControl.V1.Rfid(); } input.ReadMessage(Data); break; } } } } #endif } /// /// Ответ на запрос создания ключа /// public sealed partial class PostRfidResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostRfidResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlRfidV1Reflection.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 PostRfidResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostRfidResponse(PostRfidResponse 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 PostRfidResponse Clone() { return new PostRfidResponse(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.AccessControl.V1.Rfid Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.AccessControl.V1.Rfid) 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.AccessControl.V1.PostRfidResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.AccessControl.V1.PostRfidResponse.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 PostRfidResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostRfidResponse 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(PostRfidResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.AccessControl.V1.Rfid(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.AccessControl.V1.PostRfidResponse.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.AccessControl.V1.Rfid subBuilder = new global::Keyapis.AccessControl.V1.Rfid(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.PostRfidResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.PostRfidResponse.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.AccessControl.V1.Rfid subBuilder = new global::Keyapis.AccessControl.V1.Rfid(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.PostRfidResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.PostRfidResponse.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 PostRfidResponse 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.AccessControl.V1.PostRfidResponse.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.AccessControl.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.AccessControl.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.AccessControl.V1.Rfid.Types.SavingError Saving { get { return reasonCase_ == ReasonOneofCase.Saving ? (global::Keyapis.AccessControl.V1.Rfid.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.AccessControl.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; case ReasonOneofCase.Saving: if (Saving == null) { Saving = new global::Keyapis.AccessControl.V1.Rfid.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.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.Rfid.Types.SavingError subBuilder = new global::Keyapis.AccessControl.V1.Rfid.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.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.Rfid.Types.SavingError subBuilder = new global::Keyapis.AccessControl.V1.Rfid.Types.SavingError(); if (reasonCase_ == ReasonOneofCase.Saving) { subBuilder.MergeFrom(Saving); } input.ReadMessage(subBuilder); Saving = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос удаления ключа /// public sealed partial class DeleteRfidRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteRfidRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlRfidV1Reflection.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 DeleteRfidRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteRfidRequest(DeleteRfidRequest other) : this() { id_ = other.id_; isForceDelete_ = other.isForceDelete_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteRfidRequest Clone() { return new DeleteRfidRequest(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 "is_force_delete" field. public const int IsForceDeleteFieldNumber = 2; private bool isForceDelete_; /// /// Флаг принудительного удаления ключа. /// При принудительном удалении не гарантируется удаление ключа со всех физических устройств /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsForceDelete { get { return isForceDelete_; } set { isForceDelete_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeleteRfidRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteRfidRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (IsForceDelete != other.IsForceDelete) return false; 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 (IsForceDelete != false) hash ^= IsForceDelete.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 (IsForceDelete != false) { output.WriteRawTag(16); output.WriteBool(IsForceDelete); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_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 (IsForceDelete != false) { output.WriteRawTag(16); output.WriteBool(IsForceDelete); } if (_unknownFields != 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 (IsForceDelete != 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(DeleteRfidRequest other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.IsForceDelete != false) { IsForceDelete = other.IsForceDelete; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { IsForceDelete = 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: { IsForceDelete = input.ReadBool(); break; } } } } #endif } /// /// Ответ на запрос удаления ключа /// public sealed partial class DeleteRfidResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteRfidResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlRfidV1Reflection.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 DeleteRfidResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeleteRfidResponse(DeleteRfidResponse 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 DeleteRfidResponse Clone() { return new DeleteRfidResponse(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.AccessControl.V1.DeleteRfidResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.AccessControl.V1.DeleteRfidResponse.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 DeleteRfidResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeleteRfidResponse 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(DeleteRfidResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.AccessControl.V1.DeleteRfidResponse.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.AccessControl.V1.DeleteRfidResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.DeleteRfidResponse.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.AccessControl.V1.DeleteRfidResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.DeleteRfidResponse.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 DeleteRfidResponse 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.AccessControl.V1.DeleteRfidResponse.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.AccessControl.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.AccessControl.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.AccessControl.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.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.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.AccessControl.V1.ValidationError subBuilder = new global::Keyapis.AccessControl.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Фильтр по ключам /// public sealed partial class RfidFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RfidFilter()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlRfidV1Reflection.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 RfidFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RfidFilter(RfidFilter other) : this() { holderTypes_ = other.holderTypes_.Clone(); payTypes_ = other.payTypes_.Clone(); orpons_ = other.orpons_.Clone(); roomNumbers_ = other.roomNumbers_.Clone(); userIds_ = other.userIds_.Clone(); companyIds_ = other.companyIds_.Clone(); keys_ = other.keys_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RfidFilter Clone() { return new RfidFilter(this); } /// Field number for the "holder_types" field. public const int HolderTypesFieldNumber = 1; private static readonly pb::FieldCodec _repeated_holderTypes_codec = pb::FieldCodec.ForEnum(10, x => (int) x, x => (global::Keyapis.AccessControl.V1.Rfid.Types.HolderType) x); private readonly pbc::RepeatedField holderTypes_ = new pbc::RepeatedField(); /// /// По типам владельца /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField HolderTypes { get { return holderTypes_; } } /// Field number for the "pay_types" field. public const int PayTypesFieldNumber = 2; private static readonly pb::FieldCodec _repeated_payTypes_codec = pb::FieldCodec.ForEnum(18, x => (int) x, x => (global::Keyapis.AccessControl.V1.Rfid.Types.PayType) x); private readonly pbc::RepeatedField payTypes_ = new pbc::RepeatedField(); /// /// По типам оплаты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField PayTypes { get { return payTypes_; } } /// Field number for the "orpons" field. public const int OrponsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_orpons_codec = pb::FieldCodec.ForInt64(26); private readonly pbc::RepeatedField orpons_ = new pbc::RepeatedField(); /// /// По ОРПОНам /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Orpons { get { return orpons_; } } /// Field number for the "room_numbers" field. public const int RoomNumbersFieldNumber = 4; private static readonly pb::FieldCodec _repeated_roomNumbers_codec = pb::FieldCodec.ForString(34); private readonly pbc::RepeatedField roomNumbers_ = new pbc::RepeatedField(); /// /// По номерам квартир /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RoomNumbers { get { return roomNumbers_; } } /// Field number for the "user_ids" field. public const int UserIdsFieldNumber = 5; private static readonly pb::FieldCodec _repeated_userIds_codec = pb::FieldCodec.ForInt32(42); private readonly pbc::RepeatedField userIds_ = new pbc::RepeatedField(); /// /// По идентификаторам пользователей /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField UserIds { get { return userIds_; } } /// Field number for the "company_ids" field. public const int CompanyIdsFieldNumber = 6; private static readonly pb::FieldCodec _repeated_companyIds_codec = pb::FieldCodec.ForInt32(50); private readonly pbc::RepeatedField companyIds_ = new pbc::RepeatedField(); /// /// По идентификаторам компаний /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField CompanyIds { get { return companyIds_; } } /// Field number for the "keys" field. public const int KeysFieldNumber = 7; private static readonly pb::FieldCodec _repeated_keys_codec = pb::FieldCodec.ForString(58); private readonly pbc::RepeatedField keys_ = new pbc::RepeatedField(); /// /// По кодам ключа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Keys { get { return keys_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as RfidFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RfidFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!holderTypes_.Equals(other.holderTypes_)) return false; if(!payTypes_.Equals(other.payTypes_)) return false; if(!orpons_.Equals(other.orpons_)) return false; if(!roomNumbers_.Equals(other.roomNumbers_)) return false; if(!userIds_.Equals(other.userIds_)) return false; if(!companyIds_.Equals(other.companyIds_)) return false; if(!keys_.Equals(other.keys_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= holderTypes_.GetHashCode(); hash ^= payTypes_.GetHashCode(); hash ^= orpons_.GetHashCode(); hash ^= roomNumbers_.GetHashCode(); hash ^= userIds_.GetHashCode(); hash ^= companyIds_.GetHashCode(); hash ^= keys_.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 holderTypes_.WriteTo(output, _repeated_holderTypes_codec); payTypes_.WriteTo(output, _repeated_payTypes_codec); orpons_.WriteTo(output, _repeated_orpons_codec); roomNumbers_.WriteTo(output, _repeated_roomNumbers_codec); userIds_.WriteTo(output, _repeated_userIds_codec); companyIds_.WriteTo(output, _repeated_companyIds_codec); keys_.WriteTo(output, _repeated_keys_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) { holderTypes_.WriteTo(ref output, _repeated_holderTypes_codec); payTypes_.WriteTo(ref output, _repeated_payTypes_codec); orpons_.WriteTo(ref output, _repeated_orpons_codec); roomNumbers_.WriteTo(ref output, _repeated_roomNumbers_codec); userIds_.WriteTo(ref output, _repeated_userIds_codec); companyIds_.WriteTo(ref output, _repeated_companyIds_codec); keys_.WriteTo(ref output, _repeated_keys_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; size += holderTypes_.CalculateSize(_repeated_holderTypes_codec); size += payTypes_.CalculateSize(_repeated_payTypes_codec); size += orpons_.CalculateSize(_repeated_orpons_codec); size += roomNumbers_.CalculateSize(_repeated_roomNumbers_codec); size += userIds_.CalculateSize(_repeated_userIds_codec); size += companyIds_.CalculateSize(_repeated_companyIds_codec); size += keys_.CalculateSize(_repeated_keys_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RfidFilter other) { if (other == null) { return; } holderTypes_.Add(other.holderTypes_); payTypes_.Add(other.payTypes_); orpons_.Add(other.orpons_); roomNumbers_.Add(other.roomNumbers_); userIds_.Add(other.userIds_); companyIds_.Add(other.companyIds_); keys_.Add(other.keys_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: case 8: { holderTypes_.AddEntriesFrom(input, _repeated_holderTypes_codec); break; } case 18: case 16: { payTypes_.AddEntriesFrom(input, _repeated_payTypes_codec); break; } case 26: case 24: { orpons_.AddEntriesFrom(input, _repeated_orpons_codec); break; } case 34: { roomNumbers_.AddEntriesFrom(input, _repeated_roomNumbers_codec); break; } case 42: case 40: { userIds_.AddEntriesFrom(input, _repeated_userIds_codec); break; } case 50: case 48: { companyIds_.AddEntriesFrom(input, _repeated_companyIds_codec); break; } case 58: { keys_.AddEntriesFrom(input, _repeated_keys_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: case 8: { holderTypes_.AddEntriesFrom(ref input, _repeated_holderTypes_codec); break; } case 18: case 16: { payTypes_.AddEntriesFrom(ref input, _repeated_payTypes_codec); break; } case 26: case 24: { orpons_.AddEntriesFrom(ref input, _repeated_orpons_codec); break; } case 34: { roomNumbers_.AddEntriesFrom(ref input, _repeated_roomNumbers_codec); break; } case 42: case 40: { userIds_.AddEntriesFrom(ref input, _repeated_userIds_codec); break; } case 50: case 48: { companyIds_.AddEntriesFrom(ref input, _repeated_companyIds_codec); break; } case 58: { keys_.AddEntriesFrom(ref input, _repeated_keys_codec); break; } } } } #endif } /// /// Постраничный вывод /// public sealed partial class RfidPaging : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RfidPaging()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.KeyapisAccessControlRfidV1Reflection.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 RfidPaging() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RfidPaging(RfidPaging other) : this() { orderByType_ = other.orderByType_; directionType_ = other.directionType_; limit_ = other.limit_; offset_ = other.offset_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RfidPaging Clone() { return new RfidPaging(this); } /// Field number for the "order_by_type" field. public const int OrderByTypeFieldNumber = 1; private global::Keyapis.AccessControl.V1.RfidPaging.Types.OrderByType orderByType_ = global::Keyapis.AccessControl.V1.RfidPaging.Types.OrderByType.Unknown; /// /// Тип значения сортировки. /// Если значение не передано, то будет взято значение по умолчанию. /// # По умолчанию: CHANGED_AT /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.RfidPaging.Types.OrderByType OrderByType { get { return orderByType_; } set { orderByType_ = value; } } /// Field number for the "direction_type" field. public const int DirectionTypeFieldNumber = 2; private global::Keyapis.AccessControl.V1.RfidPaging.Types.DirectionType directionType_ = global::Keyapis.AccessControl.V1.RfidPaging.Types.DirectionType.Unknown; /// /// Тип направления сортировки. /// # По умолчанию: DESC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.RfidPaging.Types.DirectionType DirectionType { get { return directionType_; } set { directionType_ = value; } } /// Field number for the "limit" field. public const int LimitFieldNumber = 3; private int limit_; /// /// Количество записей на страницу. /// Если значение 0 (не передано), то будет взято значение по умолчанию. /// # Диапазон: 0..100. /// # По умолчанию: 20 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Limit { get { return limit_; } set { limit_ = value; } } /// Field number for the "offset" field. public const int OffsetFieldNumber = 4; private int offset_; /// /// Сдвиг. /// # Диапазон: 0..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Offset { get { return offset_; } set { offset_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as RfidPaging); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RfidPaging other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (OrderByType != other.OrderByType) return false; if (DirectionType != other.DirectionType) return false; if (Limit != other.Limit) return false; if (Offset != other.Offset) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (OrderByType != global::Keyapis.AccessControl.V1.RfidPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode(); if (DirectionType != global::Keyapis.AccessControl.V1.RfidPaging.Types.DirectionType.Unknown) hash ^= DirectionType.GetHashCode(); if (Limit != 0) hash ^= Limit.GetHashCode(); if (Offset != 0) hash ^= Offset.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (OrderByType != global::Keyapis.AccessControl.V1.RfidPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.AccessControl.V1.RfidPaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (OrderByType != global::Keyapis.AccessControl.V1.RfidPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.AccessControl.V1.RfidPaging.Types.DirectionType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DirectionType); } if (Limit != 0) { output.WriteRawTag(24); output.WriteInt32(Limit); } if (Offset != 0) { output.WriteRawTag(32); output.WriteInt32(Offset); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (OrderByType != global::Keyapis.AccessControl.V1.RfidPaging.Types.OrderByType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType); } if (DirectionType != global::Keyapis.AccessControl.V1.RfidPaging.Types.DirectionType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DirectionType); } if (Limit != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Limit); } if (Offset != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Offset); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RfidPaging other) { if (other == null) { return; } if (other.OrderByType != global::Keyapis.AccessControl.V1.RfidPaging.Types.OrderByType.Unknown) { OrderByType = other.OrderByType; } if (other.DirectionType != global::Keyapis.AccessControl.V1.RfidPaging.Types.DirectionType.Unknown) { DirectionType = other.DirectionType; } if (other.Limit != 0) { Limit = other.Limit; } if (other.Offset != 0) { Offset = other.Offset; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { OrderByType = (global::Keyapis.AccessControl.V1.RfidPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.AccessControl.V1.RfidPaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { OrderByType = (global::Keyapis.AccessControl.V1.RfidPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.AccessControl.V1.RfidPaging.Types.DirectionType) input.ReadEnum(); break; } case 24: { Limit = input.ReadInt32(); break; } case 32: { Offset = input.ReadInt32(); break; } } } } #endif #region Nested types /// Container for nested types declared in the RfidPaging message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов значений сортировки. /// # Тип: byte /// public enum OrderByType { /// /// Значение не указано /// [pbr::OriginalName("ORDER_BY_TYPE_UNKNOWN")] Unknown = 0, /// /// По времени создания /// [pbr::OriginalName("CREATED_AT")] CreatedAt = 1, /// /// По времени изменения /// [pbr::OriginalName("CHANGED_AT")] ChangedAt = 2, } /// /// Справочник типов направлений сортировки. /// # Тип: byte /// public enum DirectionType { /// /// Значение не указано /// [pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0, /// /// От большего к меньшему /// [pbr::OriginalName("DESC")] Desc = 1, /// /// От меньшего к большему /// [pbr::OriginalName("ASC")] Asc = 2, } } #endregion } #endregion } #endregion Designer generated code