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);
diff --git a/csharp/src/Google.Protobuf.Conformance/Conformance.cs b/csharp/src/Google.Protobuf.Conformance/Conformance.cs
index f05d03b2..dfd331ae 100644
--- a/csharp/src/Google.Protobuf.Conformance/Conformance.cs
+++ b/csharp/src/Google.Protobuf.Conformance/Conformance.cs
@@ -163,6 +163,12 @@ namespace Conformance {
#endregion
#region Messages
+ ///
+ /// Represents a single test case's input. The testee should:
+ /// 1. parse this proto (which should always succeed)
+ /// 2. parse the protobuf or JSON payload in "payload" (which may fail)
+ /// 3. if the parse succeeded, serialize the message in the requested format.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class ConformanceRequest : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConformanceRequest());
@@ -199,6 +205,7 @@ namespace Conformance {
return new ConformanceRequest(this);
}
+ /// Field number for the "protobuf_payload" field.
public const int ProtobufPayloadFieldNumber = 1;
public pb::ByteString ProtobufPayload {
get { return payloadCase_ == PayloadOneofCase.ProtobufPayload ? (pb::ByteString) payload_ : pb::ByteString.Empty; }
@@ -208,6 +215,7 @@ namespace Conformance {
}
}
+ /// Field number for the "json_payload" field.
public const int JsonPayloadFieldNumber = 2;
public string JsonPayload {
get { return payloadCase_ == PayloadOneofCase.JsonPayload ? (string) payload_ : ""; }
@@ -217,8 +225,12 @@ namespace Conformance {
}
}
+ /// Field number for the "requested_output_format" field.
public const int RequestedOutputFormatFieldNumber = 3;
private global::Conformance.WireFormat requestedOutputFormat_ = global::Conformance.WireFormat.UNSPECIFIED;
+ ///
+ /// Which format should the testee serialize its message to?
+ ///
public global::Conformance.WireFormat RequestedOutputFormat {
get { return requestedOutputFormat_; }
set {
@@ -344,6 +356,9 @@ namespace Conformance {
}
+ ///
+ /// Represents a single test case's output.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class ConformanceResponse : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConformanceResponse());
@@ -388,7 +403,14 @@ namespace Conformance {
return new ConformanceResponse(this);
}
+ /// Field number for the "parse_error" field.
public const int ParseErrorFieldNumber = 1;
+ ///
+ /// This string should be set to indicate parsing failed. The string can
+ /// provide more information about the parse error if it is available.
+ /// Setting this string does not necessarily mean the testee failed the
+ /// test. Some of the test cases are intentionally invalid input.
+ ///
public string ParseError {
get { return resultCase_ == ResultOneofCase.ParseError ? (string) result_ : ""; }
set {
@@ -397,7 +419,13 @@ namespace Conformance {
}
}
+ /// Field number for the "runtime_error" field.
public const int RuntimeErrorFieldNumber = 2;
+ ///
+ /// This should be set if some other error occurred. This will always
+ /// indicate that the test failed. The string can provide more information
+ /// about the failure.
+ ///
public string RuntimeError {
get { return resultCase_ == ResultOneofCase.RuntimeError ? (string) result_ : ""; }
set {
@@ -406,7 +434,12 @@ namespace Conformance {
}
}
+ /// Field number for the "protobuf_payload" field.
public const int ProtobufPayloadFieldNumber = 3;
+ ///
+ /// If the input was successfully parsed and the requested output was
+ /// protobuf, serialize it to protobuf and set it in this field.
+ ///
public pb::ByteString ProtobufPayload {
get { return resultCase_ == ResultOneofCase.ProtobufPayload ? (pb::ByteString) result_ : pb::ByteString.Empty; }
set {
@@ -415,7 +448,12 @@ namespace Conformance {
}
}
+ /// Field number for the "json_payload" field.
public const int JsonPayloadFieldNumber = 4;
+ ///
+ /// If the input was successfully parsed and the requested output was JSON,
+ /// serialize to JSON and set it in this field.
+ ///
public string JsonPayload {
get { return resultCase_ == ResultOneofCase.JsonPayload ? (string) result_ : ""; }
set {
@@ -424,7 +462,12 @@ namespace Conformance {
}
}
+ /// Field number for the "skipped" field.
public const int SkippedFieldNumber = 5;
+ ///
+ /// For when the testee skipped the test, likely because a certain feature
+ /// wasn't supported, like JSON input/output.
+ ///
public string Skipped {
get { return resultCase_ == ResultOneofCase.Skipped ? (string) result_ : ""; }
set {
@@ -586,6 +629,10 @@ namespace Conformance {
}
+ ///
+ /// This proto includes every type of field in both singular and repeated
+ /// forms.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class TestAllTypes : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestAllTypes());
@@ -689,8 +736,12 @@ namespace Conformance {
return new TestAllTypes(this);
}
+ /// Field number for the "optional_int32" field.
public const int OptionalInt32FieldNumber = 1;
private int optionalInt32_;
+ ///
+ /// Singular
+ ///
public int OptionalInt32 {
get { return optionalInt32_; }
set {
@@ -698,6 +749,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_int64" field.
public const int OptionalInt64FieldNumber = 2;
private long optionalInt64_;
public long OptionalInt64 {
@@ -707,6 +759,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_uint32" field.
public const int OptionalUint32FieldNumber = 3;
private uint optionalUint32_;
public uint OptionalUint32 {
@@ -716,6 +769,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_uint64" field.
public const int OptionalUint64FieldNumber = 4;
private ulong optionalUint64_;
public ulong OptionalUint64 {
@@ -725,6 +779,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_sint32" field.
public const int OptionalSint32FieldNumber = 5;
private int optionalSint32_;
public int OptionalSint32 {
@@ -734,6 +789,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_sint64" field.
public const int OptionalSint64FieldNumber = 6;
private long optionalSint64_;
public long OptionalSint64 {
@@ -743,6 +799,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_fixed32" field.
public const int OptionalFixed32FieldNumber = 7;
private uint optionalFixed32_;
public uint OptionalFixed32 {
@@ -752,6 +809,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_fixed64" field.
public const int OptionalFixed64FieldNumber = 8;
private ulong optionalFixed64_;
public ulong OptionalFixed64 {
@@ -761,6 +819,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_sfixed32" field.
public const int OptionalSfixed32FieldNumber = 9;
private int optionalSfixed32_;
public int OptionalSfixed32 {
@@ -770,6 +829,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_sfixed64" field.
public const int OptionalSfixed64FieldNumber = 10;
private long optionalSfixed64_;
public long OptionalSfixed64 {
@@ -779,6 +839,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_float" field.
public const int OptionalFloatFieldNumber = 11;
private float optionalFloat_;
public float OptionalFloat {
@@ -788,6 +849,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_double" field.
public const int OptionalDoubleFieldNumber = 12;
private double optionalDouble_;
public double OptionalDouble {
@@ -797,6 +859,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_bool" field.
public const int OptionalBoolFieldNumber = 13;
private bool optionalBool_;
public bool OptionalBool {
@@ -806,6 +869,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_string" field.
public const int OptionalStringFieldNumber = 14;
private string optionalString_ = "";
public string OptionalString {
@@ -815,6 +879,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_bytes" field.
public const int OptionalBytesFieldNumber = 15;
private pb::ByteString optionalBytes_ = pb::ByteString.Empty;
public pb::ByteString OptionalBytes {
@@ -824,6 +889,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_nested_message" field.
public const int OptionalNestedMessageFieldNumber = 18;
private global::Conformance.TestAllTypes.Types.NestedMessage optionalNestedMessage_;
public global::Conformance.TestAllTypes.Types.NestedMessage OptionalNestedMessage {
@@ -833,6 +899,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_foreign_message" field.
public const int OptionalForeignMessageFieldNumber = 19;
private global::Conformance.ForeignMessage optionalForeignMessage_;
public global::Conformance.ForeignMessage OptionalForeignMessage {
@@ -842,6 +909,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_nested_enum" field.
public const int OptionalNestedEnumFieldNumber = 21;
private global::Conformance.TestAllTypes.Types.NestedEnum optionalNestedEnum_ = global::Conformance.TestAllTypes.Types.NestedEnum.FOO;
public global::Conformance.TestAllTypes.Types.NestedEnum OptionalNestedEnum {
@@ -851,6 +919,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_foreign_enum" field.
public const int OptionalForeignEnumFieldNumber = 22;
private global::Conformance.ForeignEnum optionalForeignEnum_ = global::Conformance.ForeignEnum.FOREIGN_FOO;
public global::Conformance.ForeignEnum OptionalForeignEnum {
@@ -860,6 +929,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_string_piece" field.
public const int OptionalStringPieceFieldNumber = 24;
private string optionalStringPiece_ = "";
public string OptionalStringPiece {
@@ -869,6 +939,7 @@ namespace Conformance {
}
}
+ /// Field number for the "optional_cord" field.
public const int OptionalCordFieldNumber = 25;
private string optionalCord_ = "";
public string OptionalCord {
@@ -878,6 +949,7 @@ namespace Conformance {
}
}
+ /// Field number for the "recursive_message" field.
public const int RecursiveMessageFieldNumber = 27;
private global::Conformance.TestAllTypes recursiveMessage_;
public global::Conformance.TestAllTypes RecursiveMessage {
@@ -887,14 +959,19 @@ namespace Conformance {
}
}
+ /// Field number for the "repeated_int32" field.
public const int RepeatedInt32FieldNumber = 31;
private static readonly pb::FieldCodec _repeated_repeatedInt32_codec
= pb::FieldCodec.ForInt32(250);
private readonly pbc::RepeatedField repeatedInt32_ = new pbc::RepeatedField();
+ ///
+ /// Repeated
+ ///
public pbc::RepeatedField RepeatedInt32 {
get { return repeatedInt32_; }
}
+ /// Field number for the "repeated_int64" field.
public const int RepeatedInt64FieldNumber = 32;
private static readonly pb::FieldCodec _repeated_repeatedInt64_codec
= pb::FieldCodec.ForInt64(258);
@@ -903,6 +980,7 @@ namespace Conformance {
get { return repeatedInt64_; }
}
+ /// Field number for the "repeated_uint32" field.
public const int RepeatedUint32FieldNumber = 33;
private static readonly pb::FieldCodec _repeated_repeatedUint32_codec
= pb::FieldCodec.ForUInt32(266);
@@ -911,6 +989,7 @@ namespace Conformance {
get { return repeatedUint32_; }
}
+ /// Field number for the "repeated_uint64" field.
public const int RepeatedUint64FieldNumber = 34;
private static readonly pb::FieldCodec _repeated_repeatedUint64_codec
= pb::FieldCodec.ForUInt64(274);
@@ -919,6 +998,7 @@ namespace Conformance {
get { return repeatedUint64_; }
}
+ /// Field number for the "repeated_sint32" field.
public const int RepeatedSint32FieldNumber = 35;
private static readonly pb::FieldCodec _repeated_repeatedSint32_codec
= pb::FieldCodec.ForSInt32(282);
@@ -927,6 +1007,7 @@ namespace Conformance {
get { return repeatedSint32_; }
}
+ /// Field number for the "repeated_sint64" field.
public const int RepeatedSint64FieldNumber = 36;
private static readonly pb::FieldCodec _repeated_repeatedSint64_codec
= pb::FieldCodec.ForSInt64(290);
@@ -935,6 +1016,7 @@ namespace Conformance {
get { return repeatedSint64_; }
}
+ /// Field number for the "repeated_fixed32" field.
public const int RepeatedFixed32FieldNumber = 37;
private static readonly pb::FieldCodec _repeated_repeatedFixed32_codec
= pb::FieldCodec.ForFixed32(298);
@@ -943,6 +1025,7 @@ namespace Conformance {
get { return repeatedFixed32_; }
}
+ /// Field number for the "repeated_fixed64" field.
public const int RepeatedFixed64FieldNumber = 38;
private static readonly pb::FieldCodec _repeated_repeatedFixed64_codec
= pb::FieldCodec.ForFixed64(306);
@@ -951,6 +1034,7 @@ namespace Conformance {
get { return repeatedFixed64_; }
}
+ /// Field number for the "repeated_sfixed32" field.
public const int RepeatedSfixed32FieldNumber = 39;
private static readonly pb::FieldCodec _repeated_repeatedSfixed32_codec
= pb::FieldCodec.ForSFixed32(314);
@@ -959,6 +1043,7 @@ namespace Conformance {
get { return repeatedSfixed32_; }
}
+ /// Field number for the "repeated_sfixed64" field.
public const int RepeatedSfixed64FieldNumber = 40;
private static readonly pb::FieldCodec _repeated_repeatedSfixed64_codec
= pb::FieldCodec.ForSFixed64(322);
@@ -967,6 +1052,7 @@ namespace Conformance {
get { return repeatedSfixed64_; }
}
+ /// Field number for the "repeated_float" field.
public const int RepeatedFloatFieldNumber = 41;
private static readonly pb::FieldCodec _repeated_repeatedFloat_codec
= pb::FieldCodec.ForFloat(330);
@@ -975,6 +1061,7 @@ namespace Conformance {
get { return repeatedFloat_; }
}
+ /// Field number for the "repeated_double" field.
public const int RepeatedDoubleFieldNumber = 42;
private static readonly pb::FieldCodec _repeated_repeatedDouble_codec
= pb::FieldCodec.ForDouble(338);
@@ -983,6 +1070,7 @@ namespace Conformance {
get { return repeatedDouble_; }
}
+ /// Field number for the "repeated_bool" field.
public const int RepeatedBoolFieldNumber = 43;
private static readonly pb::FieldCodec _repeated_repeatedBool_codec
= pb::FieldCodec.ForBool(346);
@@ -991,6 +1079,7 @@ namespace Conformance {
get { return repeatedBool_; }
}
+ /// Field number for the "repeated_string" field.
public const int RepeatedStringFieldNumber = 44;
private static readonly pb::FieldCodec _repeated_repeatedString_codec
= pb::FieldCodec.ForString(354);
@@ -999,6 +1088,7 @@ namespace Conformance {
get { return repeatedString_; }
}
+ /// Field number for the "repeated_bytes" field.
public const int RepeatedBytesFieldNumber = 45;
private static readonly pb::FieldCodec _repeated_repeatedBytes_codec
= pb::FieldCodec.ForBytes(362);
@@ -1007,6 +1097,7 @@ namespace Conformance {
get { return repeatedBytes_; }
}
+ /// Field number for the "repeated_nested_message" field.
public const int RepeatedNestedMessageFieldNumber = 48;
private static readonly pb::FieldCodec _repeated_repeatedNestedMessage_codec
= pb::FieldCodec.ForMessage(386, global::Conformance.TestAllTypes.Types.NestedMessage.Parser);
@@ -1015,6 +1106,7 @@ namespace Conformance {
get { return repeatedNestedMessage_; }
}
+ /// Field number for the "repeated_foreign_message" field.
public const int RepeatedForeignMessageFieldNumber = 49;
private static readonly pb::FieldCodec _repeated_repeatedForeignMessage_codec
= pb::FieldCodec.ForMessage(394, global::Conformance.ForeignMessage.Parser);
@@ -1023,6 +1115,7 @@ namespace Conformance {
get { return repeatedForeignMessage_; }
}
+ /// Field number for the "repeated_nested_enum" field.
public const int RepeatedNestedEnumFieldNumber = 51;
private static readonly pb::FieldCodec _repeated_repeatedNestedEnum_codec
= pb::FieldCodec.ForEnum(410, x => (int) x, x => (global::Conformance.TestAllTypes.Types.NestedEnum) x);
@@ -1031,6 +1124,7 @@ namespace Conformance {
get { return repeatedNestedEnum_; }
}
+ /// Field number for the "repeated_foreign_enum" field.
public const int RepeatedForeignEnumFieldNumber = 52;
private static readonly pb::FieldCodec _repeated_repeatedForeignEnum_codec
= pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::Conformance.ForeignEnum) x);
@@ -1039,6 +1133,7 @@ namespace Conformance {
get { return repeatedForeignEnum_; }
}
+ /// Field number for the "repeated_string_piece" field.
public const int RepeatedStringPieceFieldNumber = 54;
private static readonly pb::FieldCodec _repeated_repeatedStringPiece_codec
= pb::FieldCodec.ForString(434);
@@ -1047,6 +1142,7 @@ namespace Conformance {
get { return repeatedStringPiece_; }
}
+ /// Field number for the "repeated_cord" field.
public const int RepeatedCordFieldNumber = 55;
private static readonly pb::FieldCodec _repeated_repeatedCord_codec
= pb::FieldCodec.ForString(442);
@@ -1055,14 +1151,19 @@ namespace Conformance {
get { return repeatedCord_; }
}
+ /// Field number for the "map_int32_int32" field.
public const int MapInt32Int32FieldNumber = 56;
private static readonly pbc::MapField.Codec _map_mapInt32Int32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 450);
private readonly pbc::MapField mapInt32Int32_ = new pbc::MapField();
+ ///
+ /// Map
+ ///
public pbc::MapField MapInt32Int32 {
get { return mapInt32Int32_; }
}
+ /// Field number for the "map_int64_int64" field.
public const int MapInt64Int64FieldNumber = 57;
private static readonly pbc::MapField.Codec _map_mapInt64Int64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 458);
@@ -1071,6 +1172,7 @@ namespace Conformance {
get { return mapInt64Int64_; }
}
+ /// Field number for the "map_uint32_uint32" field.
public const int MapUint32Uint32FieldNumber = 58;
private static readonly pbc::MapField.Codec _map_mapUint32Uint32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 466);
@@ -1079,6 +1181,7 @@ namespace Conformance {
get { return mapUint32Uint32_; }
}
+ /// Field number for the "map_uint64_uint64" field.
public const int MapUint64Uint64FieldNumber = 59;
private static readonly pbc::MapField.Codec _map_mapUint64Uint64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 474);
@@ -1087,6 +1190,7 @@ namespace Conformance {
get { return mapUint64Uint64_; }
}
+ /// Field number for the "map_sint32_sint32" field.
public const int MapSint32Sint32FieldNumber = 60;
private static readonly pbc::MapField.Codec _map_mapSint32Sint32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 482);
@@ -1095,6 +1199,7 @@ namespace Conformance {
get { return mapSint32Sint32_; }
}
+ /// Field number for the "map_sint64_sint64" field.
public const int MapSint64Sint64FieldNumber = 61;
private static readonly pbc::MapField.Codec _map_mapSint64Sint64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 490);
@@ -1103,6 +1208,7 @@ namespace Conformance {
get { return mapSint64Sint64_; }
}
+ /// Field number for the "map_fixed32_fixed32" field.
public const int MapFixed32Fixed32FieldNumber = 62;
private static readonly pbc::MapField.Codec _map_mapFixed32Fixed32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 498);
@@ -1111,6 +1217,7 @@ namespace Conformance {
get { return mapFixed32Fixed32_; }
}
+ /// Field number for the "map_fixed64_fixed64" field.
public const int MapFixed64Fixed64FieldNumber = 63;
private static readonly pbc::MapField.Codec _map_mapFixed64Fixed64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 506);
@@ -1119,6 +1226,7 @@ namespace Conformance {
get { return mapFixed64Fixed64_; }
}
+ /// Field number for the "map_sfixed32_sfixed32" field.
public const int MapSfixed32Sfixed32FieldNumber = 64;
private static readonly pbc::MapField.Codec _map_mapSfixed32Sfixed32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 514);
@@ -1127,6 +1235,7 @@ namespace Conformance {
get { return mapSfixed32Sfixed32_; }
}
+ /// Field number for the "map_sfixed64_sfixed64" field.
public const int MapSfixed64Sfixed64FieldNumber = 65;
private static readonly pbc::MapField.Codec _map_mapSfixed64Sfixed64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 522);
@@ -1135,6 +1244,7 @@ namespace Conformance {
get { return mapSfixed64Sfixed64_; }
}
+ /// Field number for the "map_int32_float" field.
public const int MapInt32FloatFieldNumber = 66;
private static readonly pbc::MapField.Codec _map_mapInt32Float_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 530);
@@ -1143,6 +1253,7 @@ namespace Conformance {
get { return mapInt32Float_; }
}
+ /// Field number for the "map_int32_double" field.
public const int MapInt32DoubleFieldNumber = 67;
private static readonly pbc::MapField.Codec _map_mapInt32Double_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 538);
@@ -1151,6 +1262,7 @@ namespace Conformance {
get { return mapInt32Double_; }
}
+ /// Field number for the "map_bool_bool" field.
public const int MapBoolBoolFieldNumber = 68;
private static readonly pbc::MapField.Codec _map_mapBoolBool_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 546);
@@ -1159,6 +1271,7 @@ namespace Conformance {
get { return mapBoolBool_; }
}
+ /// Field number for the "map_string_string" field.
public const int MapStringStringFieldNumber = 69;
private static readonly pbc::MapField.Codec _map_mapStringString_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 554);
@@ -1167,6 +1280,7 @@ namespace Conformance {
get { return mapStringString_; }
}
+ /// Field number for the "map_string_bytes" field.
public const int MapStringBytesFieldNumber = 70;
private static readonly pbc::MapField.Codec _map_mapStringBytes_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForBytes(18), 562);
@@ -1175,6 +1289,7 @@ namespace Conformance {
get { return mapStringBytes_; }
}
+ /// Field number for the "map_string_nested_message" field.
public const int MapStringNestedMessageFieldNumber = 71;
private static readonly pbc::MapField.Codec _map_mapStringNestedMessage_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::Conformance.TestAllTypes.Types.NestedMessage.Parser), 570);
@@ -1183,6 +1298,7 @@ namespace Conformance {
get { return mapStringNestedMessage_; }
}
+ /// Field number for the "map_string_foreign_message" field.
public const int MapStringForeignMessageFieldNumber = 72;
private static readonly pbc::MapField.Codec _map_mapStringForeignMessage_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::Conformance.ForeignMessage.Parser), 578);
@@ -1191,6 +1307,7 @@ namespace Conformance {
get { return mapStringForeignMessage_; }
}
+ /// Field number for the "map_string_nested_enum" field.
public const int MapStringNestedEnumFieldNumber = 73;
private static readonly pbc::MapField.Codec _map_mapStringNestedEnum_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Conformance.TestAllTypes.Types.NestedEnum) x), 586);
@@ -1199,6 +1316,7 @@ namespace Conformance {
get { return mapStringNestedEnum_; }
}
+ /// Field number for the "map_string_foreign_enum" field.
public const int MapStringForeignEnumFieldNumber = 74;
private static readonly pbc::MapField.Codec _map_mapStringForeignEnum_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Conformance.ForeignEnum) x), 594);
@@ -1207,6 +1325,7 @@ namespace Conformance {
get { return mapStringForeignEnum_; }
}
+ /// Field number for the "oneof_uint32" field.
public const int OneofUint32FieldNumber = 111;
public uint OneofUint32 {
get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32 ? (uint) oneofField_ : 0; }
@@ -1216,6 +1335,7 @@ namespace Conformance {
}
}
+ /// Field number for the "oneof_nested_message" field.
public const int OneofNestedMessageFieldNumber = 112;
public global::Conformance.TestAllTypes.Types.NestedMessage OneofNestedMessage {
get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::Conformance.TestAllTypes.Types.NestedMessage) oneofField_ : null; }
@@ -1225,6 +1345,7 @@ namespace Conformance {
}
}
+ /// Field number for the "oneof_string" field.
public const int OneofStringFieldNumber = 113;
public string OneofString {
get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; }
@@ -1234,6 +1355,7 @@ namespace Conformance {
}
}
+ /// Field number for the "oneof_bytes" field.
public const int OneofBytesFieldNumber = 114;
public pb::ByteString OneofBytes {
get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
@@ -2135,6 +2257,9 @@ namespace Conformance {
FOO = 0,
BAR = 1,
BAZ = 2,
+ ///
+ /// Intentionally negative.
+ ///
NEG = -1,
}
@@ -2166,6 +2291,7 @@ namespace Conformance {
return new NestedMessage(this);
}
+ /// Field number for the "a" field.
public const int AFieldNumber = 1;
private int a_;
public int A {
@@ -2175,6 +2301,7 @@ namespace Conformance {
}
}
+ /// Field number for the "corecursive" field.
public const int CorecursiveFieldNumber = 2;
private global::Conformance.TestAllTypes corecursive_;
public global::Conformance.TestAllTypes Corecursive {
@@ -2304,6 +2431,7 @@ namespace Conformance {
return new ForeignMessage(this);
}
+ /// Field number for the "c" field.
public const int CFieldNumber = 1;
private int c_;
public int C {
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs b/csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
index 60565363..e3991bc8 100644
--- a/csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
+++ b/csharp/src/Google.Protobuf.Test/TestProtos/MapUnittestProto3.cs
@@ -172,6 +172,9 @@ namespace Google.Protobuf.TestProtos {
#endregion
#region Messages
+ ///
+ /// Tests maps.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class TestMap : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMap());
@@ -215,6 +218,7 @@ namespace Google.Protobuf.TestProtos {
return new TestMap(this);
}
+ /// Field number for the "map_int32_int32" field.
public const int MapInt32Int32FieldNumber = 1;
private static readonly pbc::MapField.Codec _map_mapInt32Int32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
@@ -223,6 +227,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapInt32Int32_; }
}
+ /// Field number for the "map_int64_int64" field.
public const int MapInt64Int64FieldNumber = 2;
private static readonly pbc::MapField.Codec _map_mapInt64Int64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
@@ -231,6 +236,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapInt64Int64_; }
}
+ /// Field number for the "map_uint32_uint32" field.
public const int MapUint32Uint32FieldNumber = 3;
private static readonly pbc::MapField.Codec _map_mapUint32Uint32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
@@ -239,6 +245,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapUint32Uint32_; }
}
+ /// Field number for the "map_uint64_uint64" field.
public const int MapUint64Uint64FieldNumber = 4;
private static readonly pbc::MapField.Codec _map_mapUint64Uint64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
@@ -247,6 +254,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapUint64Uint64_; }
}
+ /// Field number for the "map_sint32_sint32" field.
public const int MapSint32Sint32FieldNumber = 5;
private static readonly pbc::MapField.Codec _map_mapSint32Sint32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
@@ -255,6 +263,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapSint32Sint32_; }
}
+ /// Field number for the "map_sint64_sint64" field.
public const int MapSint64Sint64FieldNumber = 6;
private static readonly pbc::MapField.Codec _map_mapSint64Sint64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
@@ -263,6 +272,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapSint64Sint64_; }
}
+ /// Field number for the "map_fixed32_fixed32" field.
public const int MapFixed32Fixed32FieldNumber = 7;
private static readonly pbc::MapField.Codec _map_mapFixed32Fixed32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
@@ -271,6 +281,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapFixed32Fixed32_; }
}
+ /// Field number for the "map_fixed64_fixed64" field.
public const int MapFixed64Fixed64FieldNumber = 8;
private static readonly pbc::MapField.Codec _map_mapFixed64Fixed64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
@@ -279,6 +290,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapFixed64Fixed64_; }
}
+ /// Field number for the "map_sfixed32_sfixed32" field.
public const int MapSfixed32Sfixed32FieldNumber = 9;
private static readonly pbc::MapField.Codec _map_mapSfixed32Sfixed32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
@@ -287,6 +299,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapSfixed32Sfixed32_; }
}
+ /// Field number for the "map_sfixed64_sfixed64" field.
public const int MapSfixed64Sfixed64FieldNumber = 10;
private static readonly pbc::MapField.Codec _map_mapSfixed64Sfixed64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
@@ -295,6 +308,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapSfixed64Sfixed64_; }
}
+ /// Field number for the "map_int32_float" field.
public const int MapInt32FloatFieldNumber = 11;
private static readonly pbc::MapField.Codec _map_mapInt32Float_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
@@ -303,6 +317,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapInt32Float_; }
}
+ /// Field number for the "map_int32_double" field.
public const int MapInt32DoubleFieldNumber = 12;
private static readonly pbc::MapField.Codec _map_mapInt32Double_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
@@ -311,6 +326,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapInt32Double_; }
}
+ /// Field number for the "map_bool_bool" field.
public const int MapBoolBoolFieldNumber = 13;
private static readonly pbc::MapField.Codec _map_mapBoolBool_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
@@ -319,6 +335,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapBoolBool_; }
}
+ /// Field number for the "map_string_string" field.
public const int MapStringStringFieldNumber = 14;
private static readonly pbc::MapField.Codec _map_mapStringString_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForString(18), 114);
@@ -327,6 +344,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapStringString_; }
}
+ /// Field number for the "map_int32_bytes" field.
public const int MapInt32BytesFieldNumber = 15;
private static readonly pbc::MapField.Codec _map_mapInt32Bytes_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForBytes(18), 122);
@@ -335,6 +353,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapInt32Bytes_; }
}
+ /// Field number for the "map_int32_enum" field.
public const int MapInt32EnumFieldNumber = 16;
private static readonly pbc::MapField.Codec _map_mapInt32Enum_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x), 130);
@@ -343,6 +362,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapInt32Enum_; }
}
+ /// Field number for the "map_int32_foreign_message" field.
public const int MapInt32ForeignMessageFieldNumber = 17;
private static readonly pbc::MapField.Codec _map_mapInt32ForeignMessage_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 138);
@@ -581,6 +601,7 @@ namespace Google.Protobuf.TestProtos {
return new TestMapSubmessage(this);
}
+ /// Field number for the "test_map" field.
public const int TestMapFieldNumber = 1;
private global::Google.Protobuf.TestProtos.TestMap testMap_;
public global::Google.Protobuf.TestProtos.TestMap TestMap {
@@ -689,6 +710,7 @@ namespace Google.Protobuf.TestProtos {
return new TestMessageMap(this);
}
+ /// Field number for the "map_int32_message" field.
public const int MapInt32MessageFieldNumber = 1;
private static readonly pbc::MapField.Codec _map_mapInt32Message_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.TestAllTypes.Parser), 10);
@@ -756,6 +778,9 @@ namespace Google.Protobuf.TestProtos {
}
+ ///
+ /// Two map fields share the same entry default instance.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class TestSameTypeMap : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestSameTypeMap());
@@ -784,6 +809,7 @@ namespace Google.Protobuf.TestProtos {
return new TestSameTypeMap(this);
}
+ /// Field number for the "map1" field.
public const int Map1FieldNumber = 1;
private static readonly pbc::MapField.Codec _map_map1_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
@@ -792,6 +818,7 @@ namespace Google.Protobuf.TestProtos {
get { return map1_; }
}
+ /// Field number for the "map2" field.
public const int Map2FieldNumber = 2;
private static readonly pbc::MapField.Codec _map_map2_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 18);
@@ -909,6 +936,7 @@ namespace Google.Protobuf.TestProtos {
return new TestArenaMap(this);
}
+ /// Field number for the "map_int32_int32" field.
public const int MapInt32Int32FieldNumber = 1;
private static readonly pbc::MapField.Codec _map_mapInt32Int32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
@@ -917,6 +945,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapInt32Int32_; }
}
+ /// Field number for the "map_int64_int64" field.
public const int MapInt64Int64FieldNumber = 2;
private static readonly pbc::MapField.Codec _map_mapInt64Int64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt64(8), pb::FieldCodec.ForInt64(16), 18);
@@ -925,6 +954,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapInt64Int64_; }
}
+ /// Field number for the "map_uint32_uint32" field.
public const int MapUint32Uint32FieldNumber = 3;
private static readonly pbc::MapField.Codec _map_mapUint32Uint32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForUInt32(8), pb::FieldCodec.ForUInt32(16), 26);
@@ -933,6 +963,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapUint32Uint32_; }
}
+ /// Field number for the "map_uint64_uint64" field.
public const int MapUint64Uint64FieldNumber = 4;
private static readonly pbc::MapField.Codec _map_mapUint64Uint64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForUInt64(8), pb::FieldCodec.ForUInt64(16), 34);
@@ -941,6 +972,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapUint64Uint64_; }
}
+ /// Field number for the "map_sint32_sint32" field.
public const int MapSint32Sint32FieldNumber = 5;
private static readonly pbc::MapField.Codec _map_mapSint32Sint32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForSInt32(8), pb::FieldCodec.ForSInt32(16), 42);
@@ -949,6 +981,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapSint32Sint32_; }
}
+ /// Field number for the "map_sint64_sint64" field.
public const int MapSint64Sint64FieldNumber = 6;
private static readonly pbc::MapField.Codec _map_mapSint64Sint64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForSInt64(8), pb::FieldCodec.ForSInt64(16), 50);
@@ -957,6 +990,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapSint64Sint64_; }
}
+ /// Field number for the "map_fixed32_fixed32" field.
public const int MapFixed32Fixed32FieldNumber = 7;
private static readonly pbc::MapField.Codec _map_mapFixed32Fixed32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForFixed32(13), pb::FieldCodec.ForFixed32(21), 58);
@@ -965,6 +999,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapFixed32Fixed32_; }
}
+ /// Field number for the "map_fixed64_fixed64" field.
public const int MapFixed64Fixed64FieldNumber = 8;
private static readonly pbc::MapField.Codec _map_mapFixed64Fixed64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForFixed64(9), pb::FieldCodec.ForFixed64(17), 66);
@@ -973,6 +1008,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapFixed64Fixed64_; }
}
+ /// Field number for the "map_sfixed32_sfixed32" field.
public const int MapSfixed32Sfixed32FieldNumber = 9;
private static readonly pbc::MapField.Codec _map_mapSfixed32Sfixed32_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForSFixed32(13), pb::FieldCodec.ForSFixed32(21), 74);
@@ -981,6 +1017,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapSfixed32Sfixed32_; }
}
+ /// Field number for the "map_sfixed64_sfixed64" field.
public const int MapSfixed64Sfixed64FieldNumber = 10;
private static readonly pbc::MapField.Codec _map_mapSfixed64Sfixed64_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForSFixed64(9), pb::FieldCodec.ForSFixed64(17), 82);
@@ -989,6 +1026,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapSfixed64Sfixed64_; }
}
+ /// Field number for the "map_int32_float" field.
public const int MapInt32FloatFieldNumber = 11;
private static readonly pbc::MapField.Codec _map_mapInt32Float_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForFloat(21), 90);
@@ -997,6 +1035,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapInt32Float_; }
}
+ /// Field number for the "map_int32_double" field.
public const int MapInt32DoubleFieldNumber = 12;
private static readonly pbc::MapField.Codec _map_mapInt32Double_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForDouble(17), 98);
@@ -1005,6 +1044,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapInt32Double_; }
}
+ /// Field number for the "map_bool_bool" field.
public const int MapBoolBoolFieldNumber = 13;
private static readonly pbc::MapField.Codec _map_mapBoolBool_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForBool(16), 106);
@@ -1013,6 +1053,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapBoolBool_; }
}
+ /// Field number for the "map_int32_enum" field.
public const int MapInt32EnumFieldNumber = 14;
private static readonly pbc::MapField.Codec _map_mapInt32Enum_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.MapEnum) x), 114);
@@ -1021,6 +1062,7 @@ namespace Google.Protobuf.TestProtos {
get { return mapInt32Enum_; }
}
+ /// Field number for the "map_int32_foreign_message" field.
public const int MapInt32ForeignMessageFieldNumber = 15;
private static readonly pbc::MapField.Codec _map_mapInt32ForeignMessage_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.ForeignMessage.Parser), 122);
@@ -1214,6 +1256,10 @@ namespace Google.Protobuf.TestProtos {
}
+ ///
+ /// Previously, message containing enum called Type cannot be used as value of
+ /// map field.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class MessageContainingEnumCalledType : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageContainingEnumCalledType());
@@ -1241,6 +1287,7 @@ namespace Google.Protobuf.TestProtos {
return new MessageContainingEnumCalledType(this);
}
+ /// Field number for the "type" field.
public const int TypeFieldNumber = 1;
private static readonly pbc::MapField.Codec _map_type_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.MessageContainingEnumCalledType.Parser), 10);
@@ -1319,6 +1366,9 @@ namespace Google.Protobuf.TestProtos {
}
+ ///
+ /// Previously, message cannot contain map field called "entry".
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class MessageContainingMapCalledEntry : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new MessageContainingMapCalledEntry());
@@ -1346,6 +1396,7 @@ namespace Google.Protobuf.TestProtos {
return new MessageContainingMapCalledEntry(this);
}
+ /// Field number for the "entry" field.
public const int EntryFieldNumber = 1;
private static readonly pbc::MapField.Codec _map_entry_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForInt32(16), 10);
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs
index dd7fb456..a55c66e0 100644
--- a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs
+++ b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportProto3.cs
@@ -78,6 +78,7 @@ namespace Google.Protobuf.TestProtos {
return new ImportMessage(this);
}
+ /// Field number for the "d" field.
public const int DFieldNumber = 1;
private int d_;
public int D {
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs
index 0be4e9d8..81696d70 100644
--- a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs
+++ b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestImportPublicProto3.cs
@@ -64,6 +64,7 @@ namespace Google.Protobuf.TestProtos {
return new PublicImportMessage(this);
}
+ /// Field number for the "e" field.
public const int EFieldNumber = 1;
private int e_;
public int E {
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
index 6c1a594f..addec057 100644
--- a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
+++ b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
@@ -76,6 +76,10 @@ namespace UnitTest.Issues.TestProtos {
#endregion
#region Messages
+ ///
+ /// Issue 307: when generating doubly-nested types, any references
+ /// should be of the form A.Types.B.Types.C.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class Issue307 : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Issue307());
@@ -347,6 +351,7 @@ namespace UnitTest.Issues.TestProtos {
return new NegativeEnumMessage(this);
}
+ /// Field number for the "value" field.
public const int ValueFieldNumber = 1;
private global::UnitTest.Issues.TestProtos.NegativeEnum value_ = global::UnitTest.Issues.TestProtos.NegativeEnum.NEGATIVE_ENUM_ZERO;
public global::UnitTest.Issues.TestProtos.NegativeEnum Value {
@@ -356,6 +361,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
+ /// Field number for the "values" field.
public const int ValuesFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_values_codec
= pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::UnitTest.Issues.TestProtos.NegativeEnum) x);
@@ -364,6 +370,7 @@ namespace UnitTest.Issues.TestProtos {
get { return values_; }
}
+ /// Field number for the "packed_values" field.
public const int PackedValuesFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_packedValues_codec
= pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::UnitTest.Issues.TestProtos.NegativeEnum) x);
@@ -566,6 +573,7 @@ namespace UnitTest.Issues.TestProtos {
return new DeprecatedFieldsMessage(this);
}
+ /// Field number for the "PrimitiveValue" field.
public const int PrimitiveValueFieldNumber = 1;
private int primitiveValue_;
[global::System.ObsoleteAttribute()]
@@ -576,6 +584,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
+ /// Field number for the "PrimitiveArray" field.
public const int PrimitiveArrayFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_primitiveArray_codec
= pb::FieldCodec.ForInt32(18);
@@ -585,6 +594,7 @@ namespace UnitTest.Issues.TestProtos {
get { return primitiveArray_; }
}
+ /// Field number for the "MessageValue" field.
public const int MessageValueFieldNumber = 3;
private global::UnitTest.Issues.TestProtos.DeprecatedChild messageValue_;
[global::System.ObsoleteAttribute()]
@@ -595,6 +605,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
+ /// Field number for the "MessageArray" field.
public const int MessageArrayFieldNumber = 4;
private static readonly pb::FieldCodec _repeated_messageArray_codec
= pb::FieldCodec.ForMessage(34, global::UnitTest.Issues.TestProtos.DeprecatedChild.Parser);
@@ -604,6 +615,7 @@ namespace UnitTest.Issues.TestProtos {
get { return messageArray_; }
}
+ /// Field number for the "EnumValue" field.
public const int EnumValueFieldNumber = 5;
private global::UnitTest.Issues.TestProtos.DeprecatedEnum enumValue_ = global::UnitTest.Issues.TestProtos.DeprecatedEnum.DEPRECATED_ZERO;
[global::System.ObsoleteAttribute()]
@@ -614,6 +626,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
+ /// Field number for the "EnumArray" field.
public const int EnumArrayFieldNumber = 6;
private static readonly pb::FieldCodec _repeated_enumArray_codec
= pb::FieldCodec.ForEnum(50, x => (int) x, x => (global::UnitTest.Issues.TestProtos.DeprecatedEnum) x);
@@ -756,6 +769,9 @@ namespace UnitTest.Issues.TestProtos {
}
+ ///
+ /// Issue 45: http://code.google.com/p/protobuf-csharp-port/issues/detail?id=45
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class ItemField : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ItemField());
@@ -783,6 +799,7 @@ namespace UnitTest.Issues.TestProtos {
return new ItemField(this);
}
+ /// Field number for the "item" field.
public const int ItemFieldNumber = 1;
private int item_;
public int Item {
@@ -886,6 +903,7 @@ namespace UnitTest.Issues.TestProtos {
return new ReservedNames(this);
}
+ /// Field number for the "types" field.
public const int Types_FieldNumber = 1;
private int types_;
public int Types_ {
@@ -895,6 +913,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
+ /// Field number for the "descriptor" field.
public const int Descriptor_FieldNumber = 2;
private int descriptor_;
public int Descriptor_ {
@@ -988,6 +1007,9 @@ namespace UnitTest.Issues.TestProtos {
/// Container for nested types declared in the ReservedNames message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public static partial class Types {
+ ///
+ /// Force a nested type called Types
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class SomeNestedType : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SomeNestedType());
@@ -1069,6 +1091,18 @@ namespace UnitTest.Issues.TestProtos {
}
+ ///
+ /// 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.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class TestJsonFieldOrdering : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestJsonFieldOrdering());
@@ -1115,6 +1149,7 @@ namespace UnitTest.Issues.TestProtos {
return new TestJsonFieldOrdering(this);
}
+ /// Field number for the "plain_int32" field.
public const int PlainInt32FieldNumber = 4;
private int plainInt32_;
public int PlainInt32 {
@@ -1124,6 +1159,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
+ /// Field number for the "o1_string" field.
public const int O1StringFieldNumber = 2;
public string O1String {
get { return o1Case_ == O1OneofCase.O1String ? (string) o1_ : ""; }
@@ -1133,6 +1169,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
+ /// Field number for the "o1_int32" field.
public const int O1Int32FieldNumber = 5;
public int O1Int32 {
get { return o1Case_ == O1OneofCase.O1Int32 ? (int) o1_ : 0; }
@@ -1142,6 +1179,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
+ /// Field number for the "plain_string" field.
public const int PlainStringFieldNumber = 1;
private string plainString_ = "";
public string PlainString {
@@ -1151,6 +1189,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
+ /// Field number for the "o2_int32" field.
public const int O2Int32FieldNumber = 6;
public int O2Int32 {
get { return o2Case_ == O2OneofCase.O2Int32 ? (int) o2_ : 0; }
@@ -1160,6 +1199,7 @@ namespace UnitTest.Issues.TestProtos {
}
}
+ /// Field number for the "o2_string" field.
public const int O2StringFieldNumber = 3;
public string O2String {
get { return o2Case_ == O2OneofCase.O2String ? (string) o2_ : ""; }
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
index f7ad620c..0c7b5279 100644
--- a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
+++ b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestProto3.cs
@@ -199,6 +199,9 @@ namespace Google.Protobuf.TestProtos {
FOREIGN_BAZ = 6,
}
+ ///
+ /// Test an enum that has multiple values with the same number.
+ ///
public enum TestEnumWithDupValue {
TEST_ENUM_WITH_DUP_VALUE_UNSPECIFIED = 0,
FOO1 = 1,
@@ -208,6 +211,9 @@ namespace Google.Protobuf.TestProtos {
BAR2 = 2,
}
+ ///
+ /// Test an enum with large, unordered values.
+ ///
public enum TestSparseEnum {
TEST_SPARSE_ENUM_UNSPECIFIED = 0,
SPARSE_A = 123,
@@ -215,12 +221,20 @@ namespace Google.Protobuf.TestProtos {
SPARSE_C = 12589234,
SPARSE_D = -15,
SPARSE_E = -53452,
+ ///
+ /// In proto3, value 0 must be the first one specified
+ /// SPARSE_F = 0;
+ ///
SPARSE_G = 2,
}
#endregion
#region Messages
+ ///
+ /// This proto includes every type of field in both singular and repeated
+ /// forms.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class TestAllTypes : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestAllTypes());
@@ -306,8 +320,12 @@ namespace Google.Protobuf.TestProtos {
return new TestAllTypes(this);
}
+ /// Field number for the "single_int32" field.
public const int SingleInt32FieldNumber = 1;
private int singleInt32_;
+ ///
+ /// Singular
+ ///
public int SingleInt32 {
get { return singleInt32_; }
set {
@@ -315,6 +333,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_int64" field.
public const int SingleInt64FieldNumber = 2;
private long singleInt64_;
public long SingleInt64 {
@@ -324,6 +343,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_uint32" field.
public const int SingleUint32FieldNumber = 3;
private uint singleUint32_;
public uint SingleUint32 {
@@ -333,6 +353,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_uint64" field.
public const int SingleUint64FieldNumber = 4;
private ulong singleUint64_;
public ulong SingleUint64 {
@@ -342,6 +363,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_sint32" field.
public const int SingleSint32FieldNumber = 5;
private int singleSint32_;
public int SingleSint32 {
@@ -351,6 +373,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_sint64" field.
public const int SingleSint64FieldNumber = 6;
private long singleSint64_;
public long SingleSint64 {
@@ -360,6 +383,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_fixed32" field.
public const int SingleFixed32FieldNumber = 7;
private uint singleFixed32_;
public uint SingleFixed32 {
@@ -369,6 +393,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_fixed64" field.
public const int SingleFixed64FieldNumber = 8;
private ulong singleFixed64_;
public ulong SingleFixed64 {
@@ -378,6 +403,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_sfixed32" field.
public const int SingleSfixed32FieldNumber = 9;
private int singleSfixed32_;
public int SingleSfixed32 {
@@ -387,6 +413,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_sfixed64" field.
public const int SingleSfixed64FieldNumber = 10;
private long singleSfixed64_;
public long SingleSfixed64 {
@@ -396,6 +423,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_float" field.
public const int SingleFloatFieldNumber = 11;
private float singleFloat_;
public float SingleFloat {
@@ -405,6 +433,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_double" field.
public const int SingleDoubleFieldNumber = 12;
private double singleDouble_;
public double SingleDouble {
@@ -414,6 +443,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_bool" field.
public const int SingleBoolFieldNumber = 13;
private bool singleBool_;
public bool SingleBool {
@@ -423,6 +453,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_string" field.
public const int SingleStringFieldNumber = 14;
private string singleString_ = "";
public string SingleString {
@@ -432,6 +463,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_bytes" field.
public const int SingleBytesFieldNumber = 15;
private pb::ByteString singleBytes_ = pb::ByteString.Empty;
public pb::ByteString SingleBytes {
@@ -441,6 +473,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_nested_message" field.
public const int SingleNestedMessageFieldNumber = 18;
private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage singleNestedMessage_;
public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage SingleNestedMessage {
@@ -450,6 +483,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_foreign_message" field.
public const int SingleForeignMessageFieldNumber = 19;
private global::Google.Protobuf.TestProtos.ForeignMessage singleForeignMessage_;
public global::Google.Protobuf.TestProtos.ForeignMessage SingleForeignMessage {
@@ -459,6 +493,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_import_message" field.
public const int SingleImportMessageFieldNumber = 20;
private global::Google.Protobuf.TestProtos.ImportMessage singleImportMessage_;
public global::Google.Protobuf.TestProtos.ImportMessage SingleImportMessage {
@@ -468,6 +503,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_nested_enum" field.
public const int SingleNestedEnumFieldNumber = 21;
private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum singleNestedEnum_ = global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED;
public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum SingleNestedEnum {
@@ -477,6 +513,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_foreign_enum" field.
public const int SingleForeignEnumFieldNumber = 22;
private global::Google.Protobuf.TestProtos.ForeignEnum singleForeignEnum_ = global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED;
public global::Google.Protobuf.TestProtos.ForeignEnum SingleForeignEnum {
@@ -486,6 +523,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_import_enum" field.
public const int SingleImportEnumFieldNumber = 23;
private global::Google.Protobuf.TestProtos.ImportEnum singleImportEnum_ = global::Google.Protobuf.TestProtos.ImportEnum.IMPORT_ENUM_UNSPECIFIED;
public global::Google.Protobuf.TestProtos.ImportEnum SingleImportEnum {
@@ -495,8 +533,12 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_public_import_message" field.
public const int SinglePublicImportMessageFieldNumber = 26;
private global::Google.Protobuf.TestProtos.PublicImportMessage singlePublicImportMessage_;
+ ///
+ /// Defined in unittest_import_public.proto
+ ///
public global::Google.Protobuf.TestProtos.PublicImportMessage SinglePublicImportMessage {
get { return singlePublicImportMessage_; }
set {
@@ -504,14 +546,19 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "repeated_int32" field.
public const int RepeatedInt32FieldNumber = 31;
private static readonly pb::FieldCodec _repeated_repeatedInt32_codec
= pb::FieldCodec.ForInt32(250);
private readonly pbc::RepeatedField repeatedInt32_ = new pbc::RepeatedField();
+ ///
+ /// Repeated
+ ///
public pbc::RepeatedField RepeatedInt32 {
get { return repeatedInt32_; }
}
+ /// Field number for the "repeated_int64" field.
public const int RepeatedInt64FieldNumber = 32;
private static readonly pb::FieldCodec _repeated_repeatedInt64_codec
= pb::FieldCodec.ForInt64(258);
@@ -520,6 +567,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedInt64_; }
}
+ /// Field number for the "repeated_uint32" field.
public const int RepeatedUint32FieldNumber = 33;
private static readonly pb::FieldCodec _repeated_repeatedUint32_codec
= pb::FieldCodec.ForUInt32(266);
@@ -528,6 +576,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedUint32_; }
}
+ /// Field number for the "repeated_uint64" field.
public const int RepeatedUint64FieldNumber = 34;
private static readonly pb::FieldCodec _repeated_repeatedUint64_codec
= pb::FieldCodec.ForUInt64(274);
@@ -536,6 +585,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedUint64_; }
}
+ /// Field number for the "repeated_sint32" field.
public const int RepeatedSint32FieldNumber = 35;
private static readonly pb::FieldCodec _repeated_repeatedSint32_codec
= pb::FieldCodec.ForSInt32(282);
@@ -544,6 +594,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedSint32_; }
}
+ /// Field number for the "repeated_sint64" field.
public const int RepeatedSint64FieldNumber = 36;
private static readonly pb::FieldCodec _repeated_repeatedSint64_codec
= pb::FieldCodec.ForSInt64(290);
@@ -552,6 +603,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedSint64_; }
}
+ /// Field number for the "repeated_fixed32" field.
public const int RepeatedFixed32FieldNumber = 37;
private static readonly pb::FieldCodec _repeated_repeatedFixed32_codec
= pb::FieldCodec.ForFixed32(298);
@@ -560,6 +612,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedFixed32_; }
}
+ /// Field number for the "repeated_fixed64" field.
public const int RepeatedFixed64FieldNumber = 38;
private static readonly pb::FieldCodec _repeated_repeatedFixed64_codec
= pb::FieldCodec.ForFixed64(306);
@@ -568,6 +621,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedFixed64_; }
}
+ /// Field number for the "repeated_sfixed32" field.
public const int RepeatedSfixed32FieldNumber = 39;
private static readonly pb::FieldCodec _repeated_repeatedSfixed32_codec
= pb::FieldCodec.ForSFixed32(314);
@@ -576,6 +630,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedSfixed32_; }
}
+ /// Field number for the "repeated_sfixed64" field.
public const int RepeatedSfixed64FieldNumber = 40;
private static readonly pb::FieldCodec _repeated_repeatedSfixed64_codec
= pb::FieldCodec.ForSFixed64(322);
@@ -584,6 +639,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedSfixed64_; }
}
+ /// Field number for the "repeated_float" field.
public const int RepeatedFloatFieldNumber = 41;
private static readonly pb::FieldCodec _repeated_repeatedFloat_codec
= pb::FieldCodec.ForFloat(330);
@@ -592,6 +648,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedFloat_; }
}
+ /// Field number for the "repeated_double" field.
public const int RepeatedDoubleFieldNumber = 42;
private static readonly pb::FieldCodec _repeated_repeatedDouble_codec
= pb::FieldCodec.ForDouble(338);
@@ -600,6 +657,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedDouble_; }
}
+ /// Field number for the "repeated_bool" field.
public const int RepeatedBoolFieldNumber = 43;
private static readonly pb::FieldCodec _repeated_repeatedBool_codec
= pb::FieldCodec.ForBool(346);
@@ -608,6 +666,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedBool_; }
}
+ /// Field number for the "repeated_string" field.
public const int RepeatedStringFieldNumber = 44;
private static readonly pb::FieldCodec _repeated_repeatedString_codec
= pb::FieldCodec.ForString(354);
@@ -616,6 +675,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedString_; }
}
+ /// Field number for the "repeated_bytes" field.
public const int RepeatedBytesFieldNumber = 45;
private static readonly pb::FieldCodec _repeated_repeatedBytes_codec
= pb::FieldCodec.ForBytes(362);
@@ -624,6 +684,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedBytes_; }
}
+ /// Field number for the "repeated_nested_message" field.
public const int RepeatedNestedMessageFieldNumber = 48;
private static readonly pb::FieldCodec _repeated_repeatedNestedMessage_codec
= pb::FieldCodec.ForMessage(386, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage.Parser);
@@ -632,6 +693,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedNestedMessage_; }
}
+ /// Field number for the "repeated_foreign_message" field.
public const int RepeatedForeignMessageFieldNumber = 49;
private static readonly pb::FieldCodec _repeated_repeatedForeignMessage_codec
= pb::FieldCodec.ForMessage(394, global::Google.Protobuf.TestProtos.ForeignMessage.Parser);
@@ -640,6 +702,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedForeignMessage_; }
}
+ /// Field number for the "repeated_import_message" field.
public const int RepeatedImportMessageFieldNumber = 50;
private static readonly pb::FieldCodec _repeated_repeatedImportMessage_codec
= pb::FieldCodec.ForMessage(402, global::Google.Protobuf.TestProtos.ImportMessage.Parser);
@@ -648,6 +711,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedImportMessage_; }
}
+ /// Field number for the "repeated_nested_enum" field.
public const int RepeatedNestedEnumFieldNumber = 51;
private static readonly pb::FieldCodec _repeated_repeatedNestedEnum_codec
= pb::FieldCodec.ForEnum(410, x => (int) x, x => (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) x);
@@ -656,6 +720,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedNestedEnum_; }
}
+ /// Field number for the "repeated_foreign_enum" field.
public const int RepeatedForeignEnumFieldNumber = 52;
private static readonly pb::FieldCodec _repeated_repeatedForeignEnum_codec
= pb::FieldCodec.ForEnum(418, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);
@@ -664,6 +729,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedForeignEnum_; }
}
+ /// Field number for the "repeated_import_enum" field.
public const int RepeatedImportEnumFieldNumber = 53;
private static readonly pb::FieldCodec _repeated_repeatedImportEnum_codec
= pb::FieldCodec.ForEnum(426, x => (int) x, x => (global::Google.Protobuf.TestProtos.ImportEnum) x);
@@ -672,14 +738,19 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedImportEnum_; }
}
+ /// Field number for the "repeated_public_import_message" field.
public const int RepeatedPublicImportMessageFieldNumber = 54;
private static readonly pb::FieldCodec _repeated_repeatedPublicImportMessage_codec
= pb::FieldCodec.ForMessage(434, global::Google.Protobuf.TestProtos.PublicImportMessage.Parser);
private readonly pbc::RepeatedField repeatedPublicImportMessage_ = new pbc::RepeatedField();
+ ///
+ /// Defined in unittest_import_public.proto
+ ///
public pbc::RepeatedField RepeatedPublicImportMessage {
get { return repeatedPublicImportMessage_; }
}
+ /// Field number for the "oneof_uint32" field.
public const int OneofUint32FieldNumber = 111;
public uint OneofUint32 {
get { return oneofFieldCase_ == OneofFieldOneofCase.OneofUint32 ? (uint) oneofField_ : 0; }
@@ -689,6 +760,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "oneof_nested_message" field.
public const int OneofNestedMessageFieldNumber = 112;
public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage OneofNestedMessage {
get { return oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage ? (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage) oneofField_ : null; }
@@ -698,6 +770,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "oneof_string" field.
public const int OneofStringFieldNumber = 113;
public string OneofString {
get { return oneofFieldCase_ == OneofFieldOneofCase.OneofString ? (string) oneofField_ : ""; }
@@ -707,6 +780,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "oneof_bytes" field.
public const int OneofBytesFieldNumber = 114;
public pb::ByteString OneofBytes {
get { return oneofFieldCase_ == OneofFieldOneofCase.OneofBytes ? (pb::ByteString) oneofField_ : pb::ByteString.Empty; }
@@ -1454,6 +1528,9 @@ namespace Google.Protobuf.TestProtos {
FOO = 1,
BAR = 2,
BAZ = 3,
+ ///
+ /// Intentionally negative.
+ ///
NEG = -1,
}
@@ -1484,8 +1561,14 @@ namespace Google.Protobuf.TestProtos {
return new NestedMessage(this);
}
+ /// Field number for the "bb" field.
public const int BbFieldNumber = 1;
private int bb_;
+ ///
+ /// The field name "b" fails to compile in proto1 because it conflicts with
+ /// a local variable named "b" in one of the generated methods. Doh.
+ /// This file needs to compile in proto1 to test backwards-compatibility.
+ ///
public int Bb {
get { return bb_; }
set {
@@ -1564,6 +1647,9 @@ namespace Google.Protobuf.TestProtos {
}
+ ///
+ /// This proto includes a recusively nested message.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class NestedTestAllTypes : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new NestedTestAllTypes());
@@ -1593,6 +1679,7 @@ namespace Google.Protobuf.TestProtos {
return new NestedTestAllTypes(this);
}
+ /// Field number for the "child" field.
public const int ChildFieldNumber = 1;
private global::Google.Protobuf.TestProtos.NestedTestAllTypes child_;
public global::Google.Protobuf.TestProtos.NestedTestAllTypes Child {
@@ -1602,6 +1689,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "payload" field.
public const int PayloadFieldNumber = 2;
private global::Google.Protobuf.TestProtos.TestAllTypes payload_;
public global::Google.Protobuf.TestProtos.TestAllTypes Payload {
@@ -1611,6 +1699,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "repeated_child" field.
public const int RepeatedChildFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_repeatedChild_codec
= pb::FieldCodec.ForMessage(26, global::Google.Protobuf.TestProtos.NestedTestAllTypes.Parser);
@@ -1749,6 +1838,7 @@ namespace Google.Protobuf.TestProtos {
return new TestDeprecatedFields(this);
}
+ /// Field number for the "deprecated_int32" field.
public const int DeprecatedInt32FieldNumber = 1;
private int deprecatedInt32_;
[global::System.ObsoleteAttribute()]
@@ -1825,6 +1915,10 @@ namespace Google.Protobuf.TestProtos {
}
+ ///
+ /// Define these after TestAllTypes to make sure the compiler can handle
+ /// that.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class ForeignMessage : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ForeignMessage());
@@ -1852,6 +1946,7 @@ namespace Google.Protobuf.TestProtos {
return new ForeignMessage(this);
}
+ /// Field number for the "c" field.
public const int CFieldNumber = 1;
private int c_;
public int C {
@@ -2003,6 +2098,9 @@ namespace Google.Protobuf.TestProtos {
}
+ ///
+ /// Test that we can use NestedMessage from outside TestAllTypes.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class TestForeignNested : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestForeignNested());
@@ -2030,6 +2128,7 @@ namespace Google.Protobuf.TestProtos {
return new TestForeignNested(this);
}
+ /// Field number for the "foreign_nested" field.
public const int ForeignNestedFieldNumber = 1;
private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage foreignNested_;
public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage ForeignNested {
@@ -2111,6 +2210,9 @@ namespace Google.Protobuf.TestProtos {
}
+ ///
+ /// Test that really large tag numbers don't break anything.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class TestReallyLargeTagNumber : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestReallyLargeTagNumber());
@@ -2139,8 +2241,13 @@ namespace Google.Protobuf.TestProtos {
return new TestReallyLargeTagNumber(this);
}
+ /// Field number for the "a" field.
public const int AFieldNumber = 1;
private int a_;
+ ///
+ /// The largest possible tag number is 2^28 - 1, since the wire format uses
+ /// three bits to communicate wire type.
+ ///
public int A {
get { return a_; }
set {
@@ -2148,6 +2255,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "bb" field.
public const int BbFieldNumber = 268435455;
private int bb_;
public int Bb {
@@ -2267,6 +2375,7 @@ namespace Google.Protobuf.TestProtos {
return new TestRecursiveMessage(this);
}
+ /// Field number for the "a" field.
public const int AFieldNumber = 1;
private global::Google.Protobuf.TestProtos.TestRecursiveMessage a_;
public global::Google.Protobuf.TestProtos.TestRecursiveMessage A {
@@ -2276,6 +2385,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "i" field.
public const int IFieldNumber = 2;
private int i_;
public int I {
@@ -2373,6 +2483,9 @@ namespace Google.Protobuf.TestProtos {
}
+ ///
+ /// Test that mutual recursion works.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class TestMutualRecursionA : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestMutualRecursionA());
@@ -2400,6 +2513,7 @@ namespace Google.Protobuf.TestProtos {
return new TestMutualRecursionA(this);
}
+ /// Field number for the "bb" field.
public const int BbFieldNumber = 1;
private global::Google.Protobuf.TestProtos.TestMutualRecursionB bb_;
public global::Google.Protobuf.TestProtos.TestMutualRecursionB Bb {
@@ -2509,6 +2623,7 @@ namespace Google.Protobuf.TestProtos {
return new TestMutualRecursionB(this);
}
+ /// Field number for the "a" field.
public const int AFieldNumber = 1;
private global::Google.Protobuf.TestProtos.TestMutualRecursionA a_;
public global::Google.Protobuf.TestProtos.TestMutualRecursionA A {
@@ -2518,6 +2633,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "optional_int32" field.
public const int OptionalInt32FieldNumber = 2;
private int optionalInt32_;
public int OptionalInt32 {
@@ -2615,6 +2731,10 @@ namespace Google.Protobuf.TestProtos {
}
+ ///
+ /// Test message with CamelCase field names. This violates Protocol Buffer
+ /// standard style.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class TestCamelCaseFieldNames : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestCamelCaseFieldNames());
@@ -2649,6 +2769,7 @@ namespace Google.Protobuf.TestProtos {
return new TestCamelCaseFieldNames(this);
}
+ /// Field number for the "PrimitiveField" field.
public const int PrimitiveFieldFieldNumber = 1;
private int primitiveField_;
public int PrimitiveField {
@@ -2658,6 +2779,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "StringField" field.
public const int StringFieldFieldNumber = 2;
private string stringField_ = "";
public string StringField {
@@ -2667,6 +2789,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "EnumField" field.
public const int EnumFieldFieldNumber = 3;
private global::Google.Protobuf.TestProtos.ForeignEnum enumField_ = global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED;
public global::Google.Protobuf.TestProtos.ForeignEnum EnumField {
@@ -2676,6 +2799,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "MessageField" field.
public const int MessageFieldFieldNumber = 4;
private global::Google.Protobuf.TestProtos.ForeignMessage messageField_;
public global::Google.Protobuf.TestProtos.ForeignMessage MessageField {
@@ -2685,6 +2809,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "RepeatedPrimitiveField" field.
public const int RepeatedPrimitiveFieldFieldNumber = 7;
private static readonly pb::FieldCodec _repeated_repeatedPrimitiveField_codec
= pb::FieldCodec.ForInt32(58);
@@ -2693,6 +2818,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedPrimitiveField_; }
}
+ /// Field number for the "RepeatedStringField" field.
public const int RepeatedStringFieldFieldNumber = 8;
private static readonly pb::FieldCodec _repeated_repeatedStringField_codec
= pb::FieldCodec.ForString(66);
@@ -2701,6 +2827,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedStringField_; }
}
+ /// Field number for the "RepeatedEnumField" field.
public const int RepeatedEnumFieldFieldNumber = 9;
private static readonly pb::FieldCodec _repeated_repeatedEnumField_codec
= pb::FieldCodec.ForEnum(74, x => (int) x, x => (global::Google.Protobuf.TestProtos.ForeignEnum) x);
@@ -2709,6 +2836,7 @@ namespace Google.Protobuf.TestProtos {
get { return repeatedEnumField_; }
}
+ /// Field number for the "RepeatedMessageField" field.
public const int RepeatedMessageFieldFieldNumber = 10;
private static readonly pb::FieldCodec _repeated_repeatedMessageField_codec
= pb::FieldCodec.ForMessage(82, global::Google.Protobuf.TestProtos.ForeignMessage.Parser);
@@ -2875,6 +3003,10 @@ namespace Google.Protobuf.TestProtos {
}
+ ///
+ /// We list fields out of order, to ensure that we're using field number and not
+ /// field index to determine serialization order.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class TestFieldOrderings : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestFieldOrderings());
@@ -2905,6 +3037,7 @@ namespace Google.Protobuf.TestProtos {
return new TestFieldOrderings(this);
}
+ /// Field number for the "my_string" field.
public const int MyStringFieldNumber = 11;
private string myString_ = "";
public string MyString {
@@ -2914,6 +3047,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "my_int" field.
public const int MyIntFieldNumber = 1;
private long myInt_;
public long MyInt {
@@ -2923,6 +3057,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "my_float" field.
public const int MyFloatFieldNumber = 101;
private float myFloat_;
public float MyFloat {
@@ -2932,6 +3067,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "single_nested_message" field.
public const int SingleNestedMessageFieldNumber = 200;
private global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage singleNestedMessage_;
public global::Google.Protobuf.TestProtos.TestFieldOrderings.Types.NestedMessage SingleNestedMessage {
@@ -3091,6 +3227,7 @@ namespace Google.Protobuf.TestProtos {
return new NestedMessage(this);
}
+ /// Field number for the "oo" field.
public const int OoFieldNumber = 2;
private long oo_;
public long Oo {
@@ -3100,8 +3237,14 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "bb" field.
public const int BbFieldNumber = 1;
private int bb_;
+ ///
+ /// The field name "b" fails to compile in proto1 because it conflicts with
+ /// a local variable named "b" in one of the generated methods. Doh.
+ /// This file needs to compile in proto1 to test backwards-compatibility.
+ ///
public int Bb {
get { return bb_; }
set {
@@ -3223,6 +3366,7 @@ namespace Google.Protobuf.TestProtos {
return new SparseEnumMessage(this);
}
+ /// Field number for the "sparse_enum" field.
public const int SparseEnumFieldNumber = 1;
private global::Google.Protobuf.TestProtos.TestSparseEnum sparseEnum_ = global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED;
public global::Google.Protobuf.TestProtos.TestSparseEnum SparseEnum {
@@ -3298,6 +3442,9 @@ namespace Google.Protobuf.TestProtos {
}
+ ///
+ /// Test String and Bytes: string is for valid UTF-8 strings
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class OneString : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new OneString());
@@ -3325,6 +3472,7 @@ namespace Google.Protobuf.TestProtos {
return new OneString(this);
}
+ /// Field number for the "data" field.
public const int DataFieldNumber = 1;
private string data_ = "";
public string Data {
@@ -3427,6 +3575,7 @@ namespace Google.Protobuf.TestProtos {
return new MoreString(this);
}
+ /// Field number for the "data" field.
public const int DataFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_data_codec
= pb::FieldCodec.ForString(10);
@@ -3521,6 +3670,7 @@ namespace Google.Protobuf.TestProtos {
return new OneBytes(this);
}
+ /// Field number for the "data" field.
public const int DataFieldNumber = 1;
private pb::ByteString data_ = pb::ByteString.Empty;
public pb::ByteString Data {
@@ -3623,6 +3773,7 @@ namespace Google.Protobuf.TestProtos {
return new MoreBytes(this);
}
+ /// Field number for the "data" field.
public const int DataFieldNumber = 1;
private pb::ByteString data_ = pb::ByteString.Empty;
public pb::ByteString Data {
@@ -3698,6 +3849,9 @@ namespace Google.Protobuf.TestProtos {
}
+ ///
+ /// Test int32, uint32, int64, uint64, and bool are all compatible
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class Int32Message : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Int32Message());
@@ -3725,6 +3879,7 @@ namespace Google.Protobuf.TestProtos {
return new Int32Message(this);
}
+ /// Field number for the "data" field.
public const int DataFieldNumber = 1;
private int data_;
public int Data {
@@ -3827,6 +3982,7 @@ namespace Google.Protobuf.TestProtos {
return new Uint32Message(this);
}
+ /// Field number for the "data" field.
public const int DataFieldNumber = 1;
private uint data_;
public uint Data {
@@ -3929,6 +4085,7 @@ namespace Google.Protobuf.TestProtos {
return new Int64Message(this);
}
+ /// Field number for the "data" field.
public const int DataFieldNumber = 1;
private long data_;
public long Data {
@@ -4031,6 +4188,7 @@ namespace Google.Protobuf.TestProtos {
return new Uint64Message(this);
}
+ /// Field number for the "data" field.
public const int DataFieldNumber = 1;
private ulong data_;
public ulong Data {
@@ -4133,6 +4291,7 @@ namespace Google.Protobuf.TestProtos {
return new BoolMessage(this);
}
+ /// Field number for the "data" field.
public const int DataFieldNumber = 1;
private bool data_;
public bool Data {
@@ -4208,6 +4367,9 @@ namespace Google.Protobuf.TestProtos {
}
+ ///
+ /// Test oneofs.
+ ///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class TestOneof : pb::IMessage {
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new TestOneof());
@@ -4246,6 +4408,7 @@ namespace Google.Protobuf.TestProtos {
return new TestOneof(this);
}
+ /// Field number for the "foo_int" field.
public const int FooIntFieldNumber = 1;
public int FooInt {
get { return fooCase_ == FooOneofCase.FooInt ? (int) foo_ : 0; }
@@ -4255,6 +4418,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "foo_string" field.
public const int FooStringFieldNumber = 2;
public string FooString {
get { return fooCase_ == FooOneofCase.FooString ? (string) foo_ : ""; }
@@ -4264,6 +4428,7 @@ namespace Google.Protobuf.TestProtos {
}
}
+ /// Field number for the "foo_message" field.
public const int FooMessageFieldNumber = 3;
public global::Google.Protobuf.TestProtos.TestAllTypes FooMessage {
get { return fooCase_ == FooOneofCase.FooMessage ? (global::Google.Protobuf.TestProtos.TestAllTypes) foo_ : null; }
@@ -4437,6 +4602,7 @@ namespace Google.Protobuf.TestProtos {
return new TestPackedTypes(this);
}
+ /// Field number for the "packed_int32" field.
public const int PackedInt32FieldNumber = 90;
private static readonly pb::FieldCodec _repeated_packedInt32_codec
= pb::FieldCodec.ForInt32(722);
@@ -4445,6 +4611,7 @@ namespace Google.Protobuf.TestProtos {
get { return packedInt32_; }
}
+ /// Field number for the "packed_int64" field.
public const int PackedInt64FieldNumber = 91;
private static readonly pb::FieldCodec _repeated_packedInt64_codec
= pb::FieldCodec.ForInt64(730);
@@ -4453,6 +4620,7 @@ namespace Google.Protobuf.TestProtos {
get { return packedInt64_; }
}
+ /// Field number for the "packed_uint32" field.
public const int PackedUint32FieldNumber = 92;
private static readonly pb::FieldCodec _repeated_packedUint32_codec
= pb::FieldCodec.ForUInt32(738);
@@ -4461,6 +4629,7 @@ namespace Google.Protobuf.TestProtos {
get { return packedUint32_; }
}
+ /// Field number for the "packed_uint64" field.
public const int PackedUint64FieldNumber = 93;
private static readonly pb::FieldCodec _repeated_packedUint64_codec
= pb::FieldCodec.ForUInt64(746);
@@ -4469,6 +4638,7 @@ namespace Google.Protobuf.TestProtos {
get { return packedUint64_; }
}
+ /// Field number for the "packed_sint32" field.
public const int PackedSint32FieldNumber = 94;
private static readonly pb::FieldCodec _repeated_packedSint32_codec
= pb::FieldCodec.ForSInt32(754);
@@ -4477,6 +4647,7 @@ namespace Google.Protobuf.TestProtos {
get { return packedSint32_; }
}
+ ///