From 18e0a2e5ec883d665a4e8fe57a1eb3e603340de7 Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Thu, 1 Oct 2015 10:38:01 +0100 Subject: Generated code from previous commit. --- csharp/src/AddressBook/Addressbook.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'csharp/src/AddressBook/Addressbook.cs') diff --git a/csharp/src/AddressBook/Addressbook.cs b/csharp/src/AddressBook/Addressbook.cs index 1f210c7f..a830418a 100644 --- a/csharp/src/AddressBook/Addressbook.cs +++ b/csharp/src/AddressBook/Addressbook.cs @@ -73,6 +73,7 @@ namespace Google.Protobuf.Examples.AddressBook { return new Person(this); } + /// Field number for the "name" field. public const int NameFieldNumber = 1; private string name_ = ""; public string Name { @@ -82,8 +83,12 @@ namespace Google.Protobuf.Examples.AddressBook { } } + /// Field number for the "id" field. public const int IdFieldNumber = 2; private int id_; + /// + /// Unique ID number for this person. + /// public int Id { get { return id_; } set { @@ -91,6 +96,7 @@ namespace Google.Protobuf.Examples.AddressBook { } } + /// Field number for the "email" field. public const int EmailFieldNumber = 3; private string email_ = ""; public string Email { @@ -100,6 +106,7 @@ namespace Google.Protobuf.Examples.AddressBook { } } + /// Field number for the "phones" field. public const int PhonesFieldNumber = 4; private static readonly pb::FieldCodec _repeated_phones_codec = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber.Parser); @@ -251,6 +258,7 @@ namespace Google.Protobuf.Examples.AddressBook { return new PhoneNumber(this); } + /// Field number for the "number" field. public const int NumberFieldNumber = 1; private string number_ = ""; public string Number { @@ -260,6 +268,7 @@ namespace Google.Protobuf.Examples.AddressBook { } } + /// Field number for the "type" field. public const int TypeFieldNumber = 2; private global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType type_ = global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType.MOBILE; public global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType Type { @@ -356,6 +365,9 @@ namespace Google.Protobuf.Examples.AddressBook { } + /// + /// Our address book file is just one of these. + /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] public sealed partial class AddressBook : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AddressBook()); @@ -383,6 +395,7 @@ namespace Google.Protobuf.Examples.AddressBook { return new AddressBook(this); } + /// Field number for the "people" field. public const int PeopleFieldNumber = 1; private static readonly pb::FieldCodec _repeated_people_codec = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Examples.AddressBook.Person.Parser); -- cgit v1.2.3