// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/signal/v1/keyapis_signal_signal_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.Signal.V1 { /// Holder for reflection information generated from keyapis/signal/v1/keyapis_signal_signal_v1.proto public static partial class KeyapisSignalSignalV1Reflection { #region Descriptor /// File descriptor for keyapis/signal/v1/keyapis_signal_signal_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisSignalSignalV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjBrZXlhcGlzL3NpZ25hbC92MS9rZXlhcGlzX3NpZ25hbF9zaWduYWxfdjEu", "cHJvdG8SEWtleWFwaXMuc2lnbmFsLnYxIrUKCgZTaWduYWwSDAoEdGltZRgB", "IAEoAxIMCgRuYW1lGAIgASgJEjEKB3N1YmplY3QYAyABKAsyIC5rZXlhcGlz", "LnNpZ25hbC52MS5TaWduYWwuRW50aXR5Eg8KB21lc3NhZ2UYBCABKAkSPAoM", "c3Vic2NyaXB0aW9uGAUgASgLMiYua2V5YXBpcy5zaWduYWwudjEuU2lnbmFs", "LlN1YnNjcmlwdGlvbhIyCgdpbnZvaWNlGAYgASgLMiEua2V5YXBpcy5zaWdu", "YWwudjEuU2lnbmFsLkludm9pY2USMAoGb2JqZWN0GAcgASgLMiAua2V5YXBp", "cy5zaWduYWwudjEuU2lnbmFsLkVudGl0eRI3CgdwYXlsb2FkGAggAygLMiYu", "a2V5YXBpcy5zaWduYWwudjEuU2lnbmFsLlBheWxvYWRFbnRyeRIxCgRtZXRh", "GAkgAygLMiMua2V5YXBpcy5zaWduYWwudjEuU2lnbmFsLk1ldGFFbnRyeRql", "AwoGRW50aXR5EhAKCHBsYWNlX2lkGAEgASgJEhMKC3BsYWNlX2xhYmVsGAIg", "ASgJEg8KB3VzZXJfaWQYAyABKAkSEgoKdXNlcl9sYWJlbBgEIAEoCRIQCghn", "cm91cF9pZBgFIAEoCRITCgtncm91cF90aXRsZRgGIAEoCRIRCglkZXZpY2Vf", "aWQYByABKAkSFAoMZGV2aWNlX2xhYmVsGAggASgJEhoKEmRldmljZV9yZWxh", "eV9pbmRleBgJIAEoCRIRCgljYW1lcmFfaWQYCiABKAkSFAoMY2FtZXJhX2xh", "YmVsGAsgASgJEgsKA2tleRgMIAEoCRIMCgRjb2RlGA0gASgJEhEKCWR0bWZf", "Y29kZRgOIAEoCRINCgVwaG9uZRgPIAEoCRI+CgdwYXlsb2FkGBAgAygLMi0u", "a2V5YXBpcy5zaWduYWwudjEuU2lnbmFsLkVudGl0eS5QYXlsb2FkRW50cnkS", "DQoFZW1haWwYESABKAkaLgoMUGF5bG9hZEVudHJ5EgsKA2tleRgBIAEoCRIN", "CgV2YWx1ZRgCIAEoCToCOAEawwEKDFN1YnNjcmlwdGlvbhIKCgJpZBgBIAEo", "CRINCgV0aXRsZRgCIAEoCRIOCgZzdGF0dXMYAyABKAkSEgoKcHJpdmlsZWdl", "cxgEIAMoCRJECgdwYXlsb2FkGAUgAygLMjMua2V5YXBpcy5zaWduYWwudjEu", "U2lnbmFsLlN1YnNjcmlwdGlvbi5QYXlsb2FkRW50cnkaLgoMUGF5bG9hZEVu", "dHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEa7wEKB0ludm9p", "Y2USCgoCaWQYASABKAkSDQoFdGl0bGUYAiABKAkSFAoMdG90YWxfYW1vdW50", "GAMgASgCEg4KBnN0YXR1cxgEIAEoCRINCgVwaG9uZRgFIAEoCRINCgVlbWFp", "bBgGIAEoCRIUCgxwb3NpdGlvbl9pZHMYByADKAkSPwoHcGF5bG9hZBgIIAMo", "CzIuLmtleWFwaXMuc2lnbmFsLnYxLlNpZ25hbC5JbnZvaWNlLlBheWxvYWRF", "bnRyeRouCgxQYXlsb2FkRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIg", "ASgJOgI4ARouCgxQYXlsb2FkRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVl", "GAIgASgJOgI4ARorCglNZXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVl", "GAIgASgJOgI4AUKaAQoUcnUua2V5YXBpcy5zaWduYWwudjFCFEtleWFwaXNT", "aWduYWxWMVByb3RvSANQAFoSL2tleWFwaXNfc2lnbmFsX3Yx2AEB+AEBogIP", "S0VZQVBJU1NJR05BTFYxqgIRS2V5YXBpcy5TaWduYWwuVjHKAhFLZXlhcGlz", "XFNpZ25hbFxWMeoCE0tleWFwaXM6OlNpZ25hbDo6VjFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Signal.V1.Signal), global::Keyapis.Signal.V1.Signal.Parser, new[]{ "Time", "Name", "Subject", "Message", "Subscription", "Invoice", "Object", "Payload", "Meta" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Signal.V1.Signal.Types.Entity), global::Keyapis.Signal.V1.Signal.Types.Entity.Parser, new[]{ "PlaceId", "PlaceLabel", "UserId", "UserLabel", "GroupId", "GroupTitle", "DeviceId", "DeviceLabel", "DeviceRelayIndex", "CameraId", "CameraLabel", "Key", "Code", "DtmfCode", "Phone", "Payload", "Email" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Signal.V1.Signal.Types.Subscription), global::Keyapis.Signal.V1.Signal.Types.Subscription.Parser, new[]{ "Id", "Title", "Status", "Privileges", "Payload" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Signal.V1.Signal.Types.Invoice), global::Keyapis.Signal.V1.Signal.Types.Invoice.Parser, new[]{ "Id", "Title", "TotalAmount", "Status", "Phone", "Email", "PositionIds", "Payload" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), null, null, }) })); } #endregion } #region Messages /// /// Сигнал. /// Если информация неизвестна то колонки заполняются следующим образом: /// 1/ Cтрока - как пустая строка; /// 2/ Цифра - как 0; /// 3/ Массив - как пустой массив; /// Некоторые данные в одних и тех же сигналах могут отсутствовать. /// Так как в момент создания сигнала их нет в тех сервисах в которых они выполняются. /// Все виды сигналов передаются в топиках: key.signal.* /// public sealed partial class Signal : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Signal()); 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.Signal.V1.KeyapisSignalSignalV1Reflection.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 Signal() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Signal(Signal other) : this() { time_ = other.time_; name_ = other.name_; subject_ = other.subject_ != null ? other.subject_.Clone() : null; message_ = other.message_; subscription_ = other.subscription_ != null ? other.subscription_.Clone() : null; invoice_ = other.invoice_ != null ? other.invoice_.Clone() : null; object_ = other.object_ != null ? other.object_.Clone() : null; payload_ = other.payload_.Clone(); meta_ = other.meta_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Signal Clone() { return new Signal(this); } /// Field number for the "time" field. public const int TimeFieldNumber = 1; private long time_; /// /// Время возникновения сигнала. /// В секундах от 01.01.1970 года в UTC. /// Присутствует всегда /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Time { get { return time_; } set { time_ = value; } } /// Field number for the "name" field. public const int NameFieldNumber = 2; private string name_ = ""; /// /// Название сигнала. /// Присутствует всегда /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "subject" field. public const int SubjectFieldNumber = 3; private global::Keyapis.Signal.V1.Signal.Types.Entity subject_; /// /// Информация о субъекте действия с которым связан сигнал. /// К чему сигнал относится. /// Заполнено если такая информация присутствует в програмном модуле обрабатывающий запрос, иначе пусто. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Signal.V1.Signal.Types.Entity Subject { get { return subject_; } set { subject_ = value; } } /// Field number for the "message" field. public const int MessageFieldNumber = 4; private string message_ = ""; /// /// Текстовая информация. /// К примеру текст ошибки. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { get { return message_; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "subscription" field. public const int SubscriptionFieldNumber = 5; private global::Keyapis.Signal.V1.Signal.Types.Subscription subscription_; /// /// Информация о подписке с которой связан сигнал. /// Характеризует что доступно или не доступно пользователю. /// Заполнено если такая информация присутствует в програмном модуле обрабатывающий запрос, иначе пусто. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Signal.V1.Signal.Types.Subscription Subscription { get { return subscription_; } set { subscription_ = value; } } /// Field number for the "invoice" field. public const int InvoiceFieldNumber = 6; private global::Keyapis.Signal.V1.Signal.Types.Invoice invoice_; /// /// Информация о выставленном счёте с которым связан сигнал. /// Характеризует состояние оплаты. /// Заполнено если такая информация присутствует в програмном модуле обрабатывающий запрос, иначе пусто. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Signal.V1.Signal.Types.Invoice Invoice { get { return invoice_; } set { invoice_ = value; } } /// Field number for the "object" field. public const int ObjectFieldNumber = 7; private global::Keyapis.Signal.V1.Signal.Types.Entity object_; /// /// Информация о объекте действия с которым связан сигнал. /// К чему сигнал относится. /// Заполнено если такая информация присутствует в програмном модуле обрабатывающий запрос, иначе пусто. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Signal.V1.Signal.Types.Entity Object { get { return object_; } set { object_ = value; } } /// Field number for the "payload" field. public const int PayloadFieldNumber = 8; private static readonly pbc::MapField.Codec _map_payload_codec = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 66); private readonly pbc::MapField payload_ = new pbc::MapField(); /// /// Дополнительная полезная нагрузка. /// К примеру тэги. /// Тут можно поместить ту информацию которая не вошла в схему, но будет полезна или стала нужна /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Payload { get { return payload_; } } /// Field number for the "meta" field. public const int MetaFieldNumber = 9; private static readonly pbc::MapField.Codec _map_meta_codec = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 74); private readonly pbc::MapField meta_ = new pbc::MapField(); /// /// Мета информация. /// Некоторая информация которая присутствует в запросе. /// К примеру это http заголовки запроса: X-Request-Id, User-Agent, X-Forwarded-For и тд /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Meta { get { return meta_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Signal); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Signal other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Time != other.Time) return false; if (Name != other.Name) return false; if (!object.Equals(Subject, other.Subject)) return false; if (Message != other.Message) return false; if (!object.Equals(Subscription, other.Subscription)) return false; if (!object.Equals(Invoice, other.Invoice)) return false; if (!object.Equals(Object, other.Object)) return false; if (!Payload.Equals(other.Payload)) return false; if (!Meta.Equals(other.Meta)) 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 (Time != 0L) hash ^= Time.GetHashCode(); if (Name.Length != 0) hash ^= Name.GetHashCode(); if (subject_ != null) hash ^= Subject.GetHashCode(); if (Message.Length != 0) hash ^= Message.GetHashCode(); if (subscription_ != null) hash ^= Subscription.GetHashCode(); if (invoice_ != null) hash ^= Invoice.GetHashCode(); if (object_ != null) hash ^= Object.GetHashCode(); hash ^= Payload.GetHashCode(); hash ^= Meta.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 (Time != 0L) { output.WriteRawTag(8); output.WriteInt64(Time); } if (Name.Length != 0) { output.WriteRawTag(18); output.WriteString(Name); } if (subject_ != null) { output.WriteRawTag(26); output.WriteMessage(Subject); } if (Message.Length != 0) { output.WriteRawTag(34); output.WriteString(Message); } if (subscription_ != null) { output.WriteRawTag(42); output.WriteMessage(Subscription); } if (invoice_ != null) { output.WriteRawTag(50); output.WriteMessage(Invoice); } if (object_ != null) { output.WriteRawTag(58); output.WriteMessage(Object); } payload_.WriteTo(output, _map_payload_codec); meta_.WriteTo(output, _map_meta_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Time != 0L) { output.WriteRawTag(8); output.WriteInt64(Time); } if (Name.Length != 0) { output.WriteRawTag(18); output.WriteString(Name); } if (subject_ != null) { output.WriteRawTag(26); output.WriteMessage(Subject); } if (Message.Length != 0) { output.WriteRawTag(34); output.WriteString(Message); } if (subscription_ != null) { output.WriteRawTag(42); output.WriteMessage(Subscription); } if (invoice_ != null) { output.WriteRawTag(50); output.WriteMessage(Invoice); } if (object_ != null) { output.WriteRawTag(58); output.WriteMessage(Object); } payload_.WriteTo(ref output, _map_payload_codec); meta_.WriteTo(ref output, _map_meta_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Time != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Time); } if (Name.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); } if (subject_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subject); } if (Message.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (subscription_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Subscription); } if (invoice_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Invoice); } if (object_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Object); } size += payload_.CalculateSize(_map_payload_codec); size += meta_.CalculateSize(_map_meta_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Signal other) { if (other == null) { return; } if (other.Time != 0L) { Time = other.Time; } if (other.Name.Length != 0) { Name = other.Name; } if (other.subject_ != null) { if (subject_ == null) { Subject = new global::Keyapis.Signal.V1.Signal.Types.Entity(); } Subject.MergeFrom(other.Subject); } if (other.Message.Length != 0) { Message = other.Message; } if (other.subscription_ != null) { if (subscription_ == null) { Subscription = new global::Keyapis.Signal.V1.Signal.Types.Subscription(); } Subscription.MergeFrom(other.Subscription); } if (other.invoice_ != null) { if (invoice_ == null) { Invoice = new global::Keyapis.Signal.V1.Signal.Types.Invoice(); } Invoice.MergeFrom(other.Invoice); } if (other.object_ != null) { if (object_ == null) { Object = new global::Keyapis.Signal.V1.Signal.Types.Entity(); } Object.MergeFrom(other.Object); } payload_.MergeFrom(other.payload_); meta_.MergeFrom(other.meta_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Time = input.ReadInt64(); break; } case 18: { Name = input.ReadString(); break; } case 26: { if (subject_ == null) { Subject = new global::Keyapis.Signal.V1.Signal.Types.Entity(); } input.ReadMessage(Subject); break; } case 34: { Message = input.ReadString(); break; } case 42: { if (subscription_ == null) { Subscription = new global::Keyapis.Signal.V1.Signal.Types.Subscription(); } input.ReadMessage(Subscription); break; } case 50: { if (invoice_ == null) { Invoice = new global::Keyapis.Signal.V1.Signal.Types.Invoice(); } input.ReadMessage(Invoice); break; } case 58: { if (object_ == null) { Object = new global::Keyapis.Signal.V1.Signal.Types.Entity(); } input.ReadMessage(Object); break; } case 66: { payload_.AddEntriesFrom(input, _map_payload_codec); break; } case 74: { meta_.AddEntriesFrom(input, _map_meta_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { Time = input.ReadInt64(); break; } case 18: { Name = input.ReadString(); break; } case 26: { if (subject_ == null) { Subject = new global::Keyapis.Signal.V1.Signal.Types.Entity(); } input.ReadMessage(Subject); break; } case 34: { Message = input.ReadString(); break; } case 42: { if (subscription_ == null) { Subscription = new global::Keyapis.Signal.V1.Signal.Types.Subscription(); } input.ReadMessage(Subscription); break; } case 50: { if (invoice_ == null) { Invoice = new global::Keyapis.Signal.V1.Signal.Types.Invoice(); } input.ReadMessage(Invoice); break; } case 58: { if (object_ == null) { Object = new global::Keyapis.Signal.V1.Signal.Types.Entity(); } input.ReadMessage(Object); break; } case 66: { payload_.AddEntriesFrom(ref input, _map_payload_codec); break; } case 74: { meta_.AddEntriesFrom(ref input, _map_meta_codec); break; } } } } #endif #region Nested types /// Container for nested types declared in the Signal message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Сущность /// public sealed partial class Entity : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Entity()); 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.Signal.V1.Signal.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 Entity() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entity(Entity other) : this() { placeId_ = other.placeId_; placeLabel_ = other.placeLabel_; userId_ = other.userId_; userLabel_ = other.userLabel_; groupId_ = other.groupId_; groupTitle_ = other.groupTitle_; deviceId_ = other.deviceId_; deviceLabel_ = other.deviceLabel_; deviceRelayIndex_ = other.deviceRelayIndex_; cameraId_ = other.cameraId_; cameraLabel_ = other.cameraLabel_; key_ = other.key_; code_ = other.code_; dtmfCode_ = other.dtmfCode_; phone_ = other.phone_; payload_ = other.payload_.Clone(); email_ = other.email_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Entity Clone() { return new Entity(this); } /// Field number for the "place_id" field. public const int PlaceIdFieldNumber = 1; private string placeId_ = ""; /// /// Область размещения. /// Обычно это идентификатор дома в стандарте ОРПОН. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PlaceId { get { return placeId_; } set { placeId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "place_label" field. public const int PlaceLabelFieldNumber = 2; private string placeLabel_ = ""; /// /// Место размещение. /// Обычно это номер квартиры. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PlaceLabel { get { return placeLabel_; } set { placeLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "user_id" field. public const int UserIdFieldNumber = 3; private string userId_ = ""; /// /// Идентификатор пользователя. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string UserId { get { return userId_; } set { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "user_label" field. public const int UserLabelFieldNumber = 4; private string userLabel_ = ""; /// /// Лейбл пользователя. /// Обычно это тип/роль пользователя. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string UserLabel { get { return userLabel_; } set { userLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "group_id" field. public const int GroupIdFieldNumber = 5; private string groupId_ = ""; /// /// Идентификатор группы. /// Обычно это идентификатор компании. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string GroupId { get { return groupId_; } set { groupId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "group_title" field. public const int GroupTitleFieldNumber = 6; private string groupTitle_ = ""; /// /// Название группы. /// Обычно это название компании. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string GroupTitle { get { return groupTitle_; } set { groupTitle_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 7; private string deviceId_ = ""; /// /// Идентификатор устройства. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeviceId { get { return deviceId_; } set { deviceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_label" field. public const int DeviceLabelFieldNumber = 8; private string deviceLabel_ = ""; /// /// Лейбл устройства. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeviceLabel { get { return deviceLabel_; } set { deviceLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "device_relay_index" field. public const int DeviceRelayIndexFieldNumber = 9; private string deviceRelayIndex_ = ""; /// /// Индекс реле устройства. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DeviceRelayIndex { get { return deviceRelayIndex_; } set { deviceRelayIndex_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "camera_id" field. public const int CameraIdFieldNumber = 10; private string cameraId_ = ""; /// /// Идентификатор камеры. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CameraId { get { return cameraId_; } set { cameraId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "camera_label" field. public const int CameraLabelFieldNumber = 11; private string cameraLabel_ = ""; /// /// Лейбл камеры. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CameraLabel { get { return cameraLabel_; } set { cameraLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "key" field. public const int KeyFieldNumber = 12; private string key_ = ""; /// /// Номер ключа. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Key { get { return key_; } set { key_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "code" field. public const int CodeFieldNumber = 13; private string code_ = ""; /// /// Код. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Code { get { return code_; } set { code_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "dtmf_code" field. public const int DtmfCodeFieldNumber = 14; private string dtmfCode_ = ""; /// /// ДТМФ код открытия. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string DtmfCode { get { return dtmfCode_; } set { dtmfCode_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "phone" field. public const int PhoneFieldNumber = 15; private string phone_ = ""; /// /// Номер телефона. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Phone { get { return phone_; } set { phone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "payload" field. public const int PayloadFieldNumber = 16; private static readonly pbc::MapField.Codec _map_payload_codec = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 130); private readonly pbc::MapField payload_ = new pbc::MapField(); /// /// Дополнительная полезная нагрузка. /// К примеру дополнительные детали сущности. /// Тут можно поместить ту информацию которая не вошла в схему, но будет полезна или стала нужна /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Payload { get { return payload_; } } /// Field number for the "email" field. public const int EmailFieldNumber = 17; private string email_ = ""; /// /// Почтовый адрес. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Email { get { return email_; } set { email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Entity); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Entity other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (PlaceId != other.PlaceId) return false; if (PlaceLabel != other.PlaceLabel) return false; if (UserId != other.UserId) return false; if (UserLabel != other.UserLabel) return false; if (GroupId != other.GroupId) return false; if (GroupTitle != other.GroupTitle) return false; if (DeviceId != other.DeviceId) return false; if (DeviceLabel != other.DeviceLabel) return false; if (DeviceRelayIndex != other.DeviceRelayIndex) return false; if (CameraId != other.CameraId) return false; if (CameraLabel != other.CameraLabel) return false; if (Key != other.Key) return false; if (Code != other.Code) return false; if (DtmfCode != other.DtmfCode) return false; if (Phone != other.Phone) return false; if (!Payload.Equals(other.Payload)) return false; if (Email != other.Email) 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 (PlaceId.Length != 0) hash ^= PlaceId.GetHashCode(); if (PlaceLabel.Length != 0) hash ^= PlaceLabel.GetHashCode(); if (UserId.Length != 0) hash ^= UserId.GetHashCode(); if (UserLabel.Length != 0) hash ^= UserLabel.GetHashCode(); if (GroupId.Length != 0) hash ^= GroupId.GetHashCode(); if (GroupTitle.Length != 0) hash ^= GroupTitle.GetHashCode(); if (DeviceId.Length != 0) hash ^= DeviceId.GetHashCode(); if (DeviceLabel.Length != 0) hash ^= DeviceLabel.GetHashCode(); if (DeviceRelayIndex.Length != 0) hash ^= DeviceRelayIndex.GetHashCode(); if (CameraId.Length != 0) hash ^= CameraId.GetHashCode(); if (CameraLabel.Length != 0) hash ^= CameraLabel.GetHashCode(); if (Key.Length != 0) hash ^= Key.GetHashCode(); if (Code.Length != 0) hash ^= Code.GetHashCode(); if (DtmfCode.Length != 0) hash ^= DtmfCode.GetHashCode(); if (Phone.Length != 0) hash ^= Phone.GetHashCode(); hash ^= Payload.GetHashCode(); if (Email.Length != 0) hash ^= Email.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 (PlaceId.Length != 0) { output.WriteRawTag(10); output.WriteString(PlaceId); } if (PlaceLabel.Length != 0) { output.WriteRawTag(18); output.WriteString(PlaceLabel); } if (UserId.Length != 0) { output.WriteRawTag(26); output.WriteString(UserId); } if (UserLabel.Length != 0) { output.WriteRawTag(34); output.WriteString(UserLabel); } if (GroupId.Length != 0) { output.WriteRawTag(42); output.WriteString(GroupId); } if (GroupTitle.Length != 0) { output.WriteRawTag(50); output.WriteString(GroupTitle); } if (DeviceId.Length != 0) { output.WriteRawTag(58); output.WriteString(DeviceId); } if (DeviceLabel.Length != 0) { output.WriteRawTag(66); output.WriteString(DeviceLabel); } if (DeviceRelayIndex.Length != 0) { output.WriteRawTag(74); output.WriteString(DeviceRelayIndex); } if (CameraId.Length != 0) { output.WriteRawTag(82); output.WriteString(CameraId); } if (CameraLabel.Length != 0) { output.WriteRawTag(90); output.WriteString(CameraLabel); } if (Key.Length != 0) { output.WriteRawTag(98); output.WriteString(Key); } if (Code.Length != 0) { output.WriteRawTag(106); output.WriteString(Code); } if (DtmfCode.Length != 0) { output.WriteRawTag(114); output.WriteString(DtmfCode); } if (Phone.Length != 0) { output.WriteRawTag(122); output.WriteString(Phone); } payload_.WriteTo(output, _map_payload_codec); if (Email.Length != 0) { output.WriteRawTag(138, 1); output.WriteString(Email); } 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 (PlaceId.Length != 0) { output.WriteRawTag(10); output.WriteString(PlaceId); } if (PlaceLabel.Length != 0) { output.WriteRawTag(18); output.WriteString(PlaceLabel); } if (UserId.Length != 0) { output.WriteRawTag(26); output.WriteString(UserId); } if (UserLabel.Length != 0) { output.WriteRawTag(34); output.WriteString(UserLabel); } if (GroupId.Length != 0) { output.WriteRawTag(42); output.WriteString(GroupId); } if (GroupTitle.Length != 0) { output.WriteRawTag(50); output.WriteString(GroupTitle); } if (DeviceId.Length != 0) { output.WriteRawTag(58); output.WriteString(DeviceId); } if (DeviceLabel.Length != 0) { output.WriteRawTag(66); output.WriteString(DeviceLabel); } if (DeviceRelayIndex.Length != 0) { output.WriteRawTag(74); output.WriteString(DeviceRelayIndex); } if (CameraId.Length != 0) { output.WriteRawTag(82); output.WriteString(CameraId); } if (CameraLabel.Length != 0) { output.WriteRawTag(90); output.WriteString(CameraLabel); } if (Key.Length != 0) { output.WriteRawTag(98); output.WriteString(Key); } if (Code.Length != 0) { output.WriteRawTag(106); output.WriteString(Code); } if (DtmfCode.Length != 0) { output.WriteRawTag(114); output.WriteString(DtmfCode); } if (Phone.Length != 0) { output.WriteRawTag(122); output.WriteString(Phone); } payload_.WriteTo(ref output, _map_payload_codec); if (Email.Length != 0) { output.WriteRawTag(138, 1); output.WriteString(Email); } 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 (PlaceId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PlaceId); } if (PlaceLabel.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PlaceLabel); } if (UserId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); } if (UserLabel.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(UserLabel); } if (GroupId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(GroupId); } if (GroupTitle.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(GroupTitle); } if (DeviceId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceId); } if (DeviceLabel.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceLabel); } if (DeviceRelayIndex.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DeviceRelayIndex); } if (CameraId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CameraId); } if (CameraLabel.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CameraLabel); } if (Key.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Key); } if (Code.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Code); } if (DtmfCode.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(DtmfCode); } if (Phone.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Phone); } size += payload_.CalculateSize(_map_payload_codec); if (Email.Length != 0) { size += 2 + pb::CodedOutputStream.ComputeStringSize(Email); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Entity other) { if (other == null) { return; } if (other.PlaceId.Length != 0) { PlaceId = other.PlaceId; } if (other.PlaceLabel.Length != 0) { PlaceLabel = other.PlaceLabel; } if (other.UserId.Length != 0) { UserId = other.UserId; } if (other.UserLabel.Length != 0) { UserLabel = other.UserLabel; } if (other.GroupId.Length != 0) { GroupId = other.GroupId; } if (other.GroupTitle.Length != 0) { GroupTitle = other.GroupTitle; } if (other.DeviceId.Length != 0) { DeviceId = other.DeviceId; } if (other.DeviceLabel.Length != 0) { DeviceLabel = other.DeviceLabel; } if (other.DeviceRelayIndex.Length != 0) { DeviceRelayIndex = other.DeviceRelayIndex; } if (other.CameraId.Length != 0) { CameraId = other.CameraId; } if (other.CameraLabel.Length != 0) { CameraLabel = other.CameraLabel; } if (other.Key.Length != 0) { Key = other.Key; } if (other.Code.Length != 0) { Code = other.Code; } if (other.DtmfCode.Length != 0) { DtmfCode = other.DtmfCode; } if (other.Phone.Length != 0) { Phone = other.Phone; } payload_.MergeFrom(other.payload_); if (other.Email.Length != 0) { Email = other.Email; } _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: { PlaceId = input.ReadString(); break; } case 18: { PlaceLabel = input.ReadString(); break; } case 26: { UserId = input.ReadString(); break; } case 34: { UserLabel = input.ReadString(); break; } case 42: { GroupId = input.ReadString(); break; } case 50: { GroupTitle = input.ReadString(); break; } case 58: { DeviceId = input.ReadString(); break; } case 66: { DeviceLabel = input.ReadString(); break; } case 74: { DeviceRelayIndex = input.ReadString(); break; } case 82: { CameraId = input.ReadString(); break; } case 90: { CameraLabel = input.ReadString(); break; } case 98: { Key = input.ReadString(); break; } case 106: { Code = input.ReadString(); break; } case 114: { DtmfCode = input.ReadString(); break; } case 122: { Phone = input.ReadString(); break; } case 130: { payload_.AddEntriesFrom(input, _map_payload_codec); break; } case 138: { Email = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { PlaceId = input.ReadString(); break; } case 18: { PlaceLabel = input.ReadString(); break; } case 26: { UserId = input.ReadString(); break; } case 34: { UserLabel = input.ReadString(); break; } case 42: { GroupId = input.ReadString(); break; } case 50: { GroupTitle = input.ReadString(); break; } case 58: { DeviceId = input.ReadString(); break; } case 66: { DeviceLabel = input.ReadString(); break; } case 74: { DeviceRelayIndex = input.ReadString(); break; } case 82: { CameraId = input.ReadString(); break; } case 90: { CameraLabel = input.ReadString(); break; } case 98: { Key = input.ReadString(); break; } case 106: { Code = input.ReadString(); break; } case 114: { DtmfCode = input.ReadString(); break; } case 122: { Phone = input.ReadString(); break; } case 130: { payload_.AddEntriesFrom(ref input, _map_payload_codec); break; } case 138: { Email = input.ReadString(); break; } } } } #endif } /// /// Информация о подписке /// public sealed partial class Subscription : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Subscription()); 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.Signal.V1.Signal.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 Subscription() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Subscription(Subscription other) : this() { id_ = other.id_; title_ = other.title_; status_ = other.status_; privileges_ = other.privileges_.Clone(); payload_ = other.payload_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Subscription Clone() { return new Subscription(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private string id_ = ""; /// /// Идентификатор подписки. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Id { get { return id_; } set { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "title" field. public const int TitleFieldNumber = 2; 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 "status" field. public const int StatusFieldNumber = 3; private string status_ = ""; /// /// Статус подписки. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Status { get { return status_; } set { status_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "privileges" field. public const int PrivilegesFieldNumber = 4; private static readonly pb::FieldCodec _repeated_privileges_codec = pb::FieldCodec.ForString(34); private readonly pbc::RepeatedField privileges_ = new pbc::RepeatedField(); /// /// Привилегии подписок. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Privileges { get { return privileges_; } } /// Field number for the "payload" field. public const int PayloadFieldNumber = 5; private static readonly pbc::MapField.Codec _map_payload_codec = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 42); private readonly pbc::MapField payload_ = new pbc::MapField(); /// /// Дополнительная полезная нагрузка. /// К примеру дополнительные детали подписки. /// Тут можно поместить ту информацию которая не вошла в схему, но будет полезна или стала нужна /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Payload { get { return payload_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Subscription); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Subscription other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (Title != other.Title) return false; if (Status != other.Status) return false; if(!privileges_.Equals(other.privileges_)) return false; if (!Payload.Equals(other.Payload)) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); if (Title.Length != 0) hash ^= Title.GetHashCode(); if (Status.Length != 0) hash ^= Status.GetHashCode(); hash ^= privileges_.GetHashCode(); hash ^= Payload.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 (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (Title.Length != 0) { output.WriteRawTag(18); output.WriteString(Title); } if (Status.Length != 0) { output.WriteRawTag(26); output.WriteString(Status); } privileges_.WriteTo(output, _repeated_privileges_codec); payload_.WriteTo(output, _map_payload_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (Title.Length != 0) { output.WriteRawTag(18); output.WriteString(Title); } if (Status.Length != 0) { output.WriteRawTag(26); output.WriteString(Status); } privileges_.WriteTo(ref output, _repeated_privileges_codec); payload_.WriteTo(ref output, _map_payload_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } if (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (Status.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Status); } size += privileges_.CalculateSize(_repeated_privileges_codec); size += payload_.CalculateSize(_map_payload_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Subscription other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.Title.Length != 0) { Title = other.Title; } if (other.Status.Length != 0) { Status = other.Status; } privileges_.Add(other.privileges_); payload_.MergeFrom(other.payload_); _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: { Id = input.ReadString(); break; } case 18: { Title = input.ReadString(); break; } case 26: { Status = input.ReadString(); break; } case 34: { privileges_.AddEntriesFrom(input, _repeated_privileges_codec); break; } case 42: { payload_.AddEntriesFrom(input, _map_payload_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Id = input.ReadString(); break; } case 18: { Title = input.ReadString(); break; } case 26: { Status = input.ReadString(); break; } case 34: { privileges_.AddEntriesFrom(ref input, _repeated_privileges_codec); break; } case 42: { payload_.AddEntriesFrom(ref input, _map_payload_codec); break; } } } } #endif } /// /// Информация о выставленном счёте /// public sealed partial class Invoice : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Invoice()); 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.Signal.V1.Signal.Descriptor.NestedTypes[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 Invoice() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Invoice(Invoice other) : this() { id_ = other.id_; title_ = other.title_; totalAmount_ = other.totalAmount_; status_ = other.status_; phone_ = other.phone_; email_ = other.email_; positionIds_ = other.positionIds_.Clone(); payload_ = other.payload_.Clone(); _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Invoice Clone() { return new Invoice(this); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private string id_ = ""; /// /// Идентификато выставленного счёта. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Id { get { return id_; } set { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "title" field. public const int TitleFieldNumber = 2; 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 "total_amount" field. public const int TotalAmountFieldNumber = 3; private float totalAmount_; /// /// Общая сумма чека. /// В рублях. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float TotalAmount { get { return totalAmount_; } set { totalAmount_ = value; } } /// Field number for the "status" field. public const int StatusFieldNumber = 4; private string status_ = ""; /// /// Статус выставленного счёта. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Status { get { return status_; } set { status_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "phone" field. public const int PhoneFieldNumber = 5; private string phone_ = ""; /// /// Номер телефона на который пользователь хочет получить информацию об оплате. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Phone { get { return phone_; } set { phone_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "email" field. public const int EmailFieldNumber = 6; private string email_ = ""; /// /// Почта на которую пользователь хочет получить информацию об оплате. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Email { get { return email_; } set { email_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "position_ids" field. public const int PositionIdsFieldNumber = 7; private static readonly pb::FieldCodec _repeated_positionIds_codec = pb::FieldCodec.ForString(58); private readonly pbc::RepeatedField positionIds_ = new pbc::RepeatedField(); /// /// Идентификаторы товаров позиций на которые выставленн счёт. /// Обычно это идентификаторы подписок. /// Может отсутствовать /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField PositionIds { get { return positionIds_; } } /// Field number for the "payload" field. public const int PayloadFieldNumber = 8; private static readonly pbc::MapField.Codec _map_payload_codec = new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 66); private readonly pbc::MapField payload_ = new pbc::MapField(); /// /// Дополнительная полезная нагрузка. /// К примеру дополнительные детали выставленного счёта. /// Тут можно поместить ту информацию которая не вошла в схему, но будет полезна или стала нужна /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::MapField Payload { get { return payload_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Invoice); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Invoice other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Id != other.Id) return false; if (Title != other.Title) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(TotalAmount, other.TotalAmount)) return false; if (Status != other.Status) return false; if (Phone != other.Phone) return false; if (Email != other.Email) return false; if(!positionIds_.Equals(other.positionIds_)) return false; if (!Payload.Equals(other.Payload)) 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 (Id.Length != 0) hash ^= Id.GetHashCode(); if (Title.Length != 0) hash ^= Title.GetHashCode(); if (TotalAmount != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(TotalAmount); if (Status.Length != 0) hash ^= Status.GetHashCode(); if (Phone.Length != 0) hash ^= Phone.GetHashCode(); if (Email.Length != 0) hash ^= Email.GetHashCode(); hash ^= positionIds_.GetHashCode(); hash ^= Payload.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 (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (Title.Length != 0) { output.WriteRawTag(18); output.WriteString(Title); } if (TotalAmount != 0F) { output.WriteRawTag(29); output.WriteFloat(TotalAmount); } if (Status.Length != 0) { output.WriteRawTag(34); output.WriteString(Status); } if (Phone.Length != 0) { output.WriteRawTag(42); output.WriteString(Phone); } if (Email.Length != 0) { output.WriteRawTag(50); output.WriteString(Email); } positionIds_.WriteTo(output, _repeated_positionIds_codec); payload_.WriteTo(output, _map_payload_codec); if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (Id.Length != 0) { output.WriteRawTag(10); output.WriteString(Id); } if (Title.Length != 0) { output.WriteRawTag(18); output.WriteString(Title); } if (TotalAmount != 0F) { output.WriteRawTag(29); output.WriteFloat(TotalAmount); } if (Status.Length != 0) { output.WriteRawTag(34); output.WriteString(Status); } if (Phone.Length != 0) { output.WriteRawTag(42); output.WriteString(Phone); } if (Email.Length != 0) { output.WriteRawTag(50); output.WriteString(Email); } positionIds_.WriteTo(ref output, _repeated_positionIds_codec); payload_.WriteTo(ref output, _map_payload_codec); if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (Id.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); } if (Title.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Title); } if (TotalAmount != 0F) { size += 1 + 4; } if (Status.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Status); } if (Phone.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Phone); } if (Email.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Email); } size += positionIds_.CalculateSize(_repeated_positionIds_codec); size += payload_.CalculateSize(_map_payload_codec); if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Invoice other) { if (other == null) { return; } if (other.Id.Length != 0) { Id = other.Id; } if (other.Title.Length != 0) { Title = other.Title; } if (other.TotalAmount != 0F) { TotalAmount = other.TotalAmount; } if (other.Status.Length != 0) { Status = other.Status; } if (other.Phone.Length != 0) { Phone = other.Phone; } if (other.Email.Length != 0) { Email = other.Email; } positionIds_.Add(other.positionIds_); payload_.MergeFrom(other.payload_); _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: { Id = input.ReadString(); break; } case 18: { Title = input.ReadString(); break; } case 29: { TotalAmount = input.ReadFloat(); break; } case 34: { Status = input.ReadString(); break; } case 42: { Phone = input.ReadString(); break; } case 50: { Email = input.ReadString(); break; } case 58: { positionIds_.AddEntriesFrom(input, _repeated_positionIds_codec); break; } case 66: { payload_.AddEntriesFrom(input, _map_payload_codec); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Id = input.ReadString(); break; } case 18: { Title = input.ReadString(); break; } case 29: { TotalAmount = input.ReadFloat(); break; } case 34: { Status = input.ReadString(); break; } case 42: { Phone = input.ReadString(); break; } case 50: { Email = input.ReadString(); break; } case 58: { positionIds_.AddEntriesFrom(ref input, _repeated_positionIds_codec); break; } case 66: { payload_.AddEntriesFrom(ref input, _map_payload_codec); break; } } } } #endif } } #endregion } #endregion } #endregion Designer generated code