Addressbook.cs 21.1 KB
Newer Older
1 2 3 4
// <auto-generated>
//     Generated by the protocol buffer compiler.  DO NOT EDIT!
//     source: addressbook.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
using scg = global::System.Collections.Generic;
12
namespace Google.Protobuf.Examples.AddressBook {
13

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

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

24
    static AddressbookReflection() {
25 26
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
27 28 29 30 31 32 33 34 35 36 37
            "ChFhZGRyZXNzYm9vay5wcm90bxIIdHV0b3JpYWwaH2dvb2dsZS9wcm90b2J1",
            "Zi90aW1lc3RhbXAucHJvdG8ihwIKBlBlcnNvbhIMCgRuYW1lGAEgASgJEgoK",
            "AmlkGAIgASgFEg0KBWVtYWlsGAMgASgJEiwKBnBob25lcxgEIAMoCzIcLnR1",
            "dG9yaWFsLlBlcnNvbi5QaG9uZU51bWJlchIwCgxsYXN0X3VwZGF0ZWQYBSAB",
            "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wGkcKC1Bob25lTnVtYmVy",
            "Eg4KBm51bWJlchgBIAEoCRIoCgR0eXBlGAIgASgOMhoudHV0b3JpYWwuUGVy",
            "c29uLlBob25lVHlwZSIrCglQaG9uZVR5cGUSCgoGTU9CSUxFEAASCAoESE9N",
            "RRABEggKBFdPUksQAiIvCgtBZGRyZXNzQm9vaxIgCgZwZW9wbGUYASADKAsy",
            "EC50dXRvcmlhbC5QZXJzb25CUAoUY29tLmV4YW1wbGUudHV0b3JpYWxCEUFk",
            "ZHJlc3NCb29rUHJvdG9zqgIkR29vZ2xlLlByb3RvYnVmLkV4YW1wbGVzLkFk",
            "ZHJlc3NCb29rYgZwcm90bzM="));
38
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
39
          new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, },
40
          new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
41
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Examples.AddressBook.Person), global::Google.Protobuf.Examples.AddressBook.Person.Parser, new[]{ "Name", "Id", "Email", "Phones", "LastUpdated" }, null, new[]{ typeof(global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType) }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber), global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber.Parser, new[]{ "Number", "Type" }, null, null, null)}),
42
            new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Examples.AddressBook.AddressBook), global::Google.Protobuf.Examples.AddressBook.AddressBook.Parser, new[]{ "People" }, null, null, null)
43
          }));
44 45 46 47 48
    }
    #endregion

  }
  #region Messages
49
  /// <summary>
50
  /// [START messages]
51
  /// </summary>
52
  public sealed partial class Person : pb::IMessage<Person> {
53
    private static readonly pb::MessageParser<Person> _parser = new pb::MessageParser<Person>(() => new Person());
54
    private pb::UnknownFieldSet _unknownFields;
55
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
56
    public static pb::MessageParser<Person> Parser { get { return _parser; } }
57

58
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
59
    public static pbr::MessageDescriptor Descriptor {
60
      get { return global::Google.Protobuf.Examples.AddressBook.AddressbookReflection.Descriptor.MessageTypes[0]; }
61 62
    }

63
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
64 65
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
66 67
    }

68
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
69 70 71 72 73
    public Person() {
      OnConstruction();
    }

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

75
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
76
    public Person(Person other) : this() {
Jon Skeet's avatar
Jon Skeet committed
77 78 79
      name_ = other.name_;
      id_ = other.id_;
      email_ = other.email_;
80
      phones_ = other.phones_.Clone();
81
      LastUpdated = other.lastUpdated_ != null ? other.LastUpdated.Clone() : null;
82
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Jon Skeet's avatar
Jon Skeet committed
83 84
    }

85
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
86 87
    public Person Clone() {
      return new Person(this);
88
    }
Jon Skeet's avatar
Jon Skeet committed
89

90
    /// <summary>Field number for the "name" field.</summary>
91 92
    public const int NameFieldNumber = 1;
    private string name_ = "";
93
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
94 95
    public string Name {
      get { return name_; }
96
      set {
97
        name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
98
      }
99 100
    }

101
    /// <summary>Field number for the "id" field.</summary>
102 103
    public const int IdFieldNumber = 2;
    private int id_;
104
    /// <summary>
105
    /// Unique ID number for this person.
106
    /// </summary>
107
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
108 109
    public int Id {
      get { return id_; }
110 111 112
      set {
        id_ = value;
      }
113 114
    }

115
    /// <summary>Field number for the "email" field.</summary>
116 117
    public const int EmailFieldNumber = 3;
    private string email_ = "";
