// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ConfigureProtocolRequest.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 ConfigureProtocolRequest.proto public static partial class ConfigureProtocolRequestReflection { #region Descriptor /// File descriptor for ConfigureProtocolRequest.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static ConfigureProtocolRequestReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Ch5Db25maWd1cmVQcm90b2NvbFJlcXVlc3QucHJvdG8SFVRhbmdvLlBNUi5J", "bnRlZ3JhdGlvbhocR2VuZXJpY01lc3NhZ2VQcm90b2NvbC5wcm90byJ9ChhD", "b25maWd1cmVQcm90b2NvbFJlcXVlc3QSGQoRRW5hYmxlQ29tcHJlc3Npb24Y", "ASABKAgSRgoPR2VuZXJpY1Byb3RvY29sGAIgASgOMi0uVGFuZ28uUE1SLklu", "dGVncmF0aW9uLkdlbmVyaWNNZXNzYWdlUHJvdG9jb2xCIQofY29tLnR3aW5l", "LnRhbmdvLnBtci5pbnRlZ3JhdGlvbmIGcHJvdG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Tango.PMR.Integration.GenericMessageProtocolReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Integration.ConfigureProtocolRequest), global::Tango.PMR.Integration.ConfigureProtocolRequest.Parser, new[]{ "EnableCompression", "GenericProtocol" }, null, null, null) })); } #endregion } #region Messages public sealed partial class ConfigureProtocolRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConfigureProtocolRequest()); [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.ConfigureProtocolRequestReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ConfigureProtocolRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ConfigureProtocolRequest(ConfigureProtocolRequest other) : this() { enableCompression_ = other.enableCompression_; genericProtocol_ = other.genericProtocol_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ConfigureProtocolRequest Clone() { return new ConfigureProtocolRequest(this); } /// Field number for the "EnableCompression" field. public const int EnableCompressionFieldNumber = 1; private bool enableCompression_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool EnableCompression { get { return enableCompression_; } set { enableCompression_ = value; } } /// Field number for the "GenericProtocol" field. public const int GenericProtocolFieldNumber = 2; private global::Tango.PMR.Integration.GenericMessageProtocol genericProtocol_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Tango.PMR.Integration.GenericMessageProtocol GenericProtocol { get { return genericProtocol_; } set { genericProtocol_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ConfigureProtocolRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ConfigureProtocolRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (EnableCompression != other.EnableCompression) return false; if (GenericProtocol != other.GenericProtocol) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (EnableCompression != false) hash ^= EnableCompression.GetHashCode(); if (GenericProtocol != 0) hash ^= GenericProtocol.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 (EnableCompression != false) { output.WriteRawTag(8); output.WriteBool(EnableCompression); } if (GenericProtocol != 0) { output.WriteRawTag(16); output.WriteEnum((int) GenericProtocol); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (EnableCompression != false) { size += 1 + 1; } if (GenericProtocol != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) GenericProtocol); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ConfigureProtocolRequest other) { if (other == null) { return; } if (other.EnableCompression != false) { EnableCompression = other.EnableCompression; } if (other.GenericProtocol != 0) { GenericProtocol = other.GenericProtocol; } } [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: { EnableCompression = input.ReadBool(); break; } case 16: { genericProtocol_ = (global::Tango.PMR.Integration.GenericMessageProtocol) input.ReadEnum(); break; } } } } } #endregion } #endregion Designer generated code