// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ConnectRequest.proto #pragma warning disable 1591, 0612, 3021 #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 Tango.PMR.Connection { /// Holder for reflection information generated from ConnectRequest.proto public static partial class ConnectRequestReflection { #region Descriptor /// File descriptor for ConnectRequest.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static ConnectRequestReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChRDb25uZWN0UmVxdWVzdC5wcm90bxIUVGFuZ28uUE1SLkNvbm5lY3Rpb24i", "NAoOQ29ubmVjdFJlcXVlc3QSEAoIUGFzc3dvcmQYASABKAkSEAoIVW5peFRp", "bWUYAiABKANCIAoeY29tLnR3aW5lLnRhbmdvLnBtci5jb25uZWN0aW9uYgZw", "cm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Connection.ConnectRequest), global::Tango.PMR.Connection.ConnectRequest.Parser, new[]{ "Password", "UnixTime" }, null, null, null) })); } #endregion } #region Messages public sealed partial class ConnectRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectRequest()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Tango.PMR.Connection.ConnectRequestReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ConnectRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ConnectRequest(ConnectRequest other) : this() { password_ = other.password_; unixTime_ = other.unixTime_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ConnectRequest Clone() { return new ConnectRequest(this); } /// Field number for the "Password" field. public const int PasswordFieldNumber = 1; private string password_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Password { get { return password_; } set { password_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "UnixTime" field. public const int UnixTimeFieldNumber = 2; private long unixTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public long UnixTime { get { return unixTime_; } set { unixTime_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ConnectRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ConnectRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Password != other.Password) return false; if (UnixTime != other.UnixTime) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Password.Length != 0) hash ^= Password.GetHashCode(); if (UnixTime != 0L) hash ^= UnixTime.GetHashCode(); return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void WriteTo(pb::CodedOutputStream output) { if (Password.Length != 0) { output.WriteRawTag(10); output.WriteString(Password); } if (UnixTime != 0L) { output.WriteRawTag(16); output.WriteInt64(UnixTime); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Password.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Password); } if (UnixTime != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(UnixTime); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ConnectRequest other) { if (other == null) { return; } if (other.Password.Length != 0) { Password = other.Password; } if (other.UnixTime != 0L) { UnixTime = other.UnixTime; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 10: { Password = input.ReadString(); break; } case 16: { UnixTime = input.ReadInt64(); break; } } } } } #endregion } #endregion Designer generated code