UnittestIssues.cs 78.5 KB
Newer Older
1 2 3 4
// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: unittest_issues.proto
// </auto-generated>
5 6 7
#pragma warning disable 1591, 0612, 3021
#region Designer generated code

8 9
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
10
using pbr = global::Google.Protobuf.Reflection;
11 12 13
using scg = global::System.Collections.Generic;
namespace UnitTest.Issues.TestProtos {

14
  /// <summary>Holder for reflection information generated from unittest_issues.proto</summary>
15
  public static partial class UnittestIssuesReflection {
16 17

    #region Descriptor
18
    /// <summary>File descriptor for unittest_issues.proto</summary>
19
    public static pbr::FileDescriptor Descriptor {
20 21
      get { return descriptor; }
    }
22
    private static pbr::FileDescriptor descriptor;
23

24
    static UnittestIssuesReflection() {
25 26
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
            "ChV1bml0dGVzdF9pc3N1ZXMucHJvdG8SD3VuaXR0ZXN0X2lzc3VlcyInCghJ",
            "c3N1ZTMwNxobCgpOZXN0ZWRPbmNlGg0KC05lc3RlZFR3aWNlIrABChNOZWdh",
            "dGl2ZUVudW1NZXNzYWdlEiwKBXZhbHVlGAEgASgOMh0udW5pdHRlc3RfaXNz",
            "dWVzLk5lZ2F0aXZlRW51bRIxCgZ2YWx1ZXMYAiADKA4yHS51bml0dGVzdF9p",
            "c3N1ZXMuTmVnYXRpdmVFbnVtQgIQABI4Cg1wYWNrZWRfdmFsdWVzGAMgAygO",
            "Mh0udW5pdHRlc3RfaXNzdWVzLk5lZ2F0aXZlRW51bUICEAEiEQoPRGVwcmVj",
            "YXRlZENoaWxkIrkCChdEZXByZWNhdGVkRmllbGRzTWVzc2FnZRIaCg5Qcmlt",
            "aXRpdmVWYWx1ZRgBIAEoBUICGAESGgoOUHJpbWl0aXZlQXJyYXkYAiADKAVC",
            "AhgBEjoKDE1lc3NhZ2VWYWx1ZRgDIAEoCzIgLnVuaXR0ZXN0X2lzc3Vlcy5E",
            "ZXByZWNhdGVkQ2hpbGRCAhgBEjoKDE1lc3NhZ2VBcnJheRgEIAMoCzIgLnVu",
            "aXR0ZXN0X2lzc3Vlcy5EZXByZWNhdGVkQ2hpbGRCAhgBEjYKCUVudW1WYWx1",
            "ZRgFIAEoDjIfLnVuaXR0ZXN0X2lzc3Vlcy5EZXByZWNhdGVkRW51bUICGAES",
            "NgoJRW51bUFycmF5GAYgAygOMh8udW5pdHRlc3RfaXNzdWVzLkRlcHJlY2F0",
            "ZWRFbnVtQgIYASIZCglJdGVtRmllbGQSDAoEaXRlbRgBIAEoBSJECg1SZXNl",
            "cnZlZE5hbWVzEg0KBXR5cGVzGAEgASgFEhIKCmRlc2NyaXB0b3IYAiABKAUa",
            "EAoOU29tZU5lc3RlZFR5cGUioAEKFVRlc3RKc29uRmllbGRPcmRlcmluZxIT",
            "CgtwbGFpbl9pbnQzMhgEIAEoBRITCglvMV9zdHJpbmcYAiABKAlIABISCghv",
            "MV9pbnQzMhgFIAEoBUgAEhQKDHBsYWluX3N0cmluZxgBIAEoCRISCghvMl9p",
            "bnQzMhgGIAEoBUgBEhMKCW8yX3N0cmluZxgDIAEoCUgBQgQKAm8xQgQKAm8y",
46
            "IksKDFRlc3RKc29uTmFtZRIMCgRuYW1lGAEgASgJEhkKC2Rlc2NyaXB0aW9u",
47 48 49 50 51 52
            "GAIgASgJUgRkZXNjEhIKBGd1aWQYAyABKAlSBGV4aWQifwoMT25lb2ZNZXJn",
            "aW5nEg4KBHRleHQYASABKAlIABI2CgZuZXN0ZWQYAiABKAsyJC51bml0dGVz",
            "dF9pc3N1ZXMuT25lb2ZNZXJnaW5nLk5lc3RlZEgAGh4KBk5lc3RlZBIJCgF4",
            "GAEgASgFEgkKAXkYAiABKAVCBwoFdmFsdWUqVQoMTmVnYXRpdmVFbnVtEhYK",
            "Ek5FR0FUSVZFX0VOVU1fWkVSTxAAEhYKCUZpdmVCZWxvdxD7//////////8B",
            "EhUKCE1pbnVzT25lEP///////////wEqLgoORGVwcmVjYXRlZEVudW0SEwoP",
53 54
            "REVQUkVDQVRFRF9aRVJPEAASBwoDb25lEAFCHaoCGlVuaXRUZXN0Lklzc3Vl",
            "cy5UZXN0UHJvdG9zYgZwcm90bzM="));
55
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
56
          new pbr::FileDescriptor[] { },
57 58 59 60 61 62 63
          new pbr::GeneratedClrTypeInfo(new[] {typeof(global::UnitTest.Issues.TestProtos.NegativeEnum), typeof(global::UnitTest.Issues.TestProtos.DeprecatedEnum), }, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Issue307), global::UnitTest.Issues.TestProtos.Issue307.Parser, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce), global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Parser, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Types.NestedTwice), global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Types.NestedTwice.Parser, null, null, null, null)})}),
            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.NegativeEnumMessage), global::UnitTest.Issues.TestProtos.NegativeEnumMessage.Parser, new[]{ "Value", "Values", "PackedValues" }, null, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DeprecatedChild), global::UnitTest.Issues.TestProtos.DeprecatedChild.Parser, null, null, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage), global::UnitTest.Issues.TestProtos.DeprecatedFieldsMessage.Parser, new[]{ "PrimitiveValue", "PrimitiveArray", "MessageValue", "MessageArray", "EnumValue", "EnumArray" }, null, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ItemField), global::UnitTest.Issues.TestProtos.ItemField.Parser, new[]{ "Item" }, null, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ReservedNames), global::UnitTest.Issues.TestProtos.ReservedNames.Parser, new[]{ "Types_", "Descriptor_" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.ReservedNames.Types.SomeNestedType), global::UnitTest.Issues.TestProtos.ReservedNames.Types.SomeNestedType.Parser, null, null, null, null)}),
64
            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.TestJsonFieldOrdering), global::UnitTest.Issues.TestProtos.TestJsonFieldOrdering.Parser, new[]{ "PlainInt32", "O1String", "O1Int32", "PlainString", "O2Int32", "O2String" }, new[]{ "O1", "O2" }, null, null),
65 66
            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.TestJsonName), global::UnitTest.Issues.TestProtos.TestJsonName.Parser, new[]{ "Name", "Description", "Guid" }, null, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.OneofMerging), global::UnitTest.Issues.TestProtos.OneofMerging.Parser, new[]{ "Text", "Nested" }, new[]{ "Value" }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested), global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested.Parser, new[]{ "X", "Y" }, null, null, null)})
67
          }));
68 69 70 71 72
    }
    #endregion

  }
  #region Enums
73
  public enum NegativeEnum {
74 75 76
    [pbr::OriginalName("NEGATIVE_ENUM_ZERO")] Zero = 0,
    [pbr::OriginalName("FiveBelow")] FiveBelow = -5,
    [pbr::OriginalName("MinusOne")] MinusOne = -1,
77 78
  }

79
  public enum DeprecatedEnum {
80 81
    [pbr::OriginalName("DEPRECATED_ZERO")] DeprecatedZero = 0,
    [pbr::OriginalName("one")] One = 1,
82 83 84 85 86
  }

  #endregion

  #region Messages
87
  /// <summary>
88 89
  /// Issue 307: when generating doubly-nested types, any references
  /// should be of the form A.Types.B.Types.C.
90
  /// </summary>
