// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: deviceapis/device/v1/deviceapis_device_safe_emergency_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_emergency_v1.proto public static partial class DeviceapisDeviceSafeEmergencyV1Reflection { #region Descriptor /// File descriptor for deviceapis/device/v1/deviceapis_device_safe_emergency_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static DeviceapisDeviceSafeEmergencyV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Cj5kZXZpY2VhcGlzL2RldmljZS92MS9kZXZpY2VhcGlzX2RldmljZV9zYWZl", "X2VtZXJnZW5jeV92MS5wcm90bxIUZGV2aWNlYXBpcy5kZXZpY2UudjEaLnBy", "b3RvYy1nZW4tb3BlbmFwaXYyL29wdGlvbnMvYW5ub3RhdGlvbnMucHJvdG8a", "H2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aHGdvb2dsZS9hcGkv", "YW5ub3RhdGlvbnMucHJvdG8aNmRldmljZWFwaXMvZGV2aWNlL3YxL2Rldmlj", "ZWFwaXNfZGV2aWNlX2NvbW1vbl92MS5wcm90byIiCiBQb3N0U2FmZUNpdHlF", "bWVyZ2VuY3lTdG9wUmVxdWVzdCIjCiFQb3N0U2FmZUNpdHlFbWVyZ2VuY3lT", "dG9wUmVzcG9uc2UiIwohR2V0U2FmZUNpdHlFbWVyZ2VuY3lTdGF0dXNSZXF1", "ZXN0IrYCCiJHZXRTYWZlQ2l0eUVtZXJnZW5jeVN0YXR1c1Jlc3BvbnNlElQK", "BGRhdGEYASABKAsyRi5kZXZpY2VhcGlzLmRldmljZS52MS5HZXRTYWZlQ2l0", "eUVtZXJnZW5jeVN0YXR1c1Jlc3BvbnNlLkN1cnJlbnRTdGF0dXMauQEKDUN1", "cnJlbnRTdGF0dXMSFwoKaXNfcnVubmluZxgBIAEoCEID4EECEmEKImVtZXJn", "ZW5jeV9zY2VuYXJpb19wbGF5X29yZGVyX3R5cGUYAiABKA4yNS5kZXZpY2Vh", "cGlzLmRldmljZS52MS5FbWVyZ2VuY3lTY2VuYXJpby5QbGF5T3JkZXJUeXBl", "EiwKCWZpbGVfbmFtZRgDIAEoCUIZkkEWShQiSGFwcHlfbmV3X3llYXIud2F2", "IiKqAwoRRW1lcmdlbmN5U2NlbmFyaW8SLwoJZmlsZV9uYW1lGAEgASgJQhzg", "QQKSQRZKFCJIYXBweV9uZXdfeWVhci53YXYiEiQKDnRvdGFsX2R1cmF0aW9u", "GAIgASgFQgzgQQKSQQZKBDM2MDASJAoRcGxheWJhY2tfcGVyX3RpY2sYAyAB", "KAVCCeBBApJBA0oBMxIeCgp0aWNrX2NvdW50GAQgASgFQgrgQQKSQQRKAjEw", "EmYKD3BsYXlfb3JkZXJfdHlwZRgFIAEoDjI1LmRldmljZWFwaXMuZGV2aWNl", "LnYxLkVtZXJnZW5jeVNjZW5hcmlvLlBsYXlPcmRlclR5cGVCFuBBApJBEEoO", "IlNQRUFLRVJfT05MWSIijwEKDVBsYXlPcmRlclR5cGUSGwoXUExBWV9PUkRF", "Ul9UWVBFX1VOS05PV04QABIQCgxIQU5EU0VUX09OTFkQARIQCgxTUEVBS0VS", "X09OTFkQAhIRCg1IQU5EU0VUX0ZJUlNUEAMSEQoNU1BFQUtFUl9GSVJTVBAE", "EhcKE0hBTkRTRVRfQU5EX1NQRUFLRVIQBSJfCiFQb3N0U2FmZUNpdHlFbWVy", "Z2VuY3lTdGFydFJlcXVlc3QSOgoEZGF0YRgBIAEoCzInLmRldmljZWFwaXMu", "ZGV2aWNlLnYxLkVtZXJnZW5jeVNjZW5hcmlvQgPgQQIi1QIKIlBvc3RTYWZl", "Q2l0eUVtZXJnZW5jeVN0YXJ0UmVzcG9uc2USTwoFZXJyb3IYASABKAsyPi5k", "ZXZpY2VhcGlzLmRldmljZS52MS5Qb3N0U2FmZUNpdHlFbWVyZ2VuY3lTdGFy", "dFJlc3BvbnNlLkVycm9ySAAa1QEKBUVycm9yEjsKCnZhbGlkYXRpb24YASAB", "KAsyJS5kZXZpY2VhcGlzLmRldmljZS52MS5WYWxpZGF0aW9uRXJyb3JIABJw", "ChRzb3VuZF9maWxlX25vdF9mb3VuZBgCIAEoCzJQLmRldmljZWFwaXMuZGV2", "aWNlLnYxLlBvc3RTYWZlQ2l0eUVtZXJnZW5jeVN0YXJ0UmVzcG9uc2UuRXJy", "b3IuU291bmRGaWxlTm90Rm91bmRIABoTChFTb3VuZEZpbGVOb3RGb3VuZEII", "CgZyZWFzb25CBgoEdHlwZTLpBAoYU2FmZUNpdHlFbWVyZ2VuY3lTZXJ2aWNl", "EsQBChpQb3N0U2FmZUNpdHlFbWVyZ2VuY3lTdGFydBI3LmRldmljZWFwaXMu", "ZGV2aWNlLnYxLlBvc3RTYWZlQ2l0eUVtZXJnZW5jeVN0YXJ0UmVxdWVzdBo4", "LmRldmljZWFwaXMuZGV2aWNlLnYxLlBvc3RTYWZlQ2l0eUVtZXJnZW5jeVN0", "YXJ0UmVzcG9uc2UiM4LT5JMCLSIoL2RldmljZS9hcGkvdjEvc2FmZV9jaXR5", "L2VtZXJnZW5jeS9zdGFydDoBKhLAAQoZUG9zdFNhZmVDaXR5RW1lcmdlbmN5", "U3RvcBI2LmRldmljZWFwaXMuZGV2aWNlLnYxLlBvc3RTYWZlQ2l0eUVtZXJn", "ZW5jeVN0b3BSZXF1ZXN0GjcuZGV2aWNlYXBpcy5kZXZpY2UudjEuUG9zdFNh", "ZmVDaXR5RW1lcmdlbmN5U3RvcFJlc3BvbnNlIjKC0+STAiwiJy9kZXZpY2Uv", "YXBpL3YxL3NhZmVfY2l0eS9lbWVyZ2VuY3kvc3RvcDoBKhLCAQoaR2V0U2Fm", "ZUNpdHlFbWVyZ2VuY3lTdGF0dXMSNy5kZXZpY2VhcGlzLmRldmljZS52MS5H", "ZXRTYWZlQ2l0eUVtZXJnZW5jeVN0YXR1c1JlcXVlc3QaOC5kZXZpY2VhcGlz", "LmRldmljZS52MS5HZXRTYWZlQ2l0eUVtZXJnZW5jeVN0YXR1c1Jlc3BvbnNl", "IjGC0+STAisSKS9kZXZpY2UvYXBpL3YxL3NhZmVfY2l0eS9lbWVyZ2VuY3kv", "c3RhdHVzQq8BChdydS5kZXZpY2VhcGlzLmRldmljZS52MUIXRGV2aWNlYXBp", "c0RldmljZVYxUHJvdG9IA1AAWhUvZGV2aWNlYXBpc19kZXZpY2VfdjHYAQH4", "AQGiAhJERVZJQ0VBUElTREVWSUNFVjGqAhREZXZpY2VhcGlzLkRldmljZS5W", "McoCFERldmljZWFwaXNcRGV2aWNlXFYx6gIWRGV2aWNlYXBpczo6RGV2aWNl", "OjpWMWIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Grpc.Gateway.ProtocGenOpenapiv2.Options.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Deviceapis.Device.V1.DeviceapisDeviceCommonV1Reflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.PostSafeCityEmergencyStopRequest), global::Deviceapis.Device.V1.PostSafeCityEmergencyStopRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.PostSafeCityEmergencyStopResponse), global::Deviceapis.Device.V1.PostSafeCityEmergencyStopResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.GetSafeCityEmergencyStatusRequest), global::Deviceapis.Device.V1.GetSafeCityEmergencyStatusRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.GetSafeCityEmergencyStatusResponse), global::Deviceapis.Device.V1.GetSafeCityEmergencyStatusResponse.Parser, new[]{ "Data" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.GetSafeCityEmergencyStatusResponse.Types.CurrentStatus), global::Deviceapis.Device.V1.GetSafeCityEmergencyStatusResponse.Types.CurrentStatus.Parser, new[]{ "IsRunning", "EmergencyScenarioPlayOrderType", "FileName" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.EmergencyScenario), global::Deviceapis.Device.V1.EmergencyScenario.Parser, new[]{ "FileName", "TotalDuration", "PlaybackPerTick", "TickCount", "PlayOrderType" }, null, new[]{ typeof(global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType) }, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.PostSafeCityEmergencyStartRequest), global::Deviceapis.Device.V1.PostSafeCityEmergencyStartRequest.Parser, new[]{ "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse), global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Types.Error), global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Types.Error.Parser, new[]{ "Validation", "SoundFileNotFound" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Types.Error.Types.SoundFileNotFound), global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Types.Error.Types.SoundFileNotFound.Parser, null, null, null, null, null)})}) })); } #endregion } #region Messages /// /// Запрос на прекращение оповещения через домофон /// public sealed partial class PostSafeCityEmergencyStopRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostSafeCityEmergencyStopRequest()); 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.DeviceapisDeviceSafeEmergencyV1Reflection.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 PostSafeCityEmergencyStopRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSafeCityEmergencyStopRequest(PostSafeCityEmergencyStopRequest other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSafeCityEmergencyStopRequest Clone() { return new PostSafeCityEmergencyStopRequest(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostSafeCityEmergencyStopRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostSafeCityEmergencyStopRequest 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(PostSafeCityEmergencyStopRequest 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 } /// /// Ответ на запрос на прекращение оповещения через домофон /// public sealed partial class PostSafeCityEmergencyStopResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostSafeCityEmergencyStopResponse()); 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.DeviceapisDeviceSafeEmergencyV1Reflection.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 PostSafeCityEmergencyStopResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSafeCityEmergencyStopResponse(PostSafeCityEmergencyStopResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSafeCityEmergencyStopResponse Clone() { return new PostSafeCityEmergencyStopResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostSafeCityEmergencyStopResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostSafeCityEmergencyStopResponse 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(PostSafeCityEmergencyStopResponse 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 } /// /// Запрос на получение статуса оповещения /// public sealed partial class GetSafeCityEmergencyStatusRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSafeCityEmergencyStatusRequest()); 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.DeviceapisDeviceSafeEmergencyV1Reflection.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 GetSafeCityEmergencyStatusRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSafeCityEmergencyStatusRequest(GetSafeCityEmergencyStatusRequest other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSafeCityEmergencyStatusRequest Clone() { return new GetSafeCityEmergencyStatusRequest(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetSafeCityEmergencyStatusRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSafeCityEmergencyStatusRequest 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(GetSafeCityEmergencyStatusRequest 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 } /// /// Ответ на запрос на получение статуса оповещения /// public sealed partial class GetSafeCityEmergencyStatusResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSafeCityEmergencyStatusResponse()); 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.DeviceapisDeviceSafeEmergencyV1Reflection.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 GetSafeCityEmergencyStatusResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSafeCityEmergencyStatusResponse(GetSafeCityEmergencyStatusResponse other) : this() { data_ = other.data_ != null ? other.data_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetSafeCityEmergencyStatusResponse Clone() { return new GetSafeCityEmergencyStatusResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Deviceapis.Device.V1.GetSafeCityEmergencyStatusResponse.Types.CurrentStatus data_; /// /// Статус оповещения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.GetSafeCityEmergencyStatusResponse.Types.CurrentStatus Data { get { return data_; } set { data_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetSafeCityEmergencyStatusResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetSafeCityEmergencyStatusResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, 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; if (data_ != null) 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 if (data_ != null) { 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 (data_ != null) { 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 (data_ != null) { 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(GetSafeCityEmergencyStatusResponse other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Deviceapis.Device.V1.GetSafeCityEmergencyStatusResponse.Types.CurrentStatus(); } Data.MergeFrom(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: { if (data_ == null) { Data = new global::Deviceapis.Device.V1.GetSafeCityEmergencyStatusResponse.Types.CurrentStatus(); } input.ReadMessage(Data); 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.GetSafeCityEmergencyStatusResponse.Types.CurrentStatus(); } input.ReadMessage(Data); break; } } } } #endif #region Nested types /// Container for nested types declared in the GetSafeCityEmergencyStatusResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Статус оповещения /// public sealed partial class CurrentStatus : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CurrentStatus()); 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.GetSafeCityEmergencyStatusResponse.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 CurrentStatus() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CurrentStatus(CurrentStatus other) : this() { isRunning_ = other.isRunning_; emergencyScenarioPlayOrderType_ = other.emergencyScenarioPlayOrderType_; fileName_ = other.fileName_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CurrentStatus Clone() { return new CurrentStatus(this); } /// Field number for the "is_running" field. public const int IsRunningFieldNumber = 1; private bool isRunning_; /// /// Признак работающего оповещения в текущий момент /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsRunning { get { return isRunning_; } set { isRunning_ = value; } } /// Field number for the "emergency_scenario_play_order_type" field. public const int EmergencyScenarioPlayOrderTypeFieldNumber = 2; private global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType emergencyScenarioPlayOrderType_ = global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType.Unknown; /// /// Тип проигрывания /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType EmergencyScenarioPlayOrderType { get { return emergencyScenarioPlayOrderType_; } set { emergencyScenarioPlayOrderType_ = value; } } /// Field number for the "file_name" field. public const int FileNameFieldNumber = 3; private string fileName_ = ""; /// /// Имя файла /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string FileName { get { return fileName_; } set { fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as CurrentStatus); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CurrentStatus other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsRunning != other.IsRunning) return false; if (EmergencyScenarioPlayOrderType != other.EmergencyScenarioPlayOrderType) return false; if (FileName != other.FileName) 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 (IsRunning != false) hash ^= IsRunning.GetHashCode(); if (EmergencyScenarioPlayOrderType != global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType.Unknown) hash ^= EmergencyScenarioPlayOrderType.GetHashCode(); if (FileName.Length != 0) hash ^= FileName.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 (IsRunning != false) { output.WriteRawTag(8); output.WriteBool(IsRunning); } if (EmergencyScenarioPlayOrderType != global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) EmergencyScenarioPlayOrderType); } if (FileName.Length != 0) { output.WriteRawTag(26); output.WriteString(FileName); } 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 (IsRunning != false) { output.WriteRawTag(8); output.WriteBool(IsRunning); } if (EmergencyScenarioPlayOrderType != global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) EmergencyScenarioPlayOrderType); } if (FileName.Length != 0) { output.WriteRawTag(26); output.WriteString(FileName); } 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 (IsRunning != false) { size += 1 + 1; } if (EmergencyScenarioPlayOrderType != global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EmergencyScenarioPlayOrderType); } if (FileName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(CurrentStatus other) { if (other == null) { return; } if (other.IsRunning != false) { IsRunning = other.IsRunning; } if (other.EmergencyScenarioPlayOrderType != global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType.Unknown) { EmergencyScenarioPlayOrderType = other.EmergencyScenarioPlayOrderType; } if (other.FileName.Length != 0) { FileName = other.FileName; } _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: { IsRunning = input.ReadBool(); break; } case 16: { EmergencyScenarioPlayOrderType = (global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType) input.ReadEnum(); break; } case 26: { FileName = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { IsRunning = input.ReadBool(); break; } case 16: { EmergencyScenarioPlayOrderType = (global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType) input.ReadEnum(); break; } case 26: { FileName = input.ReadString(); break; } } } } #endif } } #endregion } /// /// Сценарий оповещения /// public sealed partial class EmergencyScenario : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EmergencyScenario()); 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.DeviceapisDeviceSafeEmergencyV1Reflection.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 EmergencyScenario() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EmergencyScenario(EmergencyScenario other) : this() { fileName_ = other.fileName_; totalDuration_ = other.totalDuration_; playbackPerTick_ = other.playbackPerTick_; tickCount_ = other.tickCount_; playOrderType_ = other.playOrderType_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EmergencyScenario Clone() { return new EmergencyScenario(this); } /// Field number for the "file_name" field. public const int FileNameFieldNumber = 1; private string fileName_ = ""; /// /// Имя файла /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string FileName { get { return fileName_; } set { fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "total_duration" field. public const int TotalDurationFieldNumber = 2; private int totalDuration_; /// /// Максимальная общая длительность оповещения, в секундах. /// # Диапазон: 0..65536 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int TotalDuration { get { return totalDuration_; } set { totalDuration_ = value; } } /// Field number for the "playback_per_tick" field. public const int PlaybackPerTickFieldNumber = 3; private int playbackPerTick_; /// /// Количество воспроизведений файла в каждом цикле оповещения на одном направлении (трубка или динамик). /// # Диапазон: 0..65536 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int PlaybackPerTick { get { return playbackPerTick_; } set { playbackPerTick_ = value; } } /// Field number for the "tick_count" field. public const int TickCountFieldNumber = 4; private int tickCount_; /// /// Количество воспроизведений циклов оповещения. /// # Диапазон: 0..65536 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int TickCount { get { return tickCount_; } set { tickCount_ = value; } } /// Field number for the "play_order_type" field. public const int PlayOrderTypeFieldNumber = 5; private global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType playOrderType_ = global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType.Unknown; /// /// Тип проигрывания /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType PlayOrderType { get { return playOrderType_; } set { playOrderType_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EmergencyScenario); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EmergencyScenario other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (FileName != other.FileName) return false; if (TotalDuration != other.TotalDuration) return false; if (PlaybackPerTick != other.PlaybackPerTick) return false; if (TickCount != other.TickCount) return false; if (PlayOrderType != other.PlayOrderType) 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 (FileName.Length != 0) hash ^= FileName.GetHashCode(); if (TotalDuration != 0) hash ^= TotalDuration.GetHashCode(); if (PlaybackPerTick != 0) hash ^= PlaybackPerTick.GetHashCode(); if (TickCount != 0) hash ^= TickCount.GetHashCode(); if (PlayOrderType != global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType.Unknown) hash ^= PlayOrderType.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 (FileName.Length != 0) { output.WriteRawTag(10); output.WriteString(FileName); } if (TotalDuration != 0) { output.WriteRawTag(16); output.WriteInt32(TotalDuration); } if (PlaybackPerTick != 0) { output.WriteRawTag(24); output.WriteInt32(PlaybackPerTick); } if (TickCount != 0) { output.WriteRawTag(32); output.WriteInt32(TickCount); } if (PlayOrderType != global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) PlayOrderType); } 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 (FileName.Length != 0) { output.WriteRawTag(10); output.WriteString(FileName); } if (TotalDuration != 0) { output.WriteRawTag(16); output.WriteInt32(TotalDuration); } if (PlaybackPerTick != 0) { output.WriteRawTag(24); output.WriteInt32(PlaybackPerTick); } if (TickCount != 0) { output.WriteRawTag(32); output.WriteInt32(TickCount); } if (PlayOrderType != global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType.Unknown) { output.WriteRawTag(40); output.WriteEnum((int) PlayOrderType); } 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 (FileName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); } if (TotalDuration != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(TotalDuration); } if (PlaybackPerTick != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlaybackPerTick); } if (TickCount != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(TickCount); } if (PlayOrderType != global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayOrderType); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EmergencyScenario other) { if (other == null) { return; } if (other.FileName.Length != 0) { FileName = other.FileName; } if (other.TotalDuration != 0) { TotalDuration = other.TotalDuration; } if (other.PlaybackPerTick != 0) { PlaybackPerTick = other.PlaybackPerTick; } if (other.TickCount != 0) { TickCount = other.TickCount; } if (other.PlayOrderType != global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType.Unknown) { PlayOrderType = other.PlayOrderType; } _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: { FileName = input.ReadString(); break; } case 16: { TotalDuration = input.ReadInt32(); break; } case 24: { PlaybackPerTick = input.ReadInt32(); break; } case 32: { TickCount = input.ReadInt32(); break; } case 40: { PlayOrderType = (global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType) input.ReadEnum(); 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: { FileName = input.ReadString(); break; } case 16: { TotalDuration = input.ReadInt32(); break; } case 24: { PlaybackPerTick = input.ReadInt32(); break; } case 32: { TickCount = input.ReadInt32(); break; } case 40: { PlayOrderType = (global::Deviceapis.Device.V1.EmergencyScenario.Types.PlayOrderType) input.ReadEnum(); break; } } } } #endif #region Nested types /// Container for nested types declared in the EmergencyScenario message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Тип проигрывания. /// # Тип: byte /// public enum PlayOrderType { /// /// Значение не указано /// [pbr::OriginalName("PLAY_ORDER_TYPE_UNKNOWN")] Unknown = 0, /// /// Только на аналоговые трубки /// [pbr::OriginalName("HANDSET_ONLY")] HandsetOnly = 1, /// /// Tолько на динамик домофона /// [pbr::OriginalName("SPEAKER_ONLY")] SpeakerOnly = 2, /// /// Сначала на аналоговые трубки проигрываем заданное количество тактов, затем на динамик домофона /// [pbr::OriginalName("HANDSET_FIRST")] HandsetFirst = 3, /// /// Сначала на динамик домофона проигрываем заданное количество тактов, затем на аналоговые трубки /// [pbr::OriginalName("SPEAKER_FIRST")] SpeakerFirst = 4, /// /// Одновременно на аналоговые трубки проигрываем заданное количество тактов, затем на динамик домофона /// [pbr::OriginalName("HANDSET_AND_SPEAKER")] HandsetAndSpeaker = 5, } } #endregion } /// /// Запрос на старт оповещения /// public sealed partial class PostSafeCityEmergencyStartRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostSafeCityEmergencyStartRequest()); 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.DeviceapisDeviceSafeEmergencyV1Reflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSafeCityEmergencyStartRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSafeCityEmergencyStartRequest(PostSafeCityEmergencyStartRequest other) : this() { data_ = other.data_ != null ? other.data_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSafeCityEmergencyStartRequest Clone() { return new PostSafeCityEmergencyStartRequest(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Deviceapis.Device.V1.EmergencyScenario data_; /// /// Сценарий оповещения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.EmergencyScenario Data { get { return data_; } set { data_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostSafeCityEmergencyStartRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostSafeCityEmergencyStartRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, 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; if (data_ != null) 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 if (data_ != null) { 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 (data_ != null) { 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 (data_ != null) { 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(PostSafeCityEmergencyStartRequest other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Deviceapis.Device.V1.EmergencyScenario(); } Data.MergeFrom(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: { if (data_ == null) { Data = new global::Deviceapis.Device.V1.EmergencyScenario(); } input.ReadMessage(Data); 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.EmergencyScenario(); } input.ReadMessage(Data); break; } } } } #endif } /// /// Ответ на запрос на старт оповещения /// public sealed partial class PostSafeCityEmergencyStartResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostSafeCityEmergencyStartResponse()); 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.DeviceapisDeviceSafeEmergencyV1Reflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSafeCityEmergencyStartResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSafeCityEmergencyStartResponse(PostSafeCityEmergencyStartResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostSafeCityEmergencyStartResponse Clone() { return new PostSafeCityEmergencyStartResponse(this); } /// Field number for the "error" field. public const int ErrorFieldNumber = 1; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Error = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostSafeCityEmergencyStartResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostSafeCityEmergencyStartResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostSafeCityEmergencyStartResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.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.PostSafeCityEmergencyStartResponse.Types.Error subBuilder = new global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.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.PostSafeCityEmergencyStartResponse.Types.Error subBuilder = new global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.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 PostSafeCityEmergencyStartResponse 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.PostSafeCityEmergencyStartResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; case ReasonOneofCase.SoundFileNotFound: SoundFileNotFound = other.SoundFileNotFound.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; } } /// Field number for the "sound_file_not_found" field. public const int SoundFileNotFoundFieldNumber = 2; /// /// Звуковой файл не найден /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Types.Error.Types.SoundFileNotFound SoundFileNotFound { get { return reasonCase_ == ReasonOneofCase.SoundFileNotFound ? (global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Types.Error.Types.SoundFileNotFound) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.SoundFileNotFound; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, SoundFileNotFound = 2, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (!object.Equals(SoundFileNotFound, other.SoundFileNotFound)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); if (reasonCase_ == ReasonOneofCase.SoundFileNotFound) hash ^= SoundFileNotFound.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (reasonCase_ == ReasonOneofCase.SoundFileNotFound) { output.WriteRawTag(18); output.WriteMessage(SoundFileNotFound); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (reasonCase_ == ReasonOneofCase.SoundFileNotFound) { output.WriteRawTag(18); output.WriteMessage(SoundFileNotFound); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (reasonCase_ == ReasonOneofCase.SoundFileNotFound) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(SoundFileNotFound); } 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; case ReasonOneofCase.SoundFileNotFound: if (SoundFileNotFound == null) { SoundFileNotFound = new global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Types.Error.Types.SoundFileNotFound(); } SoundFileNotFound.MergeFrom(other.SoundFileNotFound); 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; } case 18: { global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Types.Error.Types.SoundFileNotFound subBuilder = new global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Types.Error.Types.SoundFileNotFound(); if (reasonCase_ == ReasonOneofCase.SoundFileNotFound) { subBuilder.MergeFrom(SoundFileNotFound); } input.ReadMessage(subBuilder); SoundFileNotFound = 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; } case 18: { global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Types.Error.Types.SoundFileNotFound subBuilder = new global::Deviceapis.Device.V1.PostSafeCityEmergencyStartResponse.Types.Error.Types.SoundFileNotFound(); if (reasonCase_ == ReasonOneofCase.SoundFileNotFound) { subBuilder.MergeFrom(SoundFileNotFound); } input.ReadMessage(subBuilder); SoundFileNotFound = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the Error message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Звуковой файл не найден /// public sealed partial class SoundFileNotFound : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SoundFileNotFound()); 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.PostSafeCityEmergencyStartResponse.Types.Error.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SoundFileNotFound() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SoundFileNotFound(SoundFileNotFound other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public SoundFileNotFound Clone() { return new SoundFileNotFound(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as SoundFileNotFound); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(SoundFileNotFound 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(SoundFileNotFound 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 } } #endregion } } #endregion } #endregion } #endregion Designer generated code