118
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
119 120
    public string Email {
      get { return email_; }
121
      set {
122
        email_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
123
      }
124 125
    }

126
    /// <summary>Field number for the "phones" field.</summary>
127 128
    public const int PhonesFieldNumber = 4;
    private static readonly pb::FieldCodec<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> _repeated_phones_codec
129
        = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber.Parser);
130
    private readonly pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> phones_ = new pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber>();
131
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
132 133
    public pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> Phones {
      get { return phones_; }
134
    }
135

136 137 138 139 140 141 142 143 144 145 146
    /// <summary>Field number for the "last_updated" field.</summary>
    public const int LastUpdatedFieldNumber = 5;
    private global::Google.Protobuf.WellKnownTypes.Timestamp lastUpdated_;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public global::Google.Protobuf.WellKnownTypes.Timestamp LastUpdated {
      get { return lastUpdated_; }
      set {
        lastUpdated_ = value;
      }
    }

147
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
148 149
    public override bool Equals(object other) {
      return Equals(other as Person);
150 151
    }

152
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
153 154 155 156 157
    public bool Equals(Person other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
158 159
        return true;
      }
160 161 162
      if (Name != other.Name) return false;
      if (Id != other.Id) return false;
      if (Email != other.Email) return false;
163
      if(!phones_.Equals(other.phones_)) return false;
164
      if (!object.Equals(LastUpdated, other.LastUpdated)) return false;
165
      return Equals(_unknownFields, other._unknownFields);
166 167
    }

168
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
169
    public override int GetHashCode() {
170
      int hash = 1;
Jon Skeet's avatar
Jon Skeet committed
171
      if (Name.Length != 0) hash ^= Name.GetHashCode();
172
      if (Id != 0) hash ^= Id.GetHashCode();
Jon Skeet's avatar
Jon Skeet committed
173
      if (Email.Length != 0) hash ^= Email.GetHashCode();
174
      hash ^= phones_.GetHashCode();
175
      if (lastUpdated_ != null) hash ^= LastUpdated.GetHashCode();
176 177 178
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
179
      return hash;
180 181
    }

182
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
183
    public override string ToString() {
184
      return pb::JsonFormatter.ToDiagnosticString(this);
185 186
    }

187
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
188
    public void WriteTo(pb::CodedOutputStream output) {
Jon Skeet's avatar
Jon Skeet committed
189
      if (Name.Length != 0) {
190 191
        output.WriteRawTag(10);
        output.WriteString(Name);
192 193
      }
      if (Id != 0) {
194 195
        output.WriteRawTag(16);
        output.WriteInt32(Id);
196
      }
Jon Skeet's avatar
Jon Skeet committed
197
      if (Email.Length != 0) {
198 199
        output.WriteRawTag(26);
        output.WriteString(Email);
200
      }
201
      phones_.WriteTo(output, _repeated_phones_codec);
202 203 204 205
      if (lastUpdated_ != null) {
        output.WriteRawTag(42);
        output.WriteMessage(LastUpdated);
      }
206 207 208
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
209 210
    }

211
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
212 213
    public int CalculateSize() {
      int size = 0;
Jon Skeet's avatar
Jon Skeet committed
214
      if (Name.Length != 0) {
215
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
216
      }
217
      if (Id != 0) {
218
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
219
      }
Jon Skeet's avatar
Jon Skeet committed
220
      if (Email.Length != 0) {
221
        size += 1 + pb::CodedOutputStream.ComputeStringSize(Email);
222
      }
223
      size += phones_.CalculateSize(_repeated_phones_codec);
224 225 226
      if (lastUpdated_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(LastUpdated);
      }
227 228 229
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
230 231
      return size;
    }
232

233
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
234 235 236 237
    public void MergeFrom(Person other) {
      if (other == null) {
        return;
      }
Jon Skeet's avatar
Jon Skeet committed
238
      if (other.Name.Length != 0) {
239 240 241 242 243
        Name = other.Name;
      }
      if (other.Id != 0) {
        Id = other.Id;
      }
Jon Skeet's avatar
Jon Skeet committed
244
      if (other.Email.Length != 0) {
245 246
        Email = other.Email;
      }
247
      phones_.Add(other.phones_);
248 249 250 251 252 253
      if (other.lastUpdated_ != null) {
        if (lastUpdated_ == null) {
          lastUpdated_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
        }
        LastUpdated.MergeFrom(other.LastUpdated);
      }
254
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
255 256
    }