91 92
  public sealed partial class Issue307 : pb::IMessage<Issue307> {
    private static readonly pb::MessageParser<Issue307> _parser = new pb::MessageParser<Issue307>(() => new Issue307());
93
    private pb::UnknownFieldSet _unknownFields;
94
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
95 96
    public static pb::MessageParser<Issue307> Parser { get { return _parser; } }

97
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
98
    public static pbr::MessageDescriptor Descriptor {
99
      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[0]; }
100 101
    }

102
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
103 104
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
105 106
    }

107
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
108 109 110 111 112
    public Issue307() {
      OnConstruction();
    }

    partial void OnConstruction();
113

114
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
115
    public Issue307(Issue307 other) : this() {
116
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
117 118
    }

119
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
120 121 122 123
    public Issue307 Clone() {
      return new Issue307(this);
    }

124
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
125 126 127 128
    public override bool Equals(object other) {
      return Equals(other as Issue307);
    }

129
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
130 131 132 133 134 135 136
    public bool Equals(Issue307 other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
137
      return Equals(_unknownFields, other._unknownFields);
138 139
    }

140
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
141 142
    public override int GetHashCode() {
      int hash = 1;
143 144 145
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
146 147 148
      return hash;
    }

149
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
150
    public override string ToString() {
151
      return pb::JsonFormatter.ToDiagnosticString(this);
152 153
    }

154
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
155
    public void WriteTo(pb::CodedOutputStream output) {
156 157 158
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
159 160
    }

161
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
162 163
    public int CalculateSize() {
      int size = 0;
164 165 166
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
167 168 169
      return size;
    }

170
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
171 172 173 174
    public void MergeFrom(Issue307 other) {
      if (other == null) {
        return;
      }
175
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
176 177
    }

178
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
179 180
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
181
      while ((tag = input.ReadTag()) != 0) {
182 183
        switch(tag) {
          default:
184
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
185 186 187 188 189 190
            break;
        }
      }
    }

    #region Nested types
191
    /// <summary>Container for nested types declared in the Issue307 message type.</summary>
192
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
193 194 195
    public static partial class Types {
      public sealed partial class NestedOnce : pb::IMessage<NestedOnce> {
        private static readonly pb::MessageParser<NestedOnce> _parser = new pb::MessageParser<NestedOnce>(() => new NestedOnce());
196
        private pb::UnknownFieldSet _unknownFields;
197
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
198 199
        public static pb::MessageParser<NestedOnce> Parser { get { return _parser; } }

200
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
201
        public static pbr::MessageDescriptor Descriptor {
202
          get { return global::UnitTest.Issues.TestProtos.Issue307.Descriptor.NestedTypes[0]; }
203 204
        }

205
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
206 207
        pbr::MessageDescriptor pb::IMessage.Descriptor {
          get { return Descriptor; }
208 209
        }

210
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
211 212 213 214 215
        public NestedOnce() {
          OnConstruction();
        }

        partial void OnConstruction();
216

217
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
218
        public NestedOnce(NestedOnce other) : this() {
219
          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
220 221
        }

222
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
223 224 225 226
        public NestedOnce Clone() {
          return new NestedOnce(this);
        }

227
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
228 229 230 231
        public override bool Equals(object other) {
          return Equals(other as NestedOnce);
        }

232
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
233 234 235 236 237 238 239
        public bool Equals(NestedOnce other) {
          if (ReferenceEquals(other, null)) {
            return false;
          }
          if (ReferenceEquals(other, this)) {
            return true;
          }
240
          return Equals(_unknownFields, other._unknownFields);
241 242
        }

243
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
244 245
        public override int GetHashCode() {
          int hash = 1;
246 247 248
          if (_unknownFields != null) {
            hash ^= _unknownFields.GetHashCode();
          }
249 250 251
          return hash;
        }

252
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
253
        public override string ToString() {
254
          return pb::JsonFormatter.ToDiagnosticString(this);
255 256
        }

257
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
258
        public void WriteTo(pb::CodedOutputStream output) {
259 260 261
          if (_unknownFields != null) {
            _unknownFields.WriteTo(output);
          }
262 263
        }

264
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
265 266
        public int CalculateSize() {
          int size = 0;
267 268 269
          if (_unknownFields != null) {
            size += _unknownFields.CalculateSize();
          }
270 271 272
          return size;
        }

273
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
274 275 276 277
        public void MergeFrom(NestedOnce other) {
          if (other == null) {
            return;
          }
278
          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
279 280
        }

281
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
282 283
        public void MergeFrom(pb::CodedInputStream input) {
          uint tag;
284
          while ((tag = input.ReadTag()) != 0) {
285 286
            switch(tag) {
              default:
287
                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
288 289 290 291 292 293
                break;
            }
          }
        }

        #region Nested types
294
        /// <summary>Container for nested types declared in the NestedOnce message type.</summary>
295
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
296 297 298
        public static partial class Types {
          public sealed partial class NestedTwice : pb::IMessage<NestedTwice> {
            private static readonly pb::MessageParser<NestedTwice> _parser = new pb::MessageParser<NestedTwice>(() => new NestedTwice());
299
            private pb::UnknownFieldSet _unknownFields;
300
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
301 302
            public static pb::MessageParser<NestedTwice> Parser { get { return _parser; } }

303
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
304
            public static pbr::MessageDescriptor Descriptor {
305
              get { return global::UnitTest.Issues.TestProtos.Issue307.Types.NestedOnce.Descriptor.NestedTypes[0]; }
306 307
            }

308
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
309 310
            pbr::MessageDescriptor pb::IMessage.Descriptor {
              get { return Descriptor; }
311 312
            }

313
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
314 315 316 317 318
            public NestedTwice() {
              OnConstruction();
            }

            partial void OnConstruction();
319

320
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
321
            public NestedTwice(NestedTwice other) : this() {
322
              _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
323 324
            }

325
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
326 327 328 329
            public NestedTwice Clone() {
              return new NestedTwice(this);
            }

330
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
331 332 333 334
            public override bool Equals(object other) {
              return Equals(other as NestedTwice);
            }

335
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
336 337 338 339 340 341 342
            public bool Equals(NestedTwice other) {
              if (ReferenceEquals(other, null)) {
                return false;
              }
              if (ReferenceEquals(other, this)) {
                return true;
              }
343
              return Equals(_unknownFields, other._unknownFields);
344 345
            }

346
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
347 348
            public override int GetHashCode() {
              int hash = 1;
349 350 351
              if (_unknownFields != null) {
                hash ^= _unknownFields.GetHashCode();
              }
352 353 354
              return hash;
            }

355
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
356
            public override string ToString() {
357
              return pb::JsonFormatter.ToDiagnosticString(this);
358 359
            }

360
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
361
            public void WriteTo(pb::CodedOutputStream output) {
362 363 364
              if (_unknownFields != null) {
                _unknownFields.WriteTo(output);
              }
365 366
            }

367
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
368 369
            public int CalculateSize() {
              int size = 0;
370 371 372
              if (_unknownFields != null) {
                size += _unknownFields.CalculateSize();
              }
373 374 375
              return size;
            }

376
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
377 378 379 380
            public void MergeFrom(NestedTwice other) {
              if (other == null) {
                return;
              }
381
              _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
382 383
            }

384
            [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
385 386
            public void MergeFrom(pb::CodedInputStream input) {
              uint tag;
387
              while ((tag = input.ReadTag()) != 0) {
388 389
                switch(tag) {
                  default:
390
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407
                    break;
                }
              }
            }

          }

        }
        #endregion

      }

    }
    #endregion

  }

408
  public sealed partial class NegativeEnumMessage : pb::IMessage<NegativeEnumMessage> {
409
    private static readonly pb::MessageParser<NegativeEnumMessage> _parser = new pb::MessageParser<NegativeEnumMessage>(() => new NegativeEnumMessage());
410
    private pb::UnknownFieldSet _unknownFields;
411
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
412
    public static pb::MessageParser<NegativeEnumMessage> Parser { get { return _parser; } }
413

414
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
415
    public static pbr::MessageDescriptor Descriptor {
416
      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[1]; }
417 418
    }

419
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
420 421
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
422 423
    }

424
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
425 426 427 428 429
    public NegativeEnumMessage() {
      OnConstruction();
    }

    partial void OnConstruction();
