// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/vc/v1/keyapis_vc_camera_location_data_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.Vc.V1 { /// Holder for reflection information generated from keyapis/vc/v1/keyapis_vc_camera_location_data_v1.proto public static partial class KeyapisVcCameraLocationDataV1Reflection { #region Descriptor /// File descriptor for keyapis/vc/v1/keyapis_vc_camera_location_data_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisVcCameraLocationDataV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjZrZXlhcGlzL3ZjL3YxL2tleWFwaXNfdmNfY2FtZXJhX2xvY2F0aW9uX2Rh", "dGFfdjEucHJvdG8SDWtleWFwaXMudmMudjEaHGdvb2dsZS9hcGkvYW5ub3Rh", "dGlvbnMucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8a", "H2dvb2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aKGtleWFwaXMvdmMv", "djEva2V5YXBpc192Y19jYW1lcmFfdjEucHJvdG8iMAocR2V0Q2FtZXJhTG9j", "YXRpb25EYXRhUmVxdWVzdBIQCgN1aWQYASABKAlCA+BBAiLoAQodR2V0Q2Ft", "ZXJhTG9jYXRpb25EYXRhUmVzcG9uc2USMQoEZGF0YRgBIAEoCzIhLmtleWFw", "aXMudmMudjEuQ2FtZXJhTG9jYXRpb25EYXRhSAASQwoFZXJyb3IYAiABKAsy", "Mi5rZXlhcGlzLnZjLnYxLkdldENhbWVyYUxvY2F0aW9uRGF0YVJlc3BvbnNl", "LkVycm9ySAAaRwoFRXJyb3ISNAoKdmFsaWRhdGlvbhgBIAEoCzIeLmtleWFw", "aXMudmMudjEuVmFsaWRhdGlvbkVycm9ySABCCAoGcmVhc29uQgYKBHR5cGUi", "oQkKEkNhbWVyYUxvY2F0aW9uRGF0YRIQCgN1aWQYASABKAlCA+BBAhJBCgtk", "ZXZpY2VfdHlwZRgCIAEoDjIsLmtleWFwaXMudmMudjEuQ2FtZXJhTG9jYXRp", "b25EYXRhLkRldmljZVR5cGUSDQoFbW9kZWwYAyABKAkSFQoNc2VyaWFsX251", "bWJlchgEIAEoCRISCgpod192ZXJzaW9uGAUgASgJEhIKCnN3X3ZlcnNpb24Y", "BiABKAkSCwoDbWFjGAcgASgJEg0KBXRpdGxlGAggASgJEgwKBGhvc3QYCSAB", "KAkSQQoLc3RhdHVzX3R5cGUYCiABKA4yLC5rZXlhcGlzLnZjLnYxLkNhbWVy", "YUxvY2F0aW9uRGF0YS5TdGF0dXNUeXBlEhgKEGVudHJhbmNlX251bWJlcnMY", "CyADKAUSFAoMZmxhdGdyYW1tX2lkGAwgASgFEjoKB2NvbXBhbnkYDSABKAsy", "KS5rZXlhcGlzLnZjLnYxLkNhbWVyYUxvY2F0aW9uRGF0YS5Db21wYW55Ej0K", "CWJ1aWxkaW5ncxgOIAMoCzIqLmtleWFwaXMudmMudjEuQ2FtZXJhTG9jYXRp", "b25EYXRhLkJ1aWxkaW5nGp8DCghCdWlsZGluZxIKCgJpZBgBIAEoBRISCgVy", "Zl9pZBgCIAEoBUID4EECEhMKBm1yZl9pZBgDIAEoBUID4EECEhIKBW9ycG9u", "GAQgASgDQgPgQQISEQoEY2l0eRgFIAEoCUID4EECEhMKBnN0cmVldBgGIAEo", "CUID4EECEg4KBm51bWJlchgHIAEoCRIMCgRwYXJ0GAggASgJEhcKCmNvbXBh", "bnlfaWQYCSABKAVCA+BBAhIOCgZwcmVmaXgYCiABKAkSMwoKY3JlYXRlZF9h", "dBgLIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAxIzCgpk", "ZWxldGVkX2F0GAwgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcEID", "4EEDEhkKDGZsYXRncmFtbV9pZBgNIAEoBUID4EECEhIKCmNpdHlfb3Jwb24Y", "DiABKAMSDAoEZmlhcxgPIAEoCRIQCghkaXN0cmljdBgQIAEoCRIMCgR1bm9t", "GBEgASgJEhQKDHJlZ2lvbl9vcnBvbhgSIAEoAxpiCgdDb21wYW55EgoKAmlk", "GAEgASgFEhUKDXZjX2NvbXBhbnlfaWQYAiABKAMSDAoEbmFtZRgDIAEoCRIL", "CgNpbm4YBCABKAkSCwoDa3BwGAUgASgJEgwKBG9ncm4YBiABKAkiPgoKU3Rh", "dHVzVHlwZRIXChNTVEFUVVNfVFlQRV9VTktOT1dOEAASCwoHT0ZGTElORRAB", "EgoKBk9OTElORRACIokBCgpEZXZpY2VUeXBlEhcKE0RFVklDRV9UWVBFX1VO", "S05PV04QABIMCghJTlRFUkNPTRABEg8KC1ZJREVPQ0FNRVJBEAISCwoHQkFS", "UklFUhADEggKBEdBVEUQBBIYChRBQ0NFU1NfQ09OVFJPTF9QQU5FTBAFEhIK", "Dk9VVERPT1JfQ0FNRVJBEAYyvwEKGUNhbWVyYUxvY2F0aW9uRGF0YVNlcnZp", "Y2USoQEKFUdldENhbWVyYUxvY2F0aW9uRGF0YRIrLmtleWFwaXMudmMudjEu", "R2V0Q2FtZXJhTG9jYXRpb25EYXRhUmVxdWVzdBosLmtleWFwaXMudmMudjEu", "R2V0Q2FtZXJhTG9jYXRpb25EYXRhUmVzcG9uc2UiLYLT5JMCJxIlL3ZjL2Fw", "aS92MS9jYW1lcmFfbG9jYXRpb25fZGF0YS97dWlkfUJ+ChBydS5rZXlhcGlz", "LnZjLnYxQhBLZXlhcGlzVmNWMVByb3RvSANQAFoOL2tleWFwaXNfdmNfdjHY", "AQH4AQGiAgtLRVlBUElTVkNWMaoCDUtleWFwaXMuVmMuVjHKAg1LZXlhcGlz", "XFZjXFYx6gIPS2V5YXBpczo6VmM6OlYxYgZwcm90bzM=")); 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::Keyapis.Vc.V1.KeyapisVcCameraV1Reflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetCameraLocationDataRequest), global::Keyapis.Vc.V1.GetCameraLocationDataRequest.Parser, new[]{ "Uid" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetCameraLocationDataResponse), global::Keyapis.Vc.V1.GetCameraLocationDataResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetCameraLocationDataResponse.Types.Error), global::Keyapis.Vc.V1.GetCameraLocationDataResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.CameraLocationData), global::Keyapis.Vc.V1.CameraLocationData.Parser, new[]{ "Uid", "DeviceType", "Model", "SerialNumber", "HwVersion", "SwVersion", "Mac", "Title", "Host", "StatusType", "EntranceNumbers", "FlatgrammId", "Company", "Buildings" }, null, new[]{ typeof(global::Keyapis.Vc.V1.CameraLocationData.Types.StatusType), typeof(global::Keyapis.Vc.V1.CameraLocationData.Types.DeviceType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.CameraLocationData.Types.Building), global::Keyapis.Vc.V1.CameraLocationData.Types.Building.Parser, new[]{ "Id", "RfId", "MrfId", "Orpon", "City", "Street", "Number", "Part", "CompanyId", "Prefix", "CreatedAt", "DeletedAt", "FlatgrammId", "CityOrpon", "Fias", "District", "Unom", "RegionOrpon" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.CameraLocationData.Types.Company), global::Keyapis.Vc.V1.CameraLocationData.Types.Company.Parser, new[]{ "Id", "VcCompanyId", "Name", "Inn", "Kpp", "Ogrn" }, null, null, null, null)}) })); } #endregion } #region Messages /// /// Запрос на получение данных o местонахождении камеры /// public sealed partial class GetCameraLocationDataRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCameraLocationDataRequest()); 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.Vc.V1.KeyapisVcCameraLocationDataV1Reflection.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 GetCameraLocationDataRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetCameraLocationDataRequest(GetCameraLocationDataRequest other) : this() { uid_ = other.uid_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetCameraLocationDataRequest Clone() { return new GetCameraLocationDataRequest(this); } /// Field number for the "uid" field. public const int UidFieldNumber = 1; private string uid_ = ""; /// /// uid видеопотока камеры /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Uid { get { return uid_; } set { uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetCameraLocationDataRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetCameraLocationDataRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Uid != other.Uid) 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 (Uid.Length != 0) hash ^= Uid.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 (Uid.Length != 0) { output.WriteRawTag(10); output.WriteString(Uid); } 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 (Uid.Length != 0) { output.WriteRawTag(10); output.WriteString(Uid); } 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 (Uid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetCameraLocationDataRequest other) { if (other == null) { return; } if (other.Uid.Length != 0) { Uid = other.Uid; } _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: { Uid = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Uid = input.ReadString(); break; } } } } #endif } /// /// Ответ на запрос на получение данных o местонахождении камеры /// public sealed partial class GetCameraLocationDataResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCameraLocationDataResponse()); 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.Vc.V1.KeyapisVcCameraLocationDataV1Reflection.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 GetCameraLocationDataResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetCameraLocationDataResponse(GetCameraLocationDataResponse 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 GetCameraLocationDataResponse Clone() { return new GetCameraLocationDataResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Данные o местонахождении камеры /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Vc.V1.CameraLocationData Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Vc.V1.CameraLocationData) 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.Vc.V1.GetCameraLocationDataResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Vc.V1.GetCameraLocationDataResponse.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 GetCameraLocationDataResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetCameraLocationDataResponse 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(GetCameraLocationDataResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Vc.V1.CameraLocationData(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Vc.V1.GetCameraLocationDataResponse.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.Vc.V1.CameraLocationData subBuilder = new global::Keyapis.Vc.V1.CameraLocationData(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Vc.V1.GetCameraLocationDataResponse.Types.Error subBuilder = new global::Keyapis.Vc.V1.GetCameraLocationDataResponse.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.Vc.V1.CameraLocationData subBuilder = new global::Keyapis.Vc.V1.CameraLocationData(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Vc.V1.GetCameraLocationDataResponse.Types.Error subBuilder = new global::Keyapis.Vc.V1.GetCameraLocationDataResponse.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 GetCameraLocationDataResponse 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.Vc.V1.GetCameraLocationDataResponse.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.Vc.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Keyapis.Vc.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.Vc.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.Vc.V1.ValidationError subBuilder = new global::Keyapis.Vc.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.Vc.V1.ValidationError subBuilder = new global::Keyapis.Vc.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Данные o местонахождении камеры /// public sealed partial class CameraLocationData : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CameraLocationData()); 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.Vc.V1.KeyapisVcCameraLocationDataV1Reflection.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 CameraLocationData() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CameraLocationData(CameraLocationData other) : this() { uid_ = other.uid_; deviceType_ = other.deviceType_; model_ = other.model_; serialNumber_ = other.serialNumber_; hwVersion_ = other.hwVersion_; swVersion_ = other.swVersion_; mac_ = other.mac_; title_ = other.title_; host_ = other.host_; statusType_ = other.statusType_; entranceNumbers_ = other.entranceNumbers_.Clone(); flatgrammId_ = other.flatgrammId_; company_ = other.company_ != null ? other.company_.Clone() : null; buildings_ = other.buildings_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CameraLocationData Clone() { return new CameraLocationData(this); } /// Field number for the "uid" field. public const int UidFieldNumber = 1; private string uid_ = ""; /// /// Идентификатор видеопотока в системе Видеокомфорт. /// Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Uid { get { return uid_; } set { uid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_type" field. public const int DeviceTypeFieldNumber = 2; private global::Keyapis.Vc.V1.CameraLocationData.Types.DeviceType deviceType_ = global::Keyapis.Vc.V1.CameraLocationData.Types.DeviceType.Unknown; /// /// Тип устройства. /// # Тип: byte /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Vc.V1.CameraLocationData.Types.DeviceType DeviceType { get { return deviceType_; } set { deviceType_ = value; } } /// Field number for the "model" field. public const int ModelFieldNumber = 3; private string model_ = ""; /// /// Модель устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Model { get { return model_; } set { model_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "serial_number" field. public const int SerialNumberFieldNumber = 4; private string serialNumber_ = ""; /// /// Серийный номер устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SerialNumber { get { return serialNumber_; } set { serialNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "hw_version" field. public const int HwVersionFieldNumber = 5; private string hwVersion_ = ""; /// /// Версия аппаратного обеспечения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string HwVersion { get { return hwVersion_; } set { hwVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "sw_version" field. public const int SwVersionFieldNumber = 6; private string swVersion_ = ""; /// /// Версия программного обеспечения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SwVersion { get { return swVersion_; } set { swVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "mac" field. public const int MacFieldNumber = 7; private string mac_ = ""; /// /// MAC-адрес. /// # Диапазон: 17..17. /// # Паттерн: /^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Mac { get { return mac_; } set { mac_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "title" field. public const int TitleFieldNumber = 8; private string title_ = ""; /// /// Наименование устройства. /// # Диапазон: 3..256 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Title { get { return title_; } set { title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "host" field. public const int HostFieldNumber = 9; private string host_ = ""; /// /// Сетевой адрес. /// # Диапазон: 0..250 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Host { get { return host_; } set { host_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "status_type" field. public const int StatusTypeFieldNumber = 10; private global::Keyapis.Vc.V1.CameraLocationData.Types.StatusType statusType_ = global::Keyapis.Vc.V1.CameraLocationData.Types.StatusType.Unknown; /// /// Статус устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Vc.V1.CameraLocationData.Types.StatusType StatusType { get { return statusType_; } set { statusType_ = value; } } /// Field number for the "entrance_numbers" field. public const int EntranceNumbersFieldNumber = 11; private static readonly pb::FieldCodec _repeated_entranceNumbers_codec = pb::FieldCodec.ForInt32(90); private readonly pbc::RepeatedField entranceNumbers_ = new pbc::RepeatedField(); /// /// Номер подъезда. /// # Диапазон: 1..100 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField EntranceNumbers { get { return entranceNumbers_; } } /// Field number for the "flatgramm_id" field. public const int FlatgrammIdFieldNumber = 12; private int flatgrammId_; /// /// Идентификатор квартирограммы. /// # Диапазон: 1..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int FlatgrammId { get { return flatgrammId_; } set { flatgrammId_ = value; } } /// Field number for the "company" field. public const int CompanyFieldNumber = 13; private global::Keyapis.Vc.V1.CameraLocationData.Types.Company company_; /// /// Компания владелец устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Vc.V1.CameraLocationData.Types.Company Company { get { return company_; } set { company_ = value; } } /// Field number for the "buildings" field. public const int BuildingsFieldNumber = 14; private static readonly pb::FieldCodec _repeated_buildings_codec = pb::FieldCodec.ForMessage(114, global::Keyapis.Vc.V1.CameraLocationData.Types.Building.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 CameraLocationData); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CameraLocationData other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Uid != other.Uid) return false; if (DeviceType != other.DeviceType) return false; if (Model != other.Model) return false; if (SerialNumber != other.SerialNumber) return false; if (HwVersion != other.HwVersion) return false; if (SwVersion != other.SwVersion) return false; if (Mac != other.Mac) return false; if (Title != other.Title) return false; if (Host != other.Host) return false; if (StatusType != other.StatusType) return false; if(!entranceNumbers_.Equals(other.entranceNumbers_)) return false; if (FlatgrammId != other.FlatgrammId) return false; if (!object.Equals(Company, other.Company)) return false; 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; if (Uid.Length != 0) hash ^= Uid.GetHashCode(); if (DeviceType != global::Keyapis.Vc.V1.CameraLocationData.Types.DeviceType.Unknown) hash ^= DeviceType.GetHashCode(); if (Model.Length != 0) hash ^= Model.GetHashCode(); if (SerialNumber.Length != 0) hash ^= SerialNumber.GetHashCode(); if (HwVersion.Length != 0) hash ^= HwVersion.GetHashCode(); if (SwVersion.Length != 0) hash ^= SwVersion.GetHashCode(); if (Mac.Length != 0) hash ^= Mac.GetHashCode(); if (Title.Length != 0) hash ^= Title.GetHashCode(); if (Host.Length != 0) hash ^= Host.GetHashCode(); if (StatusType != global::Keyapis.Vc.V1.CameraLocationData.Types.StatusType.Unknown) hash ^= StatusType.GetHashCode(); hash ^= entranceNumbers_.GetHashCode(); if (FlatgrammId != 0) hash ^= FlatgrammId.GetHashCode(); if (company_ != null) hash ^= Company.GetHashCode(); 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 if (Uid.Length != 0) { output.WriteRawTag(10); output.WriteString(Uid); } if (DeviceType != global::Keyapis.Vc.V1.CameraLocationData.Types.DeviceType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DeviceType); } if (Model.Length != 0) { output.WriteRawTag(26); output.WriteString(Model); } if (SerialNumber.Length != 0) { output.WriteRawTag(34); output.WriteString(SerialNumber); } if (HwVersion.Length != 0) { output.WriteRawTag(42); output.WriteString(HwVersion); } if (SwVersion.Length != 0) { output.WriteRawTag(50); output.WriteString(SwVersion); } if (Mac.Length != 0) { output.WriteRawTag(58); output.WriteString(Mac); } if (Title.Length != 0) { output.WriteRawTag(66); output.WriteString(Title); } if (Host.Length != 0) { output.WriteRawTag(74); output.WriteString(Host); } if (StatusType != global::Keyapis.Vc.V1.CameraLocationData.Types.StatusType.Unknown) { output.WriteRawTag(80); output.WriteEnum((int) StatusType); } entranceNumbers_.WriteTo(output, _repeated_entranceNumbers_codec); if (FlatgrammId != 0) { output.WriteRawTag(96); output.WriteInt32(FlatgrammId); } if (company_ != null) { output.WriteRawTag(106); output.WriteMessage(Company); } 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) { if (Uid.Length != 0) { output.WriteRawTag(10); output.WriteString(Uid); } if (DeviceType != global::Keyapis.Vc.V1.CameraLocationData.Types.DeviceType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) DeviceType); } if (Model.Length != 0) { output.WriteRawTag(26); output.WriteString(Model); } if (SerialNumber.Length != 0) { output.WriteRawTag(34); output.WriteString(SerialNumber); } if (HwVersion.Length != 0) { output.WriteRawTag(42); output.WriteString(HwVersion); } if (SwVersion.Length != 0) { output.WriteRawTag(50); output.WriteString(SwVersion); } if (Mac.Length != 0) { output.WriteRawTag(58); output.WriteString(Mac); } if (Title.Length != 0) { output.WriteRawTag(66); output.WriteString(Title); } if (Host.Length != 0) { output.WriteRawTag(74); output.WriteString(Host); } if (StatusType != global::Keyapis.Vc.V1.CameraLocationData.Types.StatusType.Unknown) { output.WriteRawTag(80); output.WriteEnum((int) StatusType); } entranceNumbers_.WriteTo(ref output, _repeated_entranceNumbers_codec); if (FlatgrammId != 0) { output.WriteRawTag(96); output.WriteInt32(FlatgrammId); } if (company_ != null) { output.WriteRawTag(106); output.WriteMessage(Company); } 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; if (Uid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Uid); } if (DeviceType != global::Keyapis.Vc.V1.CameraLocationData.Types.DeviceType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DeviceType); } if (Model.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Model); } if (SerialNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SerialNumber); } if (HwVersion.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(HwVersion); } if (SwVersion.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SwVersion); } if (Mac.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Mac); } if (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (Host.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Host); } if (StatusType != global::Keyapis.Vc.V1.CameraLocationData.Types.StatusType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType); } size += entranceNumbers_.CalculateSize(_repeated_entranceNumbers_codec); if (FlatgrammId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(FlatgrammId); } if (company_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Company); } 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(CameraLocationData other) { if (other == null) { return; } if (other.Uid.Length != 0) { Uid = other.Uid; } if (other.DeviceType != global::Keyapis.Vc.V1.CameraLocationData.Types.DeviceType.Unknown) { DeviceType = other.DeviceType; } if (other.Model.Length != 0) { Model = other.Model; } if (other.SerialNumber.Length != 0) { SerialNumber = other.SerialNumber; } if (other.HwVersion.Length != 0) { HwVersion = other.HwVersion; } if (other.SwVersion.Length != 0) { SwVersion = other.SwVersion; } if (other.Mac.Length != 0) { Mac = other.Mac; } if (other.Title.Length != 0) { Title = other.Title; } if (other.Host.Length != 0) { Host = other.Host; } if (other.StatusType != global::Keyapis.Vc.V1.CameraLocationData.Types.StatusType.Unknown) { StatusType = other.StatusType; } entranceNumbers_.Add(other.entranceNumbers_); if (other.FlatgrammId != 0) { FlatgrammId = other.FlatgrammId; } if (other.company_ != null) { if (company_ == null) { Company = new global::Keyapis.Vc.V1.CameraLocationData.Types.Company(); } Company.MergeFrom(other.Company); } 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: { Uid = input.ReadString(); break; } case 16: { DeviceType = (global::Keyapis.Vc.V1.CameraLocationData.Types.DeviceType) input.ReadEnum(); break; } case 26: { Model = input.ReadString(); break; } case 34: { SerialNumber = input.ReadString(); break; } case 42: { HwVersion = input.ReadString(); break; } case 50: { SwVersion = input.ReadString(); break; } case 58: { Mac = input.ReadString(); break; } case 66: { Title = input.ReadString(); break; } case 74: { Host = input.ReadString(); break; } case 80: { StatusType = (global::Keyapis.Vc.V1.CameraLocationData.Types.StatusType) input.ReadEnum(); break; } case 90: case 88: { entranceNumbers_.AddEntriesFrom(input, _repeated_entranceNumbers_codec); break; } case 96: { FlatgrammId = input.ReadInt32(); break; } case 106: { if (company_ == null) { Company = new global::Keyapis.Vc.V1.CameraLocationData.Types.Company(); } input.ReadMessage(Company); break; } case 114: { 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: { Uid = input.ReadString(); break; } case 16: { DeviceType = (global::Keyapis.Vc.V1.CameraLocationData.Types.DeviceType) input.ReadEnum(); break; } case 26: { Model = input.ReadString(); break; } case 34: { SerialNumber = input.ReadString(); break; } case 42: { HwVersion = input.ReadString(); break; } case 50: { SwVersion = input.ReadString(); break; } case 58: { Mac = input.ReadString(); break; } case 66: { Title = input.ReadString(); break; } case 74: { Host = input.ReadString(); break; } case 80: { StatusType = (global::Keyapis.Vc.V1.CameraLocationData.Types.StatusType) input.ReadEnum(); break; } case 90: case 88: { entranceNumbers_.AddEntriesFrom(ref input, _repeated_entranceNumbers_codec); break; } case 96: { FlatgrammId = input.ReadInt32(); break; } case 106: { if (company_ == null) { Company = new global::Keyapis.Vc.V1.CameraLocationData.Types.Company(); } input.ReadMessage(Company); break; } case 114: { buildings_.AddEntriesFrom(ref input, _repeated_buildings_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the CameraLocationData message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Справочник статусов устройства /// public enum StatusType { /// /// Значение не указано /// [pbr::OriginalName("STATUS_TYPE_UNKNOWN")] Unknown = 0, /// /// Не в сети /// [pbr::OriginalName("OFFLINE")] Offline = 1, /// /// В сети /// [pbr::OriginalName("ONLINE")] Online = 2, } /// /// Тип устройства /// public enum DeviceType { /// /// Значение не указано /// [pbr::OriginalName("DEVICE_TYPE_UNKNOWN")] Unknown = 0, /// /// Домофон /// [pbr::OriginalName("INTERCOM")] Intercom = 1, /// /// Видеокамера /// [pbr::OriginalName("VIDEOCAMERA")] Videocamera = 2, /// /// Шлагбаум /// [pbr::OriginalName("BARRIER")] Barrier = 3, /// /// Калитка /// [pbr::OriginalName("GATE")] Gate = 4, /// /// СКУД /// [pbr::OriginalName("ACCESS_CONTROL_PANEL")] AccessControlPanel = 5, /// /// Наружняя видеокамера /// [pbr::OriginalName("OUTDOOR_CAMERA")] OutdoorCamera = 6, } /// /// Дом /// public sealed partial class Building : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Building()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Vc.V1.CameraLocationData.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 Building() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Building(Building other) : this() { id_ = other.id_; rfId_ = other.rfId_; mrfId_ = other.mrfId_; orpon_ = other.orpon_; city_ = other.city_; street_ = other.street_; number_ = other.number_; part_ = other.part_; companyId_ = other.companyId_; prefix_ = other.prefix_; createdAt_ = other.createdAt_ != null ? other.createdAt_.Clone() : null; deletedAt_ = other.deletedAt_ != null ? other.deletedAt_.Clone() : null; flatgrammId_ = other.flatgrammId_; cityOrpon_ = other.cityOrpon_; fias_ = other.fias_; district_ = other.district_; unom_ = other.unom_; regionOrpon_ = other.regionOrpon_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Building Clone() { return new Building(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор дома /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } /// Field number for the "rf_id" field. public const int RfIdFieldNumber = 2; private int rfId_; /// /// Идентификатор РФ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RfId { get { return rfId_; } set { rfId_ = value; } } /// Field number for the "mrf_id" field. public const int MrfIdFieldNumber = 3; private int mrfId_; /// /// Идентификатор МРФ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int MrfId { get { return mrfId_; } set { mrfId_ = value; } } /// Field number for the "orpon" field. public const int OrponFieldNumber = 4; private long orpon_; /// /// ОРПОН /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Orpon { get { return orpon_; } set { orpon_ = value; } } /// Field number for the "city" field. public const int CityFieldNumber = 5; private string city_ = ""; /// /// Город /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string City { get { return city_; } set { city_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "street" field. public const int StreetFieldNumber = 6; private string street_ = ""; /// /// Улица /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Street { get { return street_; } set { street_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "number" field. public const int NumberFieldNumber = 7; private string number_ = ""; /// /// Номер дома /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Number { get { return number_; } set { number_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "part" field. public const int PartFieldNumber = 8; private string part_ = ""; /// /// Корпус /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Part { get { return part_; } set { part_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "company_id" field. public const int CompanyIdFieldNumber = 9; private int companyId_; /// /// Идентификатор компании /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CompanyId { get { return companyId_; } set { companyId_ = value; } } /// Field number for the "prefix" field. public const int PrefixFieldNumber = 10; private string prefix_ = ""; /// /// Префикс /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Prefix { get { return prefix_; } set { prefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "created_at" field. public const int CreatedAtFieldNumber = 11; private global::Google.Protobuf.WellKnownTypes.Timestamp createdAt_; /// /// Дата создания. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CreatedAt { get { return createdAt_; } set { createdAt_ = value; } } /// Field number for the "deleted_at" field. public const int DeletedAtFieldNumber = 12; private global::Google.Protobuf.WellKnownTypes.Timestamp deletedAt_; /// /// Дата удаления. /// # Тип: DateTime /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp DeletedAt { get { return deletedAt_; } set { deletedAt_ = value; } } /// Field number for the "flatgramm_id" field. public const int FlatgrammIdFieldNumber = 13; private int flatgrammId_; /// /// Идентификатор квартирограммы /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int FlatgrammId { get { return flatgrammId_; } set { flatgrammId_ = value; } } /// Field number for the "city_orpon" field. public const int CityOrponFieldNumber = 14; private long cityOrpon_; /// /// ОРПОН города, в котором находится дом /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long CityOrpon { get { return cityOrpon_; } set { cityOrpon_ = value; } } /// Field number for the "fias" field. public const int FiasFieldNumber = 15; private string fias_ = ""; /// /// Идентификатор в федеральной информационной адресной системе. /// Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Fias { get { return fias_; } set { fias_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "district" field. public const int DistrictFieldNumber = 16; private string district_ = ""; /// /// Наименования района. /// # Диапазон: 0..200 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string District { get { return district_; } set { district_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "unom" field. public const int UnomFieldNumber = 17; private string unom_ = ""; /// /// Уникальный номер адреса. /// # Диапазон: 0..9999999999 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Unom { get { return unom_; } set { unom_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "region_orpon" field. public const int RegionOrponFieldNumber = 18; private long regionOrpon_; /// /// ОРПОН региона /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long RegionOrpon { get { return regionOrpon_; } set { regionOrpon_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Building); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Building other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (RfId != other.RfId) return false; if (MrfId != other.MrfId) return false; if (Orpon != other.Orpon) return false; if (City != other.City) return false; if (Street != other.Street) return false; if (Number != other.Number) return false; if (Part != other.Part) return false; if (CompanyId != other.CompanyId) return false; if (Prefix != other.Prefix) return false; if (!object.Equals(CreatedAt, other.CreatedAt)) return false; if (!object.Equals(DeletedAt, other.DeletedAt)) return false; if (FlatgrammId != other.FlatgrammId) return false; if (CityOrpon != other.CityOrpon) return false; if (Fias != other.Fias) return false; if (District != other.District) return false; if (Unom != other.Unom) return false; if (RegionOrpon != other.RegionOrpon) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (Id != 0) hash ^= Id.GetHashCode(); if (RfId != 0) hash ^= RfId.GetHashCode(); if (MrfId != 0) hash ^= MrfId.GetHashCode(); if (Orpon != 0L) hash ^= Orpon.GetHashCode(); if (City.Length != 0) hash ^= City.GetHashCode(); if (Street.Length != 0) hash ^= Street.GetHashCode(); if (Number.Length != 0) hash ^= Number.GetHashCode(); if (Part.Length != 0) hash ^= Part.GetHashCode(); if (CompanyId != 0) hash ^= CompanyId.GetHashCode(); if (Prefix.Length != 0) hash ^= Prefix.GetHashCode(); if (createdAt_ != null) hash ^= CreatedAt.GetHashCode(); if (deletedAt_ != null) hash ^= DeletedAt.GetHashCode(); if (FlatgrammId != 0) hash ^= FlatgrammId.GetHashCode(); if (CityOrpon != 0L) hash ^= CityOrpon.GetHashCode(); if (Fias.Length != 0) hash ^= Fias.GetHashCode(); if (District.Length != 0) hash ^= District.GetHashCode(); if (Unom.Length != 0) hash ^= Unom.GetHashCode(); if (RegionOrpon != 0L) hash ^= RegionOrpon.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (RfId != 0) { output.WriteRawTag(16); output.WriteInt32(RfId); } if (MrfId != 0) { output.WriteRawTag(24); output.WriteInt32(MrfId); } if (Orpon != 0L) { output.WriteRawTag(32); output.WriteInt64(Orpon); } if (City.Length != 0) { output.WriteRawTag(42); output.WriteString(City); } if (Street.Length != 0) { output.WriteRawTag(50); output.WriteString(Street); } if (Number.Length != 0) { output.WriteRawTag(58); output.WriteString(Number); } if (Part.Length != 0) { output.WriteRawTag(66); output.WriteString(Part); } if (CompanyId != 0) { output.WriteRawTag(72); output.WriteInt32(CompanyId); } if (Prefix.Length != 0) { output.WriteRawTag(82); output.WriteString(Prefix); } if (createdAt_ != null) { output.WriteRawTag(90); output.WriteMessage(CreatedAt); } if (deletedAt_ != null) { output.WriteRawTag(98); output.WriteMessage(DeletedAt); } if (FlatgrammId != 0) { output.WriteRawTag(104); output.WriteInt32(FlatgrammId); } if (CityOrpon != 0L) { output.WriteRawTag(112); output.WriteInt64(CityOrpon); } if (Fias.Length != 0) { output.WriteRawTag(122); output.WriteString(Fias); } if (District.Length != 0) { output.WriteRawTag(130, 1); output.WriteString(District); } if (Unom.Length != 0) { output.WriteRawTag(138, 1); output.WriteString(Unom); } if (RegionOrpon != 0L) { output.WriteRawTag(144, 1); output.WriteInt64(RegionOrpon); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id != 0) { output.WriteRawTag(8); output.WriteInt32(Id); } if (RfId != 0) { output.WriteRawTag(16); output.WriteInt32(RfId); } if (MrfId != 0) { output.WriteRawTag(24); output.WriteInt32(MrfId); } if (Orpon != 0L) { output.WriteRawTag(32); output.WriteInt64(Orpon); } if (City.Length != 0) { output.WriteRawTag(42); output.WriteString(City); } if (Street.Length != 0) { output.WriteRawTag(50); output.WriteString(Street); } if (Number.Length != 0) { output.WriteRawTag(58); output.WriteString(Number); } if (Part.Length != 0) { output.WriteRawTag(66); output.WriteString(Part); } if (CompanyId != 0) { output.WriteRawTag(72); output.WriteInt32(CompanyId); } if (Prefix.Length != 0) { output.WriteRawTag(82); output.WriteString(Prefix); } if (createdAt_ != null) { output.WriteRawTag(90); output.WriteMessage(CreatedAt); } if (deletedAt_ != null) { output.WriteRawTag(98); output.WriteMessage(DeletedAt); } if (FlatgrammId != 0) { output.WriteRawTag(104); output.WriteInt32(FlatgrammId); } if (CityOrpon != 0L) { output.WriteRawTag(112); output.WriteInt64(CityOrpon); } if (Fias.Length != 0) { output.WriteRawTag(122); output.WriteString(Fias); } if (District.Length != 0) { output.WriteRawTag(130, 1); output.WriteString(District); } if (Unom.Length != 0) { output.WriteRawTag(138, 1); output.WriteString(Unom); } if (RegionOrpon != 0L) { output.WriteRawTag(144, 1); output.WriteInt64(RegionOrpon); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); } if (RfId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RfId); } if (MrfId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(MrfId); } if (Orpon != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Orpon); } if (City.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(City); } if (Street.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Street); } if (Number.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Number); } if (Part.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Part); } if (CompanyId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompanyId); } if (Prefix.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Prefix); } if (createdAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreatedAt); } if (deletedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeletedAt); } if (FlatgrammId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(FlatgrammId); } if (CityOrpon != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(CityOrpon); } if (Fias.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Fias); } if (District.Length != 0) { size += 2 + pb::CodedOutputStream.ComputeStringSize(District); } if (Unom.Length != 0) { size += 2 + pb::CodedOutputStream.ComputeStringSize(Unom); } if (RegionOrpon != 0L) { size += 2 + pb::CodedOutputStream.ComputeInt64Size(RegionOrpon); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Building other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.RfId != 0) { RfId = other.RfId; } if (other.MrfId != 0) { MrfId = other.MrfId; } if (other.Orpon != 0L) { Orpon = other.Orpon; } if (other.City.Length != 0) { City = other.City; } if (other.Street.Length != 0) { Street = other.Street; } if (other.Number.Length != 0) { Number = other.Number; } if (other.Part.Length != 0) { Part = other.Part; } if (other.CompanyId != 0) { CompanyId = other.CompanyId; } if (other.Prefix.Length != 0) { Prefix = other.Prefix; } if (other.createdAt_ != null) { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreatedAt.MergeFrom(other.CreatedAt); } if (other.deletedAt_ != null) { if (deletedAt_ == null) { DeletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } DeletedAt.MergeFrom(other.DeletedAt); } if (other.FlatgrammId != 0) { FlatgrammId = other.FlatgrammId; } if (other.CityOrpon != 0L) { CityOrpon = other.CityOrpon; } if (other.Fias.Length != 0) { Fias = other.Fias; } if (other.District.Length != 0) { District = other.District; } if (other.Unom.Length != 0) { Unom = other.Unom; } if (other.RegionOrpon != 0L) { RegionOrpon = other.RegionOrpon; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Id = input.ReadInt32(); break; } case 16: { RfId = input.ReadInt32(); break; } case 24: { MrfId = input.ReadInt32(); break; } case 32: { Orpon = input.ReadInt64(); break; } case 42: { City = input.ReadString(); break; } case 50: { Street = input.ReadString(); break; } case 58: { Number = input.ReadString(); break; } case 66: { Part = input.ReadString(); break; } case 72: { CompanyId = input.ReadInt32(); break; } case 82: { Prefix = input.ReadString(); break; } case 90: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 98: { if (deletedAt_ == null) { DeletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(DeletedAt); break; } case 104: { FlatgrammId = input.ReadInt32(); break; } case 112: { CityOrpon = input.ReadInt64(); break; } case 122: { Fias = input.ReadString(); break; } case 130: { District = input.ReadString(); break; } case 138: { Unom = input.ReadString(); break; } case 144: { RegionOrpon = input.ReadInt64(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } case 16: { RfId = input.ReadInt32(); break; } case 24: { MrfId = input.ReadInt32(); break; } case 32: { Orpon = input.ReadInt64(); break; } case 42: { City = input.ReadString(); break; } case 50: { Street = input.ReadString(); break; } case 58: { Number = input.ReadString(); break; } case 66: { Part = input.ReadString(); break; } case 72: { CompanyId = input.ReadInt32(); break; } case 82: { Prefix = input.ReadString(); break; } case 90: { if (createdAt_ == null) { CreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CreatedAt); break; } case 98: { if (deletedAt_ == null) { DeletedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(DeletedAt); break; } case 104: { FlatgrammId = input.ReadInt32(); break; } case 112: { CityOrpon = input.ReadInt64(); break; } case 122: { Fias = input.ReadString(); break; } case 130: { District = input.ReadString(); break; } case 138: { Unom = input.ReadString(); break; } case 144: { RegionOrpon = input.ReadInt64(); break; } } } } #endif } /// /// Компания /// public sealed partial class Company : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Company()); 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.Vc.V1.CameraLocationData.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 Company() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Company(Company other) : this() { id_ = other.id_; vcCompanyId_ = other.vcCompanyId_; name_ = other.name_; inn_ = other.inn_; kpp_ = other.kpp_; ogrn_ = other.ogrn_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Company Clone() { return new Company(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// Идентификатор компании. /// # Диапазон: 1..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Id { get { return id_; } set { id_ = value; } } /// Field number for the "vc_company_id" field. public const int VcCompanyIdFieldNumber = 2; private long vcCompanyId_; /// /// Идентификатор компании в системе Видеокомфорт /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long VcCompanyId { get { return vcCompanyId_; } set { vcCompanyId_ = value; } } /// Field number for the "name" field. public const int NameFieldNumber = 3; private string name_ = ""; /// /// Наименование компании /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "inn" field. public const int InnFieldNumber = 4; private string inn_ = ""; /// /// ИНН /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Inn { get { return inn_; } set { inn_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "kpp" field. public const int KppFieldNumber = 5; private string kpp_ = ""; /// /// КПП /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Kpp { get { return kpp_; } set { kpp_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "ogrn" field. public const int OgrnFieldNumber = 6; private string ogrn_ = ""; /// /// ОГРН /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Ogrn { get { return ogrn_; } set { ogrn_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Company); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Company other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (VcCompanyId != other.VcCompanyId) return false; if (Name != other.Name) return false; if (Inn != other.Inn) return false; if (Kpp != other.Kpp) return false; if (Ogrn != other.Ogrn) 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 (VcCompanyId != 0L) hash ^= VcCompanyId.GetHashCode(); if (Name.Length != 0) hash ^= Name.GetHashCode(); if (Inn.Length != 0) hash ^= Inn.GetHashCode(); if (Kpp.Length != 0) hash ^= Kpp.GetHashCode(); if (Ogrn.Length != 0) hash ^= Ogrn.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 (VcCompanyId != 0L) { output.WriteRawTag(16); output.WriteInt64(VcCompanyId); } if (Name.Length != 0) { output.WriteRawTag(26); output.WriteString(Name); } if (Inn.Length != 0) { output.WriteRawTag(34); output.WriteString(Inn); } if (Kpp.Length != 0) { output.WriteRawTag(42); output.WriteString(Kpp); } if (Ogrn.Length != 0) { output.WriteRawTag(50); output.WriteString(Ogrn); } 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 (VcCompanyId != 0L) { output.WriteRawTag(16); output.WriteInt64(VcCompanyId); } if (Name.Length != 0) { output.WriteRawTag(26); output.WriteString(Name); } if (Inn.Length != 0) { output.WriteRawTag(34); output.WriteString(Inn); } if (Kpp.Length != 0) { output.WriteRawTag(42); output.WriteString(Kpp); } if (Ogrn.Length != 0) { output.WriteRawTag(50); output.WriteString(Ogrn); } 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 (VcCompanyId != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(VcCompanyId); } if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (Inn.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Inn); } if (Kpp.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Kpp); } if (Ogrn.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Ogrn); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Company other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.VcCompanyId != 0L) { VcCompanyId = other.VcCompanyId; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Inn.Length != 0) { Inn = other.Inn; } if (other.Kpp.Length != 0) { Kpp = other.Kpp; } if (other.Ogrn.Length != 0) { Ogrn = other.Ogrn; } _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: { VcCompanyId = input.ReadInt64(); break; } case 26: { Name = input.ReadString(); break; } case 34: { Inn = input.ReadString(); break; } case 42: { Kpp = input.ReadString(); break; } case 50: { Ogrn = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Id = input.ReadInt32(); break; } case 16: { VcCompanyId = input.ReadInt64(); break; } case 26: { Name = input.ReadString(); break; } case 34: { Inn = input.ReadString(); break; } case 42: { Kpp = input.ReadString(); break; } case 50: { Ogrn = input.ReadString(); break; } } } } #endif } } #endregion } #endregion } #endregion Designer generated code