// 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( "ChRDb25uZWN0UmVxdWVzdC5wcm90bxIUVGFuZ28uUE1SLkNvbm5lY3Rpb24a", "EkpvYlNwb29sVHlwZS5wcm90bxoRTWFjaGluZVR5cGUucHJvdG8iwgEKDkNv", "bm5lY3RSZXF1ZXN0EhAKCFBhc3N3b3JkGAEgASgJEhAKCFVuaXhUaW1lGAIg", "ASgDEjMKCVNwb29sVHlwZRgDIAEoDjIgLlRhbmdvLlBNUi5QcmludGluZy5K", "b2JTcG9vbFR5cGUSMgoLTWFjaGluZVR5cGUYBCABKA4yHS5UYW5nby5QTVIu", "Q29tbW9uLk1hY2hpbmVUeXBlEiMKG1N1cHBvcnRzNjRCaXREaXNwZW5zZXJM", "ZXZlbBgFIAEoCEIgCh5jb20udHdpbmUudGFuZ28ucG1yLmNvbm5lY3Rpb25i", "BnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Printing.JobSpoolTypeReflection.Descriptor, global::Tango.PMR.Common.MachineTypeReflection.Descriptor, }, 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", "SpoolType", "MachineType", "Supports64BitDispenserLevel" }, 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_; spoolType_ = other.spoolType_; machineType_ = other.machineType_; supports64BitDispenserLevel_ = other.supports64BitDispenserLevel_; } [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; } } /// Field number for the "SpoolType" field. public const int SpoolTypeFieldNumber = 3; private global::Tango.PMR.Printing.JobSpoolType spoolType_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Printing.JobSpoolType SpoolType { get { return spoolType_; } set { spoolType_ = value; } } /// Field number for the "MachineType" field. public const int MachineTypeFieldNumber = 4; private global::Tango.PMR.Common.MachineType machineType_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Common.MachineType MachineType { get { return machineType_; } set { machineType_ = value; } } /// Field number for the "Supports64BitDispenserLevel" field. public const int Supports64BitDispenserLevelFieldNumber = 5; private bool supports64BitDispenserLevel_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Supports64BitDispenserLevel { get { return supports64BitDispenserLevel_; } set { supports64BitDispenserLevel_ = 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; if (SpoolType != other.SpoolType) return false; if (MachineType != other.MachineType) return false; if (Supports64BitDispenserLevel != other.Supports64BitDispenserLevel) 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(); if (SpoolType != 0) hash ^= SpoolType.GetHashCode(); if (MachineType != 0) hash ^= MachineType.GetHashCode(); if (Supports64BitDispenserLevel != false) hash ^= Supports64BitDispenserLevel.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); } if (SpoolType != 0) { output.WriteRawTag(24); output.WriteEnum((int) SpoolType); } if (MachineType != 0) { output.WriteRawTag(32); output.WriteEnum((int) MachineType); } if (Supports64BitDispenserLevel != false) { output.WriteRawTag(40); output.WriteBool(Supports64BitDispenserLevel); } } [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); } if (SpoolType != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) SpoolType); } if (MachineType != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) MachineType); } if (Supports64BitDispenserLevel != false) { size += 1 + 1; } 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; } if (other.SpoolType != 0) { SpoolType = other.SpoolType; } if (other.MachineType != 0) { MachineType = other.MachineType; } if (other.Supports64BitDispenserLevel != false) { Supports64BitDispenserLevel = other.Supports64BitDispenserLevel; } } [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; } case 24: { spoolType_ = (global::Tango.PMR.Printing.JobSpoolType) input.ReadEnum(); break; } case 32: { machineType_ = (global::Tango.PMR.Common.MachineType) input.ReadEnum(); break; } case 40: { Supports64BitDispenserLevel = input.ReadBool(); break; } } } } } #endregion } #endregion Designer generated code