Jon Skeet's avatar
Jon Skeet committed
430

431
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
432
    public NegativeEnumMessage(NegativeEnumMessage other) : this() {
Jon Skeet's avatar
Jon Skeet committed
433 434 435
      value_ = other.value_;
      values_ = other.values_.Clone();
      packedValues_ = other.packedValues_.Clone();
436
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Jon Skeet's avatar
Jon Skeet committed
437 438
    }

439
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
440 441
    public NegativeEnumMessage Clone() {
      return new NegativeEnumMessage(this);
442
    }
Jon Skeet's avatar
Jon Skeet committed
443

444
    /// <summary>Field number for the "value" field.</summary>
445
    public const int ValueFieldNumber = 1;
446
    private global::UnitTest.Issues.TestProtos.NegativeEnum value_ = 0;
447
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
448 449
    public global::UnitTest.Issues.TestProtos.NegativeEnum Value {
      get { return value_; }
450 451 452
      set {
        value_ = value;
      }
453 454
    }

455
    /// <summary>Field number for the "values" field.</summary>
456
    public const int ValuesFieldNumber = 2;
457
    private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.NegativeEnum> _repeated_values_codec
458 459
        = pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::UnitTest.Issues.TestProtos.NegativeEnum) x);
    private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> values_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum>();
460
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
461 462
    public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> Values {
      get { return values_; }
463 464
    }

465
    /// <summary>Field number for the "packed_values" field.</summary>
466
    public const int PackedValuesFieldNumber = 3;
467
    private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.NegativeEnum> _repeated_packedValues_codec
468 469
        = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::UnitTest.Issues.TestProtos.NegativeEnum) x);
    private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> packedValues_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum>();
470
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
471 472
    public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> PackedValues {
      get { return packedValues_; }
473 474
    }

475
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
476 477
    public override bool Equals(object other) {
      return Equals(other as NegativeEnumMessage);
478 479
    }

480
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
481 482 483
    public bool Equals(NegativeEnumMessage other) {
      if (ReferenceEquals(other, null)) {
        return false;
484
      }
485 486
      if (ReferenceEquals(other, this)) {
        return true;
487
      }
488 489 490
      if (Value != other.Value) return false;
      if(!values_.Equals(other.values_)) return false;
      if(!packedValues_.Equals(other.packedValues_)) return false;
491
      return Equals(_unknownFields, other._unknownFields);
492
    }
493

494
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
495
    public override int GetHashCode() {
496
      int hash = 1;
497
      if (Value != 0) hash ^= Value.GetHashCode();
498 499
      hash ^= values_.GetHashCode();
      hash ^= packedValues_.GetHashCode();
500 501 502
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
503 504
      return hash;
    }
505

506
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
507
    public override string ToString() {
508
      return pb::JsonFormatter.ToDiagnosticString(this);
509 510
    }

511
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
512
    public void WriteTo(pb::CodedOutputStream output) {
513
      if (Value != 0) {
514 515
        output.WriteRawTag(8);
        output.WriteEnum((int) Value);
516
      }
517 518
      values_.WriteTo(output, _repeated_values_codec);
      packedValues_.WriteTo(output, _repeated_packedValues_codec);
519 520 521
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
522
    }
523

524
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
525 526
    public int CalculateSize() {
      int size = 0;
527
      if (Value != 0) {
528
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Value);
529
      }
530 531
      size += values_.CalculateSize(_repeated_values_codec);
      size += packedValues_.CalculateSize(_repeated_packedValues_codec);
532 533 534
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
535 536
      return size;
    }
537

538
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
539 540 541
    public void MergeFrom(NegativeEnumMessage other) {
      if (other == null) {
        return;
542
      }
543
      if (other.Value != 0) {
544
        Value = other.Value;
545
      }
546 547
      values_.Add(other.values_);
      packedValues_.Add(other.packedValues_);
548
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
549
    }
550

551
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
552
    public void MergeFrom(pb::CodedInputStream input) {
553
      uint tag;
554
      while ((tag = input.ReadTag()) != 0) {
555 556
        switch(tag) {
          default:
557
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
558 559
            break;
          case 8: {
Jon Skeet's avatar
Jon Skeet committed
560 561
            value_ = (global::UnitTest.Issues.TestProtos.NegativeEnum) input.ReadEnum();
            break;
562 563 564
          }
          case 18:
          case 16: {
565
            values_.AddEntriesFrom(input, _repeated_values_codec);
566 567 568 569
            break;
          }
          case 26:
          case 24: {
570
            packedValues_.AddEntriesFrom(input, _repeated_packedValues_codec);
571
            break;
572 573 574 575
          }
        }
      }
    }
576

577 578
  }

579
  public sealed partial class DeprecatedChild : pb::IMessage<DeprecatedChild> {
580
    private static readonly pb::MessageParser<DeprecatedChild> _parser = new pb::MessageParser<DeprecatedChild>(() => new DeprecatedChild());
581
    private pb::UnknownFieldSet _unknownFields;
582
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
583
    public static pb::MessageParser<DeprecatedChild> Parser { get { return _parser; } }
584

585
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
586
    public static pbr::MessageDescriptor Descriptor {
587
      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[2]; }
588 589
    }

590
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
591 592
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
593 594
    }

595
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
596 597 598 599 600
    public DeprecatedChild() {
      OnConstruction();
    }

    partial void OnConstruction();
Jon Skeet's avatar
Jon Skeet committed
601

602
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
603
    public DeprecatedChild(DeprecatedChild other) : this() {
604
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
605
    }
Jon Skeet's avatar
Jon Skeet committed
606

607
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
608 609 610 611
    public DeprecatedChild Clone() {
      return new DeprecatedChild(this);
    }

612
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
613 614
    public override bool Equals(object other) {
      return Equals(other as DeprecatedChild);
615 616
    }

617
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
618 619 620 621 622
    public bool Equals(DeprecatedChild other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
623 624
        return true;
      }
625
      return Equals(_unknownFields, other._unknownFields);
626 627
    }

628
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
629
    public override int GetHashCode() {
630
      int hash = 1;
631 632 633
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
634
      return hash;
635 636
    }

637
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
638
    public override string ToString() {
639
      return pb::JsonFormatter.ToDiagnosticString(this);
640 641
    }

642
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
643
    public void WriteTo(pb::CodedOutputStream output) {
644 645 646
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
647 648
    }

649
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
650 651
    public int CalculateSize() {
      int size = 0;
652 653 654
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
655 656
      return size;
    }
657

658
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
659 660 661 662
    public void MergeFrom(DeprecatedChild other) {
      if (other == null) {
        return;
      }
663
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
664
    }
665

666
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
667
    public void MergeFrom(pb::CodedInputStream input) {
668
      uint tag;
669
      while ((tag = input.ReadTag()) != 0) {
670 671
        switch(tag) {
          default:
672
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
673 674 675
            break;
        }
      }
676
    }
677 678 679

  }

680
  public sealed partial class DeprecatedFieldsMessage : pb::IMessage<DeprecatedFieldsMessage> {
681
    private static readonly pb::MessageParser<DeprecatedFieldsMessage> _parser = new pb::MessageParser<DeprecatedFieldsMessage>(() => new DeprecatedFieldsMessage());
682
    private pb::UnknownFieldSet _unknownFields;
683
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
684 685
    public static pb::MessageParser<DeprecatedFieldsMessage> Parser { get { return _parser; } }

686
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
687
    public static pbr::MessageDescriptor Descriptor {
688
      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[3]; }
689
    }
690

691
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
692 693
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
694
    }
695

696
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
697 698 699
    public DeprecatedFieldsMessage() {
      OnConstruction();
    }
Jon Skeet's avatar
Jon Skeet committed
700

701 702
    partial void OnConstruction();

703
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
704
    public DeprecatedFieldsMessage(DeprecatedFieldsMessage other) : this() {
Jon Skeet's avatar
Jon Skeet committed
705 706 707 708 709 710
      primitiveValue_ = other.primitiveValue_;
      primitiveArray_ = other.primitiveArray_.Clone();
      MessageValue = other.messageValue_ != null ? other.MessageValue.Clone() : null;
      messageArray_ = other.messageArray_.Clone();
      enumValue_ = other.enumValue_;
      enumArray_ = other.enumArray_.Clone();
711
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Jon Skeet's avatar
Jon Skeet committed
712 713
    }

