// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: deviceapis/device/v1/deviceapis_device_safe_osd_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_safe_osd_v1.proto public static partial class DeviceapisDeviceSafeOsdV1Reflection { #region Descriptor /// File descriptor for deviceapis/device/v1/deviceapis_device_safe_osd_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static DeviceapisDeviceSafeOsdV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjhkZXZpY2VhcGlzL2RldmljZS92MS9kZXZpY2VhcGlzX2RldmljZV9zYWZl", "X29zZF92MS5wcm90bxIUZGV2aWNlYXBpcy5kZXZpY2UudjEaNmRldmljZWFw", "aXMvZGV2aWNlL3YxL2RldmljZWFwaXNfZGV2aWNlX2NvbW1vbl92MS5wcm90", "bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL2FwaS9m", "aWVsZF9iZWhhdmlvci5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21h", "c2sucHJvdG8aLnByb3RvYy1nZW4tb3BlbmFwaXYyL29wdGlvbnMvYW5ub3Rh", "dGlvbnMucHJvdG8ifwoWRWRpdFNhZmVDaXR5T3NkUmVxdWVzdBI0CgRkYXRh", "GAEgASgLMiEuZGV2aWNlYXBpcy5kZXZpY2UudjEuU2FmZUNpdHlPc2RCA+BB", "AhIvCgt1cGRhdGVfbWFzaxgCIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5GaWVs", "ZE1hc2si6gEKF0VkaXRTYWZlQ2l0eU9zZFJlc3BvbnNlEjEKBGRhdGEYASAB", "KAsyIS5kZXZpY2VhcGlzLmRldmljZS52MS5TYWZlQ2l0eU9zZEgAEkQKBWVy", "cm9yGAIgASgLMjMuZGV2aWNlYXBpcy5kZXZpY2UudjEuRWRpdFNhZmVDaXR5", "T3NkUmVzcG9uc2UuRXJyb3JIABpOCgVFcnJvchI7Cgp2YWxpZGF0aW9uGAEg", "ASgLMiUuZGV2aWNlYXBpcy5kZXZpY2UudjEuVmFsaWRhdGlvbkVycm9ySABC", "CAoGcmVhc29uQgYKBHR5cGUiFwoVR2V0U2FmZUNpdHlPc2RSZXF1ZXN0IlMK", "FkdldFNhZmVDaXR5T3NkUmVzcG9uc2USMQoEZGF0YRgBIAEoCzIhLmRldmlj", "ZWFwaXMuZGV2aWNlLnYxLlNhZmVDaXR5T3NkSABCBgoEdHlwZSKaBQoLU2Fm", "ZUNpdHlPc2QSIwoOaXNfb3NkX2VuYWJsZWQYASABKAhCC5JBCEoGInRydWUi", "Ek8KCHRleHRsaW5lGAIgASgJQj2SQTpKOCJMb3JlbSBpcHN1bSBkb2xvciBz", "aXQgYW1ldCBjb25zZWN0ZXR1ciBhZGlwaXNjaW5nIGVsaXQiEhoKCHRleHRz", "aXplGAMgASgFQgiSQQVKAzEwMBJYCg5wbGFjZW1lbnRfdHlwZRgEIAEoDjIv", "LmRldmljZWFwaXMuZGV2aWNlLnYxLlNhZmVDaXR5T3NkLlBsYWNlbWVudFR5", "cGVCD5JBDEoKIlRPUF9MRUZUIhJdChJzaG93X2RhdGV0aW1lX3R5cGUYBSAB", "KA4yMi5kZXZpY2VhcGlzLmRldmljZS52MS5TYWZlQ2l0eU9zZC5TaG93RGF0", "ZXRpbWVUeXBlQg2SQQpKCCJBQlNFTlQiEiAKC2lzX3Nob3dfZnBzGAYgASgI", "QguSQQhKBiJ0cnVlIhIXCg9pc19zaG93X2JpdHJhdGUYByABKAgSIAoYaXNf", "c2hvd19jb3VudF9vZl9zdHJlYW1zGAggASgIEh4KFmlzX3Nob3dfbmFtZV9v", "Zl9kZXZpY2UYCSABKAgiawoNUGxhY2VtZW50VHlwZRIaChZQTEFDRU1FTlRf", "VFlQRV9VTktOT1dOEAASDAoIVE9QX0xFRlQQARINCglUT1BfUklHSFQQAhIP", "CgtCT1RUT01fTEVGVBADEhAKDEJPVFRPTV9SSUdIVBAEIlYKEFNob3dEYXRl", "dGltZVR5cGUSHgoaU0hPV19EQVRFVElNRV9UWVBFX1VOS05PV04QABIKCgZB", "QlNFTlQQARIMCghEQVlfVElNRRACEggKBFRJTUUQAzLFAgoSU2FmZUNpdHlP", "c2RTZXJ2aWNlEpoBCg9FZGl0U2FmZUNpdHlPc2QSLC5kZXZpY2VhcGlzLmRl", "dmljZS52MS5FZGl0U2FmZUNpdHlPc2RSZXF1ZXN0Gi0uZGV2aWNlYXBpcy5k", "ZXZpY2UudjEuRWRpdFNhZmVDaXR5T3NkUmVzcG9uc2UiKoLT5JMCJDIcL2Rl", "dmljZS9hcGkvdjEvc2FmZV9jaXR5L29zZDoEZGF0YRKRAQoOR2V0U2FmZUNp", "dHlPc2QSKy5kZXZpY2VhcGlzLmRldmljZS52MS5HZXRTYWZlQ2l0eU9zZFJl", "cXVlc3QaLC5kZXZpY2VhcGlzLmRldmljZS52MS5HZXRTYWZlQ2l0eU9zZFJl", "c3BvbnNlIiSC0+STAh4SHC9kZXZpY2UvYXBpL3YxL3NhZmVfY2l0eS9vc2RC", "rwEKF3J1LmRldmljZWFwaXMuZGV2aWNlLnYxQhdEZXZpY2VhcGlzRGV2aWNl", "VjFQcm90b0gDUABaFS9kZXZpY2VhcGlzX2RldmljZV92MdgBAfgBAaICEkRF", "VklDRUFQSVNERVZJQ0VWMaoCFERldmljZWFwaXMuRGV2aWNlLlYxygIURGV2", "aWNlYXBpc1xEZXZpY2VcVjHqAhZEZXZpY2VhcGlzOjpEZXZpY2U6OlYxYgZw", "cm90bzM=")); 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.EditSafeCityOsdRequest), global::Deviceapis.Device.V1.EditSafeCityOsdRequest.Parser, new[]{ "Data", "UpdateMask" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.EditSafeCityOsdResponse), global::Deviceapis.Device.V1.EditSafeCityOsdResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.EditSafeCityOsdResponse.Types.Error), global::Deviceapis.Device.V1.EditSafeCityOsdResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.GetSafeCityOsdRequest), global::Deviceapis.Device.V1.GetSafeCityOsdRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.GetSafeCityOsdResponse), global::Deviceapis.Device.V1.GetSafeCityOsdResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.SafeCityOsd), global::Deviceapis.Device.V1.SafeCityOsd.Parser, new[]{ "IsOsdEnabled", "Textline", "Textsize", "PlacementType", "ShowDatetimeType", "IsShowFps", "IsShowBitrate", "IsShowCountOfStreams", "IsShowNameOfDevice" }, null, new[]{ typeof(global::Deviceapis.Device.V1.SafeCityOsd.Types.PlacementType), typeof(global::Deviceapis.Device.V1.SafeCityOsd.Types.ShowDatetimeType) }, null, null) })); } #endregion } #region Messages /// /// Запрос редактирования настроек OSD /// public sealed partial class EditSafeCityOsdRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EditSafeCityOsdRequest()); 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.DeviceapisDeviceSafeOsdV1Reflection.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 EditSafeCityOsdRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EditSafeCityOsdRequest(EditSafeCityOsdRequest 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 EditSafeCityOsdRequest Clone() { return new EditSafeCityOsdRequest(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Deviceapis.Device.V1.SafeCityOsd data_; /// /// Настройки OSD /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.SafeCityOsd 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 EditSafeCityOsdRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EditSafeCityOsdRequest 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(EditSafeCityOsdRequest other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Deviceapis.Device.V1.SafeCityOsd(); } 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.SafeCityOsd(); } 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.SafeCityOsd(); } input.ReadMessage(Data); break; } case 18: { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } input.ReadMessage(UpdateMask); break; } } } } #endif } /// /// Ответ на запрос редактирования настроек OSD /// public sealed partial class EditSafeCityOsdResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EditSafeCityOsdResponse()); 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.DeviceapisDeviceSafeOsdV1Reflection.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 EditSafeCityOsdResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EditSafeCityOsdResponse(EditSafeCityOsdResponse 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 EditSafeCityOsdResponse Clone() { return new EditSafeCityOsdResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Настройки OSD /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.SafeCityOsd Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Deviceapis.Device.V1.SafeCityOsd) 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.EditSafeCityOsdResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Deviceapis.Device.V1.EditSafeCityOsdResponse.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 EditSafeCityOsdResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EditSafeCityOsdResponse 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(EditSafeCityOsdResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Deviceapis.Device.V1.SafeCityOsd(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Deviceapis.Device.V1.EditSafeCityOsdResponse.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.SafeCityOsd subBuilder = new global::Deviceapis.Device.V1.SafeCityOsd(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Deviceapis.Device.V1.EditSafeCityOsdResponse.Types.Error subBuilder = new global::Deviceapis.Device.V1.EditSafeCityOsdResponse.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.SafeCityOsd subBuilder = new global::Deviceapis.Device.V1.SafeCityOsd(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 18: { global::Deviceapis.Device.V1.EditSafeCityOsdResponse.Types.Error subBuilder = new global::Deviceapis.Device.V1.EditSafeCityOsdResponse.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 EditSafeCityOsdResponse 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.EditSafeCityOsdResponse.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 } /// /// Запрос получения настроек OSD /// public sealed partial class GetSafeCityOsdRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSafeCityOsdRequest()); 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.DeviceapisDeviceSafeOsdV1Reflection.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 GetSafeCityOsdRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSafeCityOsdRequest(GetSafeCityOsdRequest other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSafeCityOsdRequest Clone() { return new GetSafeCityOsdRequest(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetSafeCityOsdRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSafeCityOsdRequest 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(GetSafeCityOsdRequest 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 } /// /// Ответ на запрос получения настроек OSD /// public sealed partial class GetSafeCityOsdResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSafeCityOsdResponse()); 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.DeviceapisDeviceSafeOsdV1Reflection.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 GetSafeCityOsdResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSafeCityOsdResponse(GetSafeCityOsdResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSafeCityOsdResponse Clone() { return new GetSafeCityOsdResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Настройки OSD /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.SafeCityOsd Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Deviceapis.Device.V1.SafeCityOsd) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetSafeCityOsdResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSafeCityOsdResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetSafeCityOsdResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Deviceapis.Device.V1.SafeCityOsd(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Deviceapis.Device.V1.SafeCityOsd subBuilder = new global::Deviceapis.Device.V1.SafeCityOsd(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Deviceapis.Device.V1.SafeCityOsd subBuilder = new global::Deviceapis.Device.V1.SafeCityOsd(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } /// /// Настройки OSD /// public sealed partial class SafeCityOsd : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SafeCityOsd()); 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.DeviceapisDeviceSafeOsdV1Reflection.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 SafeCityOsd() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SafeCityOsd(SafeCityOsd other) : this() { isOsdEnabled_ = other.isOsdEnabled_; textline_ = other.textline_; textsize_ = other.textsize_; placementType_ = other.placementType_; showDatetimeType_ = other.showDatetimeType_; isShowFps_ = other.isShowFps_; isShowBitrate_ = other.isShowBitrate_; isShowCountOfStreams_ = other.isShowCountOfStreams_; isShowNameOfDevice_ = other.isShowNameOfDevice_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SafeCityOsd Clone() { return new SafeCityOsd(this); } /// Field number for the "is_osd_enabled" field. public const int IsOsdEnabledFieldNumber = 1; private bool isOsdEnabled_; /// /// Флаг включения OSD /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsOsdEnabled { get { return isOsdEnabled_; } set { isOsdEnabled_ = value; } } /// Field number for the "textline" field. public const int TextlineFieldNumber = 2; private string textline_ = ""; /// /// Текст /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Textline { get { return textline_; } set { textline_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "textsize" field. public const int TextsizeFieldNumber = 3; private int textsize_; /// /// Размер текста, пикселей /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Textsize { get { return textsize_; } set { textsize_ = value; } } /// Field number for the "placement_type" field. public const int PlacementTypeFieldNumber = 4; private global::Deviceapis.Device.V1.SafeCityOsd.Types.PlacementType placementType_ = global::Deviceapis.Device.V1.SafeCityOsd.Types.PlacementType.Unknown; /// /// Размещение текста /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.SafeCityOsd.Types.PlacementType PlacementType { get { return placementType_; } set { placementType_ = value; } } /// Field number for the "show_datetime_type" field. public const int ShowDatetimeTypeFieldNumber = 5; private global::Deviceapis.Device.V1.SafeCityOsd.Types.ShowDatetimeType showDatetimeType_ = global::Deviceapis.Device.V1.SafeCityOsd.Types.ShowDatetimeType.Unknown; /// /// Вариант добавления даты /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.SafeCityOsd.Types.ShowDatetimeType ShowDatetimeType { get { return showDatetimeType_; } set { showDatetimeType_ = value; } } /// Field number for the "is_show_fps" field. public const int IsShowFpsFieldNumber = 6; private bool isShowFps_; /// /// Флаг отображения количества кадров в секунду /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsShowFps { get { return isShowFps_; } set { isShowFps_ = value; } } /// Field number for the "is_show_bitrate" field. public const int IsShowBitrateFieldNumber = 7; private bool isShowBitrate_; /// /// Флаг отображения битрейта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsShowBitrate { get { return isShowBitrate_; } set { isShowBitrate_ = value; } } /// Field number for the "is_show_count_of_streams" field. public const int IsShowCountOfStreamsFieldNumber = 8; private bool isShowCountOfStreams_; /// /// Флаг отображения количества потоков /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsShowCountOfStreams { get { return isShowCountOfStreams_; } set { isShowCountOfStreams_ = value; } } /// Field number for the "is_show_name_of_device" field. public const int IsShowNameOfDeviceFieldNumber = 9; private bool isShowNameOfDevice_; /// /// Флаг отображения имени устройства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsShowNameOfDevice { get { return isShowNameOfDevice_; } set { isShowNameOfDevice_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SafeCityOsd); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SafeCityOsd other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsOsdEnabled != other.IsOsdEnabled) return false; if (Textline != other.Textline) return false; if (Textsize != other.Textsize) return false; if (PlacementType != other.PlacementType) return false; if (ShowDatetimeType != other.ShowDatetimeType) return false; if (IsShowFps != other.IsShowFps) return false; if (IsShowBitrate != other.IsShowBitrate) return false; if (IsShowCountOfStreams != other.IsShowCountOfStreams) return false; if (IsShowNameOfDevice != other.IsShowNameOfDevice) 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 (IsOsdEnabled != false) hash ^= IsOsdEnabled.GetHashCode(); if (Textline.Length != 0) hash ^= Textline.GetHashCode(); if (Textsize != 0) hash ^= Textsize.GetHashCode(); if (PlacementType != global::Deviceapis.Device.V1.SafeCityOsd.Types.PlacementType.Unknown) hash ^= PlacementType.GetHashCode(); if (ShowDatetimeType != global::Deviceapis.Device.V1.SafeCityOsd.Types.ShowDatetimeType.Unknown) hash ^= ShowDatetimeType.GetHashCode(); if (IsShowFps != false) hash ^= IsShowFps.GetHashCode(); if (IsShowBitrate != false) hash ^= IsShowBitrate.GetHashCode(); if (IsShowCountOfStreams != false) hash ^= IsShowCountOfStreams.GetHashCode(); if (IsShowNameOfDevice != false) hash ^= IsShowNameOfDevice.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 (IsOsdEnabled != false) { output.WriteRawTag(8); output.WriteBool(IsOsdEnabled); } if (Textline.Length != 0) { output.WriteRawTag(18); output.WriteString(Textline); } if (Textsize != 0) { output.WriteRawTag(24); output.WriteInt32(Textsize); } if (PlacementType != global::Deviceapis.Device.V1.SafeCityOsd.Types.PlacementType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) PlacementType); } if (ShowDatetimeType != global::Deviceapis.Device.V1.SafeCityOsd.Types.ShowDatetimeType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) ShowDatetimeType); } if (IsShowFps != false) { output.WriteRawTag(48); output.WriteBool(IsShowFps); } if (IsShowBitrate != false) { output.WriteRawTag(56); output.WriteBool(IsShowBitrate); } if (IsShowCountOfStreams != false) { output.WriteRawTag(64); output.WriteBool(IsShowCountOfStreams); } if (IsShowNameOfDevice != false) { output.WriteRawTag(72); output.WriteBool(IsShowNameOfDevice); } 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 (IsOsdEnabled != false) { output.WriteRawTag(8); output.WriteBool(IsOsdEnabled); } if (Textline.Length != 0) { output.WriteRawTag(18); output.WriteString(Textline); } if (Textsize != 0) { output.WriteRawTag(24); output.WriteInt32(Textsize); } if (PlacementType != global::Deviceapis.Device.V1.SafeCityOsd.Types.PlacementType.Unknown) { output.WriteRawTag(32); output.WriteEnum((int) PlacementType); } if (ShowDatetimeType != global::Deviceapis.Device.V1.SafeCityOsd.Types.ShowDatetimeType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) ShowDatetimeType); } if (IsShowFps != false) { output.WriteRawTag(48); output.WriteBool(IsShowFps); } if (IsShowBitrate != false) { output.WriteRawTag(56); output.WriteBool(IsShowBitrate); } if (IsShowCountOfStreams != false) { output.WriteRawTag(64); output.WriteBool(IsShowCountOfStreams); } if (IsShowNameOfDevice != false) { output.WriteRawTag(72); output.WriteBool(IsShowNameOfDevice); } 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 (IsOsdEnabled != false) { size += 1 + 1; } if (Textline.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Textline); } if (Textsize != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Textsize); } if (PlacementType != global::Deviceapis.Device.V1.SafeCityOsd.Types.PlacementType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlacementType); } if (ShowDatetimeType != global::Deviceapis.Device.V1.SafeCityOsd.Types.ShowDatetimeType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ShowDatetimeType); } if (IsShowFps != false) { size += 1 + 1; } if (IsShowBitrate != false) { size += 1 + 1; } if (IsShowCountOfStreams != false) { size += 1 + 1; } if (IsShowNameOfDevice != 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(SafeCityOsd other) { if (other == null) { return; } if (other.IsOsdEnabled != false) { IsOsdEnabled = other.IsOsdEnabled; } if (other.Textline.Length != 0) { Textline = other.Textline; } if (other.Textsize != 0) { Textsize = other.Textsize; } if (other.PlacementType != global::Deviceapis.Device.V1.SafeCityOsd.Types.PlacementType.Unknown) { PlacementType = other.PlacementType; } if (other.ShowDatetimeType != global::Deviceapis.Device.V1.SafeCityOsd.Types.ShowDatetimeType.Unknown) { ShowDatetimeType = other.ShowDatetimeType; } if (other.IsShowFps != false) { IsShowFps = other.IsShowFps; } if (other.IsShowBitrate != false) { IsShowBitrate = other.IsShowBitrate; } if (other.IsShowCountOfStreams != false) { IsShowCountOfStreams = other.IsShowCountOfStreams; } if (other.IsShowNameOfDevice != false) { IsShowNameOfDevice = other.IsShowNameOfDevice; } _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: { IsOsdEnabled = input.ReadBool(); break; } case 18: { Textline = input.ReadString(); break; } case 24: { Textsize = input.ReadInt32(); break; } case 32: { PlacementType = (global::Deviceapis.Device.V1.SafeCityOsd.Types.PlacementType) input.ReadEnum(); break; } case 40: { ShowDatetimeType = (global::Deviceapis.Device.V1.SafeCityOsd.Types.ShowDatetimeType) input.ReadEnum(); break; } case 48: { IsShowFps = input.ReadBool(); break; } case 56: { IsShowBitrate = input.ReadBool(); break; } case 64: { IsShowCountOfStreams = input.ReadBool(); break; } case 72: { IsShowNameOfDevice = 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: { IsOsdEnabled = input.ReadBool(); break; } case 18: { Textline = input.ReadString(); break; } case 24: { Textsize = input.ReadInt32(); break; } case 32: { PlacementType = (global::Deviceapis.Device.V1.SafeCityOsd.Types.PlacementType) input.ReadEnum(); break; } case 40: { ShowDatetimeType = (global::Deviceapis.Device.V1.SafeCityOsd.Types.ShowDatetimeType) input.ReadEnum(); break; } case 48: { IsShowFps = input.ReadBool(); break; } case 56: { IsShowBitrate = input.ReadBool(); break; } case 64: { IsShowCountOfStreams = input.ReadBool(); break; } case 72: { IsShowNameOfDevice = input.ReadBool(); break; } } } } #endif #region Nested types /// Container for nested types declared in the SafeCityOsd message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Тип размещения текста /// public enum PlacementType { /// /// Значение не указано /// [pbr::OriginalName("PLACEMENT_TYPE_UNKNOWN")] Unknown = 0, /// /// Сверху слева /// [pbr::OriginalName("TOP_LEFT")] TopLeft = 1, /// /// Сверху справа /// [pbr::OriginalName("TOP_RIGHT")] TopRight = 2, /// /// Снизу слева /// [pbr::OriginalName("BOTTOM_LEFT")] BottomLeft = 3, /// /// Снизу справа /// [pbr::OriginalName("BOTTOM_RIGHT")] BottomRight = 4, } /// /// Тип добавления формата даты /// public enum ShowDatetimeType { /// /// Значение не указано /// [pbr::OriginalName("SHOW_DATETIME_TYPE_UNKNOWN")] Unknown = 0, /// /// Формат отсутствует /// [pbr::OriginalName("ABSENT")] Absent = 1, /// /// День и время yyyy-mm-dd HH:MM:SS /// [pbr::OriginalName("DAY_TIME")] DayTime = 2, /// /// Время HH:MM:SS /// [pbr::OriginalName("TIME")] Time = 3, } } #endregion } #endregion } #endregion Designer generated code