// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ExternalBridgeLoginResponse.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.Integration { /// Holder for reflection information generated from ExternalBridgeLoginResponse.proto public static partial class ExternalBridgeLoginResponseReflection { #region Descriptor /// File descriptor for ExternalBridgeLoginResponse.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static ExternalBridgeLoginResponseReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CiFFeHRlcm5hbEJyaWRnZUxvZ2luUmVzcG9uc2UucHJvdG8SFVRhbmdvLlBN", "Ui5JbnRlZ3JhdGlvbhoXRGV2aWNlSW5mb3JtYXRpb24ucHJvdG8aHEFwcGxp", "Y2F0aW9uSW5mb3JtYXRpb24ucHJvdG8aElVwZGF0ZVN0YXR1cy5wcm90byKS", "AgobRXh0ZXJuYWxCcmlkZ2VMb2dpblJlc3BvbnNlEhUKDUF1dGhlbnRpY2F0", "ZWQYASABKAgSFAoMU2VyaWFsTnVtYmVyGAIgASgJEkIKEURldmljZUluZm9y", "bWF0aW9uGAMgASgLMicuVGFuZ28uUE1SLkNvbm5lY3Rpb24uRGV2aWNlSW5m", "b3JtYXRpb24STQoWQXBwbGljYXRpb25JbmZvcm1hdGlvbhgEIAEoCzItLlRh", "bmdvLlBNUi5JbnRlZ3JhdGlvbi5BcHBsaWNhdGlvbkluZm9ybWF0aW9uEjMK", "BlN0YXR1cxgFIAEoDjIjLlRhbmdvLlBNUi5JbnRlZ3JhdGlvbi5VcGRhdGVT", "dGF0dXNCIQofY29tLnR3aW5lLnRhbmdvLnBtci5pbnRlZ3JhdGlvbmIGcHJv", "dG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Connection.DeviceInformationReflection.Descriptor, global::Tango.PMR.Integration.ApplicationInformationReflection.Descriptor, global::Tango.PMR.Integration.UpdateStatusReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Integration.ExternalBridgeLoginResponse), global::Tango.PMR.Integration.ExternalBridgeLoginResponse.Parser, new[]{ "Authenticated", "SerialNumber", "DeviceInformation", "ApplicationInformation", "Status" }, null, null, null) })); } #endregion } #region Messages public sealed partial class ExternalBridgeLoginResponse : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ExternalBridgeLoginResponse()); [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.Integration.ExternalBridgeLoginResponseReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ExternalBridgeLoginResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ExternalBridgeLoginResponse(ExternalBridgeLoginResponse other) : this() { authenticated_ = other.authenticated_; serialNumber_ = other.serialNumber_; DeviceInformation = other.deviceInformation_ != null ? other.DeviceInformation.Clone() : null; ApplicationInformation = other.applicationInformation_ != null ? other.ApplicationInformation.Clone() : null; status_ = other.status_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ExternalBridgeLoginResponse Clone() { return new ExternalBridgeLoginResponse(this); } /// Field number for the "Authenticated" field. public const int AuthenticatedFieldNumber = 1; private bool authenticated_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Authenticated { get { return authenticated_; } set { authenticated_ = value; } } /// Field number for the "SerialNumber" field. public const int SerialNumberFieldNumber = 2; private string serialNumber_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string SerialNumber { get { return serialNumber_; } set { serialNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "DeviceInformation" field. public const int DeviceInformationFieldNumber = 3; private global::Tango.PMR.Connection.DeviceInformation deviceInformation_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Connection.DeviceInformation DeviceInformation { get { return deviceInformation_; } set { deviceInformation_ = value; } } /// Field number for the "ApplicationInformation" field. public const int ApplicationInformationFieldNumber = 4; private global::Tango.PMR.Integration.ApplicationInformation applicationInformation_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Integration.ApplicationInformation ApplicationInformation { get { return applicationInformation_; } set { applicationInformation_ = value; } } /// Field number for the "Status" field. public const int StatusFieldNumber = 5; private global::Tango.PMR.Integration.UpdateStatus status_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Integration.UpdateStatus Status { get { return status_; } set { status_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ExternalBridgeLoginResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ExternalBridgeLoginResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Authenticated != other.Authenticated) return false; if (SerialNumber != other.SerialNumber) return false; if (!object.Equals(DeviceInformation, other.DeviceInformation)) return false; if (!object.Equals(ApplicationInformation, other.ApplicationInformation)) return false; if (Status != other.Status) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Authenticated != false) hash ^= Authenticated.GetHashCode(); if (SerialNumber.Length != 0) hash ^= SerialNumber.GetHashCode(); if (deviceInformation_ != null) hash ^= DeviceInformation.GetHashCode(); if (applicationInformation_ != null) hash ^= ApplicationInformation.GetHashCode(); if (Status != 0) hash ^= Status.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 (Authenticated != false) { output.WriteRawTag(8); output.WriteBool(Authenticated); } if (SerialNumber.Length != 0) { output.WriteRawTag(18); output.WriteString(SerialNumber); } if (deviceInformation_ != null) { output.WriteRawTag(26); output.WriteMessage(DeviceInformation); } if (applicationInformation_ != null) { output.WriteRawTag(34); output.WriteMessage(ApplicationInformation); } if (Status != 0) { output.WriteRawTag(40); output.WriteEnum((int) Status); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Authenticated != false) { size += 1 + 1; } if (SerialNumber.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(SerialNumber); } if (deviceInformation_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInformation); } if (applicationInformation_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApplicationInformation); } if (Status != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Status); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ExternalBridgeLoginResponse other) { if (other == null) { return; } if (other.Authenticated != false) { Authenticated = other.Authenticated; } if (other.SerialNumber.Length != 0) { SerialNumber = other.SerialNumber; } if (other.deviceInformation_ != null) { if (deviceInformation_ == null) { deviceInformation_ = new global::Tango.PMR.Connection.DeviceInformation(); } DeviceInformation.MergeFrom(other.DeviceInformation); } if (other.applicationInformation_ != null) { if (applicationInformation_ == null) { applicationInformation_ = new global::Tango.PMR.Integration.ApplicationInformation(); } ApplicationInformation.MergeFrom(other.ApplicationInformation); } if (other.Status != 0) { Status = other.Status; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 8: { Authenticated = input.ReadBool(); break; } case 18: { SerialNumber = input.ReadString(); break; } case 26: { if (deviceInformation_ == null) { deviceInformation_ = new global::Tango.PMR.Connection.DeviceInformation(); } input.ReadMessage(deviceInformation_); break; } case 34: { if (applicationInformation_ == null) { applicationInformation_ = new global::Tango.PMR.Integration.ApplicationInformation(); } input.ReadMessage(applicationInformation_); break; } case 40: { status_ = (global::Tango.PMR.Integration.UpdateStatus) input.ReadEnum(); break; } } } } } #endregion } #endregion Designer generated code