714
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
715 716
    public DeprecatedFieldsMessage Clone() {
      return new DeprecatedFieldsMessage(this);
717
    }
Jon Skeet's avatar
Jon Skeet committed
718

719
    /// <summary>Field number for the "PrimitiveValue" field.</summary>
720 721
    public const int PrimitiveValueFieldNumber = 1;
    private int primitiveValue_;
722 723
    [global::System.ObsoleteAttribute]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
724 725
    public int PrimitiveValue {
      get { return primitiveValue_; }
726 727 728
      set {
        primitiveValue_ = value;
      }
729
    }
730

731
    /// <summary>Field number for the "PrimitiveArray" field.</summary>
732
    public const int PrimitiveArrayFieldNumber = 2;
733 734
    private static readonly pb::FieldCodec<int> _repeated_primitiveArray_codec
        = pb::FieldCodec.ForInt32(18);
735
    private readonly pbc::RepeatedField<int> primitiveArray_ = new pbc::RepeatedField<int>();
736 737
    [global::System.ObsoleteAttribute]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
738 739
    public pbc::RepeatedField<int> PrimitiveArray {
      get { return primitiveArray_; }
740
    }
741

742
    /// <summary>Field number for the "MessageValue" field.</summary>
743 744
    public const int MessageValueFieldNumber = 3;
    private global::UnitTest.Issues.TestProtos.DeprecatedChild messageValue_;
745 746
    [global::System.ObsoleteAttribute]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
747 748
    public global::UnitTest.Issues.TestProtos.DeprecatedChild MessageValue {
      get { return messageValue_; }
749 750 751
      set {
        messageValue_ = value;
      }
752
    }
753

754
    /// <summary>Field number for the "MessageArray" field.</summary>
755
    public const int MessageArrayFieldNumber = 4;
756 757
    private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.DeprecatedChild> _repeated_messageArray_codec
        = pb::FieldCodec.ForMessage(34, global::UnitTest.Issues.TestProtos.DeprecatedChild.Parser);
758
    private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild> messageArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild>();
759 760
    [global::System.ObsoleteAttribute]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
761 762
    public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild> MessageArray {
      get { return messageArray_; }
763
    }
764

765
    /// <summary>Field number for the "EnumValue" field.</summary>
766
    public const int EnumValueFieldNumber = 5;
767
    private global::UnitTest.Issues.TestProtos.DeprecatedEnum enumValue_ = 0;
768 769
    [global::System.ObsoleteAttribute]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
770 771
    public global::UnitTest.Issues.TestProtos.DeprecatedEnum EnumValue {
      get { return enumValue_; }
772 773 774
      set {
        enumValue_ = value;
      }
775
    }
776

777
    /// <summary>Field number for the "EnumArray" field.</summary>
778
    public const int EnumArrayFieldNumber = 6;
779
    private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.DeprecatedEnum> _repeated_enumArray_codec
780 781
        = pb::FieldCodec.ForEnum(50, x => (int) x, x => (global::UnitTest.Issues.TestProtos.DeprecatedEnum) x);
    private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum> enumArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum>();
782 783
    [global::System.ObsoleteAttribute]
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
784 785
    public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum> EnumArray {
      get { return enumArray_; }
786 787
    }

788
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
789 790
    public override bool Equals(object other) {
      return Equals(other as DeprecatedFieldsMessage);
791 792
    }

793
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
794 795 796
    public bool Equals(DeprecatedFieldsMessage other) {
      if (ReferenceEquals(other, null)) {
        return false;
797
      }
798 799
      if (ReferenceEquals(other, this)) {
        return true;
800
      }
801 802
      if (PrimitiveValue != other.PrimitiveValue) return false;
      if(!primitiveArray_.Equals(other.primitiveArray_)) return false;
803 804
      if (!object.Equals(MessageValue, other.MessageValue)) return false;
      if(!messageArray_.Equals(other.messageArray_)) return false;
805 806
      if (EnumValue != other.EnumValue) return false;
      if(!enumArray_.Equals(other.enumArray_)) return false;
807
      return Equals(_unknownFields, other._unknownFields);
808
    }
809

810
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
811
    public override int GetHashCode() {
812
      int hash = 1;
813 814 815 816
      if (PrimitiveValue != 0) hash ^= PrimitiveValue.GetHashCode();
      hash ^= primitiveArray_.GetHashCode();
      if (messageValue_ != null) hash ^= MessageValue.GetHashCode();
      hash ^= messageArray_.GetHashCode();
817
      if (EnumValue != 0) hash ^= EnumValue.GetHashCode();
818
      hash ^= enumArray_.GetHashCode();
819 820 821
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
822 823
      return hash;
    }
824

825
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
826
    public override string ToString() {
827
      return pb::JsonFormatter.ToDiagnosticString(this);
828 829
    }

830
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
831
    public void WriteTo(pb::CodedOutputStream output) {
832
      if (PrimitiveValue != 0) {
833 834
        output.WriteRawTag(8);
        output.WriteInt32(PrimitiveValue);
835
      }
836
      primitiveArray_.WriteTo(output, _repeated_primitiveArray_codec);
837
      if (messageValue_ != null) {
838 839
        output.WriteRawTag(26);
        output.WriteMessage(MessageValue);
840
      }
841
      messageArray_.WriteTo(output, _repeated_messageArray_codec);
842
      if (EnumValue != 0) {
843 844
        output.WriteRawTag(40);
        output.WriteEnum((int) EnumValue);
845
      }
846
      enumArray_.WriteTo(output, _repeated_enumArray_codec);
847 848 849
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
850
    }
851

852
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
853 854 855
    public int CalculateSize() {
      int size = 0;
      if (PrimitiveValue != 0) {
856
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveValue);
857
      }
858
      size += primitiveArray_.CalculateSize(_repeated_primitiveArray_codec);
859
      if (messageValue_ != null) {
860
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageValue);
861
      }
862
      size += messageArray_.CalculateSize(_repeated_messageArray_codec);
863
      if (EnumValue != 0) {
864
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumValue);
865
      }
866
      size += enumArray_.CalculateSize(_repeated_enumArray_codec);
867 868 869
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
870 871
      return size;
    }
872

873
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
874 875 876 877 878 879 880 881 882 883 884
    public void MergeFrom(DeprecatedFieldsMessage other) {
      if (other == null) {
        return;
      }
      if (other.PrimitiveValue != 0) {
        PrimitiveValue = other.PrimitiveValue;
      }
      primitiveArray_.Add(other.primitiveArray_);
      if (other.messageValue_ != null) {
        if (messageValue_ == null) {
          messageValue_ = new global::UnitTest.Issues.TestProtos.DeprecatedChild();
885
        }
886
        MessageValue.MergeFrom(other.MessageValue);
887
      }
888
      messageArray_.Add(other.messageArray_);
889
      if (other.EnumValue != 0) {
890
        EnumValue = other.EnumValue;
891
      }
892
      enumArray_.Add(other.enumArray_);
893
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
894
    }
895

896
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
897
    public void MergeFrom(pb::CodedInputStream input) {
898
      uint tag;
899
      while ((tag = input.ReadTag()) != 0) {
900 901
        switch(tag) {
          default:
902
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
903 904
            break;
          case 8: {
Jon Skeet's avatar
Jon Skeet committed
905
            PrimitiveValue = input.ReadInt32();
906 907 908 909
            break;
          }
          case 18:
          case 16: {
910
            primitiveArray_.AddEntriesFrom(input, _repeated_primitiveArray_codec);
911 912 913 914 915
            break;
          }
          case 26: {
            if (messageValue_ == null) {
              messageValue_ = new global::UnitTest.Issues.TestProtos.DeprecatedChild();
916
            }
917 918 919 920
            input.ReadMessage(messageValue_);
            break;
          }
          case 34: {
921
            messageArray_.AddEntriesFrom(input, _repeated_messageArray_codec);
922 923 924
            break;
          }
          case 40: {
Jon Skeet's avatar
Jon Skeet committed
925 926
            enumValue_ = (global::UnitTest.Issues.TestProtos.DeprecatedEnum) input.ReadEnum();
            break;
927 928 929
          }
          case 50:
          case 48: {
930
            enumArray_.AddEntriesFrom(input, _repeated_enumArray_codec);
931
            break;
932 933 934 935
          }
        }
      }
    }
