// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/access_control/v1/keyapis_access_control_building_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_building_v1.proto public static partial class KeyapisAccessControlBuildingV1Reflection { #region Descriptor /// File descriptor for keyapis/access_control/v1/keyapis_access_control_building_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisAccessControlBuildingV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CkJrZXlhcGlzL2FjY2Vzc19jb250cm9sL3YxL2tleWFwaXNfYWNjZXNzX2Nv", "bnRyb2xfYnVpbGRpbmdfdjEucHJvdG8SGWtleWFwaXMuYWNjZXNzX2NvbnRy", "b2wudjEaHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aH2dvb2dsZS9h", "cGkvZmllbGRfYmVoYXZpb3IucHJvdG8aH2dvb2dsZS9wcm90b2J1Zi90aW1l", "c3RhbXAucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi93cmFwcGVycy5wcm90bxpI", "a2V5YXBpcy9hY2Nlc3NfY29udHJvbC92MS9rZXlhcGlzX2FjY2Vzc19jb250", "cm9sX2FjY2Vzc19jb250cm9sX3YxLnByb3RvIo0MCghCdWlsZGluZxIKCgJp", "ZBgBIAEoBRISCgVyZl9pZBgCIAEoBUID4EECEhMKBm1yZl9pZBgDIAEoBUID", "4EECEhIKBW9ycG9uGAQgASgDQgPgQQISEQoEY2l0eRgFIAEoCUID4EECEhMK", "BnN0cmVldBgGIAEoCUID4EECEg4KBm51bWJlchgHIAEoCRIMCgRwYXJ0GAgg", "ASgJEhcKCmNvbXBhbnlfaWQYCSABKAVCA+BBAhIOCgZwcmVmaXgYCiABKAkS", "MwoKY3JlYXRlZF9hdBgLIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3Rh", "bXBCA+BBAxIzCgpkZWxldGVkX2F0GAwgASgLMhouZ29vZ2xlLnByb3RvYnVm", "LlRpbWVzdGFtcEID4EEDEhkKDGZsYXRncmFtbV9pZBgNIAEoBUID4EECEhIK", "CmNpdHlfb3Jwb24YDiABKAMSKgoEZmlhcxgPIAEoCzIcLmdvb2dsZS5wcm90", "b2J1Zi5TdHJpbmdWYWx1ZRIuCghkaXN0cmljdBgQIAEoCzIcLmdvb2dsZS5w", "cm90b2J1Zi5TdHJpbmdWYWx1ZRIpCgR1bm9tGBEgASgLMhsuZ29vZ2xlLnBy", "b3RvYnVmLkludDY0VmFsdWUSFAoMcmVnaW9uX29ycG9uGBIgASgDEhIKCnV0", "Y19vZmZzZXQYEyABKAUSLwonaXNfa2V5X3B1cmNoYXNlX3Bvc3NpYmxlX2lu", "X3NhbGVfcG9pbnRzGBQgASgIEjYKLmlzX2tleV9wdXJjaGFzZV9wb3NzaWJs", "ZV9pbl9tYW5hZ2VtZW50X2NvbXBhbnkYFSABKAgSNAosaXNfa2V5X3B1cmNo", "YXNlX3Bvc3NpYmxlX2luX2ludGVyY29tX2NvbXBhbnkYFiABKAgSIAoYaXNf", "cmZpZF9taWZhcmVfc3VwcG9ydGVkGBcgASgIEioKBGFyZWEYGCABKAsyHC5n", "b29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSLwoKYXJlYV9vcnBvbhgZIAEo", "CzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVlEjAKCmFyZWFfa2xhZHIY", "GiABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSMwoOY2FwaXRh", "bF9tYXJrZXIYGyABKAsyGy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZRIw", "CgpjaXR5X2tsYWRyGBwgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1Zh", "bHVlEisKBWtsYWRyGB0gASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1Zh", "bHVlEi8KCmZpYXNfbGV2ZWwYHiABKAsyGy5nb29nbGUucHJvdG9idWYuSW50", "MzJWYWx1ZRI5ChRmaWFzX2FjdHVhbGl0eV9zdGF0ZRgfIAEoCzIbLmdvb2ds", "ZS5wcm90b2J1Zi5JbnQzMlZhbHVlEi0KB2dlb19sYXQYICABKAsyHC5nb29n", "bGUucHJvdG9idWYuRG91YmxlVmFsdWUSLQoHZ2VvX2xvbhghIAEoCzIcLmdv", "b2dsZS5wcm90b2J1Zi5Eb3VibGVWYWx1ZRIqCgVva2F0bxgiIAEoCzIbLmdv", "b2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlEioKBW9rdG1vGCMgASgLMhsuZ29v", "Z2xlLnByb3RvYnVmLkludDMyVmFsdWUSMAoLcG9zdGFsX2NvZGUYJCABKAsy", "Gy5nb29nbGUucHJvdG9idWYuSW50MzJWYWx1ZRIsCgZyZWdpb24YJSABKAsy", "HC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSMgoMcmVnaW9uX2tsYWRy", "GCYgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEjIKDHN0cmVl", "dF9rbGFkchgnIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRIx", "CgxzdHJlZXRfb3Jwb24YKCABKAsyGy5nb29nbGUucHJvdG9idWYuSW50NjRW", "YWx1ZSIlChJHZXRCdWlsZGluZ1JlcXVlc3QSDwoCaWQYASABKAVCA+BBAiLu", "AQoTR2V0QnVpbGRpbmdSZXNwb25zZRIzCgRkYXRhGAEgASgLMiMua2V5YXBp", "cy5hY2Nlc3NfY29udHJvbC52MS5CdWlsZGluZ0gAEkUKBWVycm9yGAIgASgL", "MjQua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MS5HZXRCdWlsZGluZ1Jlc3Bv", "bnNlLkVycm9ySAAaUwoFRXJyb3ISQAoKdmFsaWRhdGlvbhgBIAEoCzIqLmtl", "eWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuVmFsaWRhdGlvbkVycm9ySABCCAoG", "cmVhc29uQgYKBHR5cGUingEKFkdldEJ1aWxkaW5nTGlzdFJlcXVlc3QSOQoG", "ZmlsdGVyGAEgASgLMikua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MS5CdWls", "ZGluZ0ZpbHRlchI7CgZwYWdpbmcYAiABKAsyKS5rZXlhcGlzLmFjY2Vzc19j", "b250cm9sLnYxLkJ1aWxkaW5nUGFnaW5nSABCDAoKcGFnaW5hdGlvbiL2AQoX", "R2V0QnVpbGRpbmdMaXN0UmVzcG9uc2USMwoEZGF0YRgBIAEoCzIjLmtleWFw", "aXMuYWNjZXNzX2NvbnRyb2wudjEuQnVpbGRpbmdIABJJCgVlcnJvchgCIAEo", "CzI4LmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuR2V0QnVpbGRpbmdMaXN0", "UmVzcG9uc2UuRXJyb3JIABpTCgVFcnJvchJACgp2YWxpZGF0aW9uGAEgASgL", "Mioua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MS5WYWxpZGF0aW9uRXJyb3JI", "AEIICgZyZWFzb25CBgoEdHlwZSJZChdHZXRCdWlsZGluZ0NvdW50UmVxdWVz", "dBI+CgZmaWx0ZXIYASABKAsyKS5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYx", "LkJ1aWxkaW5nRmlsdGVyQgPgQQIiMgoYR2V0QnVpbGRpbmdDb3VudFJlc3Bv", "bnNlEg4KBGRhdGEYASABKAVIAEIGCgR0eXBlImwKDkJ1aWxkaW5nRmlsdGVy", "Eg8KB21yZl9pZHMYASADKAUSDgoGcmZfaWRzGAIgAygFEhIKCmRldmljZV9p", "ZHMYAyADKAUSFQoNZmxhdGdyYW1tX2lkcxgEIAMoBRIOCgZvcnBvbnMYBSAD", "KAMi8gIKDkJ1aWxkaW5nUGFnaW5nEkwKDW9yZGVyX2J5X3R5cGUYASABKA4y", "NS5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYxLkJ1aWxkaW5nUGFnaW5nLk9y", "ZGVyQnlUeXBlEk8KDmRpcmVjdGlvbl90eXBlGAIgASgOMjcua2V5YXBpcy5h", "Y2Nlc3NfY29udHJvbC52MS5CdWlsZGluZ1BhZ2luZy5EaXJlY3Rpb25UeXBl", "Eg0KBWxpbWl0GAMgASgFEg4KBm9mZnNldBgEIAEoBSJiCgtPcmRlckJ5VHlw", "ZRIZChVPUkRFUl9CWV9UWVBFX1VOS05PV04QABIGCgJJRBABEg4KCkNSRUFU", "RURfQVQQAhIgChxTVFJFRVRfVEhFTl9OVU1CRVJfVEhFTl9QQVJUEAMiPgoN", "RGlyZWN0aW9uVHlwZRIaChZESVJFQ1RJT05fVFlQRV9VTktOT1dOEAASCAoE", "REVTQxABEgcKA0FTQxACIvIBChhCdWlsZGluZ1N1YnNjcmlwdGlvbk1vZGUS", "aAoWc3Vic2NyaXB0aW9uX21vZGVfdHlwZRgBIAEoDjJILmtleWFwaXMuYWNj", "ZXNzX2NvbnRyb2wudjEuQnVpbGRpbmdTdWJzY3JpcHRpb25Nb2RlLlN1YnNj", "cmlwdGlvbk1vZGVUeXBlImwKFFN1YnNjcmlwdGlvbk1vZGVUeXBlEiIKHlNV", "QlNDUklQVElPTl9NT0RFX1RZUEVfVU5LTk9XThAAEgsKB0VOQUJMRUQQARIV", "ChFQQVJUSUFMTFlfRU5BQkxFRBACEgwKCERJU0FCTEVEEAMiPQonR2V0QnVp", "bGRpbmdPcnBvblN1YnNjcmlwdGlvbk1vZGVSZXF1ZXN0EhIKBW9ycG9uGAEg", "ASgDQgPgQQIiqAIKKEdldEJ1aWxkaW5nT3Jwb25TdWJzY3JpcHRpb25Nb2Rl", "UmVzcG9uc2USQwoEZGF0YRgBIAEoCzIzLmtleWFwaXMuYWNjZXNzX2NvbnRy", "b2wudjEuQnVpbGRpbmdTdWJzY3JpcHRpb25Nb2RlSAASWgoFZXJyb3IYAiAB", "KAsySS5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYxLkdldEJ1aWxkaW5nT3Jw", "b25TdWJzY3JpcHRpb25Nb2RlUmVzcG9uc2UuRXJyb3JIABpTCgVFcnJvchJA", "Cgp2YWxpZGF0aW9uGAEgASgLMioua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52", "MS5WYWxpZGF0aW9uRXJyb3JIAEIICgZyZWFzb25CBgoEdHlwZSIzCh1HZXRC", "dWlsZGluZ09ycG9uRXhpc3RzUmVxdWVzdBISCgVvcnBvbhgBIAEoA0ID4EEC", "It8BCh5HZXRCdWlsZGluZ09ycG9uRXhpc3RzUmVzcG9uc2USDgoEZGF0YRgB", "IAEoCEgAElAKBWVycm9yGAIgASgLMj8ua2V5YXBpcy5hY2Nlc3NfY29udHJv", "bC52MS5HZXRCdWlsZGluZ09ycG9uRXhpc3RzUmVzcG9uc2UuRXJyb3JIABpT", "CgVFcnJvchJACgp2YWxpZGF0aW9uGAEgASgLMioua2V5YXBpcy5hY2Nlc3Nf", "Y29udHJvbC52MS5WYWxpZGF0aW9uRXJyb3JIAEIICgZyZWFzb25CBgoEdHlw", "ZTLLBwoPQnVpbGRpbmdTZXJ2aWNlEpoBCgtHZXRCdWlsZGluZxItLmtleWFw", "aXMuYWNjZXNzX2NvbnRyb2wudjEuR2V0QnVpbGRpbmdSZXF1ZXN0Gi4ua2V5", "YXBpcy5hY2Nlc3NfY29udHJvbC52MS5HZXRCdWlsZGluZ1Jlc3BvbnNlIiyC", "0+STAiYSJC9hY2Nlc3NfY29udHJvbC9hcGkvdjEvYnVpbGRpbmcve2lkfRKo", "AQoPR2V0QnVpbGRpbmdMaXN0EjEua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52", "MS5HZXRCdWlsZGluZ0xpc3RSZXF1ZXN0GjIua2V5YXBpcy5hY2Nlc3NfY29u", "dHJvbC52MS5HZXRCdWlsZGluZ0xpc3RSZXNwb25zZSIsgtPkkwImEiQvYWNj", "ZXNzX2NvbnRyb2wvYXBpL3YxL2J1aWxkaW5nL2xpc3QwARKqAQoQR2V0QnVp", "bGRpbmdDb3VudBIyLmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuR2V0QnVp", "bGRpbmdDb3VudFJlcXVlc3QaMy5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYx", "LkdldEJ1aWxkaW5nQ291bnRSZXNwb25zZSItgtPkkwInEiUvYWNjZXNzX2Nv", "bnRyb2wvYXBpL3YxL2J1aWxkaW5nL2NvdW50EvQBCiBHZXRCdWlsZGluZ09y", "cG9uU3Vic2NyaXB0aW9uTW9kZRJCLmtleWFwaXMuYWNjZXNzX2NvbnRyb2wu", "djEuR2V0QnVpbGRpbmdPcnBvblN1YnNjcmlwdGlvbk1vZGVSZXF1ZXN0GkMu", "a2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MS5HZXRCdWlsZGluZ09ycG9uU3Vi", "c2NyaXB0aW9uTW9kZVJlc3BvbnNlIkeC0+STAkESPy9hY2Nlc3NfY29udHJv", "bC9hcGkvdjEvYnVpbGRpbmcvb3Jwb24ve29ycG9ufS9zdWJzY3JpcHRpb25f", "bW9kZRLLAQoWR2V0QnVpbGRpbmdPcnBvbkV4aXN0cxI4LmtleWFwaXMuYWNj", "ZXNzX2NvbnRyb2wudjEuR2V0QnVpbGRpbmdPcnBvbkV4aXN0c1JlcXVlc3Qa", "OS5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYxLkdldEJ1aWxkaW5nT3Jwb25F", "eGlzdHNSZXNwb25zZSI8gtPkkwI2EjQvYWNjZXNzX2NvbnRyb2wvYXBpL3Yx", "L2J1aWxkaW5nL29ycG9uL3tvcnBvbn0vZXhpc3RzQs0BChxydS5rZXlhcGlz", "LmFjY2Vzc19jb250cm9sLnYxQhtLZXlhcGlzQWNjZXNzQ29udHJvbFYxUHJv", "dG9IA1AAWhova2V5YXBpc19hY2Nlc3NfY29udHJvbF92MdgBAfgBAaICFktF", "WUFQSVNBQ0NFU1NDT05UUk9MVjGqAhhLZXlhcGlzLkFjY2Vzc0NvbnRyb2wu", "VjHKAhhLZXlhcGlzXEFjY2Vzc0NvbnRyb2xcVjHqAhpLZXlhcGlzOjpBY2Nl", "c3NDb250cm9sOjpWMWIGcHJvdG8z")); 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.Building), global::Keyapis.AccessControl.V1.Building.Parser, new[]{ "Id", "RfId", "MrfId", "Orpon", "City", "Street", "Number", "Part", "CompanyId", "Prefix", "CreatedAt", "DeletedAt", "FlatgrammId", "CityOrpon", "Fias", "District", "Unom", "RegionOrpon", "UtcOffset", "IsKeyPurchasePossibleInSalePoints", "IsKeyPurchasePossibleInManagementCompany", "IsKeyPurchasePossibleInIntercomCompany", "IsRfidMifareSupported", "Area", "AreaOrpon", "AreaKladr", "CapitalMarker", "CityKladr", "Kladr", "FiasLevel", "FiasActualityState", "GeoLat", "GeoLon", "Okato", "Oktmo", "PostalCode", "Region", "RegionKladr", "StreetKladr", "StreetOrpon" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingRequest), global::Keyapis.AccessControl.V1.GetBuildingRequest.Parser, new[]{ "Id" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingResponse), global::Keyapis.AccessControl.V1.GetBuildingResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingResponse.Types.Error), global::Keyapis.AccessControl.V1.GetBuildingResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingListRequest), global::Keyapis.AccessControl.V1.GetBuildingListRequest.Parser, new[]{ "Filter", "Paging" }, new[]{ "Pagination" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingListResponse), global::Keyapis.AccessControl.V1.GetBuildingListResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingListResponse.Types.Error), global::Keyapis.AccessControl.V1.GetBuildingListResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingCountRequest), global::Keyapis.AccessControl.V1.GetBuildingCountRequest.Parser, new[]{ "Filter" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingCountResponse), global::Keyapis.AccessControl.V1.GetBuildingCountResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.BuildingFilter), global::Keyapis.AccessControl.V1.BuildingFilter.Parser, new[]{ "MrfIds", "RfIds", "DeviceIds", "FlatgrammIds", "Orpons" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.BuildingPaging), global::Keyapis.AccessControl.V1.BuildingPaging.Parser, new[]{ "OrderByType", "DirectionType", "Limit", "Offset" }, null, new[]{ typeof(global::Keyapis.AccessControl.V1.BuildingPaging.Types.OrderByType), typeof(global::Keyapis.AccessControl.V1.BuildingPaging.Types.DirectionType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.BuildingSubscriptionMode), global::Keyapis.AccessControl.V1.BuildingSubscriptionMode.Parser, new[]{ "SubscriptionModeType" }, null, new[]{ typeof(global::Keyapis.AccessControl.V1.BuildingSubscriptionMode.Types.SubscriptionModeType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingOrponSubscriptionModeRequest), global::Keyapis.AccessControl.V1.GetBuildingOrponSubscriptionModeRequest.Parser, new[]{ "Orpon" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingOrponSubscriptionModeResponse), global::Keyapis.AccessControl.V1.GetBuildingOrponSubscriptionModeResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingOrponSubscriptionModeResponse.Types.Error), global::Keyapis.AccessControl.V1.GetBuildingOrponSubscriptionModeResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingOrponExistsRequest), global::Keyapis.AccessControl.V1.GetBuildingOrponExistsRequest.Parser, new[]{ "Orpon" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingOrponExistsResponse), global::Keyapis.AccessControl.V1.GetBuildingOrponExistsResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetBuildingOrponExistsResponse.Types.Error), global::Keyapis.AccessControl.V1.GetBuildingOrponExistsResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}) })); } #endregion } #region Messages /// /// Дом /// public sealed partial class Building : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Building()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.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 Building() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Building(Building other) : this() { id_ = other.id_; rfId_ = other.rfId_; mrfId_ = other.mrfId_; orpon_ = other.orpon_; city_ = other.city_; street_ = other.street_; number_ = other.number_; part_ = other.part_; companyId_ = other.companyId_; prefix_ = other.prefix_; createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; deletedAt_ = other.deletedAt_ != null ? other.deletedAt_.Clone() : null; flatgrammId_ = other.flatgrammId_; cityOrpon_ = other.cityOrpon_; Fias = other.Fias; District = other.District; Unom = other.Unom; regionOrpon_ = other.regionOrpon_; utcOffset_ = other.utcOffset_; isKeyPurchasePossibleInSalePoints_ = other.isKeyPurchasePossibleInSalePoints_; isKeyPurchasePossibleInManagementCompany_ = other.isKeyPurchasePossibleInManagementCompany_; isKeyPurchasePossibleInIntercomCompany_ = other.isKeyPurchasePossibleInIntercomCompany_; isRfidMifareSupported_ = other.isRfidMifareSupported_; Area = other.Area; AreaOrpon = other.AreaOrpon; AreaKladr = other.AreaKladr; CapitalMarker = other.CapitalMarker; CityKladr = other.CityKladr; Kladr = other.Kladr; FiasLevel = other.FiasLevel; FiasActualityState = other.FiasActualityState; GeoLat = other.GeoLat; GeoLon = other.GeoLon; Okato = other.Okato; Oktmo = other.Oktmo; PostalCode = other.PostalCode; Region = other.Region; RegionKladr = other.RegionKladr; StreetKladr = other.StreetKladr; StreetOrpon = other.StreetOrpon; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Building Clone() { return new Building(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор дома /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } /// Field number for the "rf_id" field. public const int RfIdFieldNumber = 2; private int rfId_; /// /// Идентификатор РФ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RfId { get { return rfId_; } set { rfId_ = value; } } /// Field number for the "mrf_id" field. public const int MrfIdFieldNumber = 3; private int mrfId_; /// /// Идентификатор МРФ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int MrfId { get { return mrfId_; } set { mrfId_ = value; } } /// Field number for the "orpon" field. public const int OrponFieldNumber = 4; private long orpon_; /// /// ОРПОН /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Orpon { get { return orpon_; } set { orpon_ = value; } } /// Field number for the "city" field. public const int CityFieldNumber = 5; private string city_ = ""; /// /// Город /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string City { get { return city_; } set { city_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "street" field. public const int StreetFieldNumber = 6; private string street_ = ""; /// /// Улица /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Street { get { return street_; } set { street_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "number" field. public const int NumberFieldNumber = 7; private string number_ = ""; /// /// Номер дома /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Number { get { return number_; } set { number_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "part" field. public const int PartFieldNumber = 8; private string part_ = ""; /// /// Корпус /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Part { get { return part_; } set { part_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "company_id" field. public const int CompanyIdFieldNumber = 9; 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 "prefix" field. public const int PrefixFieldNumber = 10; private string prefix_ = ""; /// /// Префикс /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Prefix { get { return prefix_; } set { prefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "created_at" field. public const int CreatedAtFieldNumber = 11; 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 "deleted_at" field. public const int DeletedAtFieldNumber = 12; private global::Google.Protobuf.WellKnownTypes.Timestamp deletedAt_; /// /// Дата удаления. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp DeletedAt { get { return deletedAt_; } set { deletedAt_ = value; } } /// Field number for the "flatgramm_id" field. public const int FlatgrammIdFieldNumber = 13; private int flatgrammId_; /// /// Идентификатор квартирограммы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int FlatgrammId { get { return flatgrammId_; } set { flatgrammId_ = value; } } /// Field number for the "city_orpon" field. public const int CityOrponFieldNumber = 14; private long cityOrpon_; /// /// ОРПОН города, в котором находится дом /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long CityOrpon { get { return cityOrpon_; } set { cityOrpon_ = value; } } /// Field number for the "fias" field. public const int FiasFieldNumber = 15; private static readonly pb::FieldCodec _single_fias_codec = pb::FieldCodec.ForClassWrapper(122); private string fias_; /// /// Идентификатор в федеральной информационной адресной системе. /// Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Fias { get { return fias_; } set { fias_ = value; } } /// Field number for the "district" field. public const int DistrictFieldNumber = 16; private static readonly pb::FieldCodec _single_district_codec = pb::FieldCodec.ForClassWrapper(130); private string district_; /// /// Наименование района города. /// # Диапазон: 0..200 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string District { get { return district_; } set { district_ = value; } } /// Field number for the "unom" field. public const int UnomFieldNumber = 17; private static readonly pb::FieldCodec _single_unom_codec = pb::FieldCodec.ForStructWrapper(138); private long? unom_; /// /// Уникальный номер адреса. /// # Диапазон: 0..9999999999 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long? Unom { get { return unom_; } set { unom_ = value; } } /// Field number for the "region_orpon" field. public const int RegionOrponFieldNumber = 18; private long regionOrpon_; /// /// ОРПОН региона /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long RegionOrpon { get { return regionOrpon_; } set { regionOrpon_ = value; } } /// Field number for the "utc_offset" field. public const int UtcOffsetFieldNumber = 19; private int utcOffset_; /// /// Смещение таймзоны в минутах. /// # Диапазон: -720..840 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int UtcOffset { get { return utcOffset_; } set { utcOffset_ = value; } } /// Field number for the "is_key_purchase_possible_in_sale_points" field. public const int IsKeyPurchasePossibleInSalePointsFieldNumber = 20; private bool isKeyPurchasePossibleInSalePoints_; /// /// Флаг указывает на то могут ли жители этого дома приобрести ключи домофона в партнёрских салонах или на маркетплейсах /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsKeyPurchasePossibleInSalePoints { get { return isKeyPurchasePossibleInSalePoints_; } set { isKeyPurchasePossibleInSalePoints_ = value; } } /// Field number for the "is_key_purchase_possible_in_management_company" field. public const int IsKeyPurchasePossibleInManagementCompanyFieldNumber = 21; private bool isKeyPurchasePossibleInManagementCompany_; /// /// Флаг указывает на то могут ли жители этого дома приобретать ключи через управляющую компанию /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsKeyPurchasePossibleInManagementCompany { get { return isKeyPurchasePossibleInManagementCompany_; } set { isKeyPurchasePossibleInManagementCompany_ = value; } } /// Field number for the "is_key_purchase_possible_in_intercom_company" field. public const int IsKeyPurchasePossibleInIntercomCompanyFieldNumber = 22; private bool isKeyPurchasePossibleInIntercomCompany_; /// /// Флаг указывает на то могут ли жители этого дома приобрести ключи напрямую у домофонной компании /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsKeyPurchasePossibleInIntercomCompany { get { return isKeyPurchasePossibleInIntercomCompany_; } set { isKeyPurchasePossibleInIntercomCompany_ = value; } } /// Field number for the "is_rfid_mifare_supported" field. public const int IsRfidMifareSupportedFieldNumber = 23; private bool isRfidMifareSupported_; /// /// Флаг указывает на то поддерживает ли дом использование RFID-меток с типом MIFARE /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsRfidMifareSupported { get { return isRfidMifareSupported_; } set { isRfidMifareSupported_ = value; } } /// Field number for the "area" field. public const int AreaFieldNumber = 24; private static readonly pb::FieldCodec _single_area_codec = pb::FieldCodec.ForClassWrapper(194); private string area_; /// /// Наименование муниципального района. /// # Диапазон: 0..64 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Area { get { return area_; } set { area_ = value; } } /// Field number for the "area_orpon" field. public const int AreaOrponFieldNumber = 25; private static readonly pb::FieldCodec _single_areaOrpon_codec = pb::FieldCodec.ForStructWrapper(202); private long? areaOrpon_; /// /// ОРПОН муниципального района. /// # Диапазон: 0..9999999999 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long? AreaOrpon { get { return areaOrpon_; } set { areaOrpon_ = value; } } /// Field number for the "area_kladr" field. public const int AreaKladrFieldNumber = 26; private static readonly pb::FieldCodec _single_areaKladr_codec = pb::FieldCodec.ForClassWrapper(210); private string areaKladr_; /// /// КЛАДР муниципального района. /// # Диапазон: 0..32 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string AreaKladr { get { return areaKladr_; } set { areaKladr_ = value; } } /// Field number for the "capital_marker" field. public const int CapitalMarkerFieldNumber = 27; private static readonly pb::FieldCodec _single_capitalMarker_codec = pb::FieldCodec.ForStructWrapper(218); private int? capitalMarker_; /// /// Признак принадлежности населённого пункта к столичному статусу. /// 1 — центр района. /// 2 — центр региона. /// 3 — центр района и региона. /// 4 — центральный район региона. /// 0 — ничего из перечисленного. /// # Диапазон: 0..4 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? CapitalMarker { get { return capitalMarker_; } set { capitalMarker_ = value; } } /// Field number for the "city_kladr" field. public const int CityKladrFieldNumber = 28; private static readonly pb::FieldCodec _single_cityKladr_codec = pb::FieldCodec.ForClassWrapper(226); private string cityKladr_; /// /// КЛАДР-код города. /// # Диапазон: 0..17 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CityKladr { get { return cityKladr_; } set { cityKladr_ = value; } } /// Field number for the "kladr" field. public const int KladrFieldNumber = 29; private static readonly pb::FieldCodec _single_kladr_codec = pb::FieldCodec.ForClassWrapper(234); private string kladr_; /// /// КЛАДР-код строения. /// # Диапазон: 0..17 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Kladr { get { return kladr_; } set { kladr_ = value; } } /// Field number for the "fias_level" field. public const int FiasLevelFieldNumber = 30; private static readonly pb::FieldCodec _single_fiasLevel_codec = pb::FieldCodec.ForStructWrapper(242); private int? fiasLevel_; /// /// Уровень детализации, до которого адрес найден в ФИАС. /// 0 — страна. /// 1 — регион. /// 3 — район. /// 4 — город. /// 5 — район города. /// 6 — населенный пункт. /// 7 — улица. /// 8 — дом. /// 9 — квартира. /// 65 — планировочная структура. /// 90 — доп. территория. /// 91 — улица в доп. территории. /// -1 — иностранный или пустой. /// # Диапазон: -1..99 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? FiasLevel { get { return fiasLevel_; } set { fiasLevel_ = value; } } /// Field number for the "fias_actuality_state" field. public const int FiasActualityStateFieldNumber = 31; private static readonly pb::FieldCodec _single_fiasActualityState_codec = pb::FieldCodec.ForStructWrapper(250); private int? fiasActualityState_; /// /// Уровень детализации, до которого адрес найден в ФИАС. /// 0 — актуальный. /// 1-50 — переименован. /// 51 — переподчинен. /// 99 — удален. /// # Диапазон: 0..99 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? FiasActualityState { get { return fiasActualityState_; } set { fiasActualityState_ = value; } } /// Field number for the "geo_lat" field. public const int GeoLatFieldNumber = 32; private static readonly pb::FieldCodec _single_geoLat_codec = pb::FieldCodec.ForStructWrapper(258); private double? geoLat_; /// /// Координаты: широта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double? GeoLat { get { return geoLat_; } set { geoLat_ = value; } } /// Field number for the "geo_lon" field. public const int GeoLonFieldNumber = 33; private static readonly pb::FieldCodec _single_geoLon_codec = pb::FieldCodec.ForStructWrapper(266); private double? geoLon_; /// /// Координаты: долгота /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double? GeoLon { get { return geoLon_; } set { geoLon_ = value; } } /// Field number for the "okato" field. public const int OkatoFieldNumber = 34; private static readonly pb::FieldCodec _single_okato_codec = pb::FieldCodec.ForStructWrapper(274); private int? okato_; /// /// Код ОКАТО /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? Okato { get { return okato_; } set { okato_ = value; } } /// Field number for the "oktmo" field. public const int OktmoFieldNumber = 35; private static readonly pb::FieldCodec _single_oktmo_codec = pb::FieldCodec.ForStructWrapper(282); private int? oktmo_; /// /// Код ОКТМО /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? Oktmo { get { return oktmo_; } set { oktmo_ = value; } } /// Field number for the "postal_code" field. public const int PostalCodeFieldNumber = 36; private static readonly pb::FieldCodec _single_postalCode_codec = pb::FieldCodec.ForStructWrapper(290); private int? postalCode_; /// /// Почтовый индекс /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? PostalCode { get { return postalCode_; } set { postalCode_ = value; } } /// Field number for the "region" field. public const int RegionFieldNumber = 37; private static readonly pb::FieldCodec _single_region_codec = pb::FieldCodec.ForClassWrapper(298); private string region_; /// /// Наименование региона. /// # Диапазон: 0..64 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Region { get { return region_; } set { region_ = value; } } /// Field number for the "region_kladr" field. public const int RegionKladrFieldNumber = 38; private static readonly pb::FieldCodec _single_regionKladr_codec = pb::FieldCodec.ForClassWrapper(306); private string regionKladr_; /// /// КЛАДР-код региона. /// # Диапазон: 0..32 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RegionKladr { get { return regionKladr_; } set { regionKladr_ = value; } } /// Field number for the "street_kladr" field. public const int StreetKladrFieldNumber = 39; private static readonly pb::FieldCodec _single_streetKladr_codec = pb::FieldCodec.ForClassWrapper(314); private string streetKladr_; /// /// КЛАДР-код улицы. /// # Диапазон: 0..32 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string StreetKladr { get { return streetKladr_; } set { streetKladr_ = value; } } /// Field number for the "street_orpon" field. public const int StreetOrponFieldNumber = 40; private static readonly pb::FieldCodec _single_streetOrpon_codec = pb::FieldCodec.ForStructWrapper(322); private long? streetOrpon_; /// /// ОРПОН улицы. /// # Диапазон: 0..9999999999 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long? StreetOrpon { get { return streetOrpon_; } set { streetOrpon_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Building); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Building other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (RfId != other.RfId) return false; if (MrfId != other.MrfId) return false; if (Orpon != other.Orpon) return false; if (City != other.City) return false; if (Street != other.Street) return false; if (Number != other.Number) return false; if (Part != other.Part) return false; if (CompanyId != other.CompanyId) return false; if (Prefix != other.Prefix) return false; if (!object.Equals(CreatedAt, other.CreatedAt)) return false; if (!object.Equals(DeletedAt, other.DeletedAt)) return false; if (FlatgrammId != other.FlatgrammId) return false; if (CityOrpon != other.CityOrpon) return false; if (Fias != other.Fias) return false; if (District != other.District) return false; if (Unom != other.Unom) return false; if (RegionOrpon != other.RegionOrpon) return false; if (UtcOffset != other.UtcOffset) return false; if (IsKeyPurchasePossibleInSalePoints != other.IsKeyPurchasePossibleInSalePoints) return false; if (IsKeyPurchasePossibleInManagementCompany != other.IsKeyPurchasePossibleInManagementCompany) return false; if (IsKeyPurchasePossibleInIntercomCompany != other.IsKeyPurchasePossibleInIntercomCompany) return false; if (IsRfidMifareSupported != other.IsRfidMifareSupported) return false; if (Area != other.Area) return false; if (AreaOrpon != other.AreaOrpon) return false; if (AreaKladr != other.AreaKladr) return false; if (CapitalMarker != other.CapitalMarker) return false; if (CityKladr != other.CityKladr) return false; if (Kladr != other.Kladr) return false; if (FiasLevel != other.FiasLevel) return false; if (FiasActualityState != other.FiasActualityState) return false; if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(GeoLat, other.GeoLat)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(GeoLon, other.GeoLon)) return false; if (Okato != other.Okato) return false; if (Oktmo != other.Oktmo) return false; if (PostalCode != other.PostalCode) return false; if (Region != other.Region) return false; if (RegionKladr != other.RegionKladr) return false; if (StreetKladr != other.StreetKladr) return false; if (StreetOrpon != other.StreetOrpon) return 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 (RfId != 0) hash ^= RfId.GetHashCode(); if (MrfId != 0) hash ^= MrfId.GetHashCode(); if (Orpon != 0L) hash ^= Orpon.GetHashCode(); if (City.Length != 0) hash ^= City.GetHashCode(); if (Street.Length != 0) hash ^= Street.GetHashCode(); if (Number.Length != 0) hash ^= Number.GetHashCode(); if (Part.Length != 0) hash ^= Part.GetHashCode(); if (CompanyId != 0) hash ^= CompanyId.GetHashCode(); if (Prefix.Length != 0) hash ^= Prefix.GetHashCode(); if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); if (deletedAt_ != null) hash ^= DeletedAt.GetHashCode(); if (FlatgrammId != 0) hash ^= FlatgrammId.GetHashCode(); if (CityOrpon != 0L) hash ^= CityOrpon.GetHashCode(); if (fias_ != null) hash ^= Fias.GetHashCode(); if (district_ != null) hash ^= District.GetHashCode(); if (unom_ != null) hash ^= Unom.GetHashCode(); if (RegionOrpon != 0L) hash ^= RegionOrpon.GetHashCode(); if (UtcOffset != 0) hash ^= UtcOffset.GetHashCode(); if (IsKeyPurchasePossibleInSalePoints != false) hash ^= IsKeyPurchasePossibleInSalePoints.GetHashCode(); if (IsKeyPurchasePossibleInManagementCompany != false) hash ^= IsKeyPurchasePossibleInManagementCompany.GetHashCode(); if (IsKeyPurchasePossibleInIntercomCompany != false) hash ^= IsKeyPurchasePossibleInIntercomCompany.GetHashCode(); if (IsRfidMifareSupported != false) hash ^= IsRfidMifareSupported.GetHashCode(); if (area_ != null) hash ^= Area.GetHashCode(); if (areaOrpon_ != null) hash ^= AreaOrpon.GetHashCode(); if (areaKladr_ != null) hash ^= AreaKladr.GetHashCode(); if (capitalMarker_ != null) hash ^= CapitalMarker.GetHashCode(); if (cityKladr_ != null) hash ^= CityKladr.GetHashCode(); if (kladr_ != null) hash ^= Kladr.GetHashCode(); if (fiasLevel_ != null) hash ^= FiasLevel.GetHashCode(); if (fiasActualityState_ != null) hash ^= FiasActualityState.GetHashCode(); if (geoLat_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(GeoLat); if (geoLon_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(GeoLon); if (okato_ != null) hash ^= Okato.GetHashCode(); if (oktmo_ != null) hash ^= Oktmo.GetHashCode(); if (postalCode_ != null) hash ^= PostalCode.GetHashCode(); if (region_ != null) hash ^= Region.GetHashCode(); if (regionKladr_ != null) hash ^= RegionKladr.GetHashCode(); if (streetKladr_ != null) hash ^= StreetKladr.GetHashCode(); if (streetOrpon_ != null) hash ^= StreetOrpon.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 (RfId != 0) { output.WriteRawTag(16); output.WriteInt32(RfId); } if (MrfId != 0) { output.WriteRawTag(24); output.WriteInt32(MrfId); } if (Orpon != 0L) { output.WriteRawTag(32); output.WriteInt64(Orpon); } if (City.Length != 0) { output.WriteRawTag(42); output.WriteString(City); } if (Street.Length != 0) { output.WriteRawTag(50); output.WriteString(Street); } if (Number.Length != 0) { output.WriteRawTag(58); output.WriteString(Number); } if (Part.Length != 0) { output.WriteRawTag(66); output.WriteString(Part); } if (CompanyId != 0) { output.WriteRawTag(72); output.WriteInt32(CompanyId); } if (Prefix.Length != 0) { output.WriteRawTag(82); output.WriteString(Prefix); } if (createdAt_ != null) { output.WriteRawTag(90); output.WriteMessage(CreatedAt); } if (deletedAt_ != null) { output.WriteRawTag(98); output.WriteMessage(DeletedAt); } if (FlatgrammId != 0) { output.WriteRawTag(104); output.WriteInt32(FlatgrammId); } if (CityOrpon != 0L) { output.WriteRawTag(112); output.WriteInt64(CityOrpon); } if (fias_ != null) { _single_fias_codec.WriteTagAndValue(output, Fias); } if (district_ != null) { _single_district_codec.WriteTagAndValue(output, District); } if (unom_ != null) { _single_unom_codec.WriteTagAndValue(output, Unom); } if (RegionOrpon != 0L) { output.WriteRawTag(144, 1); output.WriteInt64(RegionOrpon); } if (UtcOffset != 0) { output.WriteRawTag(152, 1); output.WriteInt32(UtcOffset); } if (IsKeyPurchasePossibleInSalePoints != false) { output.WriteRawTag(160, 1); output.WriteBool(IsKeyPurchasePossibleInSalePoints); } if (IsKeyPurchasePossibleInManagementCompany != false) { output.WriteRawTag(168, 1); output.WriteBool(IsKeyPurchasePossibleInManagementCompany); } if (IsKeyPurchasePossibleInIntercomCompany != false) { output.WriteRawTag(176, 1); output.WriteBool(IsKeyPurchasePossibleInIntercomCompany); } if (IsRfidMifareSupported != false) { output.WriteRawTag(184, 1); output.WriteBool(IsRfidMifareSupported); } if (area_ != null) { _single_area_codec.WriteTagAndValue(output, Area); } if (areaOrpon_ != null) { _single_areaOrpon_codec.WriteTagAndValue(output, AreaOrpon); } if (areaKladr_ != null) { _single_areaKladr_codec.WriteTagAndValue(output, AreaKladr); } if (capitalMarker_ != null) { _single_capitalMarker_codec.WriteTagAndValue(output, CapitalMarker); } if (cityKladr_ != null) { _single_cityKladr_codec.WriteTagAndValue(output, CityKladr); } if (kladr_ != null) { _single_kladr_codec.WriteTagAndValue(output, Kladr); } if (fiasLevel_ != null) { _single_fiasLevel_codec.WriteTagAndValue(output, FiasLevel); } if (fiasActualityState_ != null) { _single_fiasActualityState_codec.WriteTagAndValue(output, FiasActualityState); } if (geoLat_ != null) { _single_geoLat_codec.WriteTagAndValue(output, GeoLat); } if (geoLon_ != null) { _single_geoLon_codec.WriteTagAndValue(output, GeoLon); } if (okato_ != null) { _single_okato_codec.WriteTagAndValue(output, Okato); } if (oktmo_ != null) { _single_oktmo_codec.WriteTagAndValue(output, Oktmo); } if (postalCode_ != null) { _single_postalCode_codec.WriteTagAndValue(output, PostalCode); } if (region_ != null) { _single_region_codec.WriteTagAndValue(output, Region); } if (regionKladr_ != null) { _single_regionKladr_codec.WriteTagAndValue(output, RegionKladr); } if (streetKladr_ != null) { _single_streetKladr_codec.WriteTagAndValue(output, StreetKladr); } if (streetOrpon_ != null) { _single_streetOrpon_codec.WriteTagAndValue(output, StreetOrpon); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_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 (RfId != 0) { output.WriteRawTag(16); output.WriteInt32(RfId); } if (MrfId != 0) { output.WriteRawTag(24); output.WriteInt32(MrfId); } if (Orpon != 0L) { output.WriteRawTag(32); output.WriteInt64(Orpon); } if (City.Length != 0) { output.WriteRawTag(42); output.WriteString(City); } if (Street.Length != 0) { output.WriteRawTag(50); output.WriteString(Street); } if (Number.Length != 0) { output.WriteRawTag(58); output.WriteString(Number); } if (Part.Length != 0) { output.WriteRawTag(66); output.WriteString(Part); } if (CompanyId != 0) { output.WriteRawTag(72); output.WriteInt32(CompanyId); } if (Prefix.Length != 0) { output.WriteRawTag(82); output.WriteString(Prefix); } if (createdAt_ != null) { output.WriteRawTag(90); output.WriteMessage(CreatedAt); } if (deletedAt_ != null) { output.WriteRawTag(98); output.WriteMessage(DeletedAt); } if (FlatgrammId != 0) { output.WriteRawTag(104); output.WriteInt32(FlatgrammId); } if (CityOrpon != 0L) { output.WriteRawTag(112); output.WriteInt64(CityOrpon); } if (fias_ != null) { _single_fias_codec.WriteTagAndValue(ref output, Fias); } if (district_ != null) { _single_district_codec.WriteTagAndValue(ref output, District); } if (unom_ != null) { _single_unom_codec.WriteTagAndValue(ref output, Unom); } if (RegionOrpon != 0L) { output.WriteRawTag(144, 1); output.WriteInt64(RegionOrpon); } if (UtcOffset != 0) { output.WriteRawTag(152, 1); output.WriteInt32(UtcOffset); } if (IsKeyPurchasePossibleInSalePoints != false) { output.WriteRawTag(160, 1); output.WriteBool(IsKeyPurchasePossibleInSalePoints); } if (IsKeyPurchasePossibleInManagementCompany != false) { output.WriteRawTag(168, 1); output.WriteBool(IsKeyPurchasePossibleInManagementCompany); } if (IsKeyPurchasePossibleInIntercomCompany != false) { output.WriteRawTag(176, 1); output.WriteBool(IsKeyPurchasePossibleInIntercomCompany); } if (IsRfidMifareSupported != false) { output.WriteRawTag(184, 1); output.WriteBool(IsRfidMifareSupported); } if (area_ != null) { _single_area_codec.WriteTagAndValue(ref output, Area); } if (areaOrpon_ != null) { _single_areaOrpon_codec.WriteTagAndValue(ref output, AreaOrpon); } if (areaKladr_ != null) { _single_areaKladr_codec.WriteTagAndValue(ref output, AreaKladr); } if (capitalMarker_ != null) { _single_capitalMarker_codec.WriteTagAndValue(ref output, CapitalMarker); } if (cityKladr_ != null) { _single_cityKladr_codec.WriteTagAndValue(ref output, CityKladr); } if (kladr_ != null) { _single_kladr_codec.WriteTagAndValue(ref output, Kladr); } if (fiasLevel_ != null) { _single_fiasLevel_codec.WriteTagAndValue(ref output, FiasLevel); } if (fiasActualityState_ != null) { _single_fiasActualityState_codec.WriteTagAndValue(ref output, FiasActualityState); } if (geoLat_ != null) { _single_geoLat_codec.WriteTagAndValue(ref output, GeoLat); } if (geoLon_ != null) { _single_geoLon_codec.WriteTagAndValue(ref output, GeoLon); } if (okato_ != null) { _single_okato_codec.WriteTagAndValue(ref output, Okato); } if (oktmo_ != null) { _single_oktmo_codec.WriteTagAndValue(ref output, Oktmo); } if (postalCode_ != null) { _single_postalCode_codec.WriteTagAndValue(ref output, PostalCode); } if (region_ != null) { _single_region_codec.WriteTagAndValue(ref output, Region); } if (regionKladr_ != null) { _single_regionKladr_codec.WriteTagAndValue(ref output, RegionKladr); } if (streetKladr_ != null) { _single_streetKladr_codec.WriteTagAndValue(ref output, StreetKladr); } if (streetOrpon_ != null) { _single_streetOrpon_codec.WriteTagAndValue(ref output, StreetOrpon); } if (_unknownFields != 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 (RfId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RfId); } if (MrfId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(MrfId); } if (Orpon != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Orpon); } if (City.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(City); } if (Street.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Street); } if (Number.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Number); } if (Part.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Part); } if (CompanyId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompanyId); } if (Prefix.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Prefix); } if (createdAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); } if (deletedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeletedAt); } if (FlatgrammId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(FlatgrammId); } if (CityOrpon != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(CityOrpon); } if (fias_ != null) { size += _single_fias_codec.CalculateSizeWithTag(Fias); } if (district_ != null) { size += _single_district_codec.CalculateSizeWithTag(District); } if (unom_ != null) { size += _single_unom_codec.CalculateSizeWithTag(Unom); } if (RegionOrpon != 0L) { size += 2 + pb::CodedOutputStream.ComputeInt64Size(RegionOrpon); } if (UtcOffset != 0) { size += 2 + pb::CodedOutputStream.ComputeInt32Size(UtcOffset); } if (IsKeyPurchasePossibleInSalePoints != false) { size += 2 + 1; } if (IsKeyPurchasePossibleInManagementCompany != false) { size += 2 + 1; } if (IsKeyPurchasePossibleInIntercomCompany != false) { size += 2 + 1; } if (IsRfidMifareSupported != false) { size += 2 + 1; } if (area_ != null) { size += _single_area_codec.CalculateSizeWithTag(Area); } if (areaOrpon_ != null) { size += _single_areaOrpon_codec.CalculateSizeWithTag(AreaOrpon); } if (areaKladr_ != null) { size += _single_areaKladr_codec.CalculateSizeWithTag(AreaKladr); } if (capitalMarker_ != null) { size += _single_capitalMarker_codec.CalculateSizeWithTag(CapitalMarker); } if (cityKladr_ != null) { size += _single_cityKladr_codec.CalculateSizeWithTag(CityKladr); } if (kladr_ != null) { size += _single_kladr_codec.CalculateSizeWithTag(Kladr); } if (fiasLevel_ != null) { size += _single_fiasLevel_codec.CalculateSizeWithTag(FiasLevel); } if (fiasActualityState_ != null) { size += _single_fiasActualityState_codec.CalculateSizeWithTag(FiasActualityState); } if (geoLat_ != null) { size += _single_geoLat_codec.CalculateSizeWithTag(GeoLat); } if (geoLon_ != null) { size += _single_geoLon_codec.CalculateSizeWithTag(GeoLon); } if (okato_ != null) { size += _single_okato_codec.CalculateSizeWithTag(Okato); } if (oktmo_ != null) { size += _single_oktmo_codec.CalculateSizeWithTag(Oktmo); } if (postalCode_ != null) { size += _single_postalCode_codec.CalculateSizeWithTag(PostalCode); } if (region_ != null) { size += _single_region_codec.CalculateSizeWithTag(Region); } if (regionKladr_ != null) { size += _single_regionKladr_codec.CalculateSizeWithTag(RegionKladr); } if (streetKladr_ != null) { size += _single_streetKladr_codec.CalculateSizeWithTag(StreetKladr); } if (streetOrpon_ != null) { size += _single_streetOrpon_codec.CalculateSizeWithTag(StreetOrpon); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Building other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.RfId != 0) { RfId = other.RfId; } if (other.MrfId != 0) { MrfId = other.MrfId; } if (other.Orpon != 0L) { Orpon = other.Orpon; } if (other.City.Length != 0) { City = other.City; } if (other.Street.Length != 0) { Street = other.Street; } if (other.Number.Length != 0) { Number = other.Number; } if (other.Part.Length != 0) { Part = other.Part; } if (other.CompanyId != 0) { CompanyId = other.CompanyId; } if (other.Prefix.Length != 0) { Prefix = other.Prefix; } if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.deletedAt_ != null) { if (deletedAt_ == null) { DeletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } DeletedAt.MergeFrom(other.DeletedAt); } if (other.FlatgrammId != 0) { FlatgrammId = other.FlatgrammId; } if (other.CityOrpon != 0L) { CityOrpon = other.CityOrpon; } if (other.fias_ != null) { if (fias_ == null || other.Fias != "") { Fias = other.Fias; } } if (other.district_ != null) { if (district_ == null || other.District != "") { District = other.District; } } if (other.unom_ != null) { if (unom_ == null || other.Unom != 0L) { Unom = other.Unom; } } if (other.RegionOrpon != 0L) { RegionOrpon = other.RegionOrpon; } if (other.UtcOffset != 0) { UtcOffset = other.UtcOffset; } if (other.IsKeyPurchasePossibleInSalePoints != false) { IsKeyPurchasePossibleInSalePoints = other.IsKeyPurchasePossibleInSalePoints; } if (other.IsKeyPurchasePossibleInManagementCompany != false) { IsKeyPurchasePossibleInManagementCompany = other.IsKeyPurchasePossibleInManagementCompany; } if (other.IsKeyPurchasePossibleInIntercomCompany != false) { IsKeyPurchasePossibleInIntercomCompany = other.IsKeyPurchasePossibleInIntercomCompany; } if (other.IsRfidMifareSupported != false) { IsRfidMifareSupported = other.IsRfidMifareSupported; } if (other.area_ != null) { if (area_ == null || other.Area != "") { Area = other.Area; } } if (other.areaOrpon_ != null) { if (areaOrpon_ == null || other.AreaOrpon != 0L) { AreaOrpon = other.AreaOrpon; } } if (other.areaKladr_ != null) { if (areaKladr_ == null || other.AreaKladr != "") { AreaKladr = other.AreaKladr; } } if (other.capitalMarker_ != null) { if (capitalMarker_ == null || other.CapitalMarker != 0) { CapitalMarker = other.CapitalMarker; } } if (other.cityKladr_ != null) { if (cityKladr_ == null || other.CityKladr != "") { CityKladr = other.CityKladr; } } if (other.kladr_ != null) { if (kladr_ == null || other.Kladr != "") { Kladr = other.Kladr; } } if (other.fiasLevel_ != null) { if (fiasLevel_ == null || other.FiasLevel != 0) { FiasLevel = other.FiasLevel; } } if (other.fiasActualityState_ != null) { if (fiasActualityState_ == null || other.FiasActualityState != 0) { FiasActualityState = other.FiasActualityState; } } if (other.geoLat_ != null) { if (geoLat_ == null || other.GeoLat != 0D) { GeoLat = other.GeoLat; } } if (other.geoLon_ != null) { if (geoLon_ == null || other.GeoLon != 0D) { GeoLon = other.GeoLon; } } if (other.okato_ != null) { if (okato_ == null || other.Okato != 0) { Okato = other.Okato; } } if (other.oktmo_ != null) { if (oktmo_ == null || other.Oktmo != 0) { Oktmo = other.Oktmo; } } if (other.postalCode_ != null) { if (postalCode_ == null || other.PostalCode != 0) { PostalCode = other.PostalCode; } } if (other.region_ != null) { if (region_ == null || other.Region != "") { Region = other.Region; } } if (other.regionKladr_ != null) { if (regionKladr_ == null || other.RegionKladr != "") { RegionKladr = other.RegionKladr; } } if (other.streetKladr_ != null) { if (streetKladr_ == null || other.StreetKladr != "") { StreetKladr = other.StreetKladr; } } if (other.streetOrpon_ != null) { if (streetOrpon_ == null || other.StreetOrpon != 0L) { StreetOrpon = other.StreetOrpon; } } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { RfId = input.ReadInt32(); break; } case 24: { MrfId = input.ReadInt32(); break; } case 32: { Orpon = input.ReadInt64(); break; } case 42: { City = input.ReadString(); break; } case 50: { Street = input.ReadString(); break; } case 58: { Number = input.ReadString(); break; } case 66: { Part = input.ReadString(); break; } case 72: { CompanyId = input.ReadInt32(); break; } case 82: { Prefix = input.ReadString(); break; } case 90: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 98: { if (deletedAt_ == null) { DeletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(DeletedAt); break; } case 104: { FlatgrammId = input.ReadInt32(); break; } case 112: { CityOrpon = input.ReadInt64(); break; } case 122: { string value = _single_fias_codec.Read(input); if (fias_ == null || value != "") { Fias = value; } break; } case 130: { string value = _single_district_codec.Read(input); if (district_ == null || value != "") { District = value; } break; } case 138: { long? value = _single_unom_codec.Read(input); if (unom_ == null || value != 0L) { Unom = value; } break; } case 144: { RegionOrpon = input.ReadInt64(); break; } case 152: { UtcOffset = input.ReadInt32(); break; } case 160: { IsKeyPurchasePossibleInSalePoints = input.ReadBool(); break; } case 168: { IsKeyPurchasePossibleInManagementCompany = input.ReadBool(); break; } case 176: { IsKeyPurchasePossibleInIntercomCompany = input.ReadBool(); break; } case 184: { IsRfidMifareSupported = input.ReadBool(); break; } case 194: { string value = _single_area_codec.Read(input); if (area_ == null || value != "") { Area = value; } break; } case 202: { long? value = _single_areaOrpon_codec.Read(input); if (areaOrpon_ == null || value != 0L) { AreaOrpon = value; } break; } case 210: { string value = _single_areaKladr_codec.Read(input); if (areaKladr_ == null || value != "") { AreaKladr = value; } break; } case 218: { int? value = _single_capitalMarker_codec.Read(input); if (capitalMarker_ == null || value != 0) { CapitalMarker = value; } break; } case 226: { string value = _single_cityKladr_codec.Read(input); if (cityKladr_ == null || value != "") { CityKladr = value; } break; } case 234: { string value = _single_kladr_codec.Read(input); if (kladr_ == null || value != "") { Kladr = value; } break; } case 242: { int? value = _single_fiasLevel_codec.Read(input); if (fiasLevel_ == null || value != 0) { FiasLevel = value; } break; } case 250: { int? value = _single_fiasActualityState_codec.Read(input); if (fiasActualityState_ == null || value != 0) { FiasActualityState = value; } break; } case 258: { double? value = _single_geoLat_codec.Read(input); if (geoLat_ == null || value != 0D) { GeoLat = value; } break; } case 266: { double? value = _single_geoLon_codec.Read(input); if (geoLon_ == null || value != 0D) { GeoLon = value; } break; } case 274: { int? value = _single_okato_codec.Read(input); if (okato_ == null || value != 0) { Okato = value; } break; } case 282: { int? value = _single_oktmo_codec.Read(input); if (oktmo_ == null || value != 0) { Oktmo = value; } break; } case 290: { int? value = _single_postalCode_codec.Read(input); if (postalCode_ == null || value != 0) { PostalCode = value; } break; } case 298: { string value = _single_region_codec.Read(input); if (region_ == null || value != "") { Region = value; } break; } case 306: { string value = _single_regionKladr_codec.Read(input); if (regionKladr_ == null || value != "") { RegionKladr = value; } break; } case 314: { string value = _single_streetKladr_codec.Read(input); if (streetKladr_ == null || value != "") { StreetKladr = value; } break; } case 322: { long? value = _single_streetOrpon_codec.Read(input); if (streetOrpon_ == null || value != 0L) { StreetOrpon = value; } break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } case 16: { RfId = input.ReadInt32(); break; } case 24: { MrfId = input.ReadInt32(); break; } case 32: { Orpon = input.ReadInt64(); break; } case 42: { City = input.ReadString(); break; } case 50: { Street = input.ReadString(); break; } case 58: { Number = input.ReadString(); break; } case 66: { Part = input.ReadString(); break; } case 72: { CompanyId = input.ReadInt32(); break; } case 82: { Prefix = input.ReadString(); break; } case 90: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 98: { if (deletedAt_ == null) { DeletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(DeletedAt); break; } case 104: { FlatgrammId = input.ReadInt32(); break; } case 112: { CityOrpon = input.ReadInt64(); break; } case 122: { string value = _single_fias_codec.Read(ref input); if (fias_ == null || value != "") { Fias = value; } break; } case 130: { string value = _single_district_codec.Read(ref input); if (district_ == null || value != "") { District = value; } break; } case 138: { long? value = _single_unom_codec.Read(ref input); if (unom_ == null || value != 0L) { Unom = value; } break; } case 144: { RegionOrpon = input.ReadInt64(); break; } case 152: { UtcOffset = input.ReadInt32(); break; } case 160: { IsKeyPurchasePossibleInSalePoints = input.ReadBool(); break; } case 168: { IsKeyPurchasePossibleInManagementCompany = input.ReadBool(); break; } case 176: { IsKeyPurchasePossibleInIntercomCompany = input.ReadBool(); break; } case 184: { IsRfidMifareSupported = input.ReadBool(); break; } case 194: { string value = _single_area_codec.Read(ref input); if (area_ == null || value != "") { Area = value; } break; } case 202: { long? value = _single_areaOrpon_codec.Read(ref input); if (areaOrpon_ == null || value != 0L) { AreaOrpon = value; } break; } case 210: { string value = _single_areaKladr_codec.Read(ref input); if (areaKladr_ == null || value != "") { AreaKladr = value; } break; } case 218: { int? value = _single_capitalMarker_codec.Read(ref input); if (capitalMarker_ == null || value != 0) { CapitalMarker = value; } break; } case 226: { string value = _single_cityKladr_codec.Read(ref input); if (cityKladr_ == null || value != "") { CityKladr = value; } break; } case 234: { string value = _single_kladr_codec.Read(ref input); if (kladr_ == null || value != "") { Kladr = value; } break; } case 242: { int? value = _single_fiasLevel_codec.Read(ref input); if (fiasLevel_ == null || value != 0) { FiasLevel = value; } break; } case 250: { int? value = _single_fiasActualityState_codec.Read(ref input); if (fiasActualityState_ == null || value != 0) { FiasActualityState = value; } break; } case 258: { double? value = _single_geoLat_codec.Read(ref input); if (geoLat_ == null || value != 0D) { GeoLat = value; } break; } case 266: { double? value = _single_geoLon_codec.Read(ref input); if (geoLon_ == null || value != 0D) { GeoLon = value; } break; } case 274: { int? value = _single_okato_codec.Read(ref input); if (okato_ == null || value != 0) { Okato = value; } break; } case 282: { int? value = _single_oktmo_codec.Read(ref input); if (oktmo_ == null || value != 0) { Oktmo = value; } break; } case 290: { int? value = _single_postalCode_codec.Read(ref input); if (postalCode_ == null || value != 0) { PostalCode = value; } break; } case 298: { string value = _single_region_codec.Read(ref input); if (region_ == null || value != "") { Region = value; } break; } case 306: { string value = _single_regionKladr_codec.Read(ref input); if (regionKladr_ == null || value != "") { RegionKladr = value; } break; } case 314: { string value = _single_streetKladr_codec.Read(ref input); if (streetKladr_ == null || value != "") { StreetKladr = value; } break; } case 322: { long? value = _single_streetOrpon_codec.Read(ref input); if (streetOrpon_ == null || value != 0L) { StreetOrpon = value; } break; } } } } #endif } /// /// Запрос получения дома /// public sealed partial class GetBuildingRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBuildingRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.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 GetBuildingRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingRequest(GetBuildingRequest other) : this() { id_ = other.id_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingRequest Clone() { return new GetBuildingRequest(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор дома /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBuildingRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBuildingRequest 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(GetBuildingRequest 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 GetBuildingResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBuildingResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.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 GetBuildingResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingResponse(GetBuildingResponse 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 GetBuildingResponse Clone() { return new GetBuildingResponse(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.Building Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.AccessControl.V1.Building) 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.GetBuildingResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.AccessControl.V1.GetBuildingResponse.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 GetBuildingResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBuildingResponse 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(GetBuildingResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.AccessControl.V1.Building(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.AccessControl.V1.GetBuildingResponse.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.Building subBuilder = new global::Keyapis.AccessControl.V1.Building(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.GetBuildingResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetBuildingResponse.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.Building subBuilder = new global::Keyapis.AccessControl.V1.Building(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.GetBuildingResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetBuildingResponse.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 GetBuildingResponse 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.GetBuildingResponse.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 GetBuildingListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBuildingListRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.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 GetBuildingListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingListRequest(GetBuildingListRequest 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 GetBuildingListRequest Clone() { return new GetBuildingListRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.AccessControl.V1.BuildingFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.BuildingFilter 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.BuildingPaging Paging { get { return paginationCase_ == PaginationOneofCase.Paging ? (global::Keyapis.AccessControl.V1.BuildingPaging) 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 GetBuildingListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBuildingListRequest 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(GetBuildingListRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.AccessControl.V1.BuildingFilter(); } Filter.MergeFrom(other.Filter); } switch (other.PaginationCase) { case PaginationOneofCase.Paging: if (Paging == null) { Paging = new global::Keyapis.AccessControl.V1.BuildingPaging(); } 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.BuildingFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.AccessControl.V1.BuildingPaging subBuilder = new global::Keyapis.AccessControl.V1.BuildingPaging(); 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.BuildingFilter(); } input.ReadMessage(Filter); break; } case 18: { global::Keyapis.AccessControl.V1.BuildingPaging subBuilder = new global::Keyapis.AccessControl.V1.BuildingPaging(); if (paginationCase_ == PaginationOneofCase.Paging) { subBuilder.MergeFrom(Paging); } input.ReadMessage(subBuilder); Paging = subBuilder; break; } } } } #endif } /// /// Ответ на запрос получения списка домов /// public sealed partial class GetBuildingListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBuildingListResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.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 GetBuildingListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingListResponse(GetBuildingListResponse 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 GetBuildingListResponse Clone() { return new GetBuildingListResponse(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.Building Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.AccessControl.V1.Building) 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.GetBuildingListResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.AccessControl.V1.GetBuildingListResponse.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 GetBuildingListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBuildingListResponse 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(GetBuildingListResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.AccessControl.V1.Building(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.AccessControl.V1.GetBuildingListResponse.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.Building subBuilder = new global::Keyapis.AccessControl.V1.Building(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.GetBuildingListResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetBuildingListResponse.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.Building subBuilder = new global::Keyapis.AccessControl.V1.Building(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.GetBuildingListResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetBuildingListResponse.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 GetBuildingListResponse 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.GetBuildingListResponse.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 GetBuildingCountRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBuildingCountRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.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 GetBuildingCountRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingCountRequest(GetBuildingCountRequest 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 GetBuildingCountRequest Clone() { return new GetBuildingCountRequest(this); } /// Field number for the "filter" field. public const int FilterFieldNumber = 1; private global::Keyapis.AccessControl.V1.BuildingFilter filter_; /// /// Фильтр /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.BuildingFilter 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 GetBuildingCountRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBuildingCountRequest 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(GetBuildingCountRequest other) { if (other == null) { return; } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::Keyapis.AccessControl.V1.BuildingFilter(); } 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.BuildingFilter(); } 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.BuildingFilter(); } input.ReadMessage(Filter); break; } } } } #endif } /// /// Ответ на запрос получения количества домов /// public sealed partial class GetBuildingCountResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBuildingCountResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.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 GetBuildingCountResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingCountResponse(GetBuildingCountResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingCountResponse Clone() { return new GetBuildingCountResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Количество /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Data { get { return HasData ? (int) type_ : 0; } set { type_ = value; typeCase_ = TypeOneofCase.Data; } } /// Gets whether the "data" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasData { get { return typeCase_ == TypeOneofCase.Data; } } /// Clears the value of the oneof if it's currently set to "data" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearData() { if (HasData) { ClearType(); } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBuildingCountResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBuildingCountResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Data != other.Data) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HasData) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (HasData) { output.WriteRawTag(8); output.WriteInt32(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HasData) { output.WriteRawTag(8); output.WriteInt32(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HasData) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBuildingCountResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data; break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Data = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Data = input.ReadInt32(); break; } } } } #endif } /// /// Фильтр по домам /// public sealed partial class BuildingFilter : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuildingFilter()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.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 BuildingFilter() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BuildingFilter(BuildingFilter other) : this() { mrfIds_ = other.mrfIds_.Clone(); rfIds_ = other.rfIds_.Clone(); deviceIds_ = other.deviceIds_.Clone(); flatgrammIds_ = other.flatgrammIds_.Clone(); orpons_ = other.orpons_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BuildingFilter Clone() { return new BuildingFilter(this); } /// Field number for the "mrf_ids" field. public const int MrfIdsFieldNumber = 1; private static readonly pb::FieldCodec _repeated_mrfIds_codec = pb::FieldCodec.ForInt32(10); private readonly pbc::RepeatedField mrfIds_ = new pbc::RepeatedField(); /// /// По идентификаторам МРФ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField MrfIds { get { return mrfIds_; } } /// Field number for the "rf_ids" field. public const int RfIdsFieldNumber = 2; private static readonly pb::FieldCodec _repeated_rfIds_codec = pb::FieldCodec.ForInt32(18); private readonly pbc::RepeatedField rfIds_ = new pbc::RepeatedField(); /// /// По идентификаторам РФ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField RfIds { get { return rfIds_; } } /// Field number for the "device_ids" field. public const int DeviceIdsFieldNumber = 3; private static readonly pb::FieldCodec _repeated_deviceIds_codec = pb::FieldCodec.ForInt32(26); private readonly pbc::RepeatedField deviceIds_ = new pbc::RepeatedField(); /// /// По идентификаторам устройств /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField DeviceIds { get { return deviceIds_; } } /// Field number for the "flatgramm_ids" field. public const int FlatgrammIdsFieldNumber = 4; private static readonly pb::FieldCodec _repeated_flatgrammIds_codec = pb::FieldCodec.ForInt32(34); private readonly pbc::RepeatedField flatgrammIds_ = new pbc::RepeatedField(); /// /// По идентификаторам квартирограмм /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField FlatgrammIds { get { return flatgrammIds_; } } /// Field number for the "orpons" field. public const int OrponsFieldNumber = 5; private static readonly pb::FieldCodec _repeated_orpons_codec = pb::FieldCodec.ForInt64(42); 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_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as BuildingFilter); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BuildingFilter other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!mrfIds_.Equals(other.mrfIds_)) return false; if(!rfIds_.Equals(other.rfIds_)) return false; if(!deviceIds_.Equals(other.deviceIds_)) return false; if(!flatgrammIds_.Equals(other.flatgrammIds_)) return false; if(!orpons_.Equals(other.orpons_)) return 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 ^= mrfIds_.GetHashCode(); hash ^= rfIds_.GetHashCode(); hash ^= deviceIds_.GetHashCode(); hash ^= flatgrammIds_.GetHashCode(); hash ^= orpons_.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 mrfIds_.WriteTo(output, _repeated_mrfIds_codec); rfIds_.WriteTo(output, _repeated_rfIds_codec); deviceIds_.WriteTo(output, _repeated_deviceIds_codec); flatgrammIds_.WriteTo(output, _repeated_flatgrammIds_codec); orpons_.WriteTo(output, _repeated_orpons_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) { mrfIds_.WriteTo(ref output, _repeated_mrfIds_codec); rfIds_.WriteTo(ref output, _repeated_rfIds_codec); deviceIds_.WriteTo(ref output, _repeated_deviceIds_codec); flatgrammIds_.WriteTo(ref output, _repeated_flatgrammIds_codec); orpons_.WriteTo(ref output, _repeated_orpons_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 += mrfIds_.CalculateSize(_repeated_mrfIds_codec); size += rfIds_.CalculateSize(_repeated_rfIds_codec); size += deviceIds_.CalculateSize(_repeated_deviceIds_codec); size += flatgrammIds_.CalculateSize(_repeated_flatgrammIds_codec); size += orpons_.CalculateSize(_repeated_orpons_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(BuildingFilter other) { if (other == null) { return; } mrfIds_.Add(other.mrfIds_); rfIds_.Add(other.rfIds_); deviceIds_.Add(other.deviceIds_); flatgrammIds_.Add(other.flatgrammIds_); orpons_.Add(other.orpons_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { mrfIds_.AddEntriesFrom(input, _repeated_mrfIds_codec); break; } case 18: case 16: { rfIds_.AddEntriesFrom(input, _repeated_rfIds_codec); break; } case 26: case 24: { deviceIds_.AddEntriesFrom(input, _repeated_deviceIds_codec); break; } case 34: case 32: { flatgrammIds_.AddEntriesFrom(input, _repeated_flatgrammIds_codec); break; } case 42: case 40: { orpons_.AddEntriesFrom(input, _repeated_orpons_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: { mrfIds_.AddEntriesFrom(ref input, _repeated_mrfIds_codec); break; } case 18: case 16: { rfIds_.AddEntriesFrom(ref input, _repeated_rfIds_codec); break; } case 26: case 24: { deviceIds_.AddEntriesFrom(ref input, _repeated_deviceIds_codec); break; } case 34: case 32: { flatgrammIds_.AddEntriesFrom(ref input, _repeated_flatgrammIds_codec); break; } case 42: case 40: { orpons_.AddEntriesFrom(ref input, _repeated_orpons_codec); break; } } } } #endif } /// /// Постраничный вывод /// public sealed partial class BuildingPaging : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuildingPaging()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.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 BuildingPaging() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BuildingPaging(BuildingPaging 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 BuildingPaging Clone() { return new BuildingPaging(this); } /// Field number for the "order_by_type" field. public const int OrderByTypeFieldNumber = 1; private global::Keyapis.AccessControl.V1.BuildingPaging.Types.OrderByType orderByType_ = global::Keyapis.AccessControl.V1.BuildingPaging.Types.OrderByType.Unknown; /// /// Тип значения сортировки. /// Если значение не передано, то будет взято значение по умолчанию. /// # По умолчанию: CREATED_AT /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.BuildingPaging.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.BuildingPaging.Types.DirectionType directionType_ = global::Keyapis.AccessControl.V1.BuildingPaging.Types.DirectionType.Unknown; /// /// Тип направления сортировки. /// # По умолчанию: DESC /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.BuildingPaging.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 BuildingPaging); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BuildingPaging 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.BuildingPaging.Types.OrderByType.Unknown) hash ^= OrderByType.GetHashCode(); if (DirectionType != global::Keyapis.AccessControl.V1.BuildingPaging.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.BuildingPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.AccessControl.V1.BuildingPaging.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.BuildingPaging.Types.OrderByType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) OrderByType); } if (DirectionType != global::Keyapis.AccessControl.V1.BuildingPaging.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.BuildingPaging.Types.OrderByType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OrderByType); } if (DirectionType != global::Keyapis.AccessControl.V1.BuildingPaging.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(BuildingPaging other) { if (other == null) { return; } if (other.OrderByType != global::Keyapis.AccessControl.V1.BuildingPaging.Types.OrderByType.Unknown) { OrderByType = other.OrderByType; } if (other.DirectionType != global::Keyapis.AccessControl.V1.BuildingPaging.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.BuildingPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.AccessControl.V1.BuildingPaging.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.BuildingPaging.Types.OrderByType) input.ReadEnum(); break; } case 16: { DirectionType = (global::Keyapis.AccessControl.V1.BuildingPaging.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 BuildingPaging message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник типов значений сортировки. /// # Тип: byte /// public enum OrderByType { /// /// Значение не указано /// [pbr::OriginalName("ORDER_BY_TYPE_UNKNOWN")] Unknown = 0, /// /// По идентификатору /// [pbr::OriginalName("ID")] Id = 1, /// /// По времени создания /// [pbr::OriginalName("CREATED_AT")] CreatedAt = 2, /// /// По улице, номеру дома, корпусу /// [pbr::OriginalName("STREET_THEN_NUMBER_THEN_PART")] StreetThenNumberThenPart = 3, } /// /// Справочник типов направлений сортировки. /// # Тип: byte /// public enum DirectionType { /// /// Значение не указано /// [pbr::OriginalName("DIRECTION_TYPE_UNKNOWN")] Unknown = 0, /// /// От большего к меньшему /// [pbr::OriginalName("DESC")] Desc = 1, /// /// От меньшего к большему /// [pbr::OriginalName("ASC")] Asc = 2, } } #endregion } /// /// Агрегированный статус режима работы с подписками на доме /// public sealed partial class BuildingSubscriptionMode : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuildingSubscriptionMode()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.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 BuildingSubscriptionMode() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BuildingSubscriptionMode(BuildingSubscriptionMode other) : this() { subscriptionModeType_ = other.subscriptionModeType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BuildingSubscriptionMode Clone() { return new BuildingSubscriptionMode(this); } /// Field number for the "subscription_mode_type" field. public const int SubscriptionModeTypeFieldNumber = 1; private global::Keyapis.AccessControl.V1.BuildingSubscriptionMode.Types.SubscriptionModeType subscriptionModeType_ = global::Keyapis.AccessControl.V1.BuildingSubscriptionMode.Types.SubscriptionModeType.Unknown; /// /// Режим работы с подписками на доме /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.BuildingSubscriptionMode.Types.SubscriptionModeType SubscriptionModeType { get { return subscriptionModeType_; } set { subscriptionModeType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as BuildingSubscriptionMode); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BuildingSubscriptionMode other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (SubscriptionModeType != other.SubscriptionModeType) return 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 (SubscriptionModeType != global::Keyapis.AccessControl.V1.BuildingSubscriptionMode.Types.SubscriptionModeType.Unknown) hash ^= SubscriptionModeType.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 (SubscriptionModeType != global::Keyapis.AccessControl.V1.BuildingSubscriptionMode.Types.SubscriptionModeType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) SubscriptionModeType); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (SubscriptionModeType != global::Keyapis.AccessControl.V1.BuildingSubscriptionMode.Types.SubscriptionModeType.Unknown) { output.WriteRawTag(8); output.WriteEnum((int) SubscriptionModeType); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (SubscriptionModeType != global::Keyapis.AccessControl.V1.BuildingSubscriptionMode.Types.SubscriptionModeType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SubscriptionModeType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(BuildingSubscriptionMode other) { if (other == null) { return; } if (other.SubscriptionModeType != global::Keyapis.AccessControl.V1.BuildingSubscriptionMode.Types.SubscriptionModeType.Unknown) { SubscriptionModeType = other.SubscriptionModeType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { SubscriptionModeType = (global::Keyapis.AccessControl.V1.BuildingSubscriptionMode.Types.SubscriptionModeType) input.ReadEnum(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { SubscriptionModeType = (global::Keyapis.AccessControl.V1.BuildingSubscriptionMode.Types.SubscriptionModeType) input.ReadEnum(); break; } } } } #endif #region Nested types /// Container for nested types declared in the BuildingSubscriptionMode message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник режимов работы с подписками /// public enum SubscriptionModeType { /// /// Значение не указано /// [pbr::OriginalName("SUBSCRIPTION_MODE_TYPE_UNKNOWN")] Unknown = 0, /// /// Режим работы с подписками включен на всех помещениях дома /// [pbr::OriginalName("ENABLED")] Enabled = 1, /// /// Режим работы с подписками включен на некоторых помещениях дома /// [pbr::OriginalName("PARTIALLY_ENABLED")] PartiallyEnabled = 2, /// /// Режим работы с подписками выключен на всех помещениях дома /// [pbr::OriginalName("DISABLED")] Disabled = 3, } } #endregion } /// /// Запрос получения агрегированного статуса режима работы с подписками дома /// public sealed partial class GetBuildingOrponSubscriptionModeRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBuildingOrponSubscriptionModeRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.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 GetBuildingOrponSubscriptionModeRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingOrponSubscriptionModeRequest(GetBuildingOrponSubscriptionModeRequest other) : this() { orpon_ = other.orpon_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingOrponSubscriptionModeRequest Clone() { return new GetBuildingOrponSubscriptionModeRequest(this); } /// Field number for the "orpon" field. public const int OrponFieldNumber = 1; 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; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBuildingOrponSubscriptionModeRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBuildingOrponSubscriptionModeRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Orpon != other.Orpon) return 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 (Orpon != 0L) hash ^= Orpon.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 (Orpon != 0L) { output.WriteRawTag(8); output.WriteInt64(Orpon); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Orpon != 0L) { output.WriteRawTag(8); output.WriteInt64(Orpon); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Orpon != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Orpon); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBuildingOrponSubscriptionModeRequest other) { if (other == null) { return; } if (other.Orpon != 0L) { Orpon = other.Orpon; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { Orpon = input.ReadInt64(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Orpon = input.ReadInt64(); break; } } } } #endif } /// /// Ответ на запрос получения агрегированного статуса режима работы с подписками дома /// public sealed partial class GetBuildingOrponSubscriptionModeResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBuildingOrponSubscriptionModeResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.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 GetBuildingOrponSubscriptionModeResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingOrponSubscriptionModeResponse(GetBuildingOrponSubscriptionModeResponse 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 GetBuildingOrponSubscriptionModeResponse Clone() { return new GetBuildingOrponSubscriptionModeResponse(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.BuildingSubscriptionMode Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.AccessControl.V1.BuildingSubscriptionMode) 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.GetBuildingOrponSubscriptionModeResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.AccessControl.V1.GetBuildingOrponSubscriptionModeResponse.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 GetBuildingOrponSubscriptionModeResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBuildingOrponSubscriptionModeResponse 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(GetBuildingOrponSubscriptionModeResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.AccessControl.V1.BuildingSubscriptionMode(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.AccessControl.V1.GetBuildingOrponSubscriptionModeResponse.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.BuildingSubscriptionMode subBuilder = new global::Keyapis.AccessControl.V1.BuildingSubscriptionMode(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.GetBuildingOrponSubscriptionModeResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetBuildingOrponSubscriptionModeResponse.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.BuildingSubscriptionMode subBuilder = new global::Keyapis.AccessControl.V1.BuildingSubscriptionMode(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.GetBuildingOrponSubscriptionModeResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetBuildingOrponSubscriptionModeResponse.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 GetBuildingOrponSubscriptionModeResponse 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.GetBuildingOrponSubscriptionModeResponse.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 GetBuildingOrponExistsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBuildingOrponExistsRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.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 GetBuildingOrponExistsRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingOrponExistsRequest(GetBuildingOrponExistsRequest other) : this() { orpon_ = other.orpon_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingOrponExistsRequest Clone() { return new GetBuildingOrponExistsRequest(this); } /// Field number for the "orpon" field. public const int OrponFieldNumber = 1; 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; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetBuildingOrponExistsRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBuildingOrponExistsRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Orpon != other.Orpon) return 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 (Orpon != 0L) hash ^= Orpon.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 (Orpon != 0L) { output.WriteRawTag(8); output.WriteInt64(Orpon); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Orpon != 0L) { output.WriteRawTag(8); output.WriteInt64(Orpon); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Orpon != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Orpon); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetBuildingOrponExistsRequest other) { if (other == null) { return; } if (other.Orpon != 0L) { Orpon = other.Orpon; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_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: { Orpon = input.ReadInt64(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Orpon = input.ReadInt64(); break; } } } } #endif } /// /// Ответ на запрос проверки существования дома по ОРПОН /// public sealed partial class GetBuildingOrponExistsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetBuildingOrponExistsResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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.KeyapisAccessControlBuildingV1Reflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingOrponExistsResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetBuildingOrponExistsResponse(GetBuildingOrponExistsResponse 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 GetBuildingOrponExistsResponse Clone() { return new GetBuildingOrponExistsResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Результат проверки: true - если дом существует, false - в противном случае /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Data { get { return HasData ? (bool) type_ : false; } 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.GetBuildingOrponExistsResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.AccessControl.V1.GetBuildingOrponExistsResponse.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 GetBuildingOrponExistsResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetBuildingOrponExistsResponse 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.WriteBool(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.WriteBool(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 + 1; } 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(GetBuildingOrponExistsResponse 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.GetBuildingOrponExistsResponse.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.ReadBool(); break; } case 18: { global::Keyapis.AccessControl.V1.GetBuildingOrponExistsResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetBuildingOrponExistsResponse.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.ReadBool(); break; } case 18: { global::Keyapis.AccessControl.V1.GetBuildingOrponExistsResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetBuildingOrponExistsResponse.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 GetBuildingOrponExistsResponse 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.GetBuildingOrponExistsResponse.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 } #endregion } #endregion Designer generated code