// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ConnectResponse.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 ConnectResponse.proto public static partial class ConnectResponseReflection { #region Descriptor /// File descriptor for ConnectResponse.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static ConnectResponseReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChVDb25uZWN0UmVzcG9uc2UucHJvdG8SFFRhbmdvLlBNUi5Db25uZWN0aW9u", "GhdEZXZpY2VJbmZvcm1hdGlvbi5wcm90byJrCg9Db25uZWN0UmVzcG9uc2US", "QgoRRGV2aWNlSW5mb3JtYXRpb24YASABKAsyJy5UYW5nby5QTVIuQ29ubmVj", "dGlvbi5EZXZpY2VJbmZvcm1hdGlvbhIUCgxJc0FmdGVyUmVzZXQYAiABKAhC", "IAoeY29tLnR3aW5lLnRhbmdvLnBtci5jb25uZWN0aW9uYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Connection.DeviceInformationReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Connection.ConnectResponse), global::Tango.PMR.Connection.ConnectResponse.Parser, new[]{ "DeviceInformation", "IsAfterReset" }, null, null, null) })); } #endregion } #region Messages public sealed partial class ConnectResponse : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConnectResponse()); [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.ConnectResponseReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ConnectResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ConnectResponse(ConnectResponse other) : this() { DeviceInformation = other.deviceInformation_ != null ? other.DeviceInformation.Clone() : null; isAfterReset_ = other.isAfterReset_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ConnectResponse Clone() { return new ConnectResponse(this); } /// Field number for the "DeviceInformation" field. public const int DeviceInformationFieldNumber = 1; 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 "IsAfterReset" field. public const int IsAfterResetFieldNumber = 2; private bool isAfterReset_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool IsAfterReset { get { return isAfterReset_; } set { isAfterReset_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ConnectResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ConnectResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(DeviceInformation, other.DeviceInformation)) return false; if (IsAfterReset != other.IsAfterReset) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (deviceInformation_ != null) hash ^= DeviceInformation.GetHashCode(); if (IsAfterReset != false) hash ^= IsAfterReset.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 (deviceInformation_ != null) { output.WriteRawTag(10); output.WriteMessage(DeviceInformation); } if (IsAfterReset != false) { output.WriteRawTag(16); output.WriteBool(IsAfterReset); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (deviceInformation_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(DeviceInformation); } if (IsAfterReset != false) { size += 1 + 1; } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ConnectResponse other) { if (other == null) { return; } if (other.deviceInformation_ != null) { if (deviceInformation_ == null) { deviceInformation_ = new global::Tango.PMR.Connection.DeviceInformation(); } DeviceInformation.MergeFrom(other.DeviceInformation); } if (other.IsAfterReset != false) { IsAfterReset = other.IsAfterReset; } } [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: { if (deviceInformation_ == null) { deviceInformation_ = new global::Tango.PMR.Connection.DeviceInformation(); } input.ReadMessage(deviceInformation_); break; } case 16: { IsAfterReset = input.ReadBool(); break; } } } } } #endregion } #endregion Designer generated code