936

937 938
  }

939
  /// <summary>
940
  /// Issue 45: http://code.google.com/p/protobuf-csharp-port/issues/detail?id=45
941
  /// </summary>
942
  public sealed partial class ItemField : pb::IMessage<ItemField> {
943
    private static readonly pb::MessageParser<ItemField> _parser = new pb::MessageParser<ItemField>(() => new ItemField());
944
    private pb::UnknownFieldSet _unknownFields;
945
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
946
    public static pb::MessageParser<ItemField> Parser { get { return _parser; } }
947

948
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
949
    public static pbr::MessageDescriptor Descriptor {
950
      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[4]; }
951 952
    }

953
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
954 955
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
956 957
    }

958
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
959 960 961 962 963
    public ItemField() {
      OnConstruction();
    }

    partial void OnConstruction();
Jon Skeet's avatar
Jon Skeet committed
964

965
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
966
    public ItemField(ItemField other) : this() {
Jon Skeet's avatar
Jon Skeet committed
967
      item_ = other.item_;
968
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Jon Skeet's avatar
Jon Skeet committed
969 970
    }

971
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
972 973
    public ItemField Clone() {
      return new ItemField(this);
974
    }
Jon Skeet's avatar
Jon Skeet committed
975

976
    /// <summary>Field number for the "item" field.</summary>
977 978
    public const int ItemFieldNumber = 1;
    private int item_;
979
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
980 981
    public int Item {
      get { return item_; }
982 983 984
      set {
        item_ = value;
      }
985 986
    }

987
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
988 989
    public override bool Equals(object other) {
      return Equals(other as ItemField);
990 991
    }

992
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
993 994 995 996 997
    public bool Equals(ItemField other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
998 999
        return true;
      }
1000
      if (Item != other.Item) return false;
1001
      return Equals(_unknownFields, other._unknownFields);
1002 1003
    }

1004
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1005
    public override int GetHashCode() {
1006
      int hash = 1;
1007
      if (Item != 0) hash ^= Item.GetHashCode();
1008 1009 1010
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
1011
      return hash;
1012
    }
1013

1014
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1015
    public override string ToString() {
1016
      return pb::JsonFormatter.ToDiagnosticString(this);
1017
    }
1018

1019
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
1020
    public void WriteTo(pb::CodedOutputStream output) {
1021
      if (Item != 0) {
1022 1023
        output.WriteRawTag(8);
        output.WriteInt32(Item);
1024
      }
1025 1026 1027
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
1028 1029
    }

1030
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1031 1032 1033
    public int CalculateSize() {
      int size = 0;
      if (Item != 0) {
1034
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Item);
1035
      }
1036 1037 1038
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
1039 1040
      return size;
    }
1041

1042
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1043 1044 1045 1046 1047 1048 1049
    public void MergeFrom(ItemField other) {
      if (other == null) {
        return;
      }
      if (other.Item != 0) {
        Item = other.Item;
      }
1050
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1051 1052
    }

1053
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
1054
    public void MergeFrom(pb::CodedInputStream input) {
1055
      uint tag;
1056
      while ((tag = input.ReadTag()) != 0) {
1057 1058
        switch(tag) {
          default:
1059
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1060 1061
            break;
          case 8: {
Jon Skeet's avatar
Jon Skeet committed
1062
            Item = input.ReadInt32();
1063
            break;
1064 1065 1066 1067 1068 1069 1070
          }
        }
      }
    }

  }

1071 1072
  public sealed partial class ReservedNames : pb::IMessage<ReservedNames> {
    private static readonly pb::MessageParser<ReservedNames> _parser = new pb::MessageParser<ReservedNames>(() => new ReservedNames());
1073
    private pb::UnknownFieldSet _unknownFields;
1074
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1075 1076
    public static pb::MessageParser<ReservedNames> Parser { get { return _parser; } }

1077
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1078
    public static pbr::MessageDescriptor Descriptor {
1079
      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[5]; }
1080 1081
    }

1082
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1083 1084 1085 1086
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

1087
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1088 1089 1090 1091 1092 1093
    public ReservedNames() {
      OnConstruction();
    }

    partial void OnConstruction();

1094
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1095 1096 1097
    public ReservedNames(ReservedNames other) : this() {
      types_ = other.types_;
      descriptor_ = other.descriptor_;
1098
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1099 1100
    }

1101
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1102 1103 1104 1105
    public ReservedNames Clone() {
      return new ReservedNames(this);
    }

1106
    /// <summary>Field number for the "types" field.</summary>
1107 1108
    public const int Types_FieldNumber = 1;
    private int types_;
1109
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1110 1111 1112 1113 1114 1115 1116
    public int Types_ {
      get { return types_; }
      set {
        types_ = value;
      }
    }

1117
    /// <summary>Field number for the "descriptor" field.</summary>
1118 1119
    public const int Descriptor_FieldNumber = 2;
    private int descriptor_;
1120
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1121 1122 1123 1124 1125 1126 1127
    public int Descriptor_ {
      get { return descriptor_; }
      set {
        descriptor_ = value;
      }
    }

1128
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1129 1130 1131 1132
    public override bool Equals(object other) {
      return Equals(other as ReservedNames);
    }

1133
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1134 1135 1136 1137 1138 1139 1140 1141 1142
    public bool Equals(ReservedNames other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (Types_ != other.Types_) return false;
      if (Descriptor_ != other.Descriptor_) return false;
1143
      return Equals(_unknownFields, other._unknownFields);
1144 1145
    }

1146
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1147 1148 1149 1150
    public override int GetHashCode() {
      int hash = 1;
      if (Types_ != 0) hash ^= Types_.GetHashCode();
      if (Descriptor_ != 0) hash ^= Descriptor_.GetHashCode();
1151 1152 1153
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
1154 1155 1156
      return hash;
    }

1157
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1158
    public override string ToString() {
1159
      return pb::JsonFormatter.ToDiagnosticString(this);
1160 1161
    }

1162
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1163 1164 1165 1166 1167 1168 1169 1170 1171
    public void WriteTo(pb::CodedOutputStream output) {
      if (Types_ != 0) {
        output.WriteRawTag(8);
        output.WriteInt32(Types_);
      }
      if (Descriptor_ != 0) {
        output.WriteRawTag(16);
        output.WriteInt32(Descriptor_);
      }
1172 1173 1174
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
1175 1176
    }

1177
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1178 1179 1180 1181 1182 1183 1184 1185
    public int CalculateSize() {
      int size = 0;
      if (Types_ != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Types_);
      }
      if (Descriptor_ != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Descriptor_);
      }
1186 1187 1188
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
1189 1190 1191
      return size;
    }

1192
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1193 1194 1195 1196 1197 1198 1199 1200 1201 1202
    public void MergeFrom(ReservedNames other) {
      if (other == null) {
        return;
      }
      if (other.Types_ != 0) {
        Types_ = other.Types_;
      }
      if (other.Descriptor_ != 0) {
        Descriptor_ = other.Descriptor_;
      }
1203
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1204 1205
    }

1206
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1207 1208
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
1209
      while ((tag = input.ReadTag()) != 0) {
1210 1211
        switch(tag) {
          default:
1212
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226
            break;
          case 8: {
            Types_ = input.ReadInt32();
            break;
          }
          case 16: {
            Descriptor_ = input.ReadInt32();
            break;
          }
        }
      }
    }

    #region Nested types
1227
    /// <summary>Container for nested types declared in the ReservedNames message type.</summary>
