Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: math.proto |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 3 | #pragma warning disable 1591, 0612, 3021 |
| 4 | #region Designer generated code |
| 5 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 6 | using pb = global::Google.Protobuf; |
| 7 | using pbc = global::Google.Protobuf.Collections; |
| 8 | using pbr = global::Google.Protobuf.Reflection; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 9 | using scg = global::System.Collections.Generic; |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 10 | namespace Math { |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 11 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 12 | /// <summary>Holder for reflection information generated from math.proto</summary> |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 13 | public static partial class MathReflection { |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 14 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 15 | #region Descriptor |
| 16 | /// <summary>File descriptor for math.proto</summary> |
| 17 | public static pbr::FileDescriptor Descriptor { |
| 18 | get { return descriptor; } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 19 | } |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 20 | private static pbr::FileDescriptor descriptor; |
| 21 | |
| 22 | static MathReflection() { |
| 23 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 24 | string.Concat( |
| 25 | "CgptYXRoLnByb3RvEgRtYXRoIiwKB0RpdkFyZ3MSEAoIZGl2aWRlbmQYASAB", |
| 26 | "KAMSDwoHZGl2aXNvchgCIAEoAyIvCghEaXZSZXBseRIQCghxdW90aWVudBgB", |
| 27 | "IAEoAxIRCglyZW1haW5kZXIYAiABKAMiGAoHRmliQXJncxINCgVsaW1pdBgB", |
| 28 | "IAEoAyISCgNOdW0SCwoDbnVtGAEgASgDIhkKCEZpYlJlcGx5Eg0KBWNvdW50", |
| 29 | "GAEgASgDMqQBCgRNYXRoEiYKA0RpdhINLm1hdGguRGl2QXJncxoOLm1hdGgu", |
| 30 | "RGl2UmVwbHkiABIuCgdEaXZNYW55Eg0ubWF0aC5EaXZBcmdzGg4ubWF0aC5E", |
| 31 | "aXZSZXBseSIAKAEwARIjCgNGaWISDS5tYXRoLkZpYkFyZ3MaCS5tYXRoLk51", |
| 32 | "bSIAMAESHwoDU3VtEgkubWF0aC5OdW0aCS5tYXRoLk51bSIAKAFiBnByb3Rv", |
| 33 | "Mw==")); |
| 34 | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| 35 | new pbr::FileDescriptor[] { }, |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 36 | new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { |
| 37 | new pbr::GeneratedClrTypeInfo(typeof(global::Math.DivArgs), global::Math.DivArgs.Parser, new[]{ "Dividend", "Divisor" }, null, null, null), |
| 38 | new pbr::GeneratedClrTypeInfo(typeof(global::Math.DivReply), global::Math.DivReply.Parser, new[]{ "Quotient", "Remainder" }, null, null, null), |
| 39 | new pbr::GeneratedClrTypeInfo(typeof(global::Math.FibArgs), global::Math.FibArgs.Parser, new[]{ "Limit" }, null, null, null), |
| 40 | new pbr::GeneratedClrTypeInfo(typeof(global::Math.Num), global::Math.Num.Parser, new[]{ "Num_" }, null, null, null), |
| 41 | new pbr::GeneratedClrTypeInfo(typeof(global::Math.FibReply), global::Math.FibReply.Parser, new[]{ "Count" }, null, null, null) |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 42 | })); |
| 43 | } |
| 44 | #endregion |
| 45 | |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 46 | } |
| 47 | #region Messages |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 48 | public sealed partial class DivArgs : pb::IMessage<DivArgs> { |
| 49 | private static readonly pb::MessageParser<DivArgs> _parser = new pb::MessageParser<DivArgs>(() => new DivArgs()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 50 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 51 | public static pb::MessageParser<DivArgs> Parser { get { return _parser; } } |
| 52 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 53 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 54 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 55 | get { return global::Math.MathReflection.Descriptor.MessageTypes[0]; } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 56 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 57 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 58 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 59 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 60 | get { return Descriptor; } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 61 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 62 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 63 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 64 | public DivArgs() { |
| 65 | OnConstruction(); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 66 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 67 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 68 | partial void OnConstruction(); |
| 69 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 70 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 71 | public DivArgs(DivArgs other) : this() { |
| 72 | dividend_ = other.dividend_; |
| 73 | divisor_ = other.divisor_; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 74 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 75 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 76 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 77 | public DivArgs Clone() { |
| 78 | return new DivArgs(this); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 79 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 80 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 81 | /// <summary>Field number for the "dividend" field.</summary> |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 82 | public const int DividendFieldNumber = 1; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 83 | private long dividend_; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 84 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 85 | public long Dividend { |
| 86 | get { return dividend_; } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 87 | set { |
| 88 | dividend_ = value; |
| 89 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 90 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 91 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 92 | /// <summary>Field number for the "divisor" field.</summary> |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 93 | public const int DivisorFieldNumber = 2; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 94 | private long divisor_; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 95 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 96 | public long Divisor { |
| 97 | get { return divisor_; } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 98 | set { |
| 99 | divisor_ = value; |
| 100 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 101 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 102 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 103 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 104 | public override bool Equals(object other) { |
| 105 | return Equals(other as DivArgs); |
| 106 | } |
| 107 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 108 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 109 | public bool Equals(DivArgs other) { |
| 110 | if (ReferenceEquals(other, null)) { |
| 111 | return false; |
| 112 | } |
| 113 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 114 | return true; |
| 115 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 116 | if (Dividend != other.Dividend) return false; |
| 117 | if (Divisor != other.Divisor) return false; |
| 118 | return true; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 119 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 120 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 121 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 122 | public override int GetHashCode() { |
| 123 | int hash = 1; |
| 124 | if (Dividend != 0L) hash ^= Dividend.GetHashCode(); |
| 125 | if (Divisor != 0L) hash ^= Divisor.GetHashCode(); |
| 126 | return hash; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 127 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 128 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 129 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 130 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 131 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 132 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 133 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 134 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 135 | public void WriteTo(pb::CodedOutputStream output) { |
| 136 | if (Dividend != 0L) { |
| 137 | output.WriteRawTag(8); |
| 138 | output.WriteInt64(Dividend); |
| 139 | } |
| 140 | if (Divisor != 0L) { |
| 141 | output.WriteRawTag(16); |
| 142 | output.WriteInt64(Divisor); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 143 | } |
| 144 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 145 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 146 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 147 | public int CalculateSize() { |
| 148 | int size = 0; |
| 149 | if (Dividend != 0L) { |
| 150 | size += 1 + pb::CodedOutputStream.ComputeInt64Size(Dividend); |
| 151 | } |
| 152 | if (Divisor != 0L) { |
| 153 | size += 1 + pb::CodedOutputStream.ComputeInt64Size(Divisor); |
| 154 | } |
| 155 | return size; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 156 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 157 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 158 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 159 | public void MergeFrom(DivArgs other) { |
| 160 | if (other == null) { |
| 161 | return; |
| 162 | } |
| 163 | if (other.Dividend != 0L) { |
| 164 | Dividend = other.Dividend; |
| 165 | } |
| 166 | if (other.Divisor != 0L) { |
| 167 | Divisor = other.Divisor; |
| 168 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 169 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 170 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 171 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 172 | public void MergeFrom(pb::CodedInputStream input) { |
| 173 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 174 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 175 | switch(tag) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 176 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 177 | input.SkipLastField(); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 178 | break; |
| 179 | case 8: { |
| 180 | Dividend = input.ReadInt64(); |
| 181 | break; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 182 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 183 | case 16: { |
| 184 | Divisor = input.ReadInt64(); |
| 185 | break; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 186 | } |
| 187 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 188 | } |
| 189 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 190 | |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 191 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 192 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 193 | public sealed partial class DivReply : pb::IMessage<DivReply> { |
| 194 | private static readonly pb::MessageParser<DivReply> _parser = new pb::MessageParser<DivReply>(() => new DivReply()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 195 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 196 | public static pb::MessageParser<DivReply> Parser { get { return _parser; } } |
| 197 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 198 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 199 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 200 | get { return global::Math.MathReflection.Descriptor.MessageTypes[1]; } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 201 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 202 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 203 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 204 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 205 | get { return Descriptor; } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 206 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 207 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 208 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 209 | public DivReply() { |
| 210 | OnConstruction(); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 211 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 212 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 213 | partial void OnConstruction(); |
| 214 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 215 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 216 | public DivReply(DivReply other) : this() { |
| 217 | quotient_ = other.quotient_; |
| 218 | remainder_ = other.remainder_; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 219 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 220 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 221 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 222 | public DivReply Clone() { |
| 223 | return new DivReply(this); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 224 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 225 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 226 | /// <summary>Field number for the "quotient" field.</summary> |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 227 | public const int QuotientFieldNumber = 1; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 228 | private long quotient_; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 229 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 230 | public long Quotient { |
| 231 | get { return quotient_; } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 232 | set { |
| 233 | quotient_ = value; |
| 234 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 235 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 236 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 237 | /// <summary>Field number for the "remainder" field.</summary> |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 238 | public const int RemainderFieldNumber = 2; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 239 | private long remainder_; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 240 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 241 | public long Remainder { |
| 242 | get { return remainder_; } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 243 | set { |
| 244 | remainder_ = value; |
| 245 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 246 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 247 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 248 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 249 | public override bool Equals(object other) { |
| 250 | return Equals(other as DivReply); |
| 251 | } |
| 252 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 253 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 254 | public bool Equals(DivReply other) { |
| 255 | if (ReferenceEquals(other, null)) { |
| 256 | return false; |
| 257 | } |
| 258 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 259 | return true; |
| 260 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 261 | if (Quotient != other.Quotient) return false; |
| 262 | if (Remainder != other.Remainder) return false; |
| 263 | return true; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 264 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 265 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 266 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 267 | public override int GetHashCode() { |
| 268 | int hash = 1; |
| 269 | if (Quotient != 0L) hash ^= Quotient.GetHashCode(); |
| 270 | if (Remainder != 0L) hash ^= Remainder.GetHashCode(); |
| 271 | return hash; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 272 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 273 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 274 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 275 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 276 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 277 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 278 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 279 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 280 | public void WriteTo(pb::CodedOutputStream output) { |
| 281 | if (Quotient != 0L) { |
| 282 | output.WriteRawTag(8); |
| 283 | output.WriteInt64(Quotient); |
| 284 | } |
| 285 | if (Remainder != 0L) { |
| 286 | output.WriteRawTag(16); |
| 287 | output.WriteInt64(Remainder); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 288 | } |
| 289 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 290 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 291 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 292 | public int CalculateSize() { |
| 293 | int size = 0; |
| 294 | if (Quotient != 0L) { |
| 295 | size += 1 + pb::CodedOutputStream.ComputeInt64Size(Quotient); |
| 296 | } |
| 297 | if (Remainder != 0L) { |
| 298 | size += 1 + pb::CodedOutputStream.ComputeInt64Size(Remainder); |
| 299 | } |
| 300 | return size; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 301 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 302 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 303 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 304 | public void MergeFrom(DivReply other) { |
| 305 | if (other == null) { |
| 306 | return; |
| 307 | } |
| 308 | if (other.Quotient != 0L) { |
| 309 | Quotient = other.Quotient; |
| 310 | } |
| 311 | if (other.Remainder != 0L) { |
| 312 | Remainder = other.Remainder; |
| 313 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 314 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 315 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 316 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 317 | public void MergeFrom(pb::CodedInputStream input) { |
| 318 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 319 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 320 | switch(tag) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 321 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 322 | input.SkipLastField(); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 323 | break; |
| 324 | case 8: { |
| 325 | Quotient = input.ReadInt64(); |
| 326 | break; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 327 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 328 | case 16: { |
| 329 | Remainder = input.ReadInt64(); |
| 330 | break; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 331 | } |
| 332 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 333 | } |
| 334 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 335 | |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 336 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 337 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 338 | public sealed partial class FibArgs : pb::IMessage<FibArgs> { |
| 339 | private static readonly pb::MessageParser<FibArgs> _parser = new pb::MessageParser<FibArgs>(() => new FibArgs()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 340 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 341 | public static pb::MessageParser<FibArgs> Parser { get { return _parser; } } |
| 342 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 343 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 344 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 345 | get { return global::Math.MathReflection.Descriptor.MessageTypes[2]; } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 346 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 347 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 348 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 349 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 350 | get { return Descriptor; } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 351 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 352 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 353 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 354 | public FibArgs() { |
| 355 | OnConstruction(); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 356 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 357 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 358 | partial void OnConstruction(); |
| 359 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 360 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 361 | public FibArgs(FibArgs other) : this() { |
| 362 | limit_ = other.limit_; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 363 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 364 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 365 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 366 | public FibArgs Clone() { |
| 367 | return new FibArgs(this); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 368 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 369 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 370 | /// <summary>Field number for the "limit" field.</summary> |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 371 | public const int LimitFieldNumber = 1; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 372 | private long limit_; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 373 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 374 | public long Limit { |
| 375 | get { return limit_; } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 376 | set { |
| 377 | limit_ = value; |
| 378 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 379 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 380 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 381 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 382 | public override bool Equals(object other) { |
| 383 | return Equals(other as FibArgs); |
| 384 | } |
| 385 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 386 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 387 | public bool Equals(FibArgs other) { |
| 388 | if (ReferenceEquals(other, null)) { |
| 389 | return false; |
| 390 | } |
| 391 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 392 | return true; |
| 393 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 394 | if (Limit != other.Limit) return false; |
| 395 | return true; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 396 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 397 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 398 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 399 | public override int GetHashCode() { |
| 400 | int hash = 1; |
| 401 | if (Limit != 0L) hash ^= Limit.GetHashCode(); |
| 402 | return hash; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 403 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 404 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 405 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 406 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 407 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 408 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 409 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 410 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 411 | public void WriteTo(pb::CodedOutputStream output) { |
| 412 | if (Limit != 0L) { |
| 413 | output.WriteRawTag(8); |
| 414 | output.WriteInt64(Limit); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 415 | } |
| 416 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 417 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 418 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 419 | public int CalculateSize() { |
| 420 | int size = 0; |
| 421 | if (Limit != 0L) { |
| 422 | size += 1 + pb::CodedOutputStream.ComputeInt64Size(Limit); |
| 423 | } |
| 424 | return size; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 425 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 426 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 427 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 428 | public void MergeFrom(FibArgs other) { |
| 429 | if (other == null) { |
| 430 | return; |
| 431 | } |
| 432 | if (other.Limit != 0L) { |
| 433 | Limit = other.Limit; |
| 434 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 435 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 436 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 437 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 438 | public void MergeFrom(pb::CodedInputStream input) { |
| 439 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 440 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 441 | switch(tag) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 442 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 443 | input.SkipLastField(); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 444 | break; |
| 445 | case 8: { |
| 446 | Limit = input.ReadInt64(); |
| 447 | break; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 448 | } |
| 449 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 450 | } |
| 451 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 452 | |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 453 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 454 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 455 | public sealed partial class Num : pb::IMessage<Num> { |
| 456 | private static readonly pb::MessageParser<Num> _parser = new pb::MessageParser<Num>(() => new Num()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 457 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 458 | public static pb::MessageParser<Num> Parser { get { return _parser; } } |
| 459 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 460 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 461 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 462 | get { return global::Math.MathReflection.Descriptor.MessageTypes[3]; } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 463 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 464 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 465 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 466 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 467 | get { return Descriptor; } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 468 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 469 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 470 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 471 | public Num() { |
| 472 | OnConstruction(); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 473 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 474 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 475 | partial void OnConstruction(); |
| 476 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 477 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 478 | public Num(Num other) : this() { |
| 479 | num_ = other.num_; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 480 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 481 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 482 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 483 | public Num Clone() { |
| 484 | return new Num(this); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 485 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 486 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 487 | /// <summary>Field number for the "num" field.</summary> |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 488 | public const int Num_FieldNumber = 1; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 489 | private long num_; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 490 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 491 | public long Num_ { |
| 492 | get { return num_; } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 493 | set { |
| 494 | num_ = value; |
| 495 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 496 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 497 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 498 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 499 | public override bool Equals(object other) { |
| 500 | return Equals(other as Num); |
| 501 | } |
| 502 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 503 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 504 | public bool Equals(Num other) { |
| 505 | if (ReferenceEquals(other, null)) { |
| 506 | return false; |
| 507 | } |
| 508 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 509 | return true; |
| 510 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 511 | if (Num_ != other.Num_) return false; |
| 512 | return true; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 513 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 514 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 515 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 516 | public override int GetHashCode() { |
| 517 | int hash = 1; |
| 518 | if (Num_ != 0L) hash ^= Num_.GetHashCode(); |
| 519 | return hash; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 520 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 521 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 522 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 523 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 524 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 525 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 526 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 527 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 528 | public void WriteTo(pb::CodedOutputStream output) { |
| 529 | if (Num_ != 0L) { |
| 530 | output.WriteRawTag(8); |
| 531 | output.WriteInt64(Num_); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 532 | } |
| 533 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 534 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 535 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 536 | public int CalculateSize() { |
| 537 | int size = 0; |
| 538 | if (Num_ != 0L) { |
| 539 | size += 1 + pb::CodedOutputStream.ComputeInt64Size(Num_); |
| 540 | } |
| 541 | return size; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 542 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 543 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 544 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 545 | public void MergeFrom(Num other) { |
| 546 | if (other == null) { |
| 547 | return; |
| 548 | } |
| 549 | if (other.Num_ != 0L) { |
| 550 | Num_ = other.Num_; |
| 551 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 552 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 553 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 554 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 555 | public void MergeFrom(pb::CodedInputStream input) { |
| 556 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 557 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 558 | switch(tag) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 559 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 560 | input.SkipLastField(); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 561 | break; |
| 562 | case 8: { |
| 563 | Num_ = input.ReadInt64(); |
| 564 | break; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 565 | } |
| 566 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 567 | } |
| 568 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 569 | |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 570 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 571 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 572 | public sealed partial class FibReply : pb::IMessage<FibReply> { |
| 573 | private static readonly pb::MessageParser<FibReply> _parser = new pb::MessageParser<FibReply>(() => new FibReply()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 574 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 575 | public static pb::MessageParser<FibReply> Parser { get { return _parser; } } |
| 576 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 577 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 578 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 579 | get { return global::Math.MathReflection.Descriptor.MessageTypes[4]; } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 580 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 581 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 582 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 583 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 584 | get { return Descriptor; } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 585 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 586 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 587 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 588 | public FibReply() { |
| 589 | OnConstruction(); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 590 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 591 | |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 592 | partial void OnConstruction(); |
| 593 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 594 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 595 | public FibReply(FibReply other) : this() { |
| 596 | count_ = other.count_; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 597 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 598 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 599 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 600 | public FibReply Clone() { |
| 601 | return new FibReply(this); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 602 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 603 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 604 | /// <summary>Field number for the "count" field.</summary> |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 605 | public const int CountFieldNumber = 1; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 606 | private long count_; |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 607 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 608 | public long Count { |
| 609 | get { return count_; } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 610 | set { |
| 611 | count_ = value; |
| 612 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 613 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 614 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 615 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 616 | public override bool Equals(object other) { |
| 617 | return Equals(other as FibReply); |
| 618 | } |
| 619 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 620 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 621 | public bool Equals(FibReply other) { |
| 622 | if (ReferenceEquals(other, null)) { |
| 623 | return false; |
| 624 | } |
| 625 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 626 | return true; |
| 627 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 628 | if (Count != other.Count) return false; |
| 629 | return true; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 630 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 631 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 632 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 633 | public override int GetHashCode() { |
| 634 | int hash = 1; |
| 635 | if (Count != 0L) hash ^= Count.GetHashCode(); |
| 636 | return hash; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 637 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 638 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 639 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 640 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 641 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 642 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 643 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 644 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 645 | public void WriteTo(pb::CodedOutputStream output) { |
| 646 | if (Count != 0L) { |
| 647 | output.WriteRawTag(8); |
| 648 | output.WriteInt64(Count); |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 649 | } |
| 650 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 651 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 652 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 653 | public int CalculateSize() { |
| 654 | int size = 0; |
| 655 | if (Count != 0L) { |
| 656 | size += 1 + pb::CodedOutputStream.ComputeInt64Size(Count); |
| 657 | } |
| 658 | return size; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 659 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 660 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 661 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 662 | public void MergeFrom(FibReply other) { |
| 663 | if (other == null) { |
| 664 | return; |
| 665 | } |
| 666 | if (other.Count != 0L) { |
| 667 | Count = other.Count; |
| 668 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 669 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 670 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 671 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 672 | public void MergeFrom(pb::CodedInputStream input) { |
| 673 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 674 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 675 | switch(tag) { |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 676 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 677 | input.SkipLastField(); |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 678 | break; |
| 679 | case 8: { |
| 680 | Count = input.ReadInt64(); |
| 681 | break; |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 682 | } |
| 683 | } |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 684 | } |
| 685 | } |
Jan Tattermusch | 5c42d8d | 2015-08-03 08:14:30 -0700 | [diff] [blame] | 686 | |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 687 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 688 | |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 689 | #endregion |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 690 | |
Jan Tattermusch | a7608b0 | 2015-02-03 17:54:38 -0800 | [diff] [blame] | 691 | } |
| 692 | |
| 693 | #endregion Designer generated code |