// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/vc/v1/keyapis_vc_archive_minutes_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_archive_minutes_v1.proto public static partial class KeyapisVcArchiveMinutesV1Reflection { #region Descriptor /// File descriptor for keyapis/vc/v1/keyapis_vc_archive_minutes_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisVcArchiveMinutesV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjFrZXlhcGlzL3ZjL3YxL2tleWFwaXNfdmNfYXJjaGl2ZV9taW51dGVzX3Yx", "LnByb3RvEg1rZXlhcGlzLnZjLnYxGhxnb29nbGUvYXBpL2Fubm90YXRpb25z", "LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGh5nb29n", "bGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8aKGtleWFwaXMvdmMvdjEva2V5", "YXBpc192Y19jYW1lcmFfdjEucHJvdG8iSAoVQXJjaGl2ZU1pbnV0ZUludGVy", "dmFsEhcKD3NpbmNlX3RpbWVzdGFtcBgBIAEoARIWCg50aWxsX3RpbWVzdGFt", "cBgCIAEoASKNAQocQ2FtZXJhQXJjaGl2ZU1pbnV0ZUludGVydmFscxI3Cglh", "dmFpbGFibGUYASADKAsyJC5rZXlhcGlzLnZjLnYxLkFyY2hpdmVNaW51dGVJ", "bnRlcnZhbBI0CgZmcm96ZW4YAiADKAsyJC5rZXlhcGlzLnZjLnYxLkFyY2hp", "dmVNaW51dGVJbnRlcnZhbCKbAQoNQXJjaGl2ZU1pbnV0ZRISCgpjb21wYW55", "X2lkGAEgASgFEhIKCmNhbWVyYV91aWQYAiABKAkSEwoLY2hhbm5lbF91aWQY", "AyABKAkSMgoEZGF0YRgEIAEoCzIkLmtleWFwaXMudmMudjEuQXJjaGl2ZU1p", "bnV0ZUludGVydmFsEgwKBHNpemUYBSABKAUSCwoDbWQ1GAYgASgJIucBCixH", "ZXRBcmNoaXZlTWludXRlc0NvbXBhbnlDYW1lcmFDaGFubmVsUmVxdWVzdBIX", "Cgpjb21wYW55X2lkGAEgASgFQgPgQQISFwoKY2FtZXJhX3VpZBgCIAEoCUID", "4EECEhgKC2NoYW5uZWxfdWlkGAMgASgJQgPgQQISNQoPc2luY2VfdGltZXN0", "YW1wGAQgASgLMhwuZ29vZ2xlLnByb3RvYnVmLkRvdWJsZVZhbHVlEjQKDnRp", "bGxfdGltZXN0YW1wGAUgASgLMhwuZ29vZ2xlLnByb3RvYnVmLkRvdWJsZVZh", "bHVlIpICCi1HZXRBcmNoaXZlTWludXRlc0NvbXBhbnlDYW1lcmFDaGFubmVs", "UmVzcG9uc2USOwoEZGF0YRgBIAEoCzIrLmtleWFwaXMudmMudjEuQ2FtZXJh", "QXJjaGl2ZU1pbnV0ZUludGVydmFsc0gAElMKBWVycm9yGAIgASgLMkIua2V5", "YXBpcy52Yy52MS5HZXRBcmNoaXZlTWludXRlc0NvbXBhbnlDYW1lcmFDaGFu", "bmVsUmVzcG9uc2UuRXJyb3JIABpHCgVFcnJvchI0Cgp2YWxpZGF0aW9uGAEg", "ASgLMh4ua2V5YXBpcy52Yy52MS5WYWxpZGF0aW9uRXJyb3JIAEIICgZyZWFz", "b25CBgoEdHlwZSKhAQo1R2V0QXJjaGl2ZU1pbnV0ZXNDb21wYW55Q2FtZXJh", "Q2hhbm5lbFRpbWVzdGFtcFJlcXVlc3QSFwoKY29tcGFueV9pZBgBIAEoBUID", "4EECEhcKCmNhbWVyYV91aWQYAiABKAlCA+BBAhIYCgtjaGFubmVsX3VpZBgD", "IAEoCUID4EECEhwKD3RpbWVzdGFtcF92YWx1ZRgEIAEoA0ID4EECIr4DCjZH", "ZXRBcmNoaXZlTWludXRlc0NvbXBhbnlDYW1lcmFDaGFubmVsVGltZXN0YW1w", "UmVzcG9uc2USLAoEZGF0YRgBIAEoCzIcLmtleWFwaXMudmMudjEuQXJjaGl2", "ZU1pbnV0ZUgAElwKBWVycm9yGAIgASgLMksua2V5YXBpcy52Yy52MS5HZXRB", "cmNoaXZlTWludXRlc0NvbXBhbnlDYW1lcmFDaGFubmVsVGltZXN0YW1wUmVz", "cG9uc2UuRXJyb3JIABrvAQoFRXJyb3ISNAoKdmFsaWRhdGlvbhgBIAEoCzIe", "LmtleWFwaXMudmMudjEuVmFsaWRhdGlvbkVycm9ySAASgAEKFXZjZnJvbnRf", "c2VydmljZV9lcnJvchgCIAEoCzJfLmtleWFwaXMudmMudjEuR2V0QXJjaGl2", "ZU1pbnV0ZXNDb21wYW55Q2FtZXJhQ2hhbm5lbFRpbWVzdGFtcFJlc3BvbnNl", "LkVycm9yLlZjZnJvbnRTZXJ2aWNlRXJyb3JIABojChNWY2Zyb250U2Vydmlj", "ZUVycm9yEgwKBHRleHQYASABKAlCCAoGcmVhc29uQgYKBHR5cGUy3gQKFUFy", "Y2hpdmVNaW51dGVzU2VydmljZRKFAgolR2V0QXJjaGl2ZU1pbnV0ZXNDb21w", "YW55Q2FtZXJhQ2hhbm5lbBI7LmtleWFwaXMudmMudjEuR2V0QXJjaGl2ZU1p", "bnV0ZXNDb21wYW55Q2FtZXJhQ2hhbm5lbFJlcXVlc3QaPC5rZXlhcGlzLnZj", "LnYxLkdldEFyY2hpdmVNaW51dGVzQ29tcGFueUNhbWVyYUNoYW5uZWxSZXNw", "b25zZSJhgtPkkwJbElkvdmMvYXBpL3YxL2FyY2hpdmVfbWludXRlcy9jb21w", "YW55L3tjb21wYW55X2lkfS9jYW1lcmEve2NhbWVyYV91aWR9L2NoYW5uZWwv", "e2NoYW5uZWxfdWlkfRK8AgouR2V0QXJjaGl2ZU1pbnV0ZXNDb21wYW55Q2Ft", "ZXJhQ2hhbm5lbFRpbWVzdGFtcBJELmtleWFwaXMudmMudjEuR2V0QXJjaGl2", "ZU1pbnV0ZXNDb21wYW55Q2FtZXJhQ2hhbm5lbFRpbWVzdGFtcFJlcXVlc3Qa", "RS5rZXlhcGlzLnZjLnYxLkdldEFyY2hpdmVNaW51dGVzQ29tcGFueUNhbWVy", "YUNoYW5uZWxUaW1lc3RhbXBSZXNwb25zZSJ9gtPkkwJ3EnUvdmMvYXBpL3Yx", "L2FyY2hpdmVfbWludXRlcy9jb21wYW55L3tjb21wYW55X2lkfS9jYW1lcmEv", "e2NhbWVyYV91aWR9L2NoYW5uZWwve2NoYW5uZWxfdWlkfS90aW1lc3RhbXAv", "e3RpbWVzdGFtcF92YWx1ZX1CfgoQcnUua2V5YXBpcy52Yy52MUIQS2V5YXBp", "c1ZjVjFQcm90b0gDUABaDi9rZXlhcGlzX3ZjX3Yx2AEB+AEBogILS0VZQVBJ", "U1ZDVjGqAg1LZXlhcGlzLlZjLlYxygINS2V5YXBpc1xWY1xWMeoCD0tleWFw", "aXM6OlZjOjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Keyapis.Vc.V1.KeyapisVcCameraV1Reflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.ArchiveMinuteInterval), global::Keyapis.Vc.V1.ArchiveMinuteInterval.Parser, new[]{ "SinceTimestamp", "TillTimestamp" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.CameraArchiveMinuteIntervals), global::Keyapis.Vc.V1.CameraArchiveMinuteIntervals.Parser, new[]{ "Available", "Frozen" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.ArchiveMinute), global::Keyapis.Vc.V1.ArchiveMinute.Parser, new[]{ "CompanyId", "CameraUid", "ChannelUid", "Data", "Size", "Md5" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelRequest), global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelRequest.Parser, new[]{ "CompanyId", "CameraUid", "ChannelUid", "SinceTimestamp", "TillTimestamp" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelResponse), global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelResponse.Types.Error), global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampRequest), global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampRequest.Parser, new[]{ "CompanyId", "CameraUid", "ChannelUid", "TimestampValue" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse), global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error), global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error.Parser, new[]{ "Validation", "VcfrontServiceError" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error.Types.VcfrontServiceError), global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error.Types.VcfrontServiceError.Parser, new[]{ "Text" }, null, null, null, null)})}) })); } #endregion } #region Messages /// /// Интервал архивной минутки /// public sealed partial class ArchiveMinuteInterval : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ArchiveMinuteInterval()); 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.KeyapisVcArchiveMinutesV1Reflection.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 ArchiveMinuteInterval() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ArchiveMinuteInterval(ArchiveMinuteInterval other) : this() { sinceTimestamp_ = other.sinceTimestamp_; tillTimestamp_ = other.tillTimestamp_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ArchiveMinuteInterval Clone() { return new ArchiveMinuteInterval(this); } /// Field number for the "since_timestamp" field. public const int SinceTimestampFieldNumber = 1; private double sinceTimestamp_; /// /// Начало минутки. /// Дата в формате Unix. /// Пример 1598269021.755 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double SinceTimestamp { get { return sinceTimestamp_; } set { sinceTimestamp_ = value; } } /// Field number for the "till_timestamp" field. public const int TillTimestampFieldNumber = 2; private double tillTimestamp_; /// /// Конец минутки. /// Дата в формате Unix. /// Пример 1598269021.755 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double TillTimestamp { get { return tillTimestamp_; } set { tillTimestamp_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as ArchiveMinuteInterval); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ArchiveMinuteInterval other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SinceTimestamp, other.SinceTimestamp)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TillTimestamp, other.TillTimestamp)) 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 (SinceTimestamp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SinceTimestamp); if (TillTimestamp != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TillTimestamp); 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 (SinceTimestamp != 0D) { output.WriteRawTag(9); output.WriteDouble(SinceTimestamp); } if (TillTimestamp != 0D) { output.WriteRawTag(17); output.WriteDouble(TillTimestamp); } 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 (SinceTimestamp != 0D) { output.WriteRawTag(9); output.WriteDouble(SinceTimestamp); } if (TillTimestamp != 0D) { output.WriteRawTag(17); output.WriteDouble(TillTimestamp); } 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 (SinceTimestamp != 0D) { size += 1 + 8; } if (TillTimestamp != 0D) { size += 1 + 8; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ArchiveMinuteInterval other) { if (other == null) { return; } if (other.SinceTimestamp != 0D) { SinceTimestamp = other.SinceTimestamp; } if (other.TillTimestamp != 0D) { TillTimestamp = other.TillTimestamp; } _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 9: { SinceTimestamp = input.ReadDouble(); break; } case 17: { TillTimestamp = input.ReadDouble(); 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 9: { SinceTimestamp = input.ReadDouble(); break; } case 17: { TillTimestamp = input.ReadDouble(); break; } } } } #endif } /// /// Интервалы архивных минуток камеры /// public sealed partial class CameraArchiveMinuteIntervals : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CameraArchiveMinuteIntervals()); 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.KeyapisVcArchiveMinutesV1Reflection.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 CameraArchiveMinuteIntervals() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CameraArchiveMinuteIntervals(CameraArchiveMinuteIntervals other) : this() { available_ = other.available_.Clone(); frozen_ = other.frozen_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CameraArchiveMinuteIntervals Clone() { return new CameraArchiveMinuteIntervals(this); } /// Field number for the "available" field. public const int AvailableFieldNumber = 1; private static readonly pb::FieldCodec _repeated_available_codec = pb::FieldCodec.ForMessage(10, global::Keyapis.Vc.V1.ArchiveMinuteInterval.Parser); private readonly pbc::RepeatedField available_ = new pbc::RepeatedField(); /// /// Доступные минутки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Available { get { return available_; } } /// Field number for the "frozen" field. public const int FrozenFieldNumber = 2; private static readonly pb::FieldCodec _repeated_frozen_codec = pb::FieldCodec.ForMessage(18, global::Keyapis.Vc.V1.ArchiveMinuteInterval.Parser); private readonly pbc::RepeatedField frozen_ = new pbc::RepeatedField(); /// /// Замороженные минутки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Frozen { get { return frozen_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CameraArchiveMinuteIntervals); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CameraArchiveMinuteIntervals other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!available_.Equals(other.available_)) return false; if(!frozen_.Equals(other.frozen_)) 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 ^= available_.GetHashCode(); hash ^= frozen_.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 available_.WriteTo(output, _repeated_available_codec); frozen_.WriteTo(output, _repeated_frozen_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) { available_.WriteTo(ref output, _repeated_available_codec); frozen_.WriteTo(ref output, _repeated_frozen_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 += available_.CalculateSize(_repeated_available_codec); size += frozen_.CalculateSize(_repeated_frozen_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CameraArchiveMinuteIntervals other) { if (other == null) { return; } available_.Add(other.available_); frozen_.Add(other.frozen_); _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: { available_.AddEntriesFrom(input, _repeated_available_codec); break; } case 18: { frozen_.AddEntriesFrom(input, _repeated_frozen_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: { available_.AddEntriesFrom(ref input, _repeated_available_codec); break; } case 18: { frozen_.AddEntriesFrom(ref input, _repeated_frozen_codec); break; } } } } #endif } /// /// Информация об архивной минутке /// public sealed partial class ArchiveMinute : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ArchiveMinute()); 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.KeyapisVcArchiveMinutesV1Reflection.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 ArchiveMinute() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ArchiveMinute(ArchiveMinute other) : this() { companyId_ = other.companyId_; cameraUid_ = other.cameraUid_; channelUid_ = other.channelUid_; data_ = other.data_ != null ? other.data_.Clone() : null; size_ = other.size_; md5_ = other.md5_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ArchiveMinute Clone() { return new ArchiveMinute(this); } /// Field number for the "company_id" field. public const int CompanyIdFieldNumber = 1; 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 "camera_uid" field. public const int CameraUidFieldNumber = 2; private string cameraUid_ = ""; /// /// Идентификатор камеры /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CameraUid { get { return cameraUid_; } set { cameraUid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "channel_uid" field. public const int ChannelUidFieldNumber = 3; private string channelUid_ = ""; /// /// Идентификатор канала /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ChannelUid { get { return channelUid_; } set { channelUid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "data" field. public const int DataFieldNumber = 4; private global::Keyapis.Vc.V1.ArchiveMinuteInterval data_; /// /// Границы архивной минутки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Vc.V1.ArchiveMinuteInterval Data { get { return data_; } set { data_ = value; } } /// Field number for the "size" field. public const int SizeFieldNumber = 5; private int size_; /// /// Размер /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Size { get { return size_; } set { size_ = value; } } /// Field number for the "md5" field. public const int Md5FieldNumber = 6; private string md5_ = ""; /// /// Хэш md5 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Md5 { get { return md5_; } set { md5_ = 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 ArchiveMinute); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ArchiveMinute other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (CompanyId != other.CompanyId) return false; if (CameraUid != other.CameraUid) return false; if (ChannelUid != other.ChannelUid) return false; if (!object.Equals(Data, other.Data)) return false; if (Size != other.Size) return false; if (Md5 != other.Md5) 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 (CompanyId != 0) hash ^= CompanyId.GetHashCode(); if (CameraUid.Length != 0) hash ^= CameraUid.GetHashCode(); if (ChannelUid.Length != 0) hash ^= ChannelUid.GetHashCode(); if (data_ != null) hash ^= Data.GetHashCode(); if (Size != 0) hash ^= Size.GetHashCode(); if (Md5.Length != 0) hash ^= Md5.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 (CompanyId != 0) { output.WriteRawTag(8); output.WriteInt32(CompanyId); } if (CameraUid.Length != 0) { output.WriteRawTag(18); output.WriteString(CameraUid); } if (ChannelUid.Length != 0) { output.WriteRawTag(26); output.WriteString(ChannelUid); } if (data_ != null) { output.WriteRawTag(34); output.WriteMessage(Data); } if (Size != 0) { output.WriteRawTag(40); output.WriteInt32(Size); } if (Md5.Length != 0) { output.WriteRawTag(50); output.WriteString(Md5); } 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 (CompanyId != 0) { output.WriteRawTag(8); output.WriteInt32(CompanyId); } if (CameraUid.Length != 0) { output.WriteRawTag(18); output.WriteString(CameraUid); } if (ChannelUid.Length != 0) { output.WriteRawTag(26); output.WriteString(ChannelUid); } if (data_ != null) { output.WriteRawTag(34); output.WriteMessage(Data); } if (Size != 0) { output.WriteRawTag(40); output.WriteInt32(Size); } if (Md5.Length != 0) { output.WriteRawTag(50); output.WriteString(Md5); } 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 (CompanyId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompanyId); } if (CameraUid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CameraUid); } if (ChannelUid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelUid); } if (data_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (Size != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Size); } if (Md5.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Md5); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ArchiveMinute other) { if (other == null) { return; } if (other.CompanyId != 0) { CompanyId = other.CompanyId; } if (other.CameraUid.Length != 0) { CameraUid = other.CameraUid; } if (other.ChannelUid.Length != 0) { ChannelUid = other.ChannelUid; } if (other.data_ != null) { if (data_ == null) { Data = new global::Keyapis.Vc.V1.ArchiveMinuteInterval(); } Data.MergeFrom(other.Data); } if (other.Size != 0) { Size = other.Size; } if (other.Md5.Length != 0) { Md5 = other.Md5; } _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: { CompanyId = input.ReadInt32(); break; } case 18: { CameraUid = input.ReadString(); break; } case 26: { ChannelUid = input.ReadString(); break; } case 34: { if (data_ == null) { Data = new global::Keyapis.Vc.V1.ArchiveMinuteInterval(); } input.ReadMessage(Data); break; } case 40: { Size = input.ReadInt32(); break; } case 50: { Md5 = 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: { CompanyId = input.ReadInt32(); break; } case 18: { CameraUid = input.ReadString(); break; } case 26: { ChannelUid = input.ReadString(); break; } case 34: { if (data_ == null) { Data = new global::Keyapis.Vc.V1.ArchiveMinuteInterval(); } input.ReadMessage(Data); break; } case 40: { Size = input.ReadInt32(); break; } case 50: { Md5 = input.ReadString(); break; } } } } #endif } /// /// Запрос получения архивных минуток для канала камеры компании /// public sealed partial class GetArchiveMinutesCompanyCameraChannelRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetArchiveMinutesCompanyCameraChannelRequest()); 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.KeyapisVcArchiveMinutesV1Reflection.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 GetArchiveMinutesCompanyCameraChannelRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetArchiveMinutesCompanyCameraChannelRequest(GetArchiveMinutesCompanyCameraChannelRequest other) : this() { companyId_ = other.companyId_; cameraUid_ = other.cameraUid_; channelUid_ = other.channelUid_; SinceTimestamp = other.SinceTimestamp; TillTimestamp = other.TillTimestamp; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetArchiveMinutesCompanyCameraChannelRequest Clone() { return new GetArchiveMinutesCompanyCameraChannelRequest(this); } /// Field number for the "company_id" field. public const int CompanyIdFieldNumber = 1; private int companyId_; /// /// Идентификатор компании. /// # Диапазон: 1..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CompanyId { get { return companyId_; } set { companyId_ = value; } } /// Field number for the "camera_uid" field. public const int CameraUidFieldNumber = 2; private string cameraUid_ = ""; /// /// Идентификатор камеры /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CameraUid { get { return cameraUid_; } set { cameraUid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "channel_uid" field. public const int ChannelUidFieldNumber = 3; private string channelUid_ = ""; /// /// Идентификатор канала /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ChannelUid { get { return channelUid_; } set { channelUid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "since_timestamp" field. public const int SinceTimestampFieldNumber = 4; private static readonly pb::FieldCodec _single_sinceTimestamp_codec = pb::FieldCodec.ForStructWrapper(34); private double? sinceTimestamp_; /// /// Начало промежутка минуток. /// Дата в формате Unix. /// Пример 1598269021.755. /// # Не превышает: till_timestamp /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double? SinceTimestamp { get { return sinceTimestamp_; } set { sinceTimestamp_ = value; } } /// Field number for the "till_timestamp" field. public const int TillTimestampFieldNumber = 5; private static readonly pb::FieldCodec _single_tillTimestamp_codec = pb::FieldCodec.ForStructWrapper(42); private double? tillTimestamp_; /// /// Конец промежутка минуток. /// Дата в формате Unix. /// Пример 1598269021.755 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public double? TillTimestamp { get { return tillTimestamp_; } set { tillTimestamp_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetArchiveMinutesCompanyCameraChannelRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetArchiveMinutesCompanyCameraChannelRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (CompanyId != other.CompanyId) return false; if (CameraUid != other.CameraUid) return false; if (ChannelUid != other.ChannelUid) return false; if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(SinceTimestamp, other.SinceTimestamp)) return false; if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(TillTimestamp, other.TillTimestamp)) 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 (CompanyId != 0) hash ^= CompanyId.GetHashCode(); if (CameraUid.Length != 0) hash ^= CameraUid.GetHashCode(); if (ChannelUid.Length != 0) hash ^= ChannelUid.GetHashCode(); if (sinceTimestamp_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(SinceTimestamp); if (tillTimestamp_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(TillTimestamp); 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 (CompanyId != 0) { output.WriteRawTag(8); output.WriteInt32(CompanyId); } if (CameraUid.Length != 0) { output.WriteRawTag(18); output.WriteString(CameraUid); } if (ChannelUid.Length != 0) { output.WriteRawTag(26); output.WriteString(ChannelUid); } if (sinceTimestamp_ != null) { _single_sinceTimestamp_codec.WriteTagAndValue(output, SinceTimestamp); } if (tillTimestamp_ != null) { _single_tillTimestamp_codec.WriteTagAndValue(output, TillTimestamp); } 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 (CompanyId != 0) { output.WriteRawTag(8); output.WriteInt32(CompanyId); } if (CameraUid.Length != 0) { output.WriteRawTag(18); output.WriteString(CameraUid); } if (ChannelUid.Length != 0) { output.WriteRawTag(26); output.WriteString(ChannelUid); } if (sinceTimestamp_ != null) { _single_sinceTimestamp_codec.WriteTagAndValue(ref output, SinceTimestamp); } if (tillTimestamp_ != null) { _single_tillTimestamp_codec.WriteTagAndValue(ref output, TillTimestamp); } 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 (CompanyId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompanyId); } if (CameraUid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CameraUid); } if (ChannelUid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelUid); } if (sinceTimestamp_ != null) { size += _single_sinceTimestamp_codec.CalculateSizeWithTag(SinceTimestamp); } if (tillTimestamp_ != null) { size += _single_tillTimestamp_codec.CalculateSizeWithTag(TillTimestamp); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetArchiveMinutesCompanyCameraChannelRequest other) { if (other == null) { return; } if (other.CompanyId != 0) { CompanyId = other.CompanyId; } if (other.CameraUid.Length != 0) { CameraUid = other.CameraUid; } if (other.ChannelUid.Length != 0) { ChannelUid = other.ChannelUid; } if (other.sinceTimestamp_ != null) { if (sinceTimestamp_ == null || other.SinceTimestamp != 0D) { SinceTimestamp = other.SinceTimestamp; } } if (other.tillTimestamp_ != null) { if (tillTimestamp_ == null || other.TillTimestamp != 0D) { TillTimestamp = other.TillTimestamp; } } _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: { CompanyId = input.ReadInt32(); break; } case 18: { CameraUid = input.ReadString(); break; } case 26: { ChannelUid = input.ReadString(); break; } case 34: { double? value = _single_sinceTimestamp_codec.Read(input); if (sinceTimestamp_ == null || value != 0D) { SinceTimestamp = value; } break; } case 42: { double? value = _single_tillTimestamp_codec.Read(input); if (tillTimestamp_ == null || value != 0D) { TillTimestamp = 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: { CompanyId = input.ReadInt32(); break; } case 18: { CameraUid = input.ReadString(); break; } case 26: { ChannelUid = input.ReadString(); break; } case 34: { double? value = _single_sinceTimestamp_codec.Read(ref input); if (sinceTimestamp_ == null || value != 0D) { SinceTimestamp = value; } break; } case 42: { double? value = _single_tillTimestamp_codec.Read(ref input); if (tillTimestamp_ == null || value != 0D) { TillTimestamp = value; } break; } } } } #endif } /// /// Ответ на запрос получения архивных минуток для канала камеры компании /// public sealed partial class GetArchiveMinutesCompanyCameraChannelResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetArchiveMinutesCompanyCameraChannelResponse()); 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.KeyapisVcArchiveMinutesV1Reflection.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 GetArchiveMinutesCompanyCameraChannelResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetArchiveMinutesCompanyCameraChannelResponse(GetArchiveMinutesCompanyCameraChannelResponse 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 GetArchiveMinutesCompanyCameraChannelResponse Clone() { return new GetArchiveMinutesCompanyCameraChannelResponse(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.Vc.V1.CameraArchiveMinuteIntervals Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Vc.V1.CameraArchiveMinuteIntervals) 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.GetArchiveMinutesCompanyCameraChannelResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelResponse.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 GetArchiveMinutesCompanyCameraChannelResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetArchiveMinutesCompanyCameraChannelResponse 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(GetArchiveMinutesCompanyCameraChannelResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Vc.V1.CameraArchiveMinuteIntervals(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelResponse.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.CameraArchiveMinuteIntervals subBuilder = new global::Keyapis.Vc.V1.CameraArchiveMinuteIntervals(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelResponse.Types.Error subBuilder = new global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelResponse.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.CameraArchiveMinuteIntervals subBuilder = new global::Keyapis.Vc.V1.CameraArchiveMinuteIntervals(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelResponse.Types.Error subBuilder = new global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelResponse.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 GetArchiveMinutesCompanyCameraChannelResponse 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.GetArchiveMinutesCompanyCameraChannelResponse.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 } /// /// Запрос получения информации об архивной минутке для канала камеры компании /// public sealed partial class GetArchiveMinutesCompanyCameraChannelTimestampRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetArchiveMinutesCompanyCameraChannelTimestampRequest()); 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.KeyapisVcArchiveMinutesV1Reflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetArchiveMinutesCompanyCameraChannelTimestampRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetArchiveMinutesCompanyCameraChannelTimestampRequest(GetArchiveMinutesCompanyCameraChannelTimestampRequest other) : this() { companyId_ = other.companyId_; cameraUid_ = other.cameraUid_; channelUid_ = other.channelUid_; timestampValue_ = other.timestampValue_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetArchiveMinutesCompanyCameraChannelTimestampRequest Clone() { return new GetArchiveMinutesCompanyCameraChannelTimestampRequest(this); } /// Field number for the "company_id" field. public const int CompanyIdFieldNumber = 1; private int companyId_; /// /// Идентификатор компании. /// # Диапазон: 1..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CompanyId { get { return companyId_; } set { companyId_ = value; } } /// Field number for the "camera_uid" field. public const int CameraUidFieldNumber = 2; private string cameraUid_ = ""; /// /// Идентификатор камеры /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CameraUid { get { return cameraUid_; } set { cameraUid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "channel_uid" field. public const int ChannelUidFieldNumber = 3; private string channelUid_ = ""; /// /// Идентификатор канала /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ChannelUid { get { return channelUid_; } set { channelUid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "timestamp_value" field. public const int TimestampValueFieldNumber = 4; private long timestampValue_; /// /// Метка времени архивной минутки. /// Берется та минутка, которая попадает этой меткой времени в границы интервала архивной архивной минутки. /// Дата в формате Unix. /// Пример 1598269021 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long TimestampValue { get { return timestampValue_; } set { timestampValue_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetArchiveMinutesCompanyCameraChannelTimestampRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetArchiveMinutesCompanyCameraChannelTimestampRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (CompanyId != other.CompanyId) return false; if (CameraUid != other.CameraUid) return false; if (ChannelUid != other.ChannelUid) return false; if (TimestampValue != other.TimestampValue) 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 (CompanyId != 0) hash ^= CompanyId.GetHashCode(); if (CameraUid.Length != 0) hash ^= CameraUid.GetHashCode(); if (ChannelUid.Length != 0) hash ^= ChannelUid.GetHashCode(); if (TimestampValue != 0L) hash ^= TimestampValue.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 (CompanyId != 0) { output.WriteRawTag(8); output.WriteInt32(CompanyId); } if (CameraUid.Length != 0) { output.WriteRawTag(18); output.WriteString(CameraUid); } if (ChannelUid.Length != 0) { output.WriteRawTag(26); output.WriteString(ChannelUid); } if (TimestampValue != 0L) { output.WriteRawTag(32); output.WriteInt64(TimestampValue); } 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 (CompanyId != 0) { output.WriteRawTag(8); output.WriteInt32(CompanyId); } if (CameraUid.Length != 0) { output.WriteRawTag(18); output.WriteString(CameraUid); } if (ChannelUid.Length != 0) { output.WriteRawTag(26); output.WriteString(ChannelUid); } if (TimestampValue != 0L) { output.WriteRawTag(32); output.WriteInt64(TimestampValue); } 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 (CompanyId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(CompanyId); } if (CameraUid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CameraUid); } if (ChannelUid.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ChannelUid); } if (TimestampValue != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimestampValue); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetArchiveMinutesCompanyCameraChannelTimestampRequest other) { if (other == null) { return; } if (other.CompanyId != 0) { CompanyId = other.CompanyId; } if (other.CameraUid.Length != 0) { CameraUid = other.CameraUid; } if (other.ChannelUid.Length != 0) { ChannelUid = other.ChannelUid; } if (other.TimestampValue != 0L) { TimestampValue = other.TimestampValue; } _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: { CompanyId = input.ReadInt32(); break; } case 18: { CameraUid = input.ReadString(); break; } case 26: { ChannelUid = input.ReadString(); break; } case 32: { TimestampValue = 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: { CompanyId = input.ReadInt32(); break; } case 18: { CameraUid = input.ReadString(); break; } case 26: { ChannelUid = input.ReadString(); break; } case 32: { TimestampValue = input.ReadInt64(); break; } } } } #endif } /// /// Ответ на запрос получения информации об архивной минутке для канала камеры компании /// public sealed partial class GetArchiveMinutesCompanyCameraChannelTimestampResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetArchiveMinutesCompanyCameraChannelTimestampResponse()); 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.KeyapisVcArchiveMinutesV1Reflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetArchiveMinutesCompanyCameraChannelTimestampResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetArchiveMinutesCompanyCameraChannelTimestampResponse(GetArchiveMinutesCompanyCameraChannelTimestampResponse 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 GetArchiveMinutesCompanyCameraChannelTimestampResponse Clone() { return new GetArchiveMinutesCompanyCameraChannelTimestampResponse(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.Vc.V1.ArchiveMinute Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.Vc.V1.ArchiveMinute) 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.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.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 GetArchiveMinutesCompanyCameraChannelTimestampResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetArchiveMinutesCompanyCameraChannelTimestampResponse 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(GetArchiveMinutesCompanyCameraChannelTimestampResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.Vc.V1.ArchiveMinute(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.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.ArchiveMinute subBuilder = new global::Keyapis.Vc.V1.ArchiveMinute(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error subBuilder = new global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.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.ArchiveMinute subBuilder = new global::Keyapis.Vc.V1.ArchiveMinute(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error subBuilder = new global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.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 GetArchiveMinutesCompanyCameraChannelTimestampResponse 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.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; case ReasonOneofCase.VcfrontServiceError: VcfrontServiceError = other.VcfrontServiceError.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; } } /// Field number for the "vcfront_service_error" field. public const int VcfrontServiceErrorFieldNumber = 2; /// /// Ошибка взаимодействия с сервисом vcfront /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error.Types.VcfrontServiceError VcfrontServiceError { get { return reasonCase_ == ReasonOneofCase.VcfrontServiceError ? (global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error.Types.VcfrontServiceError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.VcfrontServiceError; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, VcfrontServiceError = 2, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (!object.Equals(VcfrontServiceError, other.VcfrontServiceError)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); if (reasonCase_ == ReasonOneofCase.VcfrontServiceError) hash ^= VcfrontServiceError.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (reasonCase_ == ReasonOneofCase.VcfrontServiceError) { output.WriteRawTag(18); output.WriteMessage(VcfrontServiceError); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (reasonCase_ == ReasonOneofCase.VcfrontServiceError) { output.WriteRawTag(18); output.WriteMessage(VcfrontServiceError); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (reasonCase_ == ReasonOneofCase.VcfrontServiceError) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(VcfrontServiceError); } 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; case ReasonOneofCase.VcfrontServiceError: if (VcfrontServiceError == null) { VcfrontServiceError = new global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error.Types.VcfrontServiceError(); } VcfrontServiceError.MergeFrom(other.VcfrontServiceError); 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; } case 18: { global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error.Types.VcfrontServiceError subBuilder = new global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error.Types.VcfrontServiceError(); if (reasonCase_ == ReasonOneofCase.VcfrontServiceError) { subBuilder.MergeFrom(VcfrontServiceError); } input.ReadMessage(subBuilder); VcfrontServiceError = 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; } case 18: { global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error.Types.VcfrontServiceError subBuilder = new global::Keyapis.Vc.V1.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error.Types.VcfrontServiceError(); if (reasonCase_ == ReasonOneofCase.VcfrontServiceError) { subBuilder.MergeFrom(VcfrontServiceError); } input.ReadMessage(subBuilder); VcfrontServiceError = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the Error message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка взаимодействия с сервисом vcfront /// public sealed partial class VcfrontServiceError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VcfrontServiceError()); 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.GetArchiveMinutesCompanyCameraChannelTimestampResponse.Types.Error.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 VcfrontServiceError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VcfrontServiceError(VcfrontServiceError other) : this() { text_ = other.text_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VcfrontServiceError Clone() { return new VcfrontServiceError(this); } /// Field number for the "text" field. public const int TextFieldNumber = 1; private string text_ = ""; /// /// Текст ошибки /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Text { get { return text_; } set { text_ = 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 VcfrontServiceError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(VcfrontServiceError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Text != other.Text) 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 (Text.Length != 0) hash ^= Text.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 (Text.Length != 0) { output.WriteRawTag(10); output.WriteString(Text); } 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 (Text.Length != 0) { output.WriteRawTag(10); output.WriteString(Text); } 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 (Text.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Text); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(VcfrontServiceError other) { if (other == null) { return; } if (other.Text.Length != 0) { Text = other.Text; } _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: { Text = 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: { Text = input.ReadString(); break; } } } } #endif } } #endregion } } #endregion } #endregion } #endregion Designer generated code