1228
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1229
    public static partial class Types {
1230
      /// <summary>
1231
      /// Force a nested type called Types
1232
      /// </summary>
1233 1234
      public sealed partial class SomeNestedType : pb::IMessage<SomeNestedType> {
        private static readonly pb::MessageParser<SomeNestedType> _parser = new pb::MessageParser<SomeNestedType>(() => new SomeNestedType());
1235
        private pb::UnknownFieldSet _unknownFields;
1236
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1237 1238
        public static pb::MessageParser<SomeNestedType> Parser { get { return _parser; } }

1239
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1240 1241 1242 1243
        public static pbr::MessageDescriptor Descriptor {
          get { return global::UnitTest.Issues.TestProtos.ReservedNames.Descriptor.NestedTypes[0]; }
        }

1244
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1245 1246 1247 1248
        pbr::MessageDescriptor pb::IMessage.Descriptor {
          get { return Descriptor; }
        }

1249
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1250 1251 1252 1253 1254 1255
        public SomeNestedType() {
          OnConstruction();
        }

        partial void OnConstruction();

1256
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1257
        public SomeNestedType(SomeNestedType other) : this() {
1258
          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1259 1260
        }

1261
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1262 1263 1264 1265
        public SomeNestedType Clone() {
          return new SomeNestedType(this);
        }

1266
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1267 1268 1269 1270
        public override bool Equals(object other) {
          return Equals(other as SomeNestedType);
        }

1271
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1272 1273 1274 1275 1276 1277 1278
        public bool Equals(SomeNestedType other) {
          if (ReferenceEquals(other, null)) {
            return false;
          }
          if (ReferenceEquals(other, this)) {
            return true;
          }
1279
          return Equals(_unknownFields, other._unknownFields);
1280 1281
        }

1282
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1283 1284
        public override int GetHashCode() {
          int hash = 1;
1285 1286 1287
          if (_unknownFields != null) {
            hash ^= _unknownFields.GetHashCode();
          }
1288 1289 1290
          return hash;
        }

1291
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1292
        public override string ToString() {
1293
          return pb::JsonFormatter.ToDiagnosticString(this);
1294 1295
        }

1296
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1297
        public void WriteTo(pb::CodedOutputStream output) {
1298 1299 1300
          if (_unknownFields != null) {
            _unknownFields.WriteTo(output);
          }
1301 1302
        }

1303
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1304 1305
        public int CalculateSize() {
          int size = 0;
1306 1307 1308
          if (_unknownFields != null) {
            size += _unknownFields.CalculateSize();
          }
1309 1310 1311
          return size;
        }

1312
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1313 1314 1315 1316
        public void MergeFrom(SomeNestedType other) {
          if (other == null) {
            return;
          }
1317
          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1318 1319
        }

1320
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1321 1322
        public void MergeFrom(pb::CodedInputStream input) {
          uint tag;
1323
          while ((tag = input.ReadTag()) != 0) {
1324 1325
            switch(tag) {
              default:
1326
                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338
                break;
            }
          }
        }

      }

    }
    #endregion

  }

1339
  /// <summary>
1340 1341 1342 1343 1344 1345 1346 1347 1348 1349
  /// These fields are deliberately not declared in numeric
  /// order, and the oneof fields aren't contiguous either.
  /// This allows for reasonably robust tests of JSON output
  /// ordering.
  /// TestFieldOrderings in unittest_proto3.proto is similar,
  /// but doesn't include oneofs.
  /// TODO: Consider adding oneofs to TestFieldOrderings, although
  /// that will require fixing other tests in multiple platforms.
  /// Alternatively, consider just adding this to
  /// unittest_proto3.proto if multiple platforms want it.
1350
  /// </summary>
1351 1352
  public sealed partial class TestJsonFieldOrdering : pb::IMessage<TestJsonFieldOrdering> {
    private static readonly pb::MessageParser<TestJsonFieldOrdering> _parser = new pb::MessageParser<TestJsonFieldOrdering>(() => new TestJsonFieldOrdering());
1353
    private pb::UnknownFieldSet _unknownFields;
1354
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1355 1356
    public static pb::MessageParser<TestJsonFieldOrdering> Parser { get { return _parser; } }

1357
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1358
    public static pbr::MessageDescriptor Descriptor {
1359
      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[6]; }
1360 1361
    }

1362
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1363 1364 1365 1366
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

1367
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1368 1369 1370 1371 1372 1373
    public TestJsonFieldOrdering() {
      OnConstruction();
    }

    partial void OnConstruction();

1374
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395
    public TestJsonFieldOrdering(TestJsonFieldOrdering other) : this() {
      plainInt32_ = other.plainInt32_;
      plainString_ = other.plainString_;
      switch (other.O1Case) {
        case O1OneofCase.O1String:
          O1String = other.O1String;
          break;
        case O1OneofCase.O1Int32:
          O1Int32 = other.O1Int32;
          break;
      }

      switch (other.O2Case) {
        case O2OneofCase.O2Int32:
          O2Int32 = other.O2Int32;
          break;
        case O2OneofCase.O2String:
          O2String = other.O2String;
          break;
      }

1396
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1397 1398
    }

1399
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1400 1401 1402 1403
    public TestJsonFieldOrdering Clone() {
      return new TestJsonFieldOrdering(this);
    }

1404
    /// <summary>Field number for the "plain_int32" field.</summary>
1405 1406
    public const int PlainInt32FieldNumber = 4;
    private int plainInt32_;
1407
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1408 1409 1410 1411 1412 1413 1414
    public int PlainInt32 {
      get { return plainInt32_; }
      set {
        plainInt32_ = value;
      }
    }

1415
    /// <summary>Field number for the "o1_string" field.</summary>
1416
    public const int O1StringFieldNumber = 2;
1417
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1418 1419 1420
    public string O1String {
      get { return o1Case_ == O1OneofCase.O1String ? (string) o1_ : ""; }
      set {
1421
        o1_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1422 1423 1424 1425
        o1Case_ = O1OneofCase.O1String;
      }
    }

1426
    /// <summary>Field number for the "o1_int32" field.</summary>
1427
    public const int O1Int32FieldNumber = 5;
1428
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1429 1430 1431 1432 1433 1434 1435 1436
    public int O1Int32 {
      get { return o1Case_ == O1OneofCase.O1Int32 ? (int) o1_ : 0; }
      set {
        o1_ = value;
        o1Case_ = O1OneofCase.O1Int32;
      }
    }

1437
    /// <summary>Field number for the "plain_string" field.</summary>
1438 1439
    public const int PlainStringFieldNumber = 1;
    private string plainString_ = "";
1440
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1441 1442 1443
    public string PlainString {
      get { return plainString_; }
      set {
1444
        plainString_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1445 1446 1447
      }
    }

1448
    /// <summary>Field number for the "o2_int32" field.</summary>
1449
    public const int O2Int32FieldNumber = 6;
1450
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1451 1452 1453 1454 1455 1456 1457 1458
    public int O2Int32 {
      get { return o2Case_ == O2OneofCase.O2Int32 ? (int) o2_ : 0; }
      set {
        o2_ = value;
        o2Case_ = O2OneofCase.O2Int32;
      }
    }

1459
    /// <summary>Field number for the "o2_string" field.</summary>
1460
    public const int O2StringFieldNumber = 3;
1461
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1462 1463 1464
    public string O2String {
      get { return o2Case_ == O2OneofCase.O2String ? (string) o2_ : ""; }
      set {
1465
        o2_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1466 1467 1468 1469 1470
        o2Case_ = O2OneofCase.O2String;
      }
    }

    private object o1_;
1471
    /// <summary>Enum of possible cases for the "o1" oneof.</summary>
1472 1473 1474 1475 1476 1477
    public enum O1OneofCase {
      None = 0,
      O1String = 2,
      O1Int32 = 5,
    }
    private O1OneofCase o1Case_ = O1OneofCase.None;
1478
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1479 1480 1481 1482
    public O1OneofCase O1Case {
      get { return o1Case_; }
    }

1483
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1484 1485 1486 1487 1488 1489
    public void ClearO1() {
      o1Case_ = O1OneofCase.None;
      o1_ = null;
    }

    private object o2_;
1490
    /// <summary>Enum of possible cases for the "o2" oneof.</summary>
1491 1492 1493 1494 1495 1496
    public enum O2OneofCase {
      None = 0,
      O2Int32 = 6,
      O2String = 3,
    }
    private O2OneofCase o2Case_ = O2OneofCase.None;
1497
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1498 1499 1500 1501
    public O2OneofCase O2Case {
      get { return o2Case_; }
    }

1502
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1503 1504 1505 1506 1507
    public void ClearO2() {
      o2Case_ = O2OneofCase.None;
      o2_ = null;
    }

