// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/exchange/v1/keyapis_exchange_message_v1.proto // #pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Keyapis.Exchange.V1 { /// Holder for reflection information generated from keyapis/exchange/v1/keyapis_exchange_message_v1.proto public static partial class KeyapisExchangeMessageV1Reflection { #region Descriptor /// File descriptor for keyapis/exchange/v1/keyapis_exchange_message_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisExchangeMessageV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjVrZXlhcGlzL2V4Y2hhbmdlL3YxL2tleWFwaXNfZXhjaGFuZ2VfbWVzc2Fn", "ZV92MS5wcm90bxITa2V5YXBpcy5leGNoYW5nZS52MRocZ29vZ2xlL2FwaS9h", "bm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5w", "cm90bxoeZ29vZ2xlL3Byb3RvYnVmL3dyYXBwZXJzLnByb3RvGh9nb29nbGUv", "cHJvdG9idWYvdGltZXN0YW1wLnByb3RvIpIBChxQb3N0TWVzc2FnZUZ1bGxE", "dXBsZXhSZXF1ZXN0EhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhJRChZwb3N0", "X21lc3NhZ2VfcHVzaF9jYWxsGAIgASgLMi8ua2V5YXBpcy5leGNoYW5nZS52", "MS5Qb3N0TWVzc2FnZVB1c2hDYWxsUmVxdWVzdEgAQgYKBHRhc2silQEKHVBv", "c3RNZXNzYWdlRnVsbER1cGxleFJlc3BvbnNlEhcKCnJlcXVlc3RfaWQYASAB", "KAlCA+BBAhJSChZwb3N0X21lc3NhZ2VfcHVzaF9jYWxsGAIgASgLMjAua2V5", "YXBpcy5leGNoYW5nZS52MS5Qb3N0TWVzc2FnZVB1c2hDYWxsUmVzcG9uc2VI", "AEIHCgVldmVudCKWBQoPTWVzc2FnZVB1c2hDYWxsEkIKB21lc3NhZ2UYASAB", "KAsyLC5rZXlhcGlzLmV4Y2hhbmdlLnYxLk1lc3NhZ2VQdXNoQ2FsbC5NZXNz", "YWdlQgPgQQISRQoJcHVzaF9jYWxsGAIgASgLMi0ua2V5YXBpcy5leGNoYW5n", "ZS52MS5NZXNzYWdlUHVzaENhbGwuUHVzaENhbGxCA+BBAhraAgoHTWVzc2Fn", "ZRISCgV0aXRsZRgBIAEoCUID4EECEhYKCWRldmljZV9pZBgCIAEoBUID4EEC", "EjIKDGRldmljZV90aXRsZRgDIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJp", "bmdWYWx1ZRI2ChBkZXZpY2VfY2FtZXJhX2lkGAQgASgLMhwuZ29vZ2xlLnBy", "b3RvYnVmLlN0cmluZ1ZhbHVlEhwKD3NpcF9zZXJ2ZXJfaG9zdBgFIAEoCUID", "4EECEhwKD3NpcF9zZXJ2ZXJfcG9ydBgGIAEoBUID4EECEh4KEXNpcF9hY2Nv", "dW50X2xvZ2luGAcgASgJQgPgQQISIQoUc2lwX2FjY291bnRfcGFzc3dvcmQY", "CCABKAlCA+BBAhI4Cg9jYWxsX2NyZWF0ZWRfYXQYCSABKAsyGi5nb29nbGUu", "cHJvdG9idWYuVGltZXN0YW1wQgPgQQIamgEKCFB1c2hDYWxsEhIKBXRva2Vu", "GAEgASgJQgPgQQISRQoEdHlwZRgCIAEoDjIyLmtleWFwaXMuZXhjaGFuZ2Uu", "djEuTWVzc2FnZVB1c2hDYWxsLlB1c2hDYWxsLlR5cGVCA+BBAiIzCgRUeXBl", "EhAKDFRZUEVfVU5LTk9XThAAEgsKB1BXQV9GQ00QARIMCghQV0FfQVBOUxAC", "It0HChVNZXNzYWdlTW9iaWxlUHVzaENhbGwSSAoHbWVzc2FnZRgBIAEoCzIy", "LmtleWFwaXMuZXhjaGFuZ2UudjEuTWVzc2FnZU1vYmlsZVB1c2hDYWxsLk1l", "c3NhZ2VCA+BBAhJLCglwdXNoX2NhbGwYAiABKAsyMy5rZXlhcGlzLmV4Y2hh", "bmdlLnYxLk1lc3NhZ2VNb2JpbGVQdXNoQ2FsbC5QdXNoQ2FsbEID4EECGsQE", "CgdNZXNzYWdlEhIKBXRpdGxlGAEgASgJQgPgQQISFgoJZGV2aWNlX2lkGAIg", "ASgFQgPgQQISMgoMZGV2aWNlX3RpdGxlGAMgASgLMhwuZ29vZ2xlLnByb3Rv", "YnVmLlN0cmluZ1ZhbHVlEjYKEGRldmljZV9jYW1lcmFfaWQYBCABKAsyHC5n", "b29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSFgoJc2lwX3Rva2VuGAUgASgJ", "QgPgQQISNQoPc2lwX3NlcnZlcl9ob3N0GAYgASgLMhwuZ29vZ2xlLnByb3Rv", "YnVmLlN0cmluZ1ZhbHVlEjQKD3NpcF9zZXJ2ZXJfcG9ydBgHIAEoCzIbLmdv", "b2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlEjcKEXNpcF9hY2NvdW50X2xvZ2lu", "GAggASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmluZ1ZhbHVlEjoKFHNpcF9h", "Y2NvdW50X3Bhc3N3b3JkGAkgASgLMhwuZ29vZ2xlLnByb3RvYnVmLlN0cmlu", "Z1ZhbHVlEjYKEHN0dW5fc2VydmVyX2hvc3QYCiABKAsyHC5nb29nbGUucHJv", "dG9idWYuU3RyaW5nVmFsdWUSNQoQc3R1bl9zZXJ2ZXJfcG9ydBgLIAEoCzIb", "Lmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlEjgKD2NhbGxfY3JlYXRlZF9h", "dBgMIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXBCA+BBAhrlAQoI", "UHVzaENhbGwSEgoFdG9rZW4YASABKAlCA+BBAhJLCgR0eXBlGAIgASgOMjgu", "a2V5YXBpcy5leGNoYW5nZS52MS5NZXNzYWdlTW9iaWxlUHVzaENhbGwuUHVz", "aENhbGwuVHlwZUID4EECIngKBFR5cGUSEAoMVFlQRV9VTktOT1dOEAASDgoK", "TU9CSUxFX0ZDTRABEg4KCk1PQklMRV9ITVMQAhIUChBNT0JJTEVfQVBOU19U", "RVhUEAMSFAoQTU9CSUxFX0FQTlNfQ0FMTBAEEhIKDk1PQklMRV9SVVNUT1JF", "EAUiVQoaUG9zdE1lc3NhZ2VQdXNoQ2FsbFJlcXVlc3QSNwoEZGF0YRgBIAEo", "CzIkLmtleWFwaXMuZXhjaGFuZ2UudjEuTWVzc2FnZVB1c2hDYWxsQgPgQQIi", "HQobUG9zdE1lc3NhZ2VQdXNoQ2FsbFJlc3BvbnNlImEKIFBvc3RNZXNzYWdl", "TW9iaWxlUHVzaENhbGxSZXF1ZXN0Ej0KBGRhdGEYASABKAsyKi5rZXlhcGlz", "LmV4Y2hhbmdlLnYxLk1lc3NhZ2VNb2JpbGVQdXNoQ2FsbEID4EECIiMKIVBv", "c3RNZXNzYWdlTW9iaWxlUHVzaENhbGxSZXNwb25zZTKEBAoOTWVzc2FnZVNl", "cnZpY2UShAEKFVBvc3RNZXNzYWdlRnVsbER1cGxleBIxLmtleWFwaXMuZXhj", "aGFuZ2UudjEuUG9zdE1lc3NhZ2VGdWxsRHVwbGV4UmVxdWVzdBoyLmtleWFw", "aXMuZXhjaGFuZ2UudjEuUG9zdE1lc3NhZ2VGdWxsRHVwbGV4UmVzcG9uc2Ui", "ACgBMAESpwEKE1Bvc3RNZXNzYWdlUHVzaENhbGwSLy5rZXlhcGlzLmV4Y2hh", "bmdlLnYxLlBvc3RNZXNzYWdlUHVzaENhbGxSZXF1ZXN0GjAua2V5YXBpcy5l", "eGNoYW5nZS52MS5Qb3N0TWVzc2FnZVB1c2hDYWxsUmVzcG9uc2UiLYLT5JMC", "JyIiL2V4Y2hhbmdlL2FwaS92MS9tZXNzYWdlX3B1c2hfY2FsbDoBKhLAAQoZ", "UG9zdE1lc3NhZ2VNb2JpbGVQdXNoQ2FsbBI1LmtleWFwaXMuZXhjaGFuZ2Uu", "djEuUG9zdE1lc3NhZ2VNb2JpbGVQdXNoQ2FsbFJlcXVlc3QaNi5rZXlhcGlz", "LmV4Y2hhbmdlLnYxLlBvc3RNZXNzYWdlTW9iaWxlUHVzaENhbGxSZXNwb25z", "ZSI0gtPkkwIuIikvZXhjaGFuZ2UvYXBpL3YxL21lc3NhZ2VfbW9iaWxlX3B1", "c2hfY2FsbDoBKkKpAQoWcnUua2V5YXBpcy5leGNoYW5nZS52MUIWS2V5YXBp", "c0V4Y2hhbmdlVjFQcm90b0gDUABaFC9rZXlhcGlzX2V4Y2hhbmdlX3Yx2AEB", "+AEBogISS0VZQVBJU0VYQ0hBTkdFWVYxqgITS2V5YXBpcy5FeGNoYW5nZS5W", "McoCE0tleWFwaXNcRXhjaGFuZ2VcVjHqAhVLZXlhcGlzOjpFeGNoYW5nZTo6", "VjFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Exchange.V1.PostMessageFullDuplexRequest), global::Keyapis.Exchange.V1.PostMessageFullDuplexRequest.Parser, new[]{ "RequestId", "PostMessagePushCall" }, new[]{ "Task" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Exchange.V1.PostMessageFullDuplexResponse), global::Keyapis.Exchange.V1.PostMessageFullDuplexResponse.Parser, new[]{ "RequestId", "PostMessagePushCall" }, new[]{ "Event" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Exchange.V1.MessagePushCall), global::Keyapis.Exchange.V1.MessagePushCall.Parser, new[]{ "Message", "PushCall" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Exchange.V1.MessagePushCall.Types.Message), global::Keyapis.Exchange.V1.MessagePushCall.Types.Message.Parser, new[]{ "Title", "DeviceId", "DeviceTitle", "DeviceCameraId", "SipServerHost", "SipServerPort", "SipAccountLogin", "SipAccountPassword", "CallCreatedAt" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall), global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall.Parser, new[]{ "Token", "Type" }, null, new[]{ typeof(global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall.Types.Type) }, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Exchange.V1.MessageMobilePushCall), global::Keyapis.Exchange.V1.MessageMobilePushCall.Parser, new[]{ "Message", "PushCall" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.Message), global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.Message.Parser, new[]{ "Title", "DeviceId", "DeviceTitle", "DeviceCameraId", "SipToken", "SipServerHost", "SipServerPort", "SipAccountLogin", "SipAccountPassword", "StunServerHost", "StunServerPort", "CallCreatedAt" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall), global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall.Parser, new[]{ "Token", "Type" }, null, new[]{ typeof(global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall.Types.Type) }, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Exchange.V1.PostMessagePushCallRequest), global::Keyapis.Exchange.V1.PostMessagePushCallRequest.Parser, new[]{ "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Exchange.V1.PostMessagePushCallResponse), global::Keyapis.Exchange.V1.PostMessagePushCallResponse.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Exchange.V1.PostMessageMobilePushCallRequest), global::Keyapis.Exchange.V1.PostMessageMobilePushCallRequest.Parser, new[]{ "Data" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Exchange.V1.PostMessageMobilePushCallResponse), global::Keyapis.Exchange.V1.PostMessageMobilePushCallResponse.Parser, null, null, null, null, null) })); } #endregion } #region Messages /// /// Поток отправляемых событий /// public sealed partial class PostMessageFullDuplexRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostMessageFullDuplexRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Exchange.V1.KeyapisExchangeMessageV1Reflection.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 PostMessageFullDuplexRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMessageFullDuplexRequest(PostMessageFullDuplexRequest other) : this() { requestId_ = other.requestId_; switch (other.TaskCase) { case TaskOneofCase.PostMessagePushCall: PostMessagePushCall = other.PostMessagePushCall.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMessageFullDuplexRequest Clone() { return new PostMessageFullDuplexRequest(this); } /// Field number for the "request_id" field. public const int RequestIdFieldNumber = 1; private string requestId_ = ""; /// /// Идентификатор запроса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RequestId { get { return requestId_; } set { requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "post_message_push_call" field. public const int PostMessagePushCallFieldNumber = 2; /// /// Отправка звонкового сообщения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Exchange.V1.PostMessagePushCallRequest PostMessagePushCall { get { return taskCase_ == TaskOneofCase.PostMessagePushCall ? (global::Keyapis.Exchange.V1.PostMessagePushCallRequest) task_ : null; } set { task_ = value; taskCase_ = value == null ? TaskOneofCase.None : TaskOneofCase.PostMessagePushCall; } } private object task_; /// Enum of possible cases for the "task" oneof. public enum TaskOneofCase { None = 0, PostMessagePushCall = 2, } private TaskOneofCase taskCase_ = TaskOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TaskOneofCase TaskCase { get { return taskCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearTask() { taskCase_ = TaskOneofCase.None; task_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostMessageFullDuplexRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostMessageFullDuplexRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (!object.Equals(PostMessagePushCall, other.PostMessagePushCall)) return false; if (TaskCase != other.TaskCase) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (taskCase_ == TaskOneofCase.PostMessagePushCall) hash ^= PostMessagePushCall.GetHashCode(); hash ^= (int) taskCase_; 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (taskCase_ == TaskOneofCase.PostMessagePushCall) { output.WriteRawTag(18); output.WriteMessage(PostMessagePushCall); } 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (taskCase_ == TaskOneofCase.PostMessagePushCall) { output.WriteRawTag(18); output.WriteMessage(PostMessagePushCall); } 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 (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (taskCase_ == TaskOneofCase.PostMessagePushCall) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PostMessagePushCall); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostMessageFullDuplexRequest other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } switch (other.TaskCase) { case TaskOneofCase.PostMessagePushCall: if (PostMessagePushCall == null) { PostMessagePushCall = new global::Keyapis.Exchange.V1.PostMessagePushCallRequest(); } PostMessagePushCall.MergeFrom(other.PostMessagePushCall); 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: { RequestId = input.ReadString(); break; } case 18: { global::Keyapis.Exchange.V1.PostMessagePushCallRequest subBuilder = new global::Keyapis.Exchange.V1.PostMessagePushCallRequest(); if (taskCase_ == TaskOneofCase.PostMessagePushCall) { subBuilder.MergeFrom(PostMessagePushCall); } input.ReadMessage(subBuilder); PostMessagePushCall = 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: { RequestId = input.ReadString(); break; } case 18: { global::Keyapis.Exchange.V1.PostMessagePushCallRequest subBuilder = new global::Keyapis.Exchange.V1.PostMessagePushCallRequest(); if (taskCase_ == TaskOneofCase.PostMessagePushCall) { subBuilder.MergeFrom(PostMessagePushCall); } input.ReadMessage(subBuilder); PostMessagePushCall = subBuilder; break; } } } } #endif } /// /// Поток ответов на задачи /// public sealed partial class PostMessageFullDuplexResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostMessageFullDuplexResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Exchange.V1.KeyapisExchangeMessageV1Reflection.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 PostMessageFullDuplexResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMessageFullDuplexResponse(PostMessageFullDuplexResponse other) : this() { requestId_ = other.requestId_; switch (other.EventCase) { case EventOneofCase.PostMessagePushCall: PostMessagePushCall = other.PostMessagePushCall.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMessageFullDuplexResponse Clone() { return new PostMessageFullDuplexResponse(this); } /// Field number for the "request_id" field. public const int RequestIdFieldNumber = 1; private string requestId_ = ""; /// /// Идентификатор ответа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RequestId { get { return requestId_; } set { requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "post_message_push_call" field. public const int PostMessagePushCallFieldNumber = 2; /// /// Ответ на отправку звонкового сообщения /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Exchange.V1.PostMessagePushCallResponse PostMessagePushCall { get { return eventCase_ == EventOneofCase.PostMessagePushCall ? (global::Keyapis.Exchange.V1.PostMessagePushCallResponse) event_ : null; } set { event_ = value; eventCase_ = value == null ? EventOneofCase.None : EventOneofCase.PostMessagePushCall; } } private object event_; /// Enum of possible cases for the "event" oneof. public enum EventOneofCase { None = 0, PostMessagePushCall = 2, } private EventOneofCase eventCase_ = EventOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EventOneofCase EventCase { get { return eventCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearEvent() { eventCase_ = EventOneofCase.None; event_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostMessageFullDuplexResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostMessageFullDuplexResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (!object.Equals(PostMessagePushCall, other.PostMessagePushCall)) return false; if (EventCase != other.EventCase) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (eventCase_ == EventOneofCase.PostMessagePushCall) hash ^= PostMessagePushCall.GetHashCode(); hash ^= (int) eventCase_; 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (eventCase_ == EventOneofCase.PostMessagePushCall) { output.WriteRawTag(18); output.WriteMessage(PostMessagePushCall); } 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (eventCase_ == EventOneofCase.PostMessagePushCall) { output.WriteRawTag(18); output.WriteMessage(PostMessagePushCall); } 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 (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (eventCase_ == EventOneofCase.PostMessagePushCall) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PostMessagePushCall); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostMessageFullDuplexResponse other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } switch (other.EventCase) { case EventOneofCase.PostMessagePushCall: if (PostMessagePushCall == null) { PostMessagePushCall = new global::Keyapis.Exchange.V1.PostMessagePushCallResponse(); } PostMessagePushCall.MergeFrom(other.PostMessagePushCall); 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: { RequestId = input.ReadString(); break; } case 18: { global::Keyapis.Exchange.V1.PostMessagePushCallResponse subBuilder = new global::Keyapis.Exchange.V1.PostMessagePushCallResponse(); if (eventCase_ == EventOneofCase.PostMessagePushCall) { subBuilder.MergeFrom(PostMessagePushCall); } input.ReadMessage(subBuilder); PostMessagePushCall = 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: { RequestId = input.ReadString(); break; } case 18: { global::Keyapis.Exchange.V1.PostMessagePushCallResponse subBuilder = new global::Keyapis.Exchange.V1.PostMessagePushCallResponse(); if (eventCase_ == EventOneofCase.PostMessagePushCall) { subBuilder.MergeFrom(PostMessagePushCall); } input.ReadMessage(subBuilder); PostMessagePushCall = subBuilder; break; } } } } #endif } /// /// Звонковое сообщение /// public sealed partial class MessagePushCall : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessagePushCall()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Exchange.V1.KeyapisExchangeMessageV1Reflection.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 MessagePushCall() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MessagePushCall(MessagePushCall other) : this() { message_ = other.message_ != null ? other.message_.Clone() : null; pushCall_ = other.pushCall_ != null ? other.pushCall_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MessagePushCall Clone() { return new MessagePushCall(this); } /// Field number for the "message" field. public const int MessageFieldNumber = 1; private global::Keyapis.Exchange.V1.MessagePushCall.Types.Message message_; /// /// Сообщение /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Exchange.V1.MessagePushCall.Types.Message Message { get { return message_; } set { message_ = value; } } /// Field number for the "push_call" field. public const int PushCallFieldNumber = 2; private global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall pushCall_; /// /// Звонковый пуш /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall PushCall { get { return pushCall_; } set { pushCall_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MessagePushCall); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MessagePushCall other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Message, other.Message)) return false; if (!object.Equals(PushCall, other.PushCall)) 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 (message_ != null) hash ^= Message.GetHashCode(); if (pushCall_ != null) hash ^= PushCall.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 (message_ != null) { output.WriteRawTag(10); output.WriteMessage(Message); } if (pushCall_ != null) { output.WriteRawTag(18); output.WriteMessage(PushCall); } 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 (message_ != null) { output.WriteRawTag(10); output.WriteMessage(Message); } if (pushCall_ != null) { output.WriteRawTag(18); output.WriteMessage(PushCall); } 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 (message_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); } if (pushCall_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PushCall); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(MessagePushCall other) { if (other == null) { return; } if (other.message_ != null) { if (message_ == null) { Message = new global::Keyapis.Exchange.V1.MessagePushCall.Types.Message(); } Message.MergeFrom(other.Message); } if (other.pushCall_ != null) { if (pushCall_ == null) { PushCall = new global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall(); } PushCall.MergeFrom(other.PushCall); } _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 (message_ == null) { Message = new global::Keyapis.Exchange.V1.MessagePushCall.Types.Message(); } input.ReadMessage(Message); break; } case 18: { if (pushCall_ == null) { PushCall = new global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall(); } input.ReadMessage(PushCall); 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 (message_ == null) { Message = new global::Keyapis.Exchange.V1.MessagePushCall.Types.Message(); } input.ReadMessage(Message); break; } case 18: { if (pushCall_ == null) { PushCall = new global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall(); } input.ReadMessage(PushCall); break; } } } } #endif #region Nested types /// Container for nested types declared in the MessagePushCall message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Сообщение /// public sealed partial class Message : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Message()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Exchange.V1.MessagePushCall.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 Message() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Message(Message other) : this() { title_ = other.title_; deviceId_ = other.deviceId_; DeviceTitle = other.DeviceTitle; DeviceCameraId = other.DeviceCameraId; sipServerHost_ = other.sipServerHost_; sipServerPort_ = other.sipServerPort_; sipAccountLogin_ = other.sipAccountLogin_; sipAccountPassword_ = other.sipAccountPassword_; callCreatedAt_ = other.callCreatedAt_ != null ? other.callCreatedAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Message Clone() { return new Message(this); } /// Field number for the "title" field. public const int TitleFieldNumber = 1; private string title_ = ""; /// /// Заголовок уведомления /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Title { get { return title_; } set { title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 2; private int deviceId_; /// /// Идентификатор устройства источника /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DeviceId { get { return deviceId_; } set { deviceId_ = value; } } /// Field number for the "device_title" field. public const int DeviceTitleFieldNumber = 3; private static readonly pb::FieldCodec _single_deviceTitle_codec = pb::FieldCodec.ForClassWrapper(26); private string deviceTitle_; /// /// Название устройства источника /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeviceTitle { get { return deviceTitle_; } set { deviceTitle_ = value; } } /// Field number for the "device_camera_id" field. public const int DeviceCameraIdFieldNumber = 4; private static readonly pb::FieldCodec _single_deviceCameraId_codec = pb::FieldCodec.ForClassWrapper(34); private string deviceCameraId_; /// /// Идентификатор камеры устройства источника. /// Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeviceCameraId { get { return deviceCameraId_; } set { deviceCameraId_ = value; } } /// Field number for the "sip_server_host" field. public const int SipServerHostFieldNumber = 5; private string sipServerHost_ = ""; /// /// Адрес SIP сервера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipServerHost { get { return sipServerHost_; } set { sipServerHost_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "sip_server_port" field. public const int SipServerPortFieldNumber = 6; private int sipServerPort_; /// /// Порт SIP сервера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int SipServerPort { get { return sipServerPort_; } set { sipServerPort_ = value; } } /// Field number for the "sip_account_login" field. public const int SipAccountLoginFieldNumber = 7; private string sipAccountLogin_ = ""; /// /// Логин SIP аккаунта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipAccountLogin { get { return sipAccountLogin_; } set { sipAccountLogin_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "sip_account_password" field. public const int SipAccountPasswordFieldNumber = 8; private string sipAccountPassword_ = ""; /// /// Пароль SIP аккаунта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipAccountPassword { get { return sipAccountPassword_; } set { sipAccountPassword_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "call_created_at" field. public const int CallCreatedAtFieldNumber = 9; private global::Google.Protobuf.WellKnownTypes.Timestamp callCreatedAt_; /// /// Момент инициации звонка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CallCreatedAt { get { return callCreatedAt_; } set { callCreatedAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Message); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Message other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Title != other.Title) return false; if (DeviceId != other.DeviceId) return false; if (DeviceTitle != other.DeviceTitle) return false; if (DeviceCameraId != other.DeviceCameraId) return false; if (SipServerHost != other.SipServerHost) return false; if (SipServerPort != other.SipServerPort) return false; if (SipAccountLogin != other.SipAccountLogin) return false; if (SipAccountPassword != other.SipAccountPassword) return false; if (!object.Equals(CallCreatedAt, other.CallCreatedAt)) 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 (Title.Length != 0) hash ^= Title.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (deviceTitle_ != null) hash ^= DeviceTitle.GetHashCode(); if (deviceCameraId_ != null) hash ^= DeviceCameraId.GetHashCode(); if (SipServerHost.Length != 0) hash ^= SipServerHost.GetHashCode(); if (SipServerPort != 0) hash ^= SipServerPort.GetHashCode(); if (SipAccountLogin.Length != 0) hash ^= SipAccountLogin.GetHashCode(); if (SipAccountPassword.Length != 0) hash ^= SipAccountPassword.GetHashCode(); if (callCreatedAt_ != null) hash ^= CallCreatedAt.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 (Title.Length != 0) { output.WriteRawTag(10); output.WriteString(Title); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (deviceTitle_ != null) { _single_deviceTitle_codec.WriteTagAndValue(output, DeviceTitle); } if (deviceCameraId_ != null) { _single_deviceCameraId_codec.WriteTagAndValue(output, DeviceCameraId); } if (SipServerHost.Length != 0) { output.WriteRawTag(42); output.WriteString(SipServerHost); } if (SipServerPort != 0) { output.WriteRawTag(48); output.WriteInt32(SipServerPort); } if (SipAccountLogin.Length != 0) { output.WriteRawTag(58); output.WriteString(SipAccountLogin); } if (SipAccountPassword.Length != 0) { output.WriteRawTag(66); output.WriteString(SipAccountPassword); } if (callCreatedAt_ != null) { output.WriteRawTag(74); output.WriteMessage(CallCreatedAt); } 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 (Title.Length != 0) { output.WriteRawTag(10); output.WriteString(Title); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (deviceTitle_ != null) { _single_deviceTitle_codec.WriteTagAndValue(ref output, DeviceTitle); } if (deviceCameraId_ != null) { _single_deviceCameraId_codec.WriteTagAndValue(ref output, DeviceCameraId); } if (SipServerHost.Length != 0) { output.WriteRawTag(42); output.WriteString(SipServerHost); } if (SipServerPort != 0) { output.WriteRawTag(48); output.WriteInt32(SipServerPort); } if (SipAccountLogin.Length != 0) { output.WriteRawTag(58); output.WriteString(SipAccountLogin); } if (SipAccountPassword.Length != 0) { output.WriteRawTag(66); output.WriteString(SipAccountPassword); } if (callCreatedAt_ != null) { output.WriteRawTag(74); output.WriteMessage(CallCreatedAt); } 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 (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (deviceTitle_ != null) { size += _single_deviceTitle_codec.CalculateSizeWithTag(DeviceTitle); } if (deviceCameraId_ != null) { size += _single_deviceCameraId_codec.CalculateSizeWithTag(DeviceCameraId); } if (SipServerHost.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SipServerHost); } if (SipServerPort != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(SipServerPort); } if (SipAccountLogin.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SipAccountLogin); } if (SipAccountPassword.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SipAccountPassword); } if (callCreatedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallCreatedAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Message other) { if (other == null) { return; } if (other.Title.Length != 0) { Title = other.Title; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.deviceTitle_ != null) { if (deviceTitle_ == null || other.DeviceTitle != "") { DeviceTitle = other.DeviceTitle; } } if (other.deviceCameraId_ != null) { if (deviceCameraId_ == null || other.DeviceCameraId != "") { DeviceCameraId = other.DeviceCameraId; } } if (other.SipServerHost.Length != 0) { SipServerHost = other.SipServerHost; } if (other.SipServerPort != 0) { SipServerPort = other.SipServerPort; } if (other.SipAccountLogin.Length != 0) { SipAccountLogin = other.SipAccountLogin; } if (other.SipAccountPassword.Length != 0) { SipAccountPassword = other.SipAccountPassword; } if (other.callCreatedAt_ != null) { if (callCreatedAt_ == null) { CallCreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CallCreatedAt.MergeFrom(other.CallCreatedAt); } _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: { Title = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { string value = _single_deviceTitle_codec.Read(input); if (deviceTitle_ == null || value != "") { DeviceTitle = value; } break; } case 34: { string value = _single_deviceCameraId_codec.Read(input); if (deviceCameraId_ == null || value != "") { DeviceCameraId = value; } break; } case 42: { SipServerHost = input.ReadString(); break; } case 48: { SipServerPort = input.ReadInt32(); break; } case 58: { SipAccountLogin = input.ReadString(); break; } case 66: { SipAccountPassword = input.ReadString(); break; } case 74: { if (callCreatedAt_ == null) { CallCreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CallCreatedAt); 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: { Title = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { string value = _single_deviceTitle_codec.Read(ref input); if (deviceTitle_ == null || value != "") { DeviceTitle = value; } break; } case 34: { string value = _single_deviceCameraId_codec.Read(ref input); if (deviceCameraId_ == null || value != "") { DeviceCameraId = value; } break; } case 42: { SipServerHost = input.ReadString(); break; } case 48: { SipServerPort = input.ReadInt32(); break; } case 58: { SipAccountLogin = input.ReadString(); break; } case 66: { SipAccountPassword = input.ReadString(); break; } case 74: { if (callCreatedAt_ == null) { CallCreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CallCreatedAt); break; } } } } #endif } /// /// Звонковый пуш /// public sealed partial class PushCall : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PushCall()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Exchange.V1.MessagePushCall.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PushCall() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PushCall(PushCall other) : this() { token_ = other.token_; type_ = other.type_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PushCall Clone() { return new PushCall(this); } /// Field number for the "token" field. public const int TokenFieldNumber = 1; private string token_ = ""; /// /// Пуш-токен адресата звонка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Token { get { return token_; } set { token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "type" field. public const int TypeFieldNumber = 2; private global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall.Types.Type type_ = global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall.Types.Type.Unknown; /// /// Тип пуш-токена /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall.Types.Type Type { get { return type_; } set { type_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PushCall); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PushCall other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Token != other.Token) return false; if (Type != other.Type) 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 (Token.Length != 0) hash ^= Token.GetHashCode(); if (Type != global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall.Types.Type.Unknown) hash ^= Type.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 (Token.Length != 0) { output.WriteRawTag(10); output.WriteString(Token); } if (Type != global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall.Types.Type.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) Type); } 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 (Token.Length != 0) { output.WriteRawTag(10); output.WriteString(Token); } if (Type != global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall.Types.Type.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) Type); } 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 (Token.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); } if (Type != global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall.Types.Type.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PushCall other) { if (other == null) { return; } if (other.Token.Length != 0) { Token = other.Token; } if (other.Type != global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall.Types.Type.Unknown) { Type = other.Type; } _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: { Token = input.ReadString(); break; } case 16: { Type = (global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall.Types.Type) 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: { Token = input.ReadString(); break; } case 16: { Type = (global::Keyapis.Exchange.V1.MessagePushCall.Types.PushCall.Types.Type) input.ReadEnum(); break; } } } } #endif #region Nested types /// Container for nested types declared in the PushCall message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Тип пуш-токена /// public enum Type { /// /// Не указан /// [pbr::OriginalName("TYPE_UNKNOWN")] Unknown = 0, /// /// Для PWA Firebase Cloud Messaging /// [pbr::OriginalName("PWA_FCM")] PwaFcm = 1, /// /// Для PWA Apple Notification System /// [pbr::OriginalName("PWA_APNS")] PwaApns = 2, } } #endregion } } #endregion } /// /// Звонковое сообщение для мобильных приложений /// public sealed partial class MessageMobilePushCall : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageMobilePushCall()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Exchange.V1.KeyapisExchangeMessageV1Reflection.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 MessageMobilePushCall() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MessageMobilePushCall(MessageMobilePushCall other) : this() { message_ = other.message_ != null ? other.message_.Clone() : null; pushCall_ = other.pushCall_ != null ? other.pushCall_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public MessageMobilePushCall Clone() { return new MessageMobilePushCall(this); } /// Field number for the "message" field. public const int MessageFieldNumber = 1; private global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.Message message_; /// /// Сообщение /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.Message Message { get { return message_; } set { message_ = value; } } /// Field number for the "push_call" field. public const int PushCallFieldNumber = 2; private global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall pushCall_; /// /// Звонковый пуш /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall PushCall { get { return pushCall_; } set { pushCall_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as MessageMobilePushCall); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(MessageMobilePushCall other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Message, other.Message)) return false; if (!object.Equals(PushCall, other.PushCall)) 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 (message_ != null) hash ^= Message.GetHashCode(); if (pushCall_ != null) hash ^= PushCall.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 (message_ != null) { output.WriteRawTag(10); output.WriteMessage(Message); } if (pushCall_ != null) { output.WriteRawTag(18); output.WriteMessage(PushCall); } 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 (message_ != null) { output.WriteRawTag(10); output.WriteMessage(Message); } if (pushCall_ != null) { output.WriteRawTag(18); output.WriteMessage(PushCall); } 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 (message_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Message); } if (pushCall_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(PushCall); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(MessageMobilePushCall other) { if (other == null) { return; } if (other.message_ != null) { if (message_ == null) { Message = new global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.Message(); } Message.MergeFrom(other.Message); } if (other.pushCall_ != null) { if (pushCall_ == null) { PushCall = new global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall(); } PushCall.MergeFrom(other.PushCall); } _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 (message_ == null) { Message = new global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.Message(); } input.ReadMessage(Message); break; } case 18: { if (pushCall_ == null) { PushCall = new global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall(); } input.ReadMessage(PushCall); 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 (message_ == null) { Message = new global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.Message(); } input.ReadMessage(Message); break; } case 18: { if (pushCall_ == null) { PushCall = new global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall(); } input.ReadMessage(PushCall); break; } } } } #endif #region Nested types /// Container for nested types declared in the MessageMobilePushCall message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Сообщение /// public sealed partial class Message : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Message()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Exchange.V1.MessageMobilePushCall.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 Message() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Message(Message other) : this() { title_ = other.title_; deviceId_ = other.deviceId_; DeviceTitle = other.DeviceTitle; DeviceCameraId = other.DeviceCameraId; sipToken_ = other.sipToken_; SipServerHost = other.SipServerHost; SipServerPort = other.SipServerPort; SipAccountLogin = other.SipAccountLogin; SipAccountPassword = other.SipAccountPassword; StunServerHost = other.StunServerHost; StunServerPort = other.StunServerPort; callCreatedAt_ = other.callCreatedAt_ != null ? other.callCreatedAt_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Message Clone() { return new Message(this); } /// Field number for the "title" field. public const int TitleFieldNumber = 1; private string title_ = ""; /// /// Заголовок уведомления /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Title { get { return title_; } set { title_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 2; private int deviceId_; /// /// Идентификатор устройства источника /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DeviceId { get { return deviceId_; } set { deviceId_ = value; } } /// Field number for the "device_title" field. public const int DeviceTitleFieldNumber = 3; private static readonly pb::FieldCodec _single_deviceTitle_codec = pb::FieldCodec.ForClassWrapper(26); private string deviceTitle_; /// /// Название устройства источника /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeviceTitle { get { return deviceTitle_; } set { deviceTitle_ = value; } } /// Field number for the "device_camera_id" field. public const int DeviceCameraIdFieldNumber = 4; private static readonly pb::FieldCodec _single_deviceCameraId_codec = pb::FieldCodec.ForClassWrapper(34); private string deviceCameraId_; /// /// Идентификатор камеры устройства источника. /// Тип: Guid /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeviceCameraId { get { return deviceCameraId_; } set { deviceCameraId_ = value; } } /// Field number for the "sip_token" field. public const int SipTokenFieldNumber = 5; private string sipToken_ = ""; /// /// SIP-токен /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipToken { get { return sipToken_; } set { sipToken_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "sip_server_host" field. public const int SipServerHostFieldNumber = 6; private static readonly pb::FieldCodec _single_sipServerHost_codec = pb::FieldCodec.ForClassWrapper(50); private string sipServerHost_; /// /// Адрес SIP сервера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipServerHost { get { return sipServerHost_; } set { sipServerHost_ = value; } } /// Field number for the "sip_server_port" field. public const int SipServerPortFieldNumber = 7; private static readonly pb::FieldCodec _single_sipServerPort_codec = pb::FieldCodec.ForStructWrapper(58); private int? sipServerPort_; /// /// Порт SIP сервера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? SipServerPort { get { return sipServerPort_; } set { sipServerPort_ = value; } } /// Field number for the "sip_account_login" field. public const int SipAccountLoginFieldNumber = 8; private static readonly pb::FieldCodec _single_sipAccountLogin_codec = pb::FieldCodec.ForClassWrapper(66); private string sipAccountLogin_; /// /// Логин SIP аккаунта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipAccountLogin { get { return sipAccountLogin_; } set { sipAccountLogin_ = value; } } /// Field number for the "sip_account_password" field. public const int SipAccountPasswordFieldNumber = 9; private static readonly pb::FieldCodec _single_sipAccountPassword_codec = pb::FieldCodec.ForClassWrapper(74); private string sipAccountPassword_; /// /// Пароль SIP аккаунта /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string SipAccountPassword { get { return sipAccountPassword_; } set { sipAccountPassword_ = value; } } /// Field number for the "stun_server_host" field. public const int StunServerHostFieldNumber = 10; private static readonly pb::FieldCodec _single_stunServerHost_codec = pb::FieldCodec.ForClassWrapper(82); private string stunServerHost_; /// /// Адрес STUN сервера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string StunServerHost { get { return stunServerHost_; } set { stunServerHost_ = value; } } /// Field number for the "stun_server_port" field. public const int StunServerPortFieldNumber = 11; private static readonly pb::FieldCodec _single_stunServerPort_codec = pb::FieldCodec.ForStructWrapper(90); private int? stunServerPort_; /// /// Порт STUN сервера /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int? StunServerPort { get { return stunServerPort_; } set { stunServerPort_ = value; } } /// Field number for the "call_created_at" field. public const int CallCreatedAtFieldNumber = 12; private global::Google.Protobuf.WellKnownTypes.Timestamp callCreatedAt_; /// /// Момент инициации звонка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.Timestamp CallCreatedAt { get { return callCreatedAt_; } set { callCreatedAt_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Message); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Message other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Title != other.Title) return false; if (DeviceId != other.DeviceId) return false; if (DeviceTitle != other.DeviceTitle) return false; if (DeviceCameraId != other.DeviceCameraId) return false; if (SipToken != other.SipToken) return false; if (SipServerHost != other.SipServerHost) return false; if (SipServerPort != other.SipServerPort) return false; if (SipAccountLogin != other.SipAccountLogin) return false; if (SipAccountPassword != other.SipAccountPassword) return false; if (StunServerHost != other.StunServerHost) return false; if (StunServerPort != other.StunServerPort) return false; if (!object.Equals(CallCreatedAt, other.CallCreatedAt)) 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 (Title.Length != 0) hash ^= Title.GetHashCode(); if (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (deviceTitle_ != null) hash ^= DeviceTitle.GetHashCode(); if (deviceCameraId_ != null) hash ^= DeviceCameraId.GetHashCode(); if (SipToken.Length != 0) hash ^= SipToken.GetHashCode(); if (sipServerHost_ != null) hash ^= SipServerHost.GetHashCode(); if (sipServerPort_ != null) hash ^= SipServerPort.GetHashCode(); if (sipAccountLogin_ != null) hash ^= SipAccountLogin.GetHashCode(); if (sipAccountPassword_ != null) hash ^= SipAccountPassword.GetHashCode(); if (stunServerHost_ != null) hash ^= StunServerHost.GetHashCode(); if (stunServerPort_ != null) hash ^= StunServerPort.GetHashCode(); if (callCreatedAt_ != null) hash ^= CallCreatedAt.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 (Title.Length != 0) { output.WriteRawTag(10); output.WriteString(Title); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (deviceTitle_ != null) { _single_deviceTitle_codec.WriteTagAndValue(output, DeviceTitle); } if (deviceCameraId_ != null) { _single_deviceCameraId_codec.WriteTagAndValue(output, DeviceCameraId); } if (SipToken.Length != 0) { output.WriteRawTag(42); output.WriteString(SipToken); } if (sipServerHost_ != null) { _single_sipServerHost_codec.WriteTagAndValue(output, SipServerHost); } if (sipServerPort_ != null) { _single_sipServerPort_codec.WriteTagAndValue(output, SipServerPort); } if (sipAccountLogin_ != null) { _single_sipAccountLogin_codec.WriteTagAndValue(output, SipAccountLogin); } if (sipAccountPassword_ != null) { _single_sipAccountPassword_codec.WriteTagAndValue(output, SipAccountPassword); } if (stunServerHost_ != null) { _single_stunServerHost_codec.WriteTagAndValue(output, StunServerHost); } if (stunServerPort_ != null) { _single_stunServerPort_codec.WriteTagAndValue(output, StunServerPort); } if (callCreatedAt_ != null) { output.WriteRawTag(98); output.WriteMessage(CallCreatedAt); } 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 (Title.Length != 0) { output.WriteRawTag(10); output.WriteString(Title); } if (DeviceId != 0) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (deviceTitle_ != null) { _single_deviceTitle_codec.WriteTagAndValue(ref output, DeviceTitle); } if (deviceCameraId_ != null) { _single_deviceCameraId_codec.WriteTagAndValue(ref output, DeviceCameraId); } if (SipToken.Length != 0) { output.WriteRawTag(42); output.WriteString(SipToken); } if (sipServerHost_ != null) { _single_sipServerHost_codec.WriteTagAndValue(ref output, SipServerHost); } if (sipServerPort_ != null) { _single_sipServerPort_codec.WriteTagAndValue(ref output, SipServerPort); } if (sipAccountLogin_ != null) { _single_sipAccountLogin_codec.WriteTagAndValue(ref output, SipAccountLogin); } if (sipAccountPassword_ != null) { _single_sipAccountPassword_codec.WriteTagAndValue(ref output, SipAccountPassword); } if (stunServerHost_ != null) { _single_stunServerHost_codec.WriteTagAndValue(ref output, StunServerHost); } if (stunServerPort_ != null) { _single_stunServerPort_codec.WriteTagAndValue(ref output, StunServerPort); } if (callCreatedAt_ != null) { output.WriteRawTag(98); output.WriteMessage(CallCreatedAt); } 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 (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (deviceTitle_ != null) { size += _single_deviceTitle_codec.CalculateSizeWithTag(DeviceTitle); } if (deviceCameraId_ != null) { size += _single_deviceCameraId_codec.CalculateSizeWithTag(DeviceCameraId); } if (SipToken.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SipToken); } if (sipServerHost_ != null) { size += _single_sipServerHost_codec.CalculateSizeWithTag(SipServerHost); } if (sipServerPort_ != null) { size += _single_sipServerPort_codec.CalculateSizeWithTag(SipServerPort); } if (sipAccountLogin_ != null) { size += _single_sipAccountLogin_codec.CalculateSizeWithTag(SipAccountLogin); } if (sipAccountPassword_ != null) { size += _single_sipAccountPassword_codec.CalculateSizeWithTag(SipAccountPassword); } if (stunServerHost_ != null) { size += _single_stunServerHost_codec.CalculateSizeWithTag(StunServerHost); } if (stunServerPort_ != null) { size += _single_stunServerPort_codec.CalculateSizeWithTag(StunServerPort); } if (callCreatedAt_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(CallCreatedAt); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Message other) { if (other == null) { return; } if (other.Title.Length != 0) { Title = other.Title; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.deviceTitle_ != null) { if (deviceTitle_ == null || other.DeviceTitle != "") { DeviceTitle = other.DeviceTitle; } } if (other.deviceCameraId_ != null) { if (deviceCameraId_ == null || other.DeviceCameraId != "") { DeviceCameraId = other.DeviceCameraId; } } if (other.SipToken.Length != 0) { SipToken = other.SipToken; } if (other.sipServerHost_ != null) { if (sipServerHost_ == null || other.SipServerHost != "") { SipServerHost = other.SipServerHost; } } if (other.sipServerPort_ != null) { if (sipServerPort_ == null || other.SipServerPort != 0) { SipServerPort = other.SipServerPort; } } if (other.sipAccountLogin_ != null) { if (sipAccountLogin_ == null || other.SipAccountLogin != "") { SipAccountLogin = other.SipAccountLogin; } } if (other.sipAccountPassword_ != null) { if (sipAccountPassword_ == null || other.SipAccountPassword != "") { SipAccountPassword = other.SipAccountPassword; } } if (other.stunServerHost_ != null) { if (stunServerHost_ == null || other.StunServerHost != "") { StunServerHost = other.StunServerHost; } } if (other.stunServerPort_ != null) { if (stunServerPort_ == null || other.StunServerPort != 0) { StunServerPort = other.StunServerPort; } } if (other.callCreatedAt_ != null) { if (callCreatedAt_ == null) { CallCreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CallCreatedAt.MergeFrom(other.CallCreatedAt); } _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: { Title = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { string value = _single_deviceTitle_codec.Read(input); if (deviceTitle_ == null || value != "") { DeviceTitle = value; } break; } case 34: { string value = _single_deviceCameraId_codec.Read(input); if (deviceCameraId_ == null || value != "") { DeviceCameraId = value; } break; } case 42: { SipToken = input.ReadString(); break; } case 50: { string value = _single_sipServerHost_codec.Read(input); if (sipServerHost_ == null || value != "") { SipServerHost = value; } break; } case 58: { int? value = _single_sipServerPort_codec.Read(input); if (sipServerPort_ == null || value != 0) { SipServerPort = value; } break; } case 66: { string value = _single_sipAccountLogin_codec.Read(input); if (sipAccountLogin_ == null || value != "") { SipAccountLogin = value; } break; } case 74: { string value = _single_sipAccountPassword_codec.Read(input); if (sipAccountPassword_ == null || value != "") { SipAccountPassword = value; } break; } case 82: { string value = _single_stunServerHost_codec.Read(input); if (stunServerHost_ == null || value != "") { StunServerHost = value; } break; } case 90: { int? value = _single_stunServerPort_codec.Read(input); if (stunServerPort_ == null || value != 0) { StunServerPort = value; } break; } case 98: { if (callCreatedAt_ == null) { CallCreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CallCreatedAt); 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: { Title = input.ReadString(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { string value = _single_deviceTitle_codec.Read(ref input); if (deviceTitle_ == null || value != "") { DeviceTitle = value; } break; } case 34: { string value = _single_deviceCameraId_codec.Read(ref input); if (deviceCameraId_ == null || value != "") { DeviceCameraId = value; } break; } case 42: { SipToken = input.ReadString(); break; } case 50: { string value = _single_sipServerHost_codec.Read(ref input); if (sipServerHost_ == null || value != "") { SipServerHost = value; } break; } case 58: { int? value = _single_sipServerPort_codec.Read(ref input); if (sipServerPort_ == null || value != 0) { SipServerPort = value; } break; } case 66: { string value = _single_sipAccountLogin_codec.Read(ref input); if (sipAccountLogin_ == null || value != "") { SipAccountLogin = value; } break; } case 74: { string value = _single_sipAccountPassword_codec.Read(ref input); if (sipAccountPassword_ == null || value != "") { SipAccountPassword = value; } break; } case 82: { string value = _single_stunServerHost_codec.Read(ref input); if (stunServerHost_ == null || value != "") { StunServerHost = value; } break; } case 90: { int? value = _single_stunServerPort_codec.Read(ref input); if (stunServerPort_ == null || value != 0) { StunServerPort = value; } break; } case 98: { if (callCreatedAt_ == null) { CallCreatedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(CallCreatedAt); break; } } } } #endif } /// /// Звонковый пуш /// public sealed partial class PushCall : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PushCall()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Exchange.V1.MessageMobilePushCall.Descriptor.NestedTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PushCall() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PushCall(PushCall other) : this() { token_ = other.token_; type_ = other.type_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PushCall Clone() { return new PushCall(this); } /// Field number for the "token" field. public const int TokenFieldNumber = 1; private string token_ = ""; /// /// Пуш-токен адресата звонка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Token { get { return token_; } set { token_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "type" field. public const int TypeFieldNumber = 2; private global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall.Types.Type type_ = global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall.Types.Type.Unknown; /// /// Тип пуш-токена /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall.Types.Type Type { get { return type_; } set { type_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PushCall); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PushCall other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Token != other.Token) return false; if (Type != other.Type) 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 (Token.Length != 0) hash ^= Token.GetHashCode(); if (Type != global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall.Types.Type.Unknown) hash ^= Type.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 (Token.Length != 0) { output.WriteRawTag(10); output.WriteString(Token); } if (Type != global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall.Types.Type.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) Type); } 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 (Token.Length != 0) { output.WriteRawTag(10); output.WriteString(Token); } if (Type != global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall.Types.Type.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) Type); } 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 (Token.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Token); } if (Type != global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall.Types.Type.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PushCall other) { if (other == null) { return; } if (other.Token.Length != 0) { Token = other.Token; } if (other.Type != global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall.Types.Type.Unknown) { Type = other.Type; } _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: { Token = input.ReadString(); break; } case 16: { Type = (global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall.Types.Type) 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: { Token = input.ReadString(); break; } case 16: { Type = (global::Keyapis.Exchange.V1.MessageMobilePushCall.Types.PushCall.Types.Type) input.ReadEnum(); break; } } } } #endif #region Nested types /// Container for nested types declared in the PushCall message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Тип пуш-токена /// public enum Type { /// /// Не указан /// [pbr::OriginalName("TYPE_UNKNOWN")] Unknown = 0, /// /// Для Mobile Firebase Cloud Messaging /// [pbr::OriginalName("MOBILE_FCM")] MobileFcm = 1, /// /// Для Mobile Huawei Messaging System /// [pbr::OriginalName("MOBILE_HMS")] MobileHms = 2, /// /// Для Mobile Apple PushToken System для текста /// [pbr::OriginalName("MOBILE_APNS_TEXT")] MobileApnsText = 3, /// /// Для Mobile Apple PushToken System для звонков /// [pbr::OriginalName("MOBILE_APNS_CALL")] MobileApnsCall = 4, /// /// Для Mobile RuStore /// [pbr::OriginalName("MOBILE_RUSTORE")] MobileRustore = 5, } } #endregion } } #endregion } /// /// Запрос на отправку звонкового пуш сообщения /// public sealed partial class PostMessagePushCallRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostMessagePushCallRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Exchange.V1.KeyapisExchangeMessageV1Reflection.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 PostMessagePushCallRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMessagePushCallRequest(PostMessagePushCallRequest 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 PostMessagePushCallRequest Clone() { return new PostMessagePushCallRequest(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Keyapis.Exchange.V1.MessagePushCall data_; /// /// Звонковый пуш /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Exchange.V1.MessagePushCall 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 PostMessagePushCallRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostMessagePushCallRequest 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(PostMessagePushCallRequest other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Keyapis.Exchange.V1.MessagePushCall(); } 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::Keyapis.Exchange.V1.MessagePushCall(); } 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::Keyapis.Exchange.V1.MessagePushCall(); } input.ReadMessage(Data); break; } } } } #endif } /// /// Ответ на запрос на отправку звонкового пуш сообщения /// public sealed partial class PostMessagePushCallResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostMessagePushCallResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Exchange.V1.KeyapisExchangeMessageV1Reflection.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 PostMessagePushCallResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMessagePushCallResponse(PostMessagePushCallResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMessagePushCallResponse Clone() { return new PostMessagePushCallResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostMessagePushCallResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostMessagePushCallResponse 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(PostMessagePushCallResponse 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 PostMessageMobilePushCallRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostMessageMobilePushCallRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Exchange.V1.KeyapisExchangeMessageV1Reflection.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 PostMessageMobilePushCallRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMessageMobilePushCallRequest(PostMessageMobilePushCallRequest 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 PostMessageMobilePushCallRequest Clone() { return new PostMessageMobilePushCallRequest(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Keyapis.Exchange.V1.MessageMobilePushCall data_; /// /// Звонковый пуш /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Exchange.V1.MessageMobilePushCall 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 PostMessageMobilePushCallRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostMessageMobilePushCallRequest 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(PostMessageMobilePushCallRequest other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Keyapis.Exchange.V1.MessageMobilePushCall(); } 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::Keyapis.Exchange.V1.MessageMobilePushCall(); } 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::Keyapis.Exchange.V1.MessageMobilePushCall(); } input.ReadMessage(Data); break; } } } } #endif } /// /// Ответ на запрос на отправку звонкового пуш сообщения для мобильного приложения /// public sealed partial class PostMessageMobilePushCallResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostMessageMobilePushCallResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Keyapis.Exchange.V1.KeyapisExchangeMessageV1Reflection.Descriptor.MessageTypes[7]; } } [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 PostMessageMobilePushCallResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMessageMobilePushCallResponse(PostMessageMobilePushCallResponse other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostMessageMobilePushCallResponse Clone() { return new PostMessageMobilePushCallResponse(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostMessageMobilePushCallResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostMessageMobilePushCallResponse 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(PostMessageMobilePushCallResponse 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 Designer generated code