// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ProgressRequest.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.Stubs { /// Holder for reflection information generated from ProgressRequest.proto public static partial class ProgressRequestReflection { #region Descriptor /// File descriptor for ProgressRequest.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static ProgressRequestReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "ChVQcm9ncmVzc1JlcXVlc3QucHJvdG8SD1RhbmdvLlBNUi5TdHVicyIwCg9Q", "cm9ncmVzc1JlcXVlc3QSDgoGQW1vdW50GAEgASgFEg0KBURlbGF5GAIgASgF", "QhsKGWNvbS50d2luZS50YW5nby5wbXIuc3R1YnNiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Tango.PMR.Stubs.ProgressRequest), global::Tango.PMR.Stubs.ProgressRequest.Parser, new[]{ "Amount", "Delay" }, null, null, null) })); } #endregion } #region Messages public sealed partial class ProgressRequest : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ProgressRequest()); [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.Stubs.ProgressRequestReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ProgressRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ProgressRequest(ProgressRequest other) : this() { amount_ = other.amount_; delay_ = other.delay_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public ProgressRequest Clone() { return new ProgressRequest(this); } /// Field number for the "Amount" field. public const int AmountFieldNumber = 1; private int amount_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Amount { get { return amount_; } set { amount_ = value; } } /// Field number for the "Delay" field. public const int DelayFieldNumber = 2; private int delay_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Delay { get { return delay_; } set { delay_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as ProgressRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(ProgressRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Amount != other.Amount) return false; if (Delay != other.Delay) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Amount != 0) hash ^= Amount.GetHashCode(); if (Delay != 0) hash ^= Delay.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 (Amount != 0) { output.WriteRawTag(8); output.WriteInt32(Amount); } if (Delay != 0) { output.WriteRawTag(16); output.WriteInt32(Delay); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Amount != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Amount); } if (Delay != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Delay); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(ProgressRequest other) { if (other == null) { return; } if (other.Amount != 0) { Amount = other.Amount; } if (other.Delay != 0) { Delay = other.Delay; } } [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: { Amount = input.ReadInt32(); break; } case 16: { Delay = input.ReadInt32(); break; } } } } } #endregion } #endregion Designer generated code