1508
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1509 1510 1511 1512
    public override bool Equals(object other) {
      return Equals(other as TestJsonFieldOrdering);
    }

1513
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526
    public bool Equals(TestJsonFieldOrdering other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (PlainInt32 != other.PlainInt32) return false;
      if (O1String != other.O1String) return false;
      if (O1Int32 != other.O1Int32) return false;
      if (PlainString != other.PlainString) return false;
      if (O2Int32 != other.O2Int32) return false;
      if (O2String != other.O2String) return false;
1527 1528
      if (O1Case != other.O1Case) return false;
      if (O2Case != other.O2Case) return false;
1529
      return Equals(_unknownFields, other._unknownFields);
1530 1531
    }

1532
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1533 1534 1535 1536 1537 1538 1539 1540
    public override int GetHashCode() {
      int hash = 1;
      if (PlainInt32 != 0) hash ^= PlainInt32.GetHashCode();
      if (o1Case_ == O1OneofCase.O1String) hash ^= O1String.GetHashCode();
      if (o1Case_ == O1OneofCase.O1Int32) hash ^= O1Int32.GetHashCode();
      if (PlainString.Length != 0) hash ^= PlainString.GetHashCode();
      if (o2Case_ == O2OneofCase.O2Int32) hash ^= O2Int32.GetHashCode();
      if (o2Case_ == O2OneofCase.O2String) hash ^= O2String.GetHashCode();
1541 1542
      hash ^= (int) o1Case_;
      hash ^= (int) o2Case_;
1543 1544 1545
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
1546 1547 1548
      return hash;
    }

1549
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1550
    public override string ToString() {
1551
      return pb::JsonFormatter.ToDiagnosticString(this);
1552 1553
    }

1554
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579
    public void WriteTo(pb::CodedOutputStream output) {
      if (PlainString.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(PlainString);
      }
      if (o1Case_ == O1OneofCase.O1String) {
        output.WriteRawTag(18);
        output.WriteString(O1String);
      }
      if (o2Case_ == O2OneofCase.O2String) {
        output.WriteRawTag(26);
        output.WriteString(O2String);
      }
      if (PlainInt32 != 0) {
        output.WriteRawTag(32);
        output.WriteInt32(PlainInt32);
      }
      if (o1Case_ == O1OneofCase.O1Int32) {
        output.WriteRawTag(40);
        output.WriteInt32(O1Int32);
      }
      if (o2Case_ == O2OneofCase.O2Int32) {
        output.WriteRawTag(48);
        output.WriteInt32(O2Int32);
      }
1580 1581 1582
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
1583 1584
    }

1585
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605
    public int CalculateSize() {
      int size = 0;
      if (PlainInt32 != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlainInt32);
      }
      if (o1Case_ == O1OneofCase.O1String) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(O1String);
      }
      if (o1Case_ == O1OneofCase.O1Int32) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(O1Int32);
      }
      if (PlainString.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(PlainString);
      }
      if (o2Case_ == O2OneofCase.O2Int32) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(O2Int32);
      }
      if (o2Case_ == O2OneofCase.O2String) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(O2String);
      }
1606 1607 1608
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
1609 1610 1611
      return size;
    }

1612
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640
    public void MergeFrom(TestJsonFieldOrdering other) {
      if (other == null) {
        return;
      }
      if (other.PlainInt32 != 0) {
        PlainInt32 = other.PlainInt32;
      }
      if (other.PlainString.Length != 0) {
        PlainString = other.PlainString;
      }
      switch (other.O1Case) {
        case O1OneofCase.O1String:
          O1String = other.O1String;
          break;
        case O1OneofCase.O1Int32:
          O1Int32 = other.O1Int32;
          break;
      }

      switch (other.O2Case) {
        case O2OneofCase.O2Int32:
          O2Int32 = other.O2Int32;
          break;
        case O2OneofCase.O2String:
          O2String = other.O2String;
          break;
      }

1641
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1642 1643
    }

1644
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1645 1646
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
1647
      while ((tag = input.ReadTag()) != 0) {
1648 1649
        switch(tag) {
          default:
1650
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681
            break;
          case 10: {
            PlainString = input.ReadString();
            break;
          }
          case 18: {
            O1String = input.ReadString();
            break;
          }
          case 26: {
            O2String = input.ReadString();
            break;
          }
          case 32: {
            PlainInt32 = input.ReadInt32();
            break;
          }
          case 40: {
            O1Int32 = input.ReadInt32();
            break;
          }
          case 48: {
            O2Int32 = input.ReadInt32();
            break;
          }
        }
      }
    }

  }

1682 1683
  public sealed partial class TestJsonName : pb::IMessage<TestJsonName> {
    private static readonly pb::MessageParser<TestJsonName> _parser = new pb::MessageParser<TestJsonName>(() => new TestJsonName());
1684
    private pb::UnknownFieldSet _unknownFields;
1685
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1686 1687
    public static pb::MessageParser<TestJsonName> Parser { get { return _parser; } }

1688
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1689 1690 1691 1692
    public static pbr::MessageDescriptor Descriptor {
      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[7]; }
    }

1693
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1694 1695 1696 1697
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

1698
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1699 1700 1701 1702 1703 1704
    public TestJsonName() {
      OnConstruction();
    }

    partial void OnConstruction();

1705
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1706 1707 1708 1709
    public TestJsonName(TestJsonName other) : this() {
      name_ = other.name_;
      description_ = other.description_;
      guid_ = other.guid_;
1710
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1711 1712
    }

1713
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1714 1715 1716 1717 1718 1719 1720 1721
    public TestJsonName Clone() {
      return new TestJsonName(this);
    }

    /// <summary>Field number for the "name" field.</summary>
    public const int NameFieldNumber = 1;
    private string name_ = "";
    /// <summary>
1722
    /// Message for testing the effects for of the json_name option
1723
    /// </summary>
1724
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1725 1726 1727 1728 1729 1730 1731 1732 1733 1734
    public string Name {
      get { return name_; }
      set {
        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "description" field.</summary>
    public const int DescriptionFieldNumber = 2;
    private string description_ = "";
1735
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1736 1737 1738 1739 1740 1741 1742 1743 1744 1745
    public string Description {
      get { return description_; }
      set {
        description_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    /// <summary>Field number for the "guid" field.</summary>
    public const int GuidFieldNumber = 3;
    private string guid_ = "";
1746
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1747 1748 1749 1750 1751 1752 1753
    public string Guid {
      get { return guid_; }
      set {
        guid_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

1754
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1755 1756 1757 1758
    public override bool Equals(object other) {
      return Equals(other as TestJsonName);
    }

1759
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1760 1761 1762 1763 1764 1765 1766 1767 1768 1769
    public bool Equals(TestJsonName other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (Name != other.Name) return false;
      if (Description != other.Description) return false;
      if (Guid != other.Guid) return false;
1770
      return Equals(_unknownFields, other._unknownFields);
1771 1772
    }

1773
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1774 1775 1776 1777 1778
    public override int GetHashCode() {
      int hash = 1;
      if (Name.Length != 0) hash ^= Name.GetHashCode();
      if (Description.Length != 0) hash ^= Description.GetHashCode();
      if (Guid.Length != 0) hash ^= Guid.GetHashCode();
1779 1780 1781
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
1782 1783 1784
      return hash;
    }

1785
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1786 1787 1788 1789
    public override string ToString() {
      return pb::JsonFormatter.ToDiagnosticString(this);
    }

1790
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803
    public void WriteTo(pb::CodedOutputStream output) {
      if (Name.Length != 0) {
        output.WriteRawTag(10);
        output.WriteString(Name);
      }
      if (Description.Length != 0) {
        output.WriteRawTag(18);
        output.WriteString(Description);
      }
      if (Guid.Length != 0) {
        output.WriteRawTag(26);
        output.WriteString(Guid);
      }
1804 1805 1806
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
1807 1808
    }

1809
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820
    public int CalculateSize() {
      int size = 0;
      if (Name.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
      }
      if (Description.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Description);
      }
      if (Guid.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Guid);
      }
1821 1822 1823
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
1824 1825 1826
      return size;
    }

1827
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840
    public void MergeFrom(TestJsonName other) {
      if (other == null) {
        return;
      }
      if (other.Name.Length != 0) {
        Name = other.Name;
      }
      if (other.Description.Length != 0) {
        Description = other.Description;
      }
      if (other.Guid.Length != 0) {
        Guid = other.Guid;
      }
1841
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1842 1843
    }

1844
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1845 1846 1847 1848 1849
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
1850
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869
            break;
          case 10: {
            Name = input.ReadString();
            break;
          }
          case 18: {
            Description = input.ReadString();
            break;
          }
          case 26: {
            Guid = input.ReadString();
            break;
          }
        }
      }
    }

  }

