Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: google/protobuf/wrappers.proto |
| 3 | #pragma warning disable 1591, 0612, 3021 |
| 4 | #region Designer generated code |
| 5 | |
| 6 | using pb = global::Google.Protobuf; |
| 7 | using pbc = global::Google.Protobuf.Collections; |
| 8 | using pbr = global::Google.Protobuf.Reflection; |
| 9 | using scg = global::System.Collections.Generic; |
| 10 | namespace Google.Protobuf.WellKnownTypes { |
| 11 | |
| 12 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 13 | public static partial class Wrappers { |
| 14 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 15 | #region Descriptor |
| 16 | public static pbr::FileDescriptor Descriptor { |
| 17 | get { return descriptor; } |
| 18 | } |
| 19 | private static pbr::FileDescriptor descriptor; |
| 20 | |
| 21 | static Wrappers() { |
| 22 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 23 | string.Concat( |
| 24 | "Ch5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8SD2dvb2dsZS5wcm90", |
| 25 | "b2J1ZiIcCgtEb3VibGVWYWx1ZRINCgV2YWx1ZRgBIAEoASIbCgpGbG9hdFZh", |
| 26 | "bHVlEg0KBXZhbHVlGAEgASgCIhsKCkludDY0VmFsdWUSDQoFdmFsdWUYASAB", |
| 27 | "KAMiHAoLVUludDY0VmFsdWUSDQoFdmFsdWUYASABKAQiGwoKSW50MzJWYWx1", |
| 28 | "ZRINCgV2YWx1ZRgBIAEoBSIcCgtVSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEo", |
| 29 | "DSIaCglCb29sVmFsdWUSDQoFdmFsdWUYASABKAgiHAoLU3RyaW5nVmFsdWUS", |
| 30 | "DQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEJN", |
| 31 | "ChNjb20uZ29vZ2xlLnByb3RvYnVmQg1XcmFwcGVyc1Byb3RvUAGiAgNHUEKq", |
Jon Skeet | 47bf49b | 2015-07-22 11:39:38 +0100 | [diff] [blame] | 32 | "Ah5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw==")); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 33 | descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 34 | new pbr::FileDescriptor[] { }, |
Jon Skeet | 47bf49b | 2015-07-22 11:39:38 +0100 | [diff] [blame] | 35 | new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { |
| 36 | new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.DoubleValue), new[]{ "Value" }, null, null, null), |
| 37 | new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.FloatValue), new[]{ "Value" }, null, null, null), |
| 38 | new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Int64Value), new[]{ "Value" }, null, null, null), |
| 39 | new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.UInt64Value), new[]{ "Value" }, null, null, null), |
| 40 | new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Int32Value), new[]{ "Value" }, null, null, null), |
| 41 | new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.UInt32Value), new[]{ "Value" }, null, null, null), |
| 42 | new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.BoolValue), new[]{ "Value" }, null, null, null), |
| 43 | new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.StringValue), new[]{ "Value" }, null, null, null), |
| 44 | new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.BytesValue), new[]{ "Value" }, null, null, null) |
| 45 | })); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 46 | } |
| 47 | #endregion |
| 48 | |
| 49 | } |
| 50 | #region Messages |
| 51 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 52 | public sealed partial class DoubleValue : pb::IMessage<DoubleValue> { |
| 53 | private static readonly pb::MessageParser<DoubleValue> _parser = new pb::MessageParser<DoubleValue>(() => new DoubleValue()); |
| 54 | public static pb::MessageParser<DoubleValue> Parser { get { return _parser; } } |
| 55 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 56 | public static pbr::MessageDescriptor Descriptor { |
| 57 | get { return global::Google.Protobuf.WellKnownTypes.Wrappers.Descriptor.MessageTypes[0]; } |
| 58 | } |
| 59 | |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 60 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 61 | get { return Descriptor; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 62 | } |
| 63 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 64 | public DoubleValue() { |
| 65 | OnConstruction(); |
| 66 | } |
| 67 | |
| 68 | partial void OnConstruction(); |
| 69 | |
| 70 | public DoubleValue(DoubleValue other) : this() { |
| 71 | value_ = other.value_; |
| 72 | } |
| 73 | |
| 74 | public DoubleValue Clone() { |
| 75 | return new DoubleValue(this); |
| 76 | } |
| 77 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 78 | public const int ValueFieldNumber = 1; |
| 79 | private double value_; |
| 80 | public double Value { |
| 81 | get { return value_; } |
| 82 | set { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 83 | value_ = value; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | public override bool Equals(object other) { |
| 88 | return Equals(other as DoubleValue); |
| 89 | } |
| 90 | |
| 91 | public bool Equals(DoubleValue other) { |
| 92 | if (ReferenceEquals(other, null)) { |
| 93 | return false; |
| 94 | } |
| 95 | if (ReferenceEquals(other, this)) { |
| 96 | return true; |
| 97 | } |
| 98 | if (Value != other.Value) return false; |
| 99 | return true; |
| 100 | } |
| 101 | |
| 102 | public override int GetHashCode() { |
| 103 | int hash = 1; |
| 104 | if (Value != 0D) hash ^= Value.GetHashCode(); |
| 105 | return hash; |
| 106 | } |
| 107 | |
| 108 | public override string ToString() { |
| 109 | return pb::JsonFormatter.Default.Format(this); |
| 110 | } |
| 111 | |
| 112 | public void WriteTo(pb::CodedOutputStream output) { |
| 113 | if (Value != 0D) { |
| 114 | output.WriteRawTag(9); |
| 115 | output.WriteDouble(Value); |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | public int CalculateSize() { |
| 120 | int size = 0; |
| 121 | if (Value != 0D) { |
| 122 | size += 1 + 8; |
| 123 | } |
| 124 | return size; |
| 125 | } |
| 126 | |
| 127 | public void MergeFrom(DoubleValue other) { |
| 128 | if (other == null) { |
| 129 | return; |
| 130 | } |
| 131 | if (other.Value != 0D) { |
| 132 | Value = other.Value; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | public void MergeFrom(pb::CodedInputStream input) { |
| 137 | uint tag; |
Jon Skeet | 1a57ad8 | 2015-08-05 11:23:52 +0100 | [diff] [blame] | 138 | while ((tag = input.ReadTag()) != 0) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 139 | switch(tag) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 140 | default: |
Jon Skeet | 5bdc572 | 2015-08-06 11:40:43 +0100 | [diff] [blame^] | 141 | input.SkipLastField(); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 142 | break; |
| 143 | case 9: { |
| 144 | Value = input.ReadDouble(); |
| 145 | break; |
| 146 | } |
| 147 | } |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | } |
| 152 | |
| 153 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 154 | public sealed partial class FloatValue : pb::IMessage<FloatValue> { |
| 155 | private static readonly pb::MessageParser<FloatValue> _parser = new pb::MessageParser<FloatValue>(() => new FloatValue()); |
| 156 | public static pb::MessageParser<FloatValue> Parser { get { return _parser; } } |
| 157 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 158 | public static pbr::MessageDescriptor Descriptor { |
| 159 | get { return global::Google.Protobuf.WellKnownTypes.Wrappers.Descriptor.MessageTypes[1]; } |
| 160 | } |
| 161 | |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 162 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 163 | get { return Descriptor; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 164 | } |
| 165 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 166 | public FloatValue() { |
| 167 | OnConstruction(); |
| 168 | } |
| 169 | |
| 170 | partial void OnConstruction(); |
| 171 | |
| 172 | public FloatValue(FloatValue other) : this() { |
| 173 | value_ = other.value_; |
| 174 | } |
| 175 | |
| 176 | public FloatValue Clone() { |
| 177 | return new FloatValue(this); |
| 178 | } |
| 179 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 180 | public const int ValueFieldNumber = 1; |
| 181 | private float value_; |
| 182 | public float Value { |
| 183 | get { return value_; } |
| 184 | set { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 185 | value_ = value; |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | public override bool Equals(object other) { |
| 190 | return Equals(other as FloatValue); |
| 191 | } |
| 192 | |
| 193 | public bool Equals(FloatValue other) { |
| 194 | if (ReferenceEquals(other, null)) { |
| 195 | return false; |
| 196 | } |
| 197 | if (ReferenceEquals(other, this)) { |
| 198 | return true; |
| 199 | } |
| 200 | if (Value != other.Value) return false; |
| 201 | return true; |
| 202 | } |
| 203 | |
| 204 | public override int GetHashCode() { |
| 205 | int hash = 1; |
| 206 | if (Value != 0F) hash ^= Value.GetHashCode(); |
| 207 | return hash; |
| 208 | } |
| 209 | |
| 210 | public override string ToString() { |
| 211 | return pb::JsonFormatter.Default.Format(this); |
| 212 | } |
| 213 | |
| 214 | public void WriteTo(pb::CodedOutputStream output) { |
| 215 | if (Value != 0F) { |
| 216 | output.WriteRawTag(13); |
| 217 | output.WriteFloat(Value); |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | public int CalculateSize() { |
| 222 | int size = 0; |
| 223 | if (Value != 0F) { |
| 224 | size += 1 + 4; |
| 225 | } |
| 226 | return size; |
| 227 | } |
| 228 | |
| 229 | public void MergeFrom(FloatValue other) { |
| 230 | if (other == null) { |
| 231 | return; |
| 232 | } |
| 233 | if (other.Value != 0F) { |
| 234 | Value = other.Value; |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | public void MergeFrom(pb::CodedInputStream input) { |
| 239 | uint tag; |
Jon Skeet | 1a57ad8 | 2015-08-05 11:23:52 +0100 | [diff] [blame] | 240 | while ((tag = input.ReadTag()) != 0) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 241 | switch(tag) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 242 | default: |
Jon Skeet | 5bdc572 | 2015-08-06 11:40:43 +0100 | [diff] [blame^] | 243 | input.SkipLastField(); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 244 | break; |
| 245 | case 13: { |
| 246 | Value = input.ReadFloat(); |
| 247 | break; |
| 248 | } |
| 249 | } |
| 250 | } |
| 251 | } |
| 252 | |
| 253 | } |
| 254 | |
| 255 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 256 | public sealed partial class Int64Value : pb::IMessage<Int64Value> { |
| 257 | private static readonly pb::MessageParser<Int64Value> _parser = new pb::MessageParser<Int64Value>(() => new Int64Value()); |
| 258 | public static pb::MessageParser<Int64Value> Parser { get { return _parser; } } |
| 259 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 260 | public static pbr::MessageDescriptor Descriptor { |
| 261 | get { return global::Google.Protobuf.WellKnownTypes.Wrappers.Descriptor.MessageTypes[2]; } |
| 262 | } |
| 263 | |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 264 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 265 | get { return Descriptor; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 266 | } |
| 267 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 268 | public Int64Value() { |
| 269 | OnConstruction(); |
| 270 | } |
| 271 | |
| 272 | partial void OnConstruction(); |
| 273 | |
| 274 | public Int64Value(Int64Value other) : this() { |
| 275 | value_ = other.value_; |
| 276 | } |
| 277 | |
| 278 | public Int64Value Clone() { |
| 279 | return new Int64Value(this); |
| 280 | } |
| 281 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 282 | public const int ValueFieldNumber = 1; |
| 283 | private long value_; |
| 284 | public long Value { |
| 285 | get { return value_; } |
| 286 | set { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 287 | value_ = value; |
| 288 | } |
| 289 | } |
| 290 | |
| 291 | public override bool Equals(object other) { |
| 292 | return Equals(other as Int64Value); |
| 293 | } |
| 294 | |
| 295 | public bool Equals(Int64Value other) { |
| 296 | if (ReferenceEquals(other, null)) { |
| 297 | return false; |
| 298 | } |
| 299 | if (ReferenceEquals(other, this)) { |
| 300 | return true; |
| 301 | } |
| 302 | if (Value != other.Value) return false; |
| 303 | return true; |
| 304 | } |
| 305 | |
| 306 | public override int GetHashCode() { |
| 307 | int hash = 1; |
| 308 | if (Value != 0L) hash ^= Value.GetHashCode(); |
| 309 | return hash; |
| 310 | } |
| 311 | |
| 312 | public override string ToString() { |
| 313 | return pb::JsonFormatter.Default.Format(this); |
| 314 | } |
| 315 | |
| 316 | public void WriteTo(pb::CodedOutputStream output) { |
| 317 | if (Value != 0L) { |
| 318 | output.WriteRawTag(8); |
| 319 | output.WriteInt64(Value); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | public int CalculateSize() { |
| 324 | int size = 0; |
| 325 | if (Value != 0L) { |
| 326 | size += 1 + pb::CodedOutputStream.ComputeInt64Size(Value); |
| 327 | } |
| 328 | return size; |
| 329 | } |
| 330 | |
| 331 | public void MergeFrom(Int64Value other) { |
| 332 | if (other == null) { |
| 333 | return; |
| 334 | } |
| 335 | if (other.Value != 0L) { |
| 336 | Value = other.Value; |
| 337 | } |
| 338 | } |
| 339 | |
| 340 | public void MergeFrom(pb::CodedInputStream input) { |
| 341 | uint tag; |
Jon Skeet | 1a57ad8 | 2015-08-05 11:23:52 +0100 | [diff] [blame] | 342 | while ((tag = input.ReadTag()) != 0) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 343 | switch(tag) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 344 | default: |
Jon Skeet | 5bdc572 | 2015-08-06 11:40:43 +0100 | [diff] [blame^] | 345 | input.SkipLastField(); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 346 | break; |
| 347 | case 8: { |
| 348 | Value = input.ReadInt64(); |
| 349 | break; |
| 350 | } |
| 351 | } |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | } |
| 356 | |
| 357 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 358 | public sealed partial class UInt64Value : pb::IMessage<UInt64Value> { |
| 359 | private static readonly pb::MessageParser<UInt64Value> _parser = new pb::MessageParser<UInt64Value>(() => new UInt64Value()); |
| 360 | public static pb::MessageParser<UInt64Value> Parser { get { return _parser; } } |
| 361 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 362 | public static pbr::MessageDescriptor Descriptor { |
| 363 | get { return global::Google.Protobuf.WellKnownTypes.Wrappers.Descriptor.MessageTypes[3]; } |
| 364 | } |
| 365 | |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 366 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 367 | get { return Descriptor; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 368 | } |
| 369 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 370 | public UInt64Value() { |
| 371 | OnConstruction(); |
| 372 | } |
| 373 | |
| 374 | partial void OnConstruction(); |
| 375 | |
| 376 | public UInt64Value(UInt64Value other) : this() { |
| 377 | value_ = other.value_; |
| 378 | } |
| 379 | |
| 380 | public UInt64Value Clone() { |
| 381 | return new UInt64Value(this); |
| 382 | } |
| 383 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 384 | public const int ValueFieldNumber = 1; |
| 385 | private ulong value_; |
| 386 | public ulong Value { |
| 387 | get { return value_; } |
| 388 | set { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 389 | value_ = value; |
| 390 | } |
| 391 | } |
| 392 | |
| 393 | public override bool Equals(object other) { |
| 394 | return Equals(other as UInt64Value); |
| 395 | } |
| 396 | |
| 397 | public bool Equals(UInt64Value other) { |
| 398 | if (ReferenceEquals(other, null)) { |
| 399 | return false; |
| 400 | } |
| 401 | if (ReferenceEquals(other, this)) { |
| 402 | return true; |
| 403 | } |
| 404 | if (Value != other.Value) return false; |
| 405 | return true; |
| 406 | } |
| 407 | |
| 408 | public override int GetHashCode() { |
| 409 | int hash = 1; |
| 410 | if (Value != 0UL) hash ^= Value.GetHashCode(); |
| 411 | return hash; |
| 412 | } |
| 413 | |
| 414 | public override string ToString() { |
| 415 | return pb::JsonFormatter.Default.Format(this); |
| 416 | } |
| 417 | |
| 418 | public void WriteTo(pb::CodedOutputStream output) { |
| 419 | if (Value != 0UL) { |
| 420 | output.WriteRawTag(8); |
| 421 | output.WriteUInt64(Value); |
| 422 | } |
| 423 | } |
| 424 | |
| 425 | public int CalculateSize() { |
| 426 | int size = 0; |
| 427 | if (Value != 0UL) { |
| 428 | size += 1 + pb::CodedOutputStream.ComputeUInt64Size(Value); |
| 429 | } |
| 430 | return size; |
| 431 | } |
| 432 | |
| 433 | public void MergeFrom(UInt64Value other) { |
| 434 | if (other == null) { |
| 435 | return; |
| 436 | } |
| 437 | if (other.Value != 0UL) { |
| 438 | Value = other.Value; |
| 439 | } |
| 440 | } |
| 441 | |
| 442 | public void MergeFrom(pb::CodedInputStream input) { |
| 443 | uint tag; |
Jon Skeet | 1a57ad8 | 2015-08-05 11:23:52 +0100 | [diff] [blame] | 444 | while ((tag = input.ReadTag()) != 0) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 445 | switch(tag) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 446 | default: |
Jon Skeet | 5bdc572 | 2015-08-06 11:40:43 +0100 | [diff] [blame^] | 447 | input.SkipLastField(); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 448 | break; |
| 449 | case 8: { |
| 450 | Value = input.ReadUInt64(); |
| 451 | break; |
| 452 | } |
| 453 | } |
| 454 | } |
| 455 | } |
| 456 | |
| 457 | } |
| 458 | |
| 459 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 460 | public sealed partial class Int32Value : pb::IMessage<Int32Value> { |
| 461 | private static readonly pb::MessageParser<Int32Value> _parser = new pb::MessageParser<Int32Value>(() => new Int32Value()); |
| 462 | public static pb::MessageParser<Int32Value> Parser { get { return _parser; } } |
| 463 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 464 | public static pbr::MessageDescriptor Descriptor { |
| 465 | get { return global::Google.Protobuf.WellKnownTypes.Wrappers.Descriptor.MessageTypes[4]; } |
| 466 | } |
| 467 | |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 468 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 469 | get { return Descriptor; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 470 | } |
| 471 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 472 | public Int32Value() { |
| 473 | OnConstruction(); |
| 474 | } |
| 475 | |
| 476 | partial void OnConstruction(); |
| 477 | |
| 478 | public Int32Value(Int32Value other) : this() { |
| 479 | value_ = other.value_; |
| 480 | } |
| 481 | |
| 482 | public Int32Value Clone() { |
| 483 | return new Int32Value(this); |
| 484 | } |
| 485 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 486 | public const int ValueFieldNumber = 1; |
| 487 | private int value_; |
| 488 | public int Value { |
| 489 | get { return value_; } |
| 490 | set { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 491 | value_ = value; |
| 492 | } |
| 493 | } |
| 494 | |
| 495 | public override bool Equals(object other) { |
| 496 | return Equals(other as Int32Value); |
| 497 | } |
| 498 | |
| 499 | public bool Equals(Int32Value other) { |
| 500 | if (ReferenceEquals(other, null)) { |
| 501 | return false; |
| 502 | } |
| 503 | if (ReferenceEquals(other, this)) { |
| 504 | return true; |
| 505 | } |
| 506 | if (Value != other.Value) return false; |
| 507 | return true; |
| 508 | } |
| 509 | |
| 510 | public override int GetHashCode() { |
| 511 | int hash = 1; |
| 512 | if (Value != 0) hash ^= Value.GetHashCode(); |
| 513 | return hash; |
| 514 | } |
| 515 | |
| 516 | public override string ToString() { |
| 517 | return pb::JsonFormatter.Default.Format(this); |
| 518 | } |
| 519 | |
| 520 | public void WriteTo(pb::CodedOutputStream output) { |
| 521 | if (Value != 0) { |
| 522 | output.WriteRawTag(8); |
| 523 | output.WriteInt32(Value); |
| 524 | } |
| 525 | } |
| 526 | |
| 527 | public int CalculateSize() { |
| 528 | int size = 0; |
| 529 | if (Value != 0) { |
| 530 | size += 1 + pb::CodedOutputStream.ComputeInt32Size(Value); |
| 531 | } |
| 532 | return size; |
| 533 | } |
| 534 | |
| 535 | public void MergeFrom(Int32Value other) { |
| 536 | if (other == null) { |
| 537 | return; |
| 538 | } |
| 539 | if (other.Value != 0) { |
| 540 | Value = other.Value; |
| 541 | } |
| 542 | } |
| 543 | |
| 544 | public void MergeFrom(pb::CodedInputStream input) { |
| 545 | uint tag; |
Jon Skeet | 1a57ad8 | 2015-08-05 11:23:52 +0100 | [diff] [blame] | 546 | while ((tag = input.ReadTag()) != 0) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 547 | switch(tag) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 548 | default: |
Jon Skeet | 5bdc572 | 2015-08-06 11:40:43 +0100 | [diff] [blame^] | 549 | input.SkipLastField(); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 550 | break; |
| 551 | case 8: { |
| 552 | Value = input.ReadInt32(); |
| 553 | break; |
| 554 | } |
| 555 | } |
| 556 | } |
| 557 | } |
| 558 | |
| 559 | } |
| 560 | |
| 561 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 562 | public sealed partial class UInt32Value : pb::IMessage<UInt32Value> { |
| 563 | private static readonly pb::MessageParser<UInt32Value> _parser = new pb::MessageParser<UInt32Value>(() => new UInt32Value()); |
| 564 | public static pb::MessageParser<UInt32Value> Parser { get { return _parser; } } |
| 565 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 566 | public static pbr::MessageDescriptor Descriptor { |
| 567 | get { return global::Google.Protobuf.WellKnownTypes.Wrappers.Descriptor.MessageTypes[5]; } |
| 568 | } |
| 569 | |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 570 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 571 | get { return Descriptor; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 572 | } |
| 573 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 574 | public UInt32Value() { |
| 575 | OnConstruction(); |
| 576 | } |
| 577 | |
| 578 | partial void OnConstruction(); |
| 579 | |
| 580 | public UInt32Value(UInt32Value other) : this() { |
| 581 | value_ = other.value_; |
| 582 | } |
| 583 | |
| 584 | public UInt32Value Clone() { |
| 585 | return new UInt32Value(this); |
| 586 | } |
| 587 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 588 | public const int ValueFieldNumber = 1; |
| 589 | private uint value_; |
| 590 | public uint Value { |
| 591 | get { return value_; } |
| 592 | set { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 593 | value_ = value; |
| 594 | } |
| 595 | } |
| 596 | |
| 597 | public override bool Equals(object other) { |
| 598 | return Equals(other as UInt32Value); |
| 599 | } |
| 600 | |
| 601 | public bool Equals(UInt32Value other) { |
| 602 | if (ReferenceEquals(other, null)) { |
| 603 | return false; |
| 604 | } |
| 605 | if (ReferenceEquals(other, this)) { |
| 606 | return true; |
| 607 | } |
| 608 | if (Value != other.Value) return false; |
| 609 | return true; |
| 610 | } |
| 611 | |
| 612 | public override int GetHashCode() { |
| 613 | int hash = 1; |
| 614 | if (Value != 0) hash ^= Value.GetHashCode(); |
| 615 | return hash; |
| 616 | } |
| 617 | |
| 618 | public override string ToString() { |
| 619 | return pb::JsonFormatter.Default.Format(this); |
| 620 | } |
| 621 | |
| 622 | public void WriteTo(pb::CodedOutputStream output) { |
| 623 | if (Value != 0) { |
| 624 | output.WriteRawTag(8); |
| 625 | output.WriteUInt32(Value); |
| 626 | } |
| 627 | } |
| 628 | |
| 629 | public int CalculateSize() { |
| 630 | int size = 0; |
| 631 | if (Value != 0) { |
| 632 | size += 1 + pb::CodedOutputStream.ComputeUInt32Size(Value); |
| 633 | } |
| 634 | return size; |
| 635 | } |
| 636 | |
| 637 | public void MergeFrom(UInt32Value other) { |
| 638 | if (other == null) { |
| 639 | return; |
| 640 | } |
| 641 | if (other.Value != 0) { |
| 642 | Value = other.Value; |
| 643 | } |
| 644 | } |
| 645 | |
| 646 | public void MergeFrom(pb::CodedInputStream input) { |
| 647 | uint tag; |
Jon Skeet | 1a57ad8 | 2015-08-05 11:23:52 +0100 | [diff] [blame] | 648 | while ((tag = input.ReadTag()) != 0) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 649 | switch(tag) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 650 | default: |
Jon Skeet | 5bdc572 | 2015-08-06 11:40:43 +0100 | [diff] [blame^] | 651 | input.SkipLastField(); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 652 | break; |
| 653 | case 8: { |
| 654 | Value = input.ReadUInt32(); |
| 655 | break; |
| 656 | } |
| 657 | } |
| 658 | } |
| 659 | } |
| 660 | |
| 661 | } |
| 662 | |
| 663 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 664 | public sealed partial class BoolValue : pb::IMessage<BoolValue> { |
| 665 | private static readonly pb::MessageParser<BoolValue> _parser = new pb::MessageParser<BoolValue>(() => new BoolValue()); |
| 666 | public static pb::MessageParser<BoolValue> Parser { get { return _parser; } } |
| 667 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 668 | public static pbr::MessageDescriptor Descriptor { |
| 669 | get { return global::Google.Protobuf.WellKnownTypes.Wrappers.Descriptor.MessageTypes[6]; } |
| 670 | } |
| 671 | |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 672 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 673 | get { return Descriptor; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 674 | } |
| 675 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 676 | public BoolValue() { |
| 677 | OnConstruction(); |
| 678 | } |
| 679 | |
| 680 | partial void OnConstruction(); |
| 681 | |
| 682 | public BoolValue(BoolValue other) : this() { |
| 683 | value_ = other.value_; |
| 684 | } |
| 685 | |
| 686 | public BoolValue Clone() { |
| 687 | return new BoolValue(this); |
| 688 | } |
| 689 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 690 | public const int ValueFieldNumber = 1; |
| 691 | private bool value_; |
| 692 | public bool Value { |
| 693 | get { return value_; } |
| 694 | set { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 695 | value_ = value; |
| 696 | } |
| 697 | } |
| 698 | |
| 699 | public override bool Equals(object other) { |
| 700 | return Equals(other as BoolValue); |
| 701 | } |
| 702 | |
| 703 | public bool Equals(BoolValue other) { |
| 704 | if (ReferenceEquals(other, null)) { |
| 705 | return false; |
| 706 | } |
| 707 | if (ReferenceEquals(other, this)) { |
| 708 | return true; |
| 709 | } |
| 710 | if (Value != other.Value) return false; |
| 711 | return true; |
| 712 | } |
| 713 | |
| 714 | public override int GetHashCode() { |
| 715 | int hash = 1; |
| 716 | if (Value != false) hash ^= Value.GetHashCode(); |
| 717 | return hash; |
| 718 | } |
| 719 | |
| 720 | public override string ToString() { |
| 721 | return pb::JsonFormatter.Default.Format(this); |
| 722 | } |
| 723 | |
| 724 | public void WriteTo(pb::CodedOutputStream output) { |
| 725 | if (Value != false) { |
| 726 | output.WriteRawTag(8); |
| 727 | output.WriteBool(Value); |
| 728 | } |
| 729 | } |
| 730 | |
| 731 | public int CalculateSize() { |
| 732 | int size = 0; |
| 733 | if (Value != false) { |
| 734 | size += 1 + 1; |
| 735 | } |
| 736 | return size; |
| 737 | } |
| 738 | |
| 739 | public void MergeFrom(BoolValue other) { |
| 740 | if (other == null) { |
| 741 | return; |
| 742 | } |
| 743 | if (other.Value != false) { |
| 744 | Value = other.Value; |
| 745 | } |
| 746 | } |
| 747 | |
| 748 | public void MergeFrom(pb::CodedInputStream input) { |
| 749 | uint tag; |
Jon Skeet | 1a57ad8 | 2015-08-05 11:23:52 +0100 | [diff] [blame] | 750 | while ((tag = input.ReadTag()) != 0) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 751 | switch(tag) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 752 | default: |
Jon Skeet | 5bdc572 | 2015-08-06 11:40:43 +0100 | [diff] [blame^] | 753 | input.SkipLastField(); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 754 | break; |
| 755 | case 8: { |
| 756 | Value = input.ReadBool(); |
| 757 | break; |
| 758 | } |
| 759 | } |
| 760 | } |
| 761 | } |
| 762 | |
| 763 | } |
| 764 | |
| 765 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 766 | public sealed partial class StringValue : pb::IMessage<StringValue> { |
| 767 | private static readonly pb::MessageParser<StringValue> _parser = new pb::MessageParser<StringValue>(() => new StringValue()); |
| 768 | public static pb::MessageParser<StringValue> Parser { get { return _parser; } } |
| 769 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 770 | public static pbr::MessageDescriptor Descriptor { |
| 771 | get { return global::Google.Protobuf.WellKnownTypes.Wrappers.Descriptor.MessageTypes[7]; } |
| 772 | } |
| 773 | |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 774 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 775 | get { return Descriptor; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 776 | } |
| 777 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 778 | public StringValue() { |
| 779 | OnConstruction(); |
| 780 | } |
| 781 | |
| 782 | partial void OnConstruction(); |
| 783 | |
| 784 | public StringValue(StringValue other) : this() { |
| 785 | value_ = other.value_; |
| 786 | } |
| 787 | |
| 788 | public StringValue Clone() { |
| 789 | return new StringValue(this); |
| 790 | } |
| 791 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 792 | public const int ValueFieldNumber = 1; |
| 793 | private string value_ = ""; |
| 794 | public string Value { |
| 795 | get { return value_; } |
| 796 | set { |
Jon Skeet | d18cc08 | 2015-07-30 13:50:02 +0100 | [diff] [blame] | 797 | value_ = pb::Preconditions.CheckNotNull(value, "value"); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 798 | } |
| 799 | } |
| 800 | |
| 801 | public override bool Equals(object other) { |
| 802 | return Equals(other as StringValue); |
| 803 | } |
| 804 | |
| 805 | public bool Equals(StringValue other) { |
| 806 | if (ReferenceEquals(other, null)) { |
| 807 | return false; |
| 808 | } |
| 809 | if (ReferenceEquals(other, this)) { |
| 810 | return true; |
| 811 | } |
| 812 | if (Value != other.Value) return false; |
| 813 | return true; |
| 814 | } |
| 815 | |
| 816 | public override int GetHashCode() { |
| 817 | int hash = 1; |
| 818 | if (Value.Length != 0) hash ^= Value.GetHashCode(); |
| 819 | return hash; |
| 820 | } |
| 821 | |
| 822 | public override string ToString() { |
| 823 | return pb::JsonFormatter.Default.Format(this); |
| 824 | } |
| 825 | |
| 826 | public void WriteTo(pb::CodedOutputStream output) { |
| 827 | if (Value.Length != 0) { |
| 828 | output.WriteRawTag(10); |
| 829 | output.WriteString(Value); |
| 830 | } |
| 831 | } |
| 832 | |
| 833 | public int CalculateSize() { |
| 834 | int size = 0; |
| 835 | if (Value.Length != 0) { |
| 836 | size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); |
| 837 | } |
| 838 | return size; |
| 839 | } |
| 840 | |
| 841 | public void MergeFrom(StringValue other) { |
| 842 | if (other == null) { |
| 843 | return; |
| 844 | } |
| 845 | if (other.Value.Length != 0) { |
| 846 | Value = other.Value; |
| 847 | } |
| 848 | } |
| 849 | |
| 850 | public void MergeFrom(pb::CodedInputStream input) { |
| 851 | uint tag; |
Jon Skeet | 1a57ad8 | 2015-08-05 11:23:52 +0100 | [diff] [blame] | 852 | while ((tag = input.ReadTag()) != 0) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 853 | switch(tag) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 854 | default: |
Jon Skeet | 5bdc572 | 2015-08-06 11:40:43 +0100 | [diff] [blame^] | 855 | input.SkipLastField(); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 856 | break; |
| 857 | case 10: { |
| 858 | Value = input.ReadString(); |
| 859 | break; |
| 860 | } |
| 861 | } |
| 862 | } |
| 863 | } |
| 864 | |
| 865 | } |
| 866 | |
| 867 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 868 | public sealed partial class BytesValue : pb::IMessage<BytesValue> { |
| 869 | private static readonly pb::MessageParser<BytesValue> _parser = new pb::MessageParser<BytesValue>(() => new BytesValue()); |
| 870 | public static pb::MessageParser<BytesValue> Parser { get { return _parser; } } |
| 871 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 872 | public static pbr::MessageDescriptor Descriptor { |
| 873 | get { return global::Google.Protobuf.WellKnownTypes.Wrappers.Descriptor.MessageTypes[8]; } |
| 874 | } |
| 875 | |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 876 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 877 | get { return Descriptor; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 878 | } |
| 879 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 880 | public BytesValue() { |
| 881 | OnConstruction(); |
| 882 | } |
| 883 | |
| 884 | partial void OnConstruction(); |
| 885 | |
| 886 | public BytesValue(BytesValue other) : this() { |
| 887 | value_ = other.value_; |
| 888 | } |
| 889 | |
| 890 | public BytesValue Clone() { |
| 891 | return new BytesValue(this); |
| 892 | } |
| 893 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 894 | public const int ValueFieldNumber = 1; |
| 895 | private pb::ByteString value_ = pb::ByteString.Empty; |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 896 | public pb::ByteString Value { |
| 897 | get { return value_; } |
| 898 | set { |
Jon Skeet | d18cc08 | 2015-07-30 13:50:02 +0100 | [diff] [blame] | 899 | value_ = pb::Preconditions.CheckNotNull(value, "value"); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 900 | } |
| 901 | } |
| 902 | |
| 903 | public override bool Equals(object other) { |
| 904 | return Equals(other as BytesValue); |
| 905 | } |
| 906 | |
| 907 | public bool Equals(BytesValue other) { |
| 908 | if (ReferenceEquals(other, null)) { |
| 909 | return false; |
| 910 | } |
| 911 | if (ReferenceEquals(other, this)) { |
| 912 | return true; |
| 913 | } |
| 914 | if (Value != other.Value) return false; |
| 915 | return true; |
| 916 | } |
| 917 | |
| 918 | public override int GetHashCode() { |
| 919 | int hash = 1; |
| 920 | if (Value.Length != 0) hash ^= Value.GetHashCode(); |
| 921 | return hash; |
| 922 | } |
| 923 | |
| 924 | public override string ToString() { |
| 925 | return pb::JsonFormatter.Default.Format(this); |
| 926 | } |
| 927 | |
| 928 | public void WriteTo(pb::CodedOutputStream output) { |
| 929 | if (Value.Length != 0) { |
| 930 | output.WriteRawTag(10); |
| 931 | output.WriteBytes(Value); |
| 932 | } |
| 933 | } |
| 934 | |
| 935 | public int CalculateSize() { |
| 936 | int size = 0; |
| 937 | if (Value.Length != 0) { |
| 938 | size += 1 + pb::CodedOutputStream.ComputeBytesSize(Value); |
| 939 | } |
| 940 | return size; |
| 941 | } |
| 942 | |
| 943 | public void MergeFrom(BytesValue other) { |
| 944 | if (other == null) { |
| 945 | return; |
| 946 | } |
| 947 | if (other.Value.Length != 0) { |
| 948 | Value = other.Value; |
| 949 | } |
| 950 | } |
| 951 | |
| 952 | public void MergeFrom(pb::CodedInputStream input) { |
| 953 | uint tag; |
Jon Skeet | 1a57ad8 | 2015-08-05 11:23:52 +0100 | [diff] [blame] | 954 | while ((tag = input.ReadTag()) != 0) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 955 | switch(tag) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 956 | default: |
Jon Skeet | 5bdc572 | 2015-08-06 11:40:43 +0100 | [diff] [blame^] | 957 | input.SkipLastField(); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 958 | break; |
| 959 | case 10: { |
| 960 | Value = input.ReadBytes(); |
| 961 | break; |
| 962 | } |
| 963 | } |
| 964 | } |
| 965 | } |
| 966 | |
| 967 | } |
| 968 | |
| 969 | #endregion |
| 970 | |
| 971 | } |
| 972 | |
| 973 | #endregion Designer generated code |