// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: deviceapis/device/v1/deviceapis_device_video_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 Deviceapis.Device.V1 { /// Holder for reflection information generated from deviceapis/device/v1/deviceapis_device_video_v1.proto public static partial class DeviceapisDeviceVideoV1Reflection { #region Descriptor /// File descriptor for deviceapis/device/v1/deviceapis_device_video_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static DeviceapisDeviceVideoV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjVkZXZpY2VhcGlzL2RldmljZS92MS9kZXZpY2VhcGlzX2RldmljZV92aWRl", "b192MS5wcm90bxIUZGV2aWNlYXBpcy5kZXZpY2UudjEaNmRldmljZWFwaXMv", "ZGV2aWNlL3YxL2RldmljZWFwaXNfZGV2aWNlX2NvbW1vbl92MS5wcm90bxoc", "Z29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL2FwaS9maWVs", "ZF9iZWhhdmlvci5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2su", "cHJvdG8aLnByb3RvYy1nZW4tb3BlbmFwaXYyL29wdGlvbnMvYW5ub3RhdGlv", "bnMucHJvdG8igQEKF0VkaXRWaWRlb0NoYW5uZWxSZXF1ZXN0EjUKBGRhdGEY", "ASABKAsyIi5kZXZpY2VhcGlzLmRldmljZS52MS5WaWRlb0NoYW5uZWxCA+BB", "AhIvCgt1cGRhdGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVs", "ZE1hc2si7QEKGEVkaXRWaWRlb0NoYW5uZWxSZXNwb25zZRIyCgRkYXRhGAEg", "ASgLMiIuZGV2aWNlYXBpcy5kZXZpY2UudjEuVmlkZW9DaGFubmVsSAASRQoF", "ZXJyb3IYAiABKAsyNC5kZXZpY2VhcGlzLmRldmljZS52MS5FZGl0VmlkZW9D", "aGFubmVsUmVzcG9uc2UuRXJyb3JIABpOCgVFcnJvchI7Cgp2YWxpZGF0aW9u", "GAEgASgLMiUuZGV2aWNlYXBpcy5kZXZpY2UudjEuVmFsaWRhdGlvbkVycm9y", "SABCCAoGcmVhc29uQgYKBHR5cGUiHAoaR2V0VmlkZW9DaGFubmVsTGlzdFJl", "cXVlc3QiTwobR2V0VmlkZW9DaGFubmVsTGlzdFJlc3BvbnNlEjAKBGRhdGEY", "ASADKAsyIi5kZXZpY2VhcGlzLmRldmljZS52MS5WaWRlb0NoYW5uZWwiiwgK", "DFZpZGVvQ2hhbm5lbBIpCg1jaGFuZWxfbnVtYmVyGAEgASgFQhLgQQKSQQxK", "ATBZAAAAAAAAJEASIAoKaXNfZW5hYmxlZBgCIAEoCEIM4EECkkEGSgR0cnVl", "ElcKD3Jlc29sdXRpb25fdHlwZRgDIAEoDjIxLmRldmljZWFwaXMuZGV2aWNl", "LnYxLlZpZGVvQ2hhbm5lbC5SZXNvbHV0aW9uVHlwZUILkkEISgZGVUxMSEQS", "TQoLZm9ybWF0X3R5cGUYBCABKA4yLS5kZXZpY2VhcGlzLmRldmljZS52MS5W", "aWRlb0NoYW5uZWwuRm9ybWF0VHlwZUIJkkEGSgRNUEVHEk8KDHByb2ZpbGVf", "dHlwZRgFIAEoDjIuLmRldmljZWFwaXMuZGV2aWNlLnYxLlZpZGVvQ2hhbm5l", "bC5Qcm9maWxlVHlwZUIJkkEGSgRISUdIEiYKA2ZwcxgGIAEoBUIZkkEWSgIy", "NVkAAAAAAAA+QGkAAAAAAADwPxImCgNnb3AYByABKAVCGZJBFkoCMjVZAAAA", "AAAAaUBpAAAAAAAA8D8SYQoWZmxvd19jb250cm9sX21vZGVfdHlwZRgIIAEo", "DjI2LmRldmljZWFwaXMuZGV2aWNlLnYxLlZpZGVvQ2hhbm5lbC5GbG93Q29u", "dHJvbE1vZGVUeXBlQgmSQQZKBEhJR0gSLAoIYml0ZXJhdGUYCSABKAVCGpJB", "F0oDMTAwWQAAAAAAQM9AaQAAAAAAAFlAEiAKDWlzX3J0c3BfYXVkaW8YCiAB", "KAhCCZJBBkoEdHJ1ZRIiCg9pc191c2VkX2Zvcl9zaXAYCyABKAhCCZJBBkoE", "dHJ1ZSJzChNGbG93Q29udHJvbE1vZGVUeXBlEiIKHkZMT1dfQ09OVFJPTF9N", "T0RFX1RZUEVfVU5LTk9XThAAEgcKA1ZCUhABEgcKA0NCUhACEggKBENWQlIQ", "AxIICgRBVkJSEAQSCAoERklYUBAFEggKBFFWQlIQBiJSCgpGb3JtYXRUeXBl", "EhcKE0ZPUk1BVF9UWVBFX1VOS05PV04QABIICgRNUEVHEAESCAoESDI2NBAC", "Eg0KCUgyNjRfUExVUxADEggKBEgyNjUQBCJdCgtQcm9maWxlVHlwZRIYChRQ", "Uk9GSUxFX1RZUEVfVU5LTk9XThAAEhAKDFBST0ZJTEVfSElHSBABEhAKDFBS", "T0ZJTEVfTUFJThACEhAKDFBST0ZJTEVfQkFTRRADImYKDlJlc29sdXRpb25U", "eXBlEhsKF1JFU09MVVRJT05fVFlQRV9VTktOT1dOEAASBwoDUjJLEAESCgoG", "RlVMTEhEEAISBgoCSEQQAxIGCgJTRBAEEgkKBVI0Q0lGEAUSBwoDVkdBEAYy", "8gIKE1ZpZGVvQ2hhbm5lbFNlcnZpY2USsgEKEEVkaXRWaWRlb0NoYW5uZWwS", "LS5kZXZpY2VhcGlzLmRldmljZS52MS5FZGl0VmlkZW9DaGFubmVsUmVxdWVz", "dBouLmRldmljZWFwaXMuZGV2aWNlLnYxLkVkaXRWaWRlb0NoYW5uZWxSZXNw", "b25zZSI/gtPkkwI5MjEvZGV2aWNlL2FwaS92MS92aWRlb19jaGFubmVsL3tk", "YXRhLmNoYW5lbF9udW1iZXJ9OgRkYXRhEqUBChNHZXRWaWRlb0NoYW5uZWxM", "aXN0EjAuZGV2aWNlYXBpcy5kZXZpY2UudjEuR2V0VmlkZW9DaGFubmVsTGlz", "dFJlcXVlc3QaMS5kZXZpY2VhcGlzLmRldmljZS52MS5HZXRWaWRlb0NoYW5u", "ZWxMaXN0UmVzcG9uc2UiKYLT5JMCIxIhL2RldmljZS9hcGkvdjEvdmlkZW9f", "Y2hhbm5lbC9saXN0Qq8BChdydS5kZXZpY2VhcGlzLmRldmljZS52MUIXRGV2", "aWNlYXBpc0RldmljZVYxUHJvdG9IA1AAWhUvZGV2aWNlYXBpc19kZXZpY2Vf", "djHYAQH4AQGiAhJERVZJQ0VBUElTREVWSUNFVjGqAhREZXZpY2VhcGlzLkRl", "dmljZS5WMcoCFERldmljZWFwaXNcRGV2aWNlXFYx6gIWRGV2aWNlYXBpczo6", "RGV2aWNlOjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Deviceapis.Device.V1.DeviceapisDeviceCommonV1Reflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Grpc.Gateway.ProtocGenOpenapiv2.Options.AnnotationsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.EditVideoChannelRequest), global::Deviceapis.Device.V1.EditVideoChannelRequest.Parser, new[]{ "Data", "UpdateMask" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.EditVideoChannelResponse), global::Deviceapis.Device.V1.EditVideoChannelResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.EditVideoChannelResponse.Types.Error), global::Deviceapis.Device.V1.EditVideoChannelResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.GetVideoChannelListRequest), global::Deviceapis.Device.V1.GetVideoChannelListRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.GetVideoChannelListResponse), global::Deviceapis.Device.V1.GetVideoChannelListResponse.Parser, new[]{ "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.VideoChannel), global::Deviceapis.Device.V1.VideoChannel.Parser, new[]{ "ChanelNumber", "IsEnabled", "ResolutionType", "FormatType", "ProfileType", "Fps", "Gop", "FlowControlModeType", "Biterate", "IsRtspAudio", "IsUsedForSip" }, null, new[]{ typeof(global::Deviceapis.Device.V1.VideoChannel.Types.FlowControlModeType), typeof(global::Deviceapis.Device.V1.VideoChannel.Types.FormatType), typeof(global::Deviceapis.Device.V1.VideoChannel.Types.ProfileType), typeof(global::Deviceapis.Device.V1.VideoChannel.Types.ResolutionType) }, null, null) })); } #endregion } #region Messages /// /// Запрос редактирования единичной сущности VideoChannel по ключу /// public sealed partial class EditVideoChannelRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EditVideoChannelRequest()); 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::Deviceapis.Device.V1.DeviceapisDeviceVideoV1Reflection.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 EditVideoChannelRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EditVideoChannelRequest(EditVideoChannelRequest other) : this() { data_ = other.data_ != null ? other.data_.Clone() : null; updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EditVideoChannelRequest Clone() { return new EditVideoChannelRequest(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Deviceapis.Device.V1.VideoChannel data_; /// /// Настройки видеоконфига /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.VideoChannel Data { get { return data_; } set { data_ = value; } } /// Field number for the "update_mask" field. public const int UpdateMaskFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; /// /// Маска полей обновления /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { get { return updateMask_; } set { updateMask_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EditVideoChannelRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EditVideoChannelRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(UpdateMask, other.UpdateMask)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (data_ != null) hash ^= Data.GetHashCode(); if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } if (updateMask_ != null) { output.WriteRawTag(18); output.WriteMessage(UpdateMask); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } if (updateMask_ != null) { output.WriteRawTag(18); output.WriteMessage(UpdateMask); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (data_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (updateMask_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EditVideoChannelRequest other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Deviceapis.Device.V1.VideoChannel(); } Data.MergeFrom(other.Data); } if (other.updateMask_ != null) { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } UpdateMask.MergeFrom(other.UpdateMask); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (data_ == null) { Data = new global::Deviceapis.Device.V1.VideoChannel(); } input.ReadMessage(Data); break; } case 18: { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } input.ReadMessage(UpdateMask); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (data_ == null) { Data = new global::Deviceapis.Device.V1.VideoChannel(); } input.ReadMessage(Data); break; } case 18: { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } input.ReadMessage(UpdateMask); break; } } } } #endif } /// /// Ответ на запрос редактирования единичной сущности VideoChannel по ключу /// public sealed partial class EditVideoChannelResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EditVideoChannelResponse()); 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::Deviceapis.Device.V1.DeviceapisDeviceVideoV1Reflection.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 EditVideoChannelResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EditVideoChannelResponse(EditVideoChannelResponse 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 EditVideoChannelResponse Clone() { return new EditVideoChannelResponse(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::Deviceapis.Device.V1.VideoChannel Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Deviceapis.Device.V1.VideoChannel) 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::Deviceapis.Device.V1.EditVideoChannelResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Deviceapis.Device.V1.EditVideoChannelResponse.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 EditVideoChannelResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EditVideoChannelResponse 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(EditVideoChannelResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Deviceapis.Device.V1.VideoChannel(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Deviceapis.Device.V1.EditVideoChannelResponse.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::Deviceapis.Device.V1.VideoChannel subBuilder = new global::Deviceapis.Device.V1.VideoChannel(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Deviceapis.Device.V1.EditVideoChannelResponse.Types.Error subBuilder = new global::Deviceapis.Device.V1.EditVideoChannelResponse.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::Deviceapis.Device.V1.VideoChannel subBuilder = new global::Deviceapis.Device.V1.VideoChannel(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Deviceapis.Device.V1.EditVideoChannelResponse.Types.Error subBuilder = new global::Deviceapis.Device.V1.EditVideoChannelResponse.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 EditVideoChannelResponse 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::Deviceapis.Device.V1.EditVideoChannelResponse.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::Deviceapis.Device.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Deviceapis.Device.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::Deviceapis.Device.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::Deviceapis.Device.V1.ValidationError subBuilder = new global::Deviceapis.Device.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::Deviceapis.Device.V1.ValidationError subBuilder = new global::Deviceapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Запрос получения списка сущностей VideoChannel по фильтру /// public sealed partial class GetVideoChannelListRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetVideoChannelListRequest()); 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::Deviceapis.Device.V1.DeviceapisDeviceVideoV1Reflection.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 GetVideoChannelListRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetVideoChannelListRequest(GetVideoChannelListRequest other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetVideoChannelListRequest Clone() { return new GetVideoChannelListRequest(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetVideoChannelListRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetVideoChannelListRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetVideoChannelListRequest other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Ответ на запрос получения списка сущностей VideoChannel по фильтру /// public sealed partial class GetVideoChannelListResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetVideoChannelListResponse()); 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::Deviceapis.Device.V1.DeviceapisDeviceVideoV1Reflection.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 GetVideoChannelListResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetVideoChannelListResponse(GetVideoChannelListResponse other) : this() { data_ = other.data_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetVideoChannelListResponse Clone() { return new GetVideoChannelListResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private static readonly pb::FieldCodec _repeated_data_codec = pb::FieldCodec.ForMessage(10, global::Deviceapis.Device.V1.VideoChannel.Parser); private readonly pbc::RepeatedField data_ = new pbc::RepeatedField(); /// /// Список VideoChannel /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Data { get { return data_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetVideoChannelListResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetVideoChannelListResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!data_.Equals(other.data_)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; hash ^= data_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else data_.WriteTo(output, _repeated_data_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) { data_.WriteTo(ref output, _repeated_data_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 += data_.CalculateSize(_repeated_data_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetVideoChannelListResponse other) { if (other == null) { return; } data_.Add(other.data_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { data_.AddEntriesFrom(input, _repeated_data_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: { data_.AddEntriesFrom(ref input, _repeated_data_codec); break; } } } } #endif } /// /// Настройки видеоконфига /// public sealed partial class VideoChannel : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new VideoChannel()); 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::Deviceapis.Device.V1.DeviceapisDeviceVideoV1Reflection.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 VideoChannel() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoChannel(VideoChannel other) : this() { chanelNumber_ = other.chanelNumber_; isEnabled_ = other.isEnabled_; resolutionType_ = other.resolutionType_; formatType_ = other.formatType_; profileType_ = other.profileType_; fps_ = other.fps_; gop_ = other.gop_; flowControlModeType_ = other.flowControlModeType_; biterate_ = other.biterate_; isRtspAudio_ = other.isRtspAudio_; isUsedForSip_ = other.isUsedForSip_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public VideoChannel Clone() { return new VideoChannel(this); } /// Field number for the "chanel_number" field. public const int ChanelNumberFieldNumber = 1; private int chanelNumber_; /// /// Порядковый номер видеоконфига /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int ChanelNumber { get { return chanelNumber_; } set { chanelNumber_ = value; } } /// Field number for the "is_enabled" field. public const int IsEnabledFieldNumber = 2; private bool isEnabled_; /// /// Флаг активности /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsEnabled { get { return isEnabled_; } set { isEnabled_ = value; } } /// Field number for the "resolution_type" field. public const int ResolutionTypeFieldNumber = 3; private global::Deviceapis.Device.V1.VideoChannel.Types.ResolutionType resolutionType_ = global::Deviceapis.Device.V1.VideoChannel.Types.ResolutionType.Unknown; /// /// Тип разрешения видео /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.VideoChannel.Types.ResolutionType ResolutionType { get { return resolutionType_; } set { resolutionType_ = value; } } /// Field number for the "format_type" field. public const int FormatTypeFieldNumber = 4; private global::Deviceapis.Device.V1.VideoChannel.Types.FormatType formatType_ = global::Deviceapis.Device.V1.VideoChannel.Types.FormatType.Unknown; /// /// Формат видео /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.VideoChannel.Types.FormatType FormatType { get { return formatType_; } set { formatType_ = value; } } /// Field number for the "profile_type" field. public const int ProfileTypeFieldNumber = 5; private global::Deviceapis.Device.V1.VideoChannel.Types.ProfileType profileType_ = global::Deviceapis.Device.V1.VideoChannel.Types.ProfileType.Unknown; /// /// Профиль /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.VideoChannel.Types.ProfileType ProfileType { get { return profileType_; } set { profileType_ = value; } } /// Field number for the "fps" field. public const int FpsFieldNumber = 6; private int fps_; /// /// Частота кадров /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Fps { get { return fps_; } set { fps_ = value; } } /// Field number for the "gop" field. public const int GopFieldNumber = 7; private int gop_; /// /// Периодичность опорного кадра /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Gop { get { return gop_; } set { gop_ = value; } } /// Field number for the "flow_control_mode_type" field. public const int FlowControlModeTypeFieldNumber = 8; private global::Deviceapis.Device.V1.VideoChannel.Types.FlowControlModeType flowControlModeType_ = global::Deviceapis.Device.V1.VideoChannel.Types.FlowControlModeType.Unknown; /// /// Режим FlowControlModeType /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.VideoChannel.Types.FlowControlModeType FlowControlModeType { get { return flowControlModeType_; } set { flowControlModeType_ = value; } } /// Field number for the "biterate" field. public const int BiterateFieldNumber = 9; private int biterate_; /// /// Целевая скорость потока, килобит /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Biterate { get { return biterate_; } set { biterate_ = value; } } /// Field number for the "is_rtsp_audio" field. public const int IsRtspAudioFieldNumber = 10; private bool isRtspAudio_; /// /// Флаг rtsp_audio /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsRtspAudio { get { return isRtspAudio_; } set { isRtspAudio_ = value; } } /// Field number for the "is_used_for_sip" field. public const int IsUsedForSipFieldNumber = 11; private bool isUsedForSip_; /// /// Флаг use for sip /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsUsedForSip { get { return isUsedForSip_; } set { isUsedForSip_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as VideoChannel); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(VideoChannel other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ChanelNumber != other.ChanelNumber) return false; if (IsEnabled != other.IsEnabled) return false; if (ResolutionType != other.ResolutionType) return false; if (FormatType != other.FormatType) return false; if (ProfileType != other.ProfileType) return false; if (Fps != other.Fps) return false; if (Gop != other.Gop) return false; if (FlowControlModeType != other.FlowControlModeType) return false; if (Biterate != other.Biterate) return false; if (IsRtspAudio != other.IsRtspAudio) return false; if (IsUsedForSip != other.IsUsedForSip) 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 (ChanelNumber != 0) hash ^= ChanelNumber.GetHashCode(); if (IsEnabled != false) hash ^= IsEnabled.GetHashCode(); if (ResolutionType != global::Deviceapis.Device.V1.VideoChannel.Types.ResolutionType.Unknown) hash ^= ResolutionType.GetHashCode(); if (FormatType != global::Deviceapis.Device.V1.VideoChannel.Types.FormatType.Unknown) hash ^= FormatType.GetHashCode(); if (ProfileType != global::Deviceapis.Device.V1.VideoChannel.Types.ProfileType.Unknown) hash ^= ProfileType.GetHashCode(); if (Fps != 0) hash ^= Fps.GetHashCode(); if (Gop != 0) hash ^= Gop.GetHashCode(); if (FlowControlModeType != global::Deviceapis.Device.V1.VideoChannel.Types.FlowControlModeType.Unknown) hash ^= FlowControlModeType.GetHashCode(); if (Biterate != 0) hash ^= Biterate.GetHashCode(); if (IsRtspAudio != false) hash ^= IsRtspAudio.GetHashCode(); if (IsUsedForSip != false) hash ^= IsUsedForSip.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 (ChanelNumber != 0) { output.WriteRawTag(8); output.WriteInt32(ChanelNumber); } if (IsEnabled != false) { output.WriteRawTag(16); output.WriteBool(IsEnabled); } if (ResolutionType != global::Deviceapis.Device.V1.VideoChannel.Types.ResolutionType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) ResolutionType); } if (FormatType != global::Deviceapis.Device.V1.VideoChannel.Types.FormatType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) FormatType); } if (ProfileType != global::Deviceapis.Device.V1.VideoChannel.Types.ProfileType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) ProfileType); } if (Fps != 0) { output.WriteRawTag(48); output.WriteInt32(Fps); } if (Gop != 0) { output.WriteRawTag(56); output.WriteInt32(Gop); } if (FlowControlModeType != global::Deviceapis.Device.V1.VideoChannel.Types.FlowControlModeType.Unknown) { output.WriteRawTag(64); output.WriteEnum((int) FlowControlModeType); } if (Biterate != 0) { output.WriteRawTag(72); output.WriteInt32(Biterate); } if (IsRtspAudio != false) { output.WriteRawTag(80); output.WriteBool(IsRtspAudio); } if (IsUsedForSip != false) { output.WriteRawTag(88); output.WriteBool(IsUsedForSip); } 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 (ChanelNumber != 0) { output.WriteRawTag(8); output.WriteInt32(ChanelNumber); } if (IsEnabled != false) { output.WriteRawTag(16); output.WriteBool(IsEnabled); } if (ResolutionType != global::Deviceapis.Device.V1.VideoChannel.Types.ResolutionType.Unknown) { output.WriteRawTag(24); output.WriteEnum((int) ResolutionType); } if (FormatType != global::Deviceapis.Device.V1.VideoChannel.Types.FormatType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) FormatType); } if (ProfileType != global::Deviceapis.Device.V1.VideoChannel.Types.ProfileType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) ProfileType); } if (Fps != 0) { output.WriteRawTag(48); output.WriteInt32(Fps); } if (Gop != 0) { output.WriteRawTag(56); output.WriteInt32(Gop); } if (FlowControlModeType != global::Deviceapis.Device.V1.VideoChannel.Types.FlowControlModeType.Unknown) { output.WriteRawTag(64); output.WriteEnum((int) FlowControlModeType); } if (Biterate != 0) { output.WriteRawTag(72); output.WriteInt32(Biterate); } if (IsRtspAudio != false) { output.WriteRawTag(80); output.WriteBool(IsRtspAudio); } if (IsUsedForSip != false) { output.WriteRawTag(88); output.WriteBool(IsUsedForSip); } 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 (ChanelNumber != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChanelNumber); } if (IsEnabled != false) { size += 1 + 1; } if (ResolutionType != global::Deviceapis.Device.V1.VideoChannel.Types.ResolutionType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResolutionType); } if (FormatType != global::Deviceapis.Device.V1.VideoChannel.Types.FormatType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FormatType); } if (ProfileType != global::Deviceapis.Device.V1.VideoChannel.Types.ProfileType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProfileType); } if (Fps != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Fps); } if (Gop != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Gop); } if (FlowControlModeType != global::Deviceapis.Device.V1.VideoChannel.Types.FlowControlModeType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FlowControlModeType); } if (Biterate != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Biterate); } if (IsRtspAudio != false) { size += 1 + 1; } if (IsUsedForSip != false) { size += 1 + 1; } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(VideoChannel other) { if (other == null) { return; } if (other.ChanelNumber != 0) { ChanelNumber = other.ChanelNumber; } if (other.IsEnabled != false) { IsEnabled = other.IsEnabled; } if (other.ResolutionType != global::Deviceapis.Device.V1.VideoChannel.Types.ResolutionType.Unknown) { ResolutionType = other.ResolutionType; } if (other.FormatType != global::Deviceapis.Device.V1.VideoChannel.Types.FormatType.Unknown) { FormatType = other.FormatType; } if (other.ProfileType != global::Deviceapis.Device.V1.VideoChannel.Types.ProfileType.Unknown) { ProfileType = other.ProfileType; } if (other.Fps != 0) { Fps = other.Fps; } if (other.Gop != 0) { Gop = other.Gop; } if (other.FlowControlModeType != global::Deviceapis.Device.V1.VideoChannel.Types.FlowControlModeType.Unknown) { FlowControlModeType = other.FlowControlModeType; } if (other.Biterate != 0) { Biterate = other.Biterate; } if (other.IsRtspAudio != false) { IsRtspAudio = other.IsRtspAudio; } if (other.IsUsedForSip != false) { IsUsedForSip = other.IsUsedForSip; } _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: { ChanelNumber = input.ReadInt32(); break; } case 16: { IsEnabled = input.ReadBool(); break; } case 24: { ResolutionType = (global::Deviceapis.Device.V1.VideoChannel.Types.ResolutionType) input.ReadEnum(); break; } case 32: { FormatType = (global::Deviceapis.Device.V1.VideoChannel.Types.FormatType) input.ReadEnum(); break; } case 40: { ProfileType = (global::Deviceapis.Device.V1.VideoChannel.Types.ProfileType) input.ReadEnum(); break; } case 48: { Fps = input.ReadInt32(); break; } case 56: { Gop = input.ReadInt32(); break; } case 64: { FlowControlModeType = (global::Deviceapis.Device.V1.VideoChannel.Types.FlowControlModeType) input.ReadEnum(); break; } case 72: { Biterate = input.ReadInt32(); break; } case 80: { IsRtspAudio = input.ReadBool(); break; } case 88: { IsUsedForSip = input.ReadBool(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { ChanelNumber = input.ReadInt32(); break; } case 16: { IsEnabled = input.ReadBool(); break; } case 24: { ResolutionType = (global::Deviceapis.Device.V1.VideoChannel.Types.ResolutionType) input.ReadEnum(); break; } case 32: { FormatType = (global::Deviceapis.Device.V1.VideoChannel.Types.FormatType) input.ReadEnum(); break; } case 40: { ProfileType = (global::Deviceapis.Device.V1.VideoChannel.Types.ProfileType) input.ReadEnum(); break; } case 48: { Fps = input.ReadInt32(); break; } case 56: { Gop = input.ReadInt32(); break; } case 64: { FlowControlModeType = (global::Deviceapis.Device.V1.VideoChannel.Types.FlowControlModeType) input.ReadEnum(); break; } case 72: { Biterate = input.ReadInt32(); break; } case 80: { IsRtspAudio = input.ReadBool(); break; } case 88: { IsUsedForSip = input.ReadBool(); break; } } } } #endif #region Nested types /// Container for nested types declared in the VideoChannel message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Режим Flow control mode /// public enum FlowControlModeType { /// /// Значение не указано /// [pbr::OriginalName("FLOW_CONTROL_MODE_TYPE_UNKNOWN")] Unknown = 0, /// /// Режим VBR /// [pbr::OriginalName("VBR")] Vbr = 1, /// /// Режим CBR /// [pbr::OriginalName("CBR")] Cbr = 2, /// /// Режим CVBR /// [pbr::OriginalName("CVBR")] Cvbr = 3, /// /// Режим AVBR /// [pbr::OriginalName("AVBR")] Avbr = 4, /// /// Режим FIXP /// [pbr::OriginalName("FIXP")] Fixp = 5, /// /// Режим QVBR /// [pbr::OriginalName("QVBR")] Qvbr = 6, } /// /// Формат видео /// public enum FormatType { /// /// Значение не указано /// [pbr::OriginalName("FORMAT_TYPE_UNKNOWN")] Unknown = 0, /// /// Формат mjpeg /// [pbr::OriginalName("MPEG")] Mpeg = 1, /// /// Формат h.264 /// [pbr::OriginalName("H264")] H264 = 2, /// /// Формат h.264+ /// [pbr::OriginalName("H264_PLUS")] H264Plus = 3, /// /// Формат h.265 /// [pbr::OriginalName("H265")] H265 = 4, } /// /// Профиль /// public enum ProfileType { /// /// Значение не указано /// [pbr::OriginalName("PROFILE_TYPE_UNKNOWN")] Unknown = 0, /// /// Высокий /// [pbr::OriginalName("PROFILE_HIGH")] ProfileHigh = 1, /// /// Основной /// [pbr::OriginalName("PROFILE_MAIN")] ProfileMain = 2, /// /// Базовый /// [pbr::OriginalName("PROFILE_BASE")] ProfileBase = 3, } /// /// Тип разрешения видео /// public enum ResolutionType { /// /// Значение не указано /// [pbr::OriginalName("RESOLUTION_TYPE_UNKNOWN")] Unknown = 0, /// /// Тип разрешения 2K 2560*1440 /// [pbr::OriginalName("R2K")] R2K = 1, /// /// Тип разрешения FULLHD 1920*1080 /// [pbr::OriginalName("FULLHD")] Fullhd = 2, /// /// Тип разрешения HD 1280*720 /// [pbr::OriginalName("HD")] Hd = 3, /// /// Тип разрешения SD 720*576 /// [pbr::OriginalName("SD")] Sd = 4, /// /// Тип разрешения 4CIF 704*576 /// [pbr::OriginalName("R4CIF")] R4Cif = 5, /// /// Тип разрешения VGA 640*480 /// [pbr::OriginalName("VGA")] Vga = 6, } } #endregion } #endregion } #endregion Designer generated code