1870 1871 1872 1873 1874 1875 1876
  /// <summary>
  /// Issue 3200: When merging two messages which use the same
  /// oneof case, which is itself a message type, the submessages should
  /// be merged.
  /// </summary>
  public sealed partial class OneofMerging : pb::IMessage<OneofMerging> {
    private static readonly pb::MessageParser<OneofMerging> _parser = new pb::MessageParser<OneofMerging>(() => new OneofMerging());
1877
    private pb::UnknownFieldSet _unknownFields;
1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pb::MessageParser<OneofMerging> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.Descriptor.MessageTypes[8]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public OneofMerging() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public OneofMerging(OneofMerging other) : this() {
      switch (other.ValueCase) {
        case ValueOneofCase.Text:
          Text = other.Text;
          break;
        case ValueOneofCase.Nested:
          Nested = other.Nested.Clone();
          break;
      }

1909
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public OneofMerging Clone() {
      return new OneofMerging(this);
    }

    /// <summary>Field number for the "text" field.</summary>
    public const int TextFieldNumber = 1;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public string Text {
      get { return valueCase_ == ValueOneofCase.Text ? (string) value_ : ""; }
      set {
        value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
        valueCase_ = ValueOneofCase.Text;
      }
    }

    /// <summary>Field number for the "nested" field.</summary>
    public const int NestedFieldNumber = 2;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested Nested {
      get { return valueCase_ == ValueOneofCase.Nested ? (global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested) value_ : null; }
      set {
        value_ = value;
        valueCase_ = value == null ? ValueOneofCase.None : ValueOneofCase.Nested;
      }
    }

    private object value_;
    /// <summary>Enum of possible cases for the "value" oneof.</summary>
    public enum ValueOneofCase {
      None = 0,
      Text = 1,
      Nested = 2,
    }
    private ValueOneofCase valueCase_ = ValueOneofCase.None;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public ValueOneofCase ValueCase {
      get { return valueCase_; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void ClearValue() {
      valueCase_ = ValueOneofCase.None;
      value_ = null;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override bool Equals(object other) {
      return Equals(other as OneofMerging);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public bool Equals(OneofMerging other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (Text != other.Text) return false;
      if (!object.Equals(Nested, other.Nested)) return false;
      if (ValueCase != other.ValueCase) return false;
1974
      return Equals(_unknownFields, other._unknownFields);
1975 1976 1977 1978 1979 1980 1981 1982
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override int GetHashCode() {
      int hash = 1;
      if (valueCase_ == ValueOneofCase.Text) hash ^= Text.GetHashCode();
      if (valueCase_ == ValueOneofCase.Nested) hash ^= Nested.GetHashCode();
      hash ^= (int) valueCase_;
1983 1984 1985
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003
      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 (valueCase_ == ValueOneofCase.Text) {
        output.WriteRawTag(10);
        output.WriteString(Text);
      }
      if (valueCase_ == ValueOneofCase.Nested) {
        output.WriteRawTag(18);
        output.WriteMessage(Nested);
      }
2004 2005 2006
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int CalculateSize() {
      int size = 0;
      if (valueCase_ == ValueOneofCase.Text) {
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
      }
      if (valueCase_ == ValueOneofCase.Nested) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(Nested);
      }
2018 2019 2020
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(OneofMerging other) {
      if (other == null) {
        return;
      }
      switch (other.ValueCase) {
        case ValueOneofCase.Text:
          Text = other.Text;
          break;
        case ValueOneofCase.Nested:
          if (Nested == null) {
            Nested = new global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested();
          }
          Nested.MergeFrom(other.Nested);
          break;
      }

2041
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2042 2043 2044 2045 2046 2047 2048 2049
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
2050
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074
            break;
          case 10: {
            Text = input.ReadString();
            break;
          }
          case 18: {
            global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested subBuilder = new global::UnitTest.Issues.TestProtos.OneofMerging.Types.Nested();
            if (valueCase_ == ValueOneofCase.Nested) {
              subBuilder.MergeFrom(Nested);
            }
            input.ReadMessage(subBuilder);
            Nested = subBuilder;
            break;
          }
        }
      }
    }

    #region Nested types
    /// <summary>Container for nested types declared in the OneofMerging message type.</summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static partial class Types {
      public sealed partial class Nested : pb::IMessage<Nested> {
        private static readonly pb::MessageParser<Nested> _parser = new pb::MessageParser<Nested>(() => new Nested());
2075
        private pb::UnknownFieldSet _unknownFields;
2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        public static pb::MessageParser<Nested> Parser { get { return _parser; } }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        public static pbr::MessageDescriptor Descriptor {
          get { return global::UnitTest.Issues.TestProtos.OneofMerging.Descriptor.NestedTypes[0]; }
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        pbr::MessageDescriptor pb::IMessage.Descriptor {
          get { return Descriptor; }
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        public Nested() {
          OnConstruction();
        }

        partial void OnConstruction();

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        public Nested(Nested other) : this() {
          x_ = other.x_;
          y_ = other.y_;
2100
          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        public Nested Clone() {
          return new Nested(this);
        }

        /// <summary>Field number for the "x" field.</summary>
        public const int XFieldNumber = 1;
        private int x_;
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        public int X {
          get { return x_; }
          set {
            x_ = value;
          }
        }

        /// <summary>Field number for the "y" field.</summary>
        public const int YFieldNumber = 2;
        private int y_;
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        public int Y {
          get { return y_; }
          set {
            y_ = value;
          }
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        public override bool Equals(object other) {
          return Equals(other as Nested);
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        public bool Equals(Nested other) {
          if (ReferenceEquals(other, null)) {
            return false;
          }
          if (ReferenceEquals(other, this)) {
            return true;
          }
          if (X != other.X) return false;
          if (Y != other.Y) return false;
2145
          return Equals(_unknownFields, other._unknownFields);
2146 2147 2148 2149 2150 2151 2152
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        public override int GetHashCode() {
          int hash = 1;
          if (X != 0) hash ^= X.GetHashCode();
          if (Y != 0) hash ^= Y.GetHashCode();
2153 2154 2155
          if (_unknownFields != null) {
            hash ^= _unknownFields.GetHashCode();
          }
2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173
          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 (X != 0) {
            output.WriteRawTag(8);
            output.WriteInt32(X);
          }
          if (Y != 0) {
            output.WriteRawTag(16);
            output.WriteInt32(Y);
          }
2174 2175 2176
          if (_unknownFields != null) {
            _unknownFields.WriteTo(output);
          }
2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        public int CalculateSize() {
          int size = 0;
          if (X != 0) {
            size += 1 + pb::CodedOutputStream.ComputeInt32Size(X);
          }
          if (Y != 0) {
            size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
          }
2188 2189 2190
          if (_unknownFields != null) {
            size += _unknownFields.CalculateSize();
          }
2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204
          return size;
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        public void MergeFrom(Nested other) {
          if (other == null) {
            return;
          }
          if (other.X != 0) {
            X = other.X;
          }
          if (other.Y != 0) {
            Y = other.Y;
          }
2205
          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2206 2207 2208 2209 2210 2211 2212 2213
        }

        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
        public void MergeFrom(pb::CodedInputStream input) {
          uint tag;
          while ((tag = input.ReadTag()) != 0) {
            switch(tag) {
              default:
2214
                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234
                break;
              case 8: {
                X = input.ReadInt32();
                break;
              }
              case 16: {
                Y = input.ReadInt32();
                break;
              }
            }
          }
        }

      }

    }
    #endregion

  }

2235 2236 2237 2238 2239
  #endregion

}

#endregion Designer generated code