257
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
258 259
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
260
      while ((tag = input.ReadTag()) != 0) {
261 262
        switch(tag) {
          default:
263
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
264 265
            break;
          case 10: {
Jon Skeet's avatar
Jon Skeet committed
266
            Name = input.ReadString();
267 268 269
            break;
          }
          case 16: {
Jon Skeet's avatar
Jon Skeet committed
270
            Id = input.ReadInt32();
271 272 273
            break;
          }
          case 26: {
Jon Skeet's avatar
Jon Skeet committed
274
            Email = input.ReadString();
275 276 277
            break;
          }
          case 34: {
278
            phones_.AddEntriesFrom(input, _repeated_phones_codec);
279 280
            break;
          }
281 282 283 284 285 286 287
          case 42: {
            if (lastUpdated_ == null) {
              lastUpdated_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
            }
            input.ReadMessage(lastUpdated_);
            break;
          }
288 289
        }
      }
290 291
    }

292
    #region Nested types
293
    /// <summary>Container for nested types declared in the Person message type.</summary>
294
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
295 296
    public static partial class Types {
      public enum PhoneType {
297 298 299
        [pbr::OriginalName("MOBILE")] Mobile = 0,
        [pbr::OriginalName("HOME")] Home = 1,
        [pbr::OriginalName("WORK")] Work = 2,
300 301
      }

302
      public sealed partial class PhoneNumber : pb::IMessage<PhoneNumber> {
303
        private static readonly pb::MessageParser<PhoneNumber> _parser = new pb::MessageParser<PhoneNumber>(() => new PhoneNumber());
304
        private pb::UnknownFieldSet _unknownFields;
305
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
306
        public static pb::MessageParser<PhoneNumber> Parser { get { return _parser; } }
307

308
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
309
        public static pbr::MessageDescriptor Descriptor {
310
          get { return global::Google.Protobuf.Examples.AddressBook.Person.Descriptor.NestedTypes[0]; }
311 312
        }

313
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
314 315
        pbr::MessageDescriptor pb::IMessage.Descriptor {
          get { return Descriptor; }
316
        }
317

318
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
319 320 321 322 323
        public PhoneNumber() {
          OnConstruction();
        }

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

325
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
326
        public PhoneNumber(PhoneNumber other) : this() {
Jon Skeet's avatar
Jon Skeet committed
327 328
          number_ = other.number_;
          type_ = other.type_;
329
          _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Jon Skeet's avatar
Jon Skeet committed
330 331
        }

332
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
333 334
        public PhoneNumber Clone() {
          return new PhoneNumber(this);
335
        }
Jon Skeet's avatar
Jon Skeet committed
336

337
        /// <summary>Field number for the "number" field.</summary>
338 339
        public const int NumberFieldNumber = 1;
        private string number_ = "";
340
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
341 342
        public string Number {
          get { return number_; }
343
          set {
344
            number_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
345
          }
346
        }
347

348
        /// <summary>Field number for the "type" field.</summary>
349
        public const int TypeFieldNumber = 2;
350
        private global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType type_ = 0;
351
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
352
        public global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType Type {
353
          get { return type_; }
354 355 356
          set {
            type_ = value;
          }
357 358
        }

359
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
360 361
        public override bool Equals(object other) {
          return Equals(other as PhoneNumber);
362 363
        }

364
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
365 366 367 368 369 370 371 372 373
        public bool Equals(PhoneNumber other) {
          if (ReferenceEquals(other, null)) {
            return false;
          }
          if (ReferenceEquals(other, this)) {
            return true;
          }
          if (Number != other.Number) return false;
          if (Type != other.Type) return false;
374
          return Equals(_unknownFields, other._unknownFields);
375 376
        }

377
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
378
        public override int GetHashCode() {
379
          int hash = 1;
Jon Skeet's avatar
Jon Skeet committed
380
          if (Number.Length != 0) hash ^= Number.GetHashCode();
381
          if (Type != 0) hash ^= Type.GetHashCode();
382 383 384
          if (_unknownFields != null) {
            hash ^= _unknownFields.GetHashCode();
          }
385
          return hash;
386
        }
387

388
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
389
        public override string ToString() {
390
          return pb::JsonFormatter.ToDiagnosticString(this);
391 392
        }

393
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
394
        public void WriteTo(pb::CodedOutputStream output) {
Jon Skeet's avatar
Jon Skeet committed
395
          if (Number.Length != 0) {
396 397
            output.WriteRawTag(10);
            output.WriteString(Number);
398
          }
399
          if (Type != 0) {
400 401
            output.WriteRawTag(16);
            output.WriteEnum((int) Type);
402
          }
403 404 405
          if (_unknownFields != null) {
            _unknownFields.WriteTo(output);
          }
406
        }
407

408
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
409 410
        public int CalculateSize() {
          int size = 0;
Jon Skeet's avatar
Jon Skeet committed
411
          if (Number.Length != 0) {
412
            size += 1 + pb::CodedOutputStream.ComputeStringSize(Number);
413
          }
414
          if (Type != 0) {
415
            size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
416
          }
417 418 419
          if (_unknownFields != null) {
            size += _unknownFields.CalculateSize();
          }
420
          return size;
421
        }
422

423
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
424 425 426 427
        public void MergeFrom(PhoneNumber other) {
          if (other == null) {
            return;
          }
Jon Skeet's avatar
Jon Skeet committed
428
          if (other.Number.Length != 0) {
429 430
            Number = other.Number;
          }
431
          if (other.Type != 0) {
432 433
            Type = other.Type;
          }
434
          _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
435 436
        }

437
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
438 439
        public void MergeFrom(pb::CodedInputStream input) {
          uint tag;
440
          while ((tag = input.ReadTag()) != 0) {
441 442
            switch(tag) {
              default:
443
                _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
444 445
                break;
              case 10: {
Jon Skeet's avatar
Jon Skeet committed
446
                Number = input.ReadString();
447
                break;
448
              }
449
              case 16: {
450
                type_ = (global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType) input.ReadEnum();
451
                break;
452 453 454 455 456 457 458 459
              }
            }
          }
        }

      }

    }
