Index: third_party/protobuf/csharp/src/AddressBook/Addressbook.cs |
diff --git a/third_party/protobuf/csharp/src/AddressBook/Addressbook.cs b/third_party/protobuf/csharp/src/AddressBook/Addressbook.cs |
index 75ed071b749da5e3fc16b5f4826c0391e95ebcac..362e1cb6a2c29082d6ec86cbcb7ba6903d028664 100644 |
--- a/third_party/protobuf/csharp/src/AddressBook/Addressbook.cs |
+++ b/third_party/protobuf/csharp/src/AddressBook/Addressbook.cs |
@@ -10,6 +10,7 @@ using scg = global::System.Collections.Generic; |
namespace Google.Protobuf.Examples.AddressBook { |
/// <summary>Holder for reflection information generated from addressbook.proto</summary> |
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
public static partial class AddressbookReflection { |
#region Descriptor |
@@ -43,31 +44,27 @@ namespace Google.Protobuf.Examples.AddressBook { |
} |
#region Messages |
/// <summary> |
- /// [START messages] |
+ /// [START messages] |
/// </summary> |
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
public sealed partial class Person : pb::IMessage<Person> { |
private static readonly pb::MessageParser<Person> _parser = new pb::MessageParser<Person>(() => new Person()); |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public static pb::MessageParser<Person> Parser { get { return _parser; } } |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public static pbr::MessageDescriptor Descriptor { |
get { return global::Google.Protobuf.Examples.AddressBook.AddressbookReflection.Descriptor.MessageTypes[0]; } |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
pbr::MessageDescriptor pb::IMessage.Descriptor { |
get { return Descriptor; } |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public Person() { |
OnConstruction(); |
} |
partial void OnConstruction(); |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public Person(Person other) : this() { |
name_ = other.name_; |
id_ = other.id_; |
@@ -75,7 +72,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
phones_ = other.phones_.Clone(); |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public Person Clone() { |
return new Person(this); |
} |
@@ -83,7 +79,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
/// <summary>Field number for the "name" field.</summary> |
public const int NameFieldNumber = 1; |
private string name_ = ""; |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public string Name { |
get { return name_; } |
set { |
@@ -95,9 +90,8 @@ namespace Google.Protobuf.Examples.AddressBook { |
public const int IdFieldNumber = 2; |
private int id_; |
/// <summary> |
- /// Unique ID number for this person. |
+ /// Unique ID number for this person. |
/// </summary> |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public int Id { |
get { return id_; } |
set { |
@@ -108,7 +102,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
/// <summary>Field number for the "email" field.</summary> |
public const int EmailFieldNumber = 3; |
private string email_ = ""; |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public string Email { |
get { return email_; } |
set { |
@@ -121,17 +114,14 @@ namespace Google.Protobuf.Examples.AddressBook { |
private static readonly pb::FieldCodec<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> _repeated_phones_codec |
= pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber.Parser); |
private readonly pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> phones_ = new pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber>(); |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneNumber> Phones { |
get { return phones_; } |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public override bool Equals(object other) { |
return Equals(other as Person); |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public bool Equals(Person other) { |
if (ReferenceEquals(other, null)) { |
return false; |
@@ -146,7 +136,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
return true; |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public override int GetHashCode() { |
int hash = 1; |
if (Name.Length != 0) hash ^= Name.GetHashCode(); |
@@ -156,12 +145,10 @@ namespace Google.Protobuf.Examples.AddressBook { |
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 (Name.Length != 0) { |
output.WriteRawTag(10); |
@@ -178,7 +165,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
phones_.WriteTo(output, _repeated_phones_codec); |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public int CalculateSize() { |
int size = 0; |
if (Name.Length != 0) { |
@@ -194,7 +180,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
return size; |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public void MergeFrom(Person other) { |
if (other == null) { |
return; |
@@ -211,7 +196,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
phones_.Add(other.phones_); |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public void MergeFrom(pb::CodedInputStream input) { |
uint tag; |
while ((tag = input.ReadTag()) != 0) { |
@@ -241,7 +225,7 @@ namespace Google.Protobuf.Examples.AddressBook { |
#region Nested types |
/// <summary>Container for nested types declared in the Person message type.</summary> |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
public static partial class Types { |
public enum PhoneType { |
[pbr::OriginalName("MOBILE")] Mobile = 0, |
@@ -249,35 +233,30 @@ namespace Google.Protobuf.Examples.AddressBook { |
[pbr::OriginalName("WORK")] Work = 2, |
} |
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
public sealed partial class PhoneNumber : pb::IMessage<PhoneNumber> { |
private static readonly pb::MessageParser<PhoneNumber> _parser = new pb::MessageParser<PhoneNumber>(() => new PhoneNumber()); |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public static pb::MessageParser<PhoneNumber> Parser { get { return _parser; } } |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public static pbr::MessageDescriptor Descriptor { |
get { return global::Google.Protobuf.Examples.AddressBook.Person.Descriptor.NestedTypes[0]; } |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
pbr::MessageDescriptor pb::IMessage.Descriptor { |
get { return Descriptor; } |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public PhoneNumber() { |
OnConstruction(); |
} |
partial void OnConstruction(); |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public PhoneNumber(PhoneNumber other) : this() { |
number_ = other.number_; |
type_ = other.type_; |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public PhoneNumber Clone() { |
return new PhoneNumber(this); |
} |
@@ -285,7 +264,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
/// <summary>Field number for the "number" field.</summary> |
public const int NumberFieldNumber = 1; |
private string number_ = ""; |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public string Number { |
get { return number_; } |
set { |
@@ -296,7 +274,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
/// <summary>Field number for the "type" field.</summary> |
public const int TypeFieldNumber = 2; |
private global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType type_ = 0; |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public global::Google.Protobuf.Examples.AddressBook.Person.Types.PhoneType Type { |
get { return type_; } |
set { |
@@ -304,12 +281,10 @@ namespace Google.Protobuf.Examples.AddressBook { |
} |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public override bool Equals(object other) { |
return Equals(other as PhoneNumber); |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public bool Equals(PhoneNumber other) { |
if (ReferenceEquals(other, null)) { |
return false; |
@@ -322,7 +297,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
return true; |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public override int GetHashCode() { |
int hash = 1; |
if (Number.Length != 0) hash ^= Number.GetHashCode(); |
@@ -330,12 +304,10 @@ namespace Google.Protobuf.Examples.AddressBook { |
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 (Number.Length != 0) { |
output.WriteRawTag(10); |
@@ -347,7 +319,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
} |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public int CalculateSize() { |
int size = 0; |
if (Number.Length != 0) { |
@@ -359,7 +330,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
return size; |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public void MergeFrom(PhoneNumber other) { |
if (other == null) { |
return; |
@@ -372,7 +342,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
} |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public void MergeFrom(pb::CodedInputStream input) { |
uint tag; |
while ((tag = input.ReadTag()) != 0) { |
@@ -400,36 +369,31 @@ namespace Google.Protobuf.Examples.AddressBook { |
} |
/// <summary> |
- /// Our address book file is just one of these. |
+ /// Our address book file is just one of these. |
/// </summary> |
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
public sealed partial class AddressBook : pb::IMessage<AddressBook> { |
private static readonly pb::MessageParser<AddressBook> _parser = new pb::MessageParser<AddressBook>(() => new AddressBook()); |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public static pb::MessageParser<AddressBook> Parser { get { return _parser; } } |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public static pbr::MessageDescriptor Descriptor { |
get { return global::Google.Protobuf.Examples.AddressBook.AddressbookReflection.Descriptor.MessageTypes[1]; } |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
pbr::MessageDescriptor pb::IMessage.Descriptor { |
get { return Descriptor; } |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public AddressBook() { |
OnConstruction(); |
} |
partial void OnConstruction(); |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public AddressBook(AddressBook other) : this() { |
people_ = other.people_.Clone(); |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public AddressBook Clone() { |
return new AddressBook(this); |
} |
@@ -439,17 +403,14 @@ namespace Google.Protobuf.Examples.AddressBook { |
private static readonly pb::FieldCodec<global::Google.Protobuf.Examples.AddressBook.Person> _repeated_people_codec |
= pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Examples.AddressBook.Person.Parser); |
private readonly pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person> people_ = new pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person>(); |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public pbc::RepeatedField<global::Google.Protobuf.Examples.AddressBook.Person> People { |
get { return people_; } |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public override bool Equals(object other) { |
return Equals(other as AddressBook); |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public bool Equals(AddressBook other) { |
if (ReferenceEquals(other, null)) { |
return false; |
@@ -461,31 +422,26 @@ namespace Google.Protobuf.Examples.AddressBook { |
return true; |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public override int GetHashCode() { |
int hash = 1; |
hash ^= people_.GetHashCode(); |
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) { |
people_.WriteTo(output, _repeated_people_codec); |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public int CalculateSize() { |
int size = 0; |
size += people_.CalculateSize(_repeated_people_codec); |
return size; |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public void MergeFrom(AddressBook other) { |
if (other == null) { |
return; |
@@ -493,7 +449,6 @@ namespace Google.Protobuf.Examples.AddressBook { |
people_.Add(other.people_); |
} |
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
public void MergeFrom(pb::CodedInputStream input) { |
uint tag; |
while ((tag = input.ReadTag()) != 0) { |