// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/access_control/v1/keyapis_access_control_sync_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_sync_v1.proto public static partial class KeyapisAccessControlSyncV1Reflection { #region Descriptor /// File descriptor for keyapis/access_control/v1/keyapis_access_control_sync_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisAccessControlSyncV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Cj5rZXlhcGlzL2FjY2Vzc19jb250cm9sL3YxL2tleWFwaXNfYWNjZXNzX2Nv", "bnRyb2xfc3luY192MS5wcm90bxIZa2V5YXBpcy5hY2Nlc3NfY29udHJvbC52", "MRocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL2FwaS9m", "aWVsZF9iZWhhdmlvci5wcm90bxofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFt", "cC5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL3dyYXBwZXJzLnByb3RvGkhrZXlh", "cGlzL2FjY2Vzc19jb250cm9sL3YxL2tleWFwaXNfYWNjZXNzX2NvbnRyb2xf", "YWNjZXNzX2NvbnRyb2xfdjEucHJvdG8i+QcKDEJ1aWxkaW5nU3luYxIPCgJp", "ZBgBIAEoBUID4EECEg0KBW9ycG9uGAIgASgDEgwKBGNpdHkYAyABKAkSDgoG", "c3RyZWV0GAQgASgJEg4KBm51bWJlchgFIAEoCRISCgpjaXR5X29ycG9uGAYg", "ASgDEhQKDHJlZ2lvbl9vcnBvbhgHIAEoAxIqCgRhcmVhGAggASgLMhwuZ29v", "Z2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEi8KCmFyZWFfb3Jwb24YCSABKAsy", "Gy5nb29nbGUucHJvdG9idWYuSW50NjRWYWx1ZRIwCgphcmVhX2tsYWRyGAog", "ASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEjMKDmNhcGl0YWxf", "bWFya2VyGAsgASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSMAoK", "Y2l0eV9rbGFkchgMIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1", "ZRIrCgVrbGFkchgNIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1", "ZRIvCgpmaWFzX2xldmVsGA4gASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMy", "VmFsdWUSOQoUZmlhc19hY3R1YWxpdHlfc3RhdGUYDyABKAsyGy5nb29nbGUu", "cHJvdG9idWYuSW50MzJWYWx1ZRItCgdnZW9fbGF0GBAgASgLMhwuZ29vZ2xl", "LnByb3RvYnVmLkRvdWJsZVZhbHVlEi0KB2dlb19sb24YESABKAsyHC5nb29n", "bGUucHJvdG9idWYuRG91YmxlVmFsdWUSKgoFb2thdG8YEiABKAsyGy5nb29n", "bGUucHJvdG9idWYuSW50NjRWYWx1ZRIqCgVva3RtbxgTIAEoCzIbLmdvb2ds", "ZS5wcm90b2J1Zi5JbnQ2NFZhbHVlEjAKC3Bvc3RhbF9jb2RlGBQgASgLMhsu", "Z29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSLAoGcmVnaW9uGBUgASgLMhwu", "Z29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEjIKDHJlZ2lvbl9rbGFkchgW", "IAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdWYWx1ZRIyCgxzdHJlZXRf", "a2xhZHIYFyABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSMQoM", "c3RyZWV0X29ycG9uGBggASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDY0VmFs", "dWUSMQoLaG91c2Vfa2xhZHIYGSABKAsyHC5nb29nbGUucHJvdG9idWYuU3Ry", "aW5nVmFsdWUiewoXUG9zdFN5bmNCdWlsZGluZ1JlcXVlc3QSGgoLYnVpbGRp", "bmdfaWQYASABKAVCA+BBAkgAEjwKBGRhdGEYAiABKAsyJy5rZXlhcGlzLmFj", "Y2Vzc19jb250cm9sLnYxLkJ1aWxkaW5nU3luY0ID4EECSABCBgoEdHlwZSLD", "AQoYUG9zdFN5bmNCdWlsZGluZ1Jlc3BvbnNlEkoKBWVycm9yGAEgASgLMjku", "a2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MS5Qb3N0U3luY0J1aWxkaW5nUmVz", "cG9uc2UuRXJyb3JIABpTCgVFcnJvchJACgp2YWxpZGF0aW9uGAEgASgLMiou", "a2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MS5WYWxpZGF0aW9uRXJyb3JIAEII", "CgZyZWFzb25CBgoEdHlwZSJwChdHZXRTeW5jQnVpbGRpbmdzUmVxdWVzdBIX", "CgpiYXRjaF9zaXplGAEgASgFQgPgQQISPAoTbGFzdF9zeW5jX2JlZm9yZV9h", "dBgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAiLhAgoY", "R2V0U3luY0J1aWxkaW5nc1Jlc3BvbnNlElAKBGRhdGEYASABKAsyQC5rZXlh", "cGlzLmFjY2Vzc19jb250cm9sLnYxLkdldFN5bmNCdWlsZGluZ3NSZXNwb25z", "ZS5CdWlsZGluZ0xpc3RIABJKCgVlcnJvchgCIAEoCzI5LmtleWFwaXMuYWNj", "ZXNzX2NvbnRyb2wudjEuR2V0U3luY0J1aWxkaW5nc1Jlc3BvbnNlLkVycm9y", "SAAaSgoMQnVpbGRpbmdMaXN0EjoKCWJ1aWxkaW5ncxgBIAMoCzInLmtleWFw", "aXMuYWNjZXNzX2NvbnRyb2wudjEuQnVpbGRpbmdTeW5jGlMKBUVycm9yEkAK", "CnZhbGlkYXRpb24YASABKAsyKi5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYx", "LlZhbGlkYXRpb25FcnJvckgAQggKBnJlYXNvbkIGCgR0eXBlMukCCgtTeW5j", "U2VydmljZRKsAQoQUG9zdFN5bmNCdWlsZGluZxIyLmtleWFwaXMuYWNjZXNz", "X2NvbnRyb2wudjEuUG9zdFN5bmNCdWlsZGluZ1JlcXVlc3QaMy5rZXlhcGlz", "LmFjY2Vzc19jb250cm9sLnYxLlBvc3RTeW5jQnVpbGRpbmdSZXNwb25zZSIv", "gtPkkwIpIiQvYWNjZXNzX2NvbnRyb2wvYXBpL3YxL3N5bmMvYnVpbGRpbmc6", "ASoSqgEKEEdldFN5bmNCdWlsZGluZ3MSMi5rZXlhcGlzLmFjY2Vzc19jb250", "cm9sLnYxLkdldFN5bmNCdWlsZGluZ3NSZXF1ZXN0GjMua2V5YXBpcy5hY2Nl", "c3NfY29udHJvbC52MS5HZXRTeW5jQnVpbGRpbmdzUmVzcG9uc2UiLYLT5JMC", "JxIlL2FjY2Vzc19jb250cm9sL2FwaS92MS9zeW5jL2J1aWxkaW5nc0LNAQoc", "cnUua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MUIbS2V5YXBpc0FjY2Vzc0Nv", "bnRyb2xWMVByb3RvSANQAFoaL2tleWFwaXNfYWNjZXNzX2NvbnRyb2xfdjHY", "AQH4AQGiAhZLRVlBUElTQUNDRVNTQ09OVFJPTFYxqgIYS2V5YXBpcy5BY2Nl", "c3NDb250cm9sLlYxygIYS2V5YXBpc1xBY2Nlc3NDb250cm9sXFYx6gIaS2V5", "YXBpczo6QWNjZXNzQ29udHJvbDo6VjFiBnByb3RvMw==")); 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.BuildingSync), global::Keyapis.AccessControl.V1.BuildingSync.Parser, new[]{ "Id", "Orpon", "City", "Street", "Number", "CityOrpon", "RegionOrpon", "Area", "AreaOrpon", "AreaKladr", "CapitalMarker", "CityKladr", "Kladr", "FiasLevel", "FiasActualityState", "GeoLat", "GeoLon", "Okato", "Oktmo", "PostalCode", "Region", "RegionKladr", "StreetKladr", "StreetOrpon", "HouseKladr" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PostSyncBuildingRequest), global::Keyapis.AccessControl.V1.PostSyncBuildingRequest.Parser, new[]{ "BuildingId", "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PostSyncBuildingResponse), global::Keyapis.AccessControl.V1.PostSyncBuildingResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PostSyncBuildingResponse.Types.Error), global::Keyapis.AccessControl.V1.PostSyncBuildingResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetSyncBuildingsRequest), global::Keyapis.AccessControl.V1.GetSyncBuildingsRequest.Parser, new[]{ "BatchSize", "LastSyncBeforeAt" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse), global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.Types.BuildingList), global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.Types.BuildingList.Parser, new[]{ "Buildings" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.Types.Error), global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}) })); } #endregion } #region Messages /// /// Дом для синхронизации /// public sealed partial class BuildingSync : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuildingSync()); 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.KeyapisAccessControlSyncV1Reflection.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 BuildingSync() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BuildingSync(BuildingSync other) : this() { id_ = other.id_; orpon_ = other.orpon_; city_ = other.city_; street_ = other.street_; number_ = other.number_; cityOrpon_ = other.cityOrpon_; regionOrpon_ = other.regionOrpon_; 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; HouseKladr = other.HouseKladr; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BuildingSync Clone() { return new BuildingSync(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 "orpon" field. public const int OrponFieldNumber = 2; private long orpon_; /// /// ОРПОН /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Orpon { get { return orpon_; } set { orpon_ = value; } } /// Field number for the "city" field. public const int CityFieldNumber = 3; 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 = 4; 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 = 5; 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 "city_orpon" field. public const int CityOrponFieldNumber = 6; 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 "region_orpon" field. public const int RegionOrponFieldNumber = 7; 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 "area" field. public const int AreaFieldNumber = 8; private static readonly pb::FieldCodec _single_area_codec = pb::FieldCodec.ForClassWrapper(66); 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 = 9; private static readonly pb::FieldCodec _single_areaOrpon_codec = pb::FieldCodec.ForStructWrapper(74); 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 = 10; private static readonly pb::FieldCodec _single_areaKladr_codec = pb::FieldCodec.ForClassWrapper(82); 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 = 11; private static readonly pb::FieldCodec _single_capitalMarker_codec = pb::FieldCodec.ForStructWrapper(90); 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 = 12; private static readonly pb::FieldCodec _single_cityKladr_codec = pb::FieldCodec.ForClassWrapper(98); 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 = 13; private static readonly pb::FieldCodec _single_kladr_codec = pb::FieldCodec.ForClassWrapper(106); 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 = 14; private static readonly pb::FieldCodec _single_fiasLevel_codec = pb::FieldCodec.ForStructWrapper(114); 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 = 15; private static readonly pb::FieldCodec _single_fiasActualityState_codec = pb::FieldCodec.ForStructWrapper(122); 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 = 16; private static readonly pb::FieldCodec _single_geoLat_codec = pb::FieldCodec.ForStructWrapper(130); 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 = 17; private static readonly pb::FieldCodec _single_geoLon_codec = pb::FieldCodec.ForStructWrapper(138); 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 = 18; private static readonly pb::FieldCodec _single_okato_codec = pb::FieldCodec.ForStructWrapper(146); private long? okato_; /// /// Код ОКАТО /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long? Okato { get { return okato_; } set { okato_ = value; } } /// Field number for the "oktmo" field. public const int OktmoFieldNumber = 19; private static readonly pb::FieldCodec _single_oktmo_codec = pb::FieldCodec.ForStructWrapper(154); private long? oktmo_; /// /// Код ОКТМО /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long? Oktmo { get { return oktmo_; } set { oktmo_ = value; } } /// Field number for the "postal_code" field. public const int PostalCodeFieldNumber = 20; private static readonly pb::FieldCodec _single_postalCode_codec = pb::FieldCodec.ForStructWrapper(162); 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 = 21; private static readonly pb::FieldCodec _single_region_codec = pb::FieldCodec.ForClassWrapper(170); 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 = 22; private static readonly pb::FieldCodec _single_regionKladr_codec = pb::FieldCodec.ForClassWrapper(178); 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 = 23; private static readonly pb::FieldCodec _single_streetKladr_codec = pb::FieldCodec.ForClassWrapper(186); 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 = 24; private static readonly pb::FieldCodec _single_streetOrpon_codec = pb::FieldCodec.ForStructWrapper(194); 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; } } /// Field number for the "house_kladr" field. public const int HouseKladrFieldNumber = 25; private static readonly pb::FieldCodec _single_houseKladr_codec = pb::FieldCodec.ForClassWrapper(202); private string houseKladr_; /// /// КЛАДР-код дома. /// # Диапазон: 0..32 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string HouseKladr { get { return houseKladr_; } set { houseKladr_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as BuildingSync); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BuildingSync other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) 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 (CityOrpon != other.CityOrpon) return false; if (RegionOrpon != other.RegionOrpon) 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; if (HouseKladr != other.HouseKladr) 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 (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 (CityOrpon != 0L) hash ^= CityOrpon.GetHashCode(); if (RegionOrpon != 0L) hash ^= RegionOrpon.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 (houseKladr_ != null) hash ^= HouseKladr.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 (Orpon != 0L) { output.WriteRawTag(16); output.WriteInt64(Orpon); } if (City.Length != 0) { output.WriteRawTag(26); output.WriteString(City); } if (Street.Length != 0) { output.WriteRawTag(34); output.WriteString(Street); } if (Number.Length != 0) { output.WriteRawTag(42); output.WriteString(Number); } if (CityOrpon != 0L) { output.WriteRawTag(48); output.WriteInt64(CityOrpon); } if (RegionOrpon != 0L) { output.WriteRawTag(56); output.WriteInt64(RegionOrpon); } 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 (houseKladr_ != null) { _single_houseKladr_codec.WriteTagAndValue(output, HouseKladr); } 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 (Orpon != 0L) { output.WriteRawTag(16); output.WriteInt64(Orpon); } if (City.Length != 0) { output.WriteRawTag(26); output.WriteString(City); } if (Street.Length != 0) { output.WriteRawTag(34); output.WriteString(Street); } if (Number.Length != 0) { output.WriteRawTag(42); output.WriteString(Number); } if (CityOrpon != 0L) { output.WriteRawTag(48); output.WriteInt64(CityOrpon); } if (RegionOrpon != 0L) { output.WriteRawTag(56); output.WriteInt64(RegionOrpon); } 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 (houseKladr_ != null) { _single_houseKladr_codec.WriteTagAndValue(ref output, HouseKladr); } 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 (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 (CityOrpon != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(CityOrpon); } if (RegionOrpon != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(RegionOrpon); } 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 (houseKladr_ != null) { size += _single_houseKladr_codec.CalculateSizeWithTag(HouseKladr); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(BuildingSync other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } 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.CityOrpon != 0L) { CityOrpon = other.CityOrpon; } if (other.RegionOrpon != 0L) { RegionOrpon = other.RegionOrpon; } 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 != 0L) { Okato = other.Okato; } } if (other.oktmo_ != null) { if (oktmo_ == null || other.Oktmo != 0L) { 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; } } if (other.houseKladr_ != null) { if (houseKladr_ == null || other.HouseKladr != "") { HouseKladr = other.HouseKladr; } } _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: { Orpon = input.ReadInt64(); break; } case 26: { City = input.ReadString(); break; } case 34: { Street = input.ReadString(); break; } case 42: { Number = input.ReadString(); break; } case 48: { CityOrpon = input.ReadInt64(); break; } case 56: { RegionOrpon = input.ReadInt64(); break; } case 66: { string value = _single_area_codec.Read(input); if (area_ == null || value != "") { Area = value; } break; } case 74: { long? value = _single_areaOrpon_codec.Read(input); if (areaOrpon_ == null || value != 0L) { AreaOrpon = value; } break; } case 82: { string value = _single_areaKladr_codec.Read(input); if (areaKladr_ == null || value != "") { AreaKladr = value; } break; } case 90: { int? value = _single_capitalMarker_codec.Read(input); if (capitalMarker_ == null || value != 0) { CapitalMarker = value; } break; } case 98: { string value = _single_cityKladr_codec.Read(input); if (cityKladr_ == null || value != "") { CityKladr = value; } break; } case 106: { string value = _single_kladr_codec.Read(input); if (kladr_ == null || value != "") { Kladr = value; } break; } case 114: { int? value = _single_fiasLevel_codec.Read(input); if (fiasLevel_ == null || value != 0) { FiasLevel = value; } break; } case 122: { int? value = _single_fiasActualityState_codec.Read(input); if (fiasActualityState_ == null || value != 0) { FiasActualityState = value; } break; } case 130: { double? value = _single_geoLat_codec.Read(input); if (geoLat_ == null || value != 0D) { GeoLat = value; } break; } case 138: { double? value = _single_geoLon_codec.Read(input); if (geoLon_ == null || value != 0D) { GeoLon = value; } break; } case 146: { long? value = _single_okato_codec.Read(input); if (okato_ == null || value != 0L) { Okato = value; } break; } case 154: { long? value = _single_oktmo_codec.Read(input); if (oktmo_ == null || value != 0L) { Oktmo = value; } break; } case 162: { int? value = _single_postalCode_codec.Read(input); if (postalCode_ == null || value != 0) { PostalCode = value; } break; } case 170: { string value = _single_region_codec.Read(input); if (region_ == null || value != "") { Region = value; } break; } case 178: { string value = _single_regionKladr_codec.Read(input); if (regionKladr_ == null || value != "") { RegionKladr = value; } break; } case 186: { string value = _single_streetKladr_codec.Read(input); if (streetKladr_ == null || value != "") { StreetKladr = value; } break; } case 194: { long? value = _single_streetOrpon_codec.Read(input); if (streetOrpon_ == null || value != 0L) { StreetOrpon = value; } break; } case 202: { string value = _single_houseKladr_codec.Read(input); if (houseKladr_ == null || value != "") { HouseKladr = 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: { Orpon = input.ReadInt64(); break; } case 26: { City = input.ReadString(); break; } case 34: { Street = input.ReadString(); break; } case 42: { Number = input.ReadString(); break; } case 48: { CityOrpon = input.ReadInt64(); break; } case 56: { RegionOrpon = input.ReadInt64(); break; } case 66: { string value = _single_area_codec.Read(ref input); if (area_ == null || value != "") { Area = value; } break; } case 74: { long? value = _single_areaOrpon_codec.Read(ref input); if (areaOrpon_ == null || value != 0L) { AreaOrpon = value; } break; } case 82: { string value = _single_areaKladr_codec.Read(ref input); if (areaKladr_ == null || value != "") { AreaKladr = value; } break; } case 90: { int? value = _single_capitalMarker_codec.Read(ref input); if (capitalMarker_ == null || value != 0) { CapitalMarker = value; } break; } case 98: { string value = _single_cityKladr_codec.Read(ref input); if (cityKladr_ == null || value != "") { CityKladr = value; } break; } case 106: { string value = _single_kladr_codec.Read(ref input); if (kladr_ == null || value != "") { Kladr = value; } break; } case 114: { int? value = _single_fiasLevel_codec.Read(ref input); if (fiasLevel_ == null || value != 0) { FiasLevel = value; } break; } case 122: { int? value = _single_fiasActualityState_codec.Read(ref input); if (fiasActualityState_ == null || value != 0) { FiasActualityState = value; } break; } case 130: { double? value = _single_geoLat_codec.Read(ref input); if (geoLat_ == null || value != 0D) { GeoLat = value; } break; } case 138: { double? value = _single_geoLon_codec.Read(ref input); if (geoLon_ == null || value != 0D) { GeoLon = value; } break; } case 146: { long? value = _single_okato_codec.Read(ref input); if (okato_ == null || value != 0L) { Okato = value; } break; } case 154: { long? value = _single_oktmo_codec.Read(ref input); if (oktmo_ == null || value != 0L) { Oktmo = value; } break; } case 162: { int? value = _single_postalCode_codec.Read(ref input); if (postalCode_ == null || value != 0) { PostalCode = value; } break; } case 170: { string value = _single_region_codec.Read(ref input); if (region_ == null || value != "") { Region = value; } break; } case 178: { string value = _single_regionKladr_codec.Read(ref input); if (regionKladr_ == null || value != "") { RegionKladr = value; } break; } case 186: { string value = _single_streetKladr_codec.Read(ref input); if (streetKladr_ == null || value != "") { StreetKladr = value; } break; } case 194: { long? value = _single_streetOrpon_codec.Read(ref input); if (streetOrpon_ == null || value != 0L) { StreetOrpon = value; } break; } case 202: { string value = _single_houseKladr_codec.Read(ref input); if (houseKladr_ == null || value != "") { HouseKladr = value; } break; } } } } #endif } /// /// Запрос частичного обновления дома /// public sealed partial class PostSyncBuildingRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostSyncBuildingRequest()); 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.KeyapisAccessControlSyncV1Reflection.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 PostSyncBuildingRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSyncBuildingRequest(PostSyncBuildingRequest other) : this() { switch (other.TypeCase) { case TypeOneofCase.BuildingId: BuildingId = other.BuildingId; break; case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSyncBuildingRequest Clone() { return new PostSyncBuildingRequest(this); } /// Field number for the "building_id" field. public const int BuildingIdFieldNumber = 1; /// /// Передается в случае когда изменения данных не требуются, но необходимо зафиксировать дату синхронизации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int BuildingId { get { return HasBuildingId ? (int) type_ : 0; } set { type_ = value; typeCase_ = TypeOneofCase.BuildingId; } } /// Gets whether the "building_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasBuildingId { get { return typeCase_ == TypeOneofCase.BuildingId; } } /// Clears the value of the oneof if it's currently set to "building_id" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearBuildingId() { if (HasBuildingId) { ClearType(); } } /// Field number for the "data" field. public const int DataFieldNumber = 2; /// /// Дом с обновленными данными из DaData /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.BuildingSync Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.AccessControl.V1.BuildingSync) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, BuildingId = 1, Data = 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 PostSyncBuildingRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostSyncBuildingRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (BuildingId != other.BuildingId) return false; if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (HasBuildingId) hash ^= BuildingId.GetHashCode(); if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (HasBuildingId) { output.WriteRawTag(8); output.WriteInt32(BuildingId); } if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(18); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (HasBuildingId) { output.WriteRawTag(8); output.WriteInt32(BuildingId); } if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(18); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (HasBuildingId) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuildingId); } if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostSyncBuildingRequest other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.BuildingId: BuildingId = other.BuildingId; break; case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.AccessControl.V1.BuildingSync(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { BuildingId = input.ReadInt32(); break; } case 18: { global::Keyapis.AccessControl.V1.BuildingSync subBuilder = new global::Keyapis.AccessControl.V1.BuildingSync(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { BuildingId = input.ReadInt32(); break; } case 18: { global::Keyapis.AccessControl.V1.BuildingSync subBuilder = new global::Keyapis.AccessControl.V1.BuildingSync(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Ответ на запрос частичного обновления дома /// public sealed partial class PostSyncBuildingResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostSyncBuildingResponse()); 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.KeyapisAccessControlSyncV1Reflection.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 PostSyncBuildingResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSyncBuildingResponse(PostSyncBuildingResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSyncBuildingResponse Clone() { return new PostSyncBuildingResponse(this); } /// Field number for the "error" field. public const int ErrorFieldNumber = 1; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.AccessControl.V1.PostSyncBuildingResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.AccessControl.V1.PostSyncBuildingResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Error = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostSyncBuildingResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostSyncBuildingResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostSyncBuildingResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.AccessControl.V1.PostSyncBuildingResponse.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.PostSyncBuildingResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.PostSyncBuildingResponse.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.PostSyncBuildingResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.PostSyncBuildingResponse.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 PostSyncBuildingResponse 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.PostSyncBuildingResponse.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 GetSyncBuildingsRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSyncBuildingsRequest()); 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.KeyapisAccessControlSyncV1Reflection.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 GetSyncBuildingsRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSyncBuildingsRequest(GetSyncBuildingsRequest other) : this() { batchSize_ = other.batchSize_; lastSyncBeforeAt_ = other.lastSyncBeforeAt_ != null ? other.lastSyncBeforeAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSyncBuildingsRequest Clone() { return new GetSyncBuildingsRequest(this); } /// Field number for the "batch_size" field. public const int BatchSizeFieldNumber = 1; private int batchSize_; /// /// Количество. /// По умолчанию 10. /// # Диапазон: 10..5000 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int BatchSize { get { return batchSize_; } set { batchSize_ = value; } } /// Field number for the "last_sync_before_at" field. public const int LastSyncBeforeAtFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.Timestamp lastSyncBeforeAt_; /// /// Дата, старше которой должны вернуться записи для синхронизации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp LastSyncBeforeAt { get { return lastSyncBeforeAt_; } set { lastSyncBeforeAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetSyncBuildingsRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSyncBuildingsRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (BatchSize != other.BatchSize) return false; if (!object.Equals(LastSyncBeforeAt, other.LastSyncBeforeAt)) 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 (BatchSize != 0) hash ^= BatchSize.GetHashCode(); if (lastSyncBeforeAt_ != null) hash ^= LastSyncBeforeAt.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 (BatchSize != 0) { output.WriteRawTag(8); output.WriteInt32(BatchSize); } if (lastSyncBeforeAt_ != null) { output.WriteRawTag(18); output.WriteMessage(LastSyncBeforeAt); } 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 (BatchSize != 0) { output.WriteRawTag(8); output.WriteInt32(BatchSize); } if (lastSyncBeforeAt_ != null) { output.WriteRawTag(18); output.WriteMessage(LastSyncBeforeAt); } 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 (BatchSize != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(BatchSize); } if (lastSyncBeforeAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastSyncBeforeAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetSyncBuildingsRequest other) { if (other == null) { return; } if (other.BatchSize != 0) { BatchSize = other.BatchSize; } if (other.lastSyncBeforeAt_ != null) { if (lastSyncBeforeAt_ == null) { LastSyncBeforeAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } LastSyncBeforeAt.MergeFrom(other.LastSyncBeforeAt); } _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: { BatchSize = input.ReadInt32(); break; } case 18: { if (lastSyncBeforeAt_ == null) { LastSyncBeforeAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(LastSyncBeforeAt); 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: { BatchSize = input.ReadInt32(); break; } case 18: { if (lastSyncBeforeAt_ == null) { LastSyncBeforeAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(LastSyncBeforeAt); break; } } } } #endif } /// /// Ответ на запрос получения списка домов для обновления /// public sealed partial class GetSyncBuildingsResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSyncBuildingsResponse()); 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.KeyapisAccessControlSyncV1Reflection.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 GetSyncBuildingsResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSyncBuildingsResponse(GetSyncBuildingsResponse 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 GetSyncBuildingsResponse Clone() { return new GetSyncBuildingsResponse(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.GetSyncBuildingsResponse.Types.BuildingList Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.Types.BuildingList) 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.GetSyncBuildingsResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.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 GetSyncBuildingsResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSyncBuildingsResponse 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(GetSyncBuildingsResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.Types.BuildingList(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.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.GetSyncBuildingsResponse.Types.BuildingList subBuilder = new global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.Types.BuildingList(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.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.GetSyncBuildingsResponse.Types.BuildingList subBuilder = new global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.Types.BuildingList(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.Types.Error subBuilder = new global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.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 GetSyncBuildingsResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Список домов /// public sealed partial class BuildingList : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BuildingList()); 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.GetSyncBuildingsResponse.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 BuildingList() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BuildingList(BuildingList other) : this() { buildings_ = other.buildings_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public BuildingList Clone() { return new BuildingList(this); } /// Field number for the "buildings" field. public const int BuildingsFieldNumber = 1; private static readonly pb::FieldCodec _repeated_buildings_codec = pb::FieldCodec.ForMessage(10, global::Keyapis.AccessControl.V1.BuildingSync.Parser); private readonly pbc::RepeatedField buildings_ = new pbc::RepeatedField(); /// /// Список домов /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Buildings { get { return buildings_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as BuildingList); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(BuildingList other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!buildings_.Equals(other.buildings_)) 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 ^= buildings_.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 buildings_.WriteTo(output, _repeated_buildings_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) { buildings_.WriteTo(ref output, _repeated_buildings_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 += buildings_.CalculateSize(_repeated_buildings_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(BuildingList other) { if (other == null) { return; } buildings_.Add(other.buildings_); _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: { buildings_.AddEntriesFrom(input, _repeated_buildings_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: { buildings_.AddEntriesFrom(ref input, _repeated_buildings_codec); break; } } } } #endif } /// /// Ошибка /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.AccessControl.V1.GetSyncBuildingsResponse.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.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