460 461
    #endregion

462 463
  }

464
  /// <summary>
465
  /// Our address book file is just one of these.
466
  /// </summary>
467
  public sealed partial class AddressBook : pb::IMessage<AddressBook> {
468
    private static readonly pb::MessageParser<AddressBook> _parser = new pb::MessageParser<AddressBook>(() => new AddressBook());
469
    private pb::UnknownFieldSet _unknownFields;
470
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
471
    public static pb::MessageParser<AddressBook> Parser { get { return _parser; } }
472

473
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
474
    public static pbr::MessageDescriptor Descriptor {
475
      get { return global::Google.Protobuf.Examples.AddressBook.AddressbookReflection.Descriptor.MessageTypes[1]; }
476 477
    }

478
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
479 480
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
481 482
    }

483
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
484 485 486 487 488
    public AddressBook() {
      OnConstruction();
    }

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

490
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
491
    public AddressBook(AddressBook other) : this() {
492
      people_ = other.people_.Clone();
493
      _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
494
    }
Jon Skeet's avatar
Jon Skeet committed
495

496
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Jon Skeet's avatar
Jon Skeet committed
497 498 499 500
    public AddressBook Clone() {
      return new AddressBook(this);
    }

501
    /// <summary>Field number for the "people" field.</summary>
502 503
    public const int PeopleFieldNumber = 1;
    private static readonly pb::FieldCodec<global::Google.Protobuf.Examples.AddressBook.Person> _repeated_people_codec
504
        = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Examples.AddressBook.Person.Parser);
505
    private readonly pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person> people_ = new pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person>();
506
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
507 508
    public pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person> People {
      get { return people_; }
509
    }
510

511
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
512 513
    public override bool Equals(object other) {
      return Equals(other as AddressBook);
514 515
    }

516
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
517 518 519 520 521
    public bool Equals(AddressBook other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
522 523
        return true;
      }
524
      if(!people_.Equals(other.people_)) return false;
525
      return Equals(_unknownFields, other._unknownFields);
526 527
    }

528
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
529
    public override int GetHashCode() {
530
      int hash = 1;
531
      hash ^= people_.GetHashCode();
532 533 534
      if (_unknownFields != null) {
        hash ^= _unknownFields.GetHashCode();
      }
535
      return hash;
536 537
    }

538
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
539
    public override string ToString() {
540
      return pb::JsonFormatter.ToDiagnosticString(this);
541 542
    }

543
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
544
    public void WriteTo(pb::CodedOutputStream output) {
545
      people_.WriteTo(output, _repeated_people_codec);
546 547 548
      if (_unknownFields != null) {
        _unknownFields.WriteTo(output);
      }
549 550
    }

551
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
552 553
    public int CalculateSize() {
      int size = 0;
554
      size += people_.CalculateSize(_repeated_people_codec);
555 556 557
      if (_unknownFields != null) {
        size += _unknownFields.CalculateSize();
      }
558 559
      return size;
    }
560

561
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
562 563 564
    public void MergeFrom(AddressBook other) {
      if (other == null) {
        return;
565
      }
566
      people_.Add(other.people_);
567
      _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
568
    }
569

570
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
571 572
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
573
      while ((tag = input.ReadTag()) != 0) {
574 575
        switch(tag) {
          default:
576
            _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
577 578
            break;
          case 10: {
579
            people_.AddEntriesFrom(input, _repeated_people_codec);
580
            break;
581 582 583 584
          }
        }
      }
    }
585

586 587 588 589 590 591 592
  }

  #endregion

}

#endregion Designer generated code