// Generated by the protocol buffer compiler. DO NOT EDIT! // source: BasicDiscoveryMessage.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.Discovery { /// Holder for reflection information generated from BasicDiscoveryMessage.proto public static partial class BasicDiscoveryMessageReflection { #region Descriptor /// File descriptor for BasicDiscoveryMessage.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static BasicDiscoveryMessageReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChtCYXNpY0Rpc2NvdmVyeU1lc3NhZ2UucHJvdG8SE1RhbmdvLlBNUi5EaXNj", "b3ZlcnkiOgoVQmFzaWNEaXNjb3ZlcnlNZXNzYWdlEhMKC1NlcnZpY2VOYW1l", "GAEgASgJEgwKBFBvcnQYAiABKAVCHwodY29tLnR3aW5lLnRhbmdvLnBtci5k", "aXNjb3ZlcnliBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Discovery.BasicDiscoveryMessage), global::Tango.PMR.Discovery.BasicDiscoveryMessage.Parser, new[]{ "ServiceName", "Port" }, null, null, null) })); } #endregion } #region Messages public sealed partial class BasicDiscoveryMessage : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BasicDiscoveryMessage()); [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.Discovery.BasicDiscoveryMessageReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BasicDiscoveryMessage() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BasicDiscoveryMessage(BasicDiscoveryMessage other) : this() { serviceName_ = other.serviceName_; port_ = other.port_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public BasicDiscoveryMessage Clone() { return new BasicDiscoveryMessage(this); } /// Field number for the "ServiceName" field. public const int ServiceNameFieldNumber = 1; private string serviceName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ServiceName { get { return serviceName_; } set { serviceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Port" field. public const int PortFieldNumber = 2; private int port_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Port { get { return port_; } set { port_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as BasicDiscoveryMessage); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(BasicDiscoveryMessage other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ServiceName != other.ServiceName) return false; if (Port != other.Port) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (ServiceName.Length != 0) hash ^= ServiceName.GetHashCode(); if (Port != 0) hash ^= Port.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 (ServiceName.Length != 0) { output.WriteRawTag(10); output.WriteString(ServiceName); } if (Port != 0) { output.WriteRawTag(16); output.WriteInt32(Port); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (ServiceName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceName); } if (Port != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Port); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(BasicDiscoveryMessage other) { if (other == null) { return; } if (other.ServiceName.Length != 0) { ServiceName = other.ServiceName; } if (other.Port != 0) { Port = other.Port; } } [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: { ServiceName = input.ReadString(); break; } case 16: { Port = input.ReadInt32(); break; } } } } } #endregion } #endregion Designer generated code