Commit e6fc9778 authored by Jon Skeet's avatar Jon Skeet

Generated code changes for previous commit.

parent c1283310
......@@ -155,7 +155,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Id != 0) hash ^= Id.GetHashCode();
if (Email.Length != 0) hash ^= Email.GetHashCode();
......@@ -330,7 +330,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Number.Length != 0) hash ^= Number.GetHashCode();
if (Type != global::Google.ProtocolBuffers.Examples.AddressBook.Person.Types.PhoneType.HOME) hash ^= Type.GetHashCode();
return hash;
......@@ -458,7 +458,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
hash ^= person_.GetHashCode();
return hash;
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -120,7 +120,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (D != 0) hash ^= D.GetHashCode();
return hash;
}
......
......@@ -105,7 +105,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (E != 0) hash ^= E.GetHashCode();
return hash;
}
......
......@@ -168,7 +168,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Value != global::UnitTest.Issues.TestProtos.NegativeEnum.NEGATIVE_ENUM_ZERO) hash ^= Value.GetHashCode();
hash ^= values_.GetHashCode();
hash ^= packedValues_.GetHashCode();
......@@ -304,7 +304,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
return hash;
}
......@@ -458,7 +458,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (PrimitiveValue != 0) hash ^= PrimitiveValue.GetHashCode();
hash ^= primitiveArray_.GetHashCode();
if (messageValue_ != null) hash ^= MessageValue.GetHashCode();
......@@ -658,7 +658,7 @@ namespace UnitTest.Issues.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Item != 0) hash ^= Item.GetHashCode();
return hash;
}
......
......@@ -17,12 +17,6 @@ namespace Google.Protobuf.TestProtos {
internal static pb::FieldAccess.FieldAccessorTable<global::Google.Protobuf.TestProtos.TestAllTypes> internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable;
internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor;
internal static pb::FieldAccess.FieldAccessorTable<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable;
internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_MapStringToNestedMessageEntry__Descriptor;
internal static pb::FieldAccess.FieldAccessorTable<global::Google.Protobuf.TestProtos.TestAllTypes.Types.MapStringToNestedMessageEntry> internal__static_protobuf_unittest_TestAllTypes_MapStringToNestedMessageEntry__FieldAccessorTable;
internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_MapInt32ToBytesEntry__Descriptor;
internal static pb::FieldAccess.FieldAccessorTable<global::Google.Protobuf.TestProtos.TestAllTypes.Types.MapInt32ToBytesEntry> internal__static_protobuf_unittest_TestAllTypes_MapInt32ToBytesEntry__FieldAccessorTable;
internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestAllTypes_MapBoolToEnumEntry__Descriptor;
internal static pb::FieldAccess.FieldAccessorTable<global::Google.Protobuf.TestProtos.TestAllTypes.Types.MapBoolToEnumEntry> internal__static_protobuf_unittest_TestAllTypes_MapBoolToEnumEntry__FieldAccessorTable;
internal static pbd::MessageDescriptor internal__static_protobuf_unittest_NestedTestAllTypes__Descriptor;
internal static pb::FieldAccess.FieldAccessorTable<global::Google.Protobuf.TestProtos.NestedTestAllTypes> internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable;
internal static pbd::MessageDescriptor internal__static_protobuf_unittest_TestDeprecatedFields__Descriptor;
......@@ -101,7 +95,7 @@ namespace Google.Protobuf.TestProtos {
string.Concat(
"CiVnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfcHJvdG8zLnByb3RvEhFwcm90",
"b2J1Zl91bml0dGVzdBosZ29vZ2xlL3Byb3RvYnVmL3VuaXR0ZXN0X2ltcG9y",
"dF9wcm90bzMucHJvdG8ighQKDFRlc3RBbGxUeXBlcxIUCgxzaW5nbGVfaW50",
"dF9wcm90bzMucHJvdG8i8A8KDFRlc3RBbGxUeXBlcxIUCgxzaW5nbGVfaW50",
"MzIYASABKAUSFAoMc2luZ2xlX2ludDY0GAIgASgDEhUKDXNpbmdsZV91aW50",
"MzIYAyABKA0SFQoNc2luZ2xlX3VpbnQ2NBgEIAEoBBIVCg1zaW5nbGVfc2lu",
"dDMyGAUgASgREhUKDXNpbmdsZV9zaW50NjQYBiABKBISFgoOc2luZ2xlX2Zp",
......@@ -143,123 +137,99 @@ namespace Google.Protobuf.TestProtos {
"bXBvcnRNZXNzYWdlEhYKDG9uZW9mX3VpbnQzMhhvIAEoDUgAEk0KFG9uZW9m",
"X25lc3RlZF9tZXNzYWdlGHAgASgLMi0ucHJvdG9idWZfdW5pdHRlc3QuVGVz",
"dEFsbFR5cGVzLk5lc3RlZE1lc3NhZ2VIABIWCgxvbmVvZl9zdHJpbmcYcSAB",
"KAlIABIVCgtvbmVvZl9ieXRlcxhyIAEoDEgAEmQKHG1hcF9zdHJpbmdfdG9f",
"bmVzdGVkX21lc3NhZ2UYyAEgAygLMj0ucHJvdG9idWZfdW5pdHRlc3QuVGVz",
"dEFsbFR5cGVzLk1hcFN0cmluZ1RvTmVzdGVkTWVzc2FnZUVudHJ5ElEKEm1h",
"cF9pbnQzMl90b19ieXRlcxjJASADKAsyNC5wcm90b2J1Zl91bml0dGVzdC5U",
"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dLnByb3RvYnVmX3VuaXR0ZXN0LkZvb1Jl",
"cXVlc3QaHi5wcm90b2J1Zl91bml0dGVzdC5Gb29SZXNwb25zZRJECgNCYXIS",
"HS5wcm90b2J1Zl91bml0dGVzdC5CYXJSZXF1ZXN0Gh4ucHJvdG9idWZfdW5p",
"dHRlc3QuQmFyUmVzcG9uc2VCOkINVW5pdHRlc3RQcm90b0gBgAEBiAEBkAEB",
"+AEBqgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw=="));
pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
descriptor = root;
internal__static_protobuf_unittest_TestAllTypes__Descriptor = Descriptor.MessageTypes[0];
internal__static_protobuf_unittest_TestAllTypes__FieldAccessorTable =
new pb::FieldAccess.FieldAccessorTable<global::Google.Protobuf.TestProtos.TestAllTypes>(internal__static_protobuf_unittest_TestAllTypes__Descriptor,
new string[] { "SingleInt32", "SingleInt64", "SingleUint32", "SingleUint64", "SingleSint32", "SingleSint64", "SingleFixed32", "SingleFixed64", "SingleSfixed32", "SingleSfixed64", "SingleFloat", "SingleDouble", "SingleBool", "SingleString", "SingleBytes", "SingleNestedMessage", "SingleForeignMessage", "SingleImportMessage", "SingleNestedEnum", "SingleForeignEnum", "SingleImportEnum", "SinglePublicImportMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedPublicImportMessage", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", "MapStringToNestedMessage", "MapInt32ToBytes", "MapBoolToEnum", "OneofField", });
new string[] { "SingleInt32", "SingleInt64", "SingleUint32", "SingleUint64", "SingleSint32", "SingleSint64", "SingleFixed32", "SingleFixed64", "SingleSfixed32", "SingleSfixed64", "SingleFloat", "SingleDouble", "SingleBool", "SingleString", "SingleBytes", "SingleNestedMessage", "SingleForeignMessage", "SingleImportMessage", "SingleNestedEnum", "SingleForeignEnum", "SingleImportEnum", "SinglePublicImportMessage", "RepeatedInt32", "RepeatedInt64", "RepeatedUint32", "RepeatedUint64", "RepeatedSint32", "RepeatedSint64", "RepeatedFixed32", "RepeatedFixed64", "RepeatedSfixed32", "RepeatedSfixed64", "RepeatedFloat", "RepeatedDouble", "RepeatedBool", "RepeatedString", "RepeatedBytes", "RepeatedNestedMessage", "RepeatedForeignMessage", "RepeatedImportMessage", "RepeatedNestedEnum", "RepeatedForeignEnum", "RepeatedImportEnum", "RepeatedPublicImportMessage", "OneofUint32", "OneofNestedMessage", "OneofString", "OneofBytes", "OneofField", });
internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[0];
internal__static_protobuf_unittest_TestAllTypes_NestedMessage__FieldAccessorTable =
new pb::FieldAccess.FieldAccessorTable<global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage>(internal__static_protobuf_unittest_TestAllTypes_NestedMessage__Descriptor,
new string[] { "Bb", });
internal__static_protobuf_unittest_TestAllTypes_MapStringToNestedMessageEntry__Descriptor = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[1];
internal__static_protobuf_unittest_TestAllTypes_MapStringToNestedMessageEntry__FieldAccessorTable =
new pb::FieldAccess.FieldAccessorTable<global::Google.Protobuf.TestProtos.TestAllTypes.Types.MapStringToNestedMessageEntry>(internal__static_protobuf_unittest_TestAllTypes_MapStringToNestedMessageEntry__Descriptor,
new string[] { "Key", "Value", });
internal__static_protobuf_unittest_TestAllTypes_MapInt32ToBytesEntry__Descriptor = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[2];
internal__static_protobuf_unittest_TestAllTypes_MapInt32ToBytesEntry__FieldAccessorTable =
new pb::FieldAccess.FieldAccessorTable<global::Google.Protobuf.TestProtos.TestAllTypes.Types.MapInt32ToBytesEntry>(internal__static_protobuf_unittest_TestAllTypes_MapInt32ToBytesEntry__Descriptor,
new string[] { "Key", "Value", });
internal__static_protobuf_unittest_TestAllTypes_MapBoolToEnumEntry__Descriptor = internal__static_protobuf_unittest_TestAllTypes__Descriptor.NestedTypes[3];
internal__static_protobuf_unittest_TestAllTypes_MapBoolToEnumEntry__FieldAccessorTable =
new pb::FieldAccess.FieldAccessorTable<global::Google.Protobuf.TestProtos.TestAllTypes.Types.MapBoolToEnumEntry>(internal__static_protobuf_unittest_TestAllTypes_MapBoolToEnumEntry__Descriptor,
new string[] { "Key", "Value", });
internal__static_protobuf_unittest_NestedTestAllTypes__Descriptor = Descriptor.MessageTypes[1];
internal__static_protobuf_unittest_NestedTestAllTypes__FieldAccessorTable =
new pb::FieldAccess.FieldAccessorTable<global::Google.Protobuf.TestProtos.NestedTestAllTypes>(internal__static_protobuf_unittest_NestedTestAllTypes__Descriptor,
......@@ -436,8 +406,8 @@ namespace Google.Protobuf.TestProtos {
private static readonly pb::MessageParser<TestAllTypes> _parser = new pb::MessageParser<TestAllTypes>(() => new TestAllTypes());
public static pb::MessageParser<TestAllTypes> Parser { get { return _parser; } }
private static readonly string[] _fieldNames = new string[] { "map_bool_to_enum", "map_int32_to_bytes", "map_string_to_nested_message", "oneof_bytes", "oneof_nested_message", "oneof_string", "oneof_uint32", "repeated_bool", "repeated_bytes", "repeated_double", "repeated_fixed32", "repeated_fixed64", "repeated_float", "repeated_foreign_enum", "repeated_foreign_message", "repeated_import_enum", "repeated_import_message", "repeated_int32", "repeated_int64", "repeated_nested_enum", "repeated_nested_message", "repeated_public_import_message", "repeated_sfixed32", "repeated_sfixed64", "repeated_sint32", "repeated_sint64", "repeated_string", "repeated_uint32", "repeated_uint64", "single_bool", "single_bytes", "single_double", "single_fixed32", "single_fixed64", "single_float", "single_foreign_enum", "single_foreign_message", "single_import_enum", "single_import_message", "single_int32", "single_int64", "single_nested_enum", "single_nested_message", "single_public_import_message", "single_sfixed32", "single_sfixed64", "single_sint32", "single_sint64", "single_string", "single_uint32", "single_uint64" };
private static readonly uint[] _fieldTags = new uint[] { 1618, 1610, 1602, 914, 898, 906, 888, 346, 362, 338, 298, 306, 330, 418, 394, 426, 402, 250, 258, 410, 386, 434, 314, 322, 282, 290, 354, 266, 274, 104, 122, 97, 61, 65, 93, 176, 154, 184, 162, 8, 16, 168, 146, 210, 77, 81, 40, 48, 114, 24, 32 };
private static readonly string[] _fieldNames = new string[] { "oneof_bytes", "oneof_nested_message", "oneof_string", "oneof_uint32", "repeated_bool", "repeated_bytes", "repeated_double", "repeated_fixed32", "repeated_fixed64", "repeated_float", "repeated_foreign_enum", "repeated_foreign_message", "repeated_import_enum", "repeated_import_message", "repeated_int32", "repeated_int64", "repeated_nested_enum", "repeated_nested_message", "repeated_public_import_message", "repeated_sfixed32", "repeated_sfixed64", "repeated_sint32", "repeated_sint64", "repeated_string", "repeated_uint32", "repeated_uint64", "single_bool", "single_bytes", "single_double", "single_fixed32", "single_fixed64", "single_float", "single_foreign_enum", "single_foreign_message", "single_import_enum", "single_import_message", "single_int32", "single_int64", "single_nested_enum", "single_nested_message", "single_public_import_message", "single_sfixed32", "single_sfixed64", "single_sint32", "single_sint64", "single_string", "single_uint32", "single_uint64" };
private static readonly uint[] _fieldTags = new uint[] { 914, 898, 906, 888, 346, 362, 338, 298, 306, 330, 418, 394, 426, 402, 250, 258, 410, 386, 434, 314, 322, 282, 290, 354, 266, 274, 104, 122, 97, 61, 65, 93, 176, 154, 184, 162, 8, 16, 168, 146, 210, 77, 81, 40, 48, 114, 24, 32 };
public static pbd::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestAllTypes__Descriptor; }
}
......@@ -496,9 +466,6 @@ namespace Google.Protobuf.TestProtos {
repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
repeatedImportEnum_ = other.repeatedImportEnum_.Clone();
repeatedPublicImportMessage_ = other.repeatedPublicImportMessage_.Clone();
mapStringToNestedMessage_ = other.mapStringToNestedMessage_.Clone();
mapInt32ToBytes_ = other.mapInt32ToBytes_.Clone();
mapBoolToEnum_ = other.mapBoolToEnum_.Clone();
switch (other.OneofFieldCase) {
case OneofFieldOneofCase.OneofUint32:
OneofUint32 = other.OneofUint32;
......@@ -551,9 +518,6 @@ namespace Google.Protobuf.TestProtos {
repeatedForeignEnum_.Freeze();
repeatedImportEnum_.Freeze();
repeatedPublicImportMessage_.Freeze();
mapStringToNestedMessage_.Freeze();
mapInt32ToBytes_.Freeze();
mapBoolToEnum_.Freeze();
if (oneofField_ is IFreezable) ((IFreezable) oneofField_).Freeze();
}
......@@ -949,30 +913,6 @@ namespace Google.Protobuf.TestProtos {
}
}
public const int MapStringToNestedMessageFieldNumber = 200;
private static readonly pbc::MapField<string, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage>.Codec _map_mapStringToNestedMessage_codec
= new pbc::MapField<string, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage>.Codec(pb::FieldCodec.ForString(10), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage.Parser), 1602);
private readonly pbc::MapField<string, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> mapStringToNestedMessage_ = new pbc::MapField<string, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage>();
public pbc::MapField<string, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage> MapStringToNestedMessage {
get { return mapStringToNestedMessage_; }
}
public const int MapInt32ToBytesFieldNumber = 201;
private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_mapInt32ToBytes_codec
= new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForBytes(18), 1610);
private readonly pbc::MapField<int, pb::ByteString> mapInt32ToBytes_ = new pbc::MapField<int, pb::ByteString>();
public pbc::MapField<int, pb::ByteString> MapInt32ToBytes {
get { return mapInt32ToBytes_; }
}
public const int MapBoolToEnumFieldNumber = 202;
private static readonly pbc::MapField<bool, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum>.Codec _map_mapBoolToEnum_codec
= new pbc::MapField<bool, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum>.Codec(pb::FieldCodec.ForBool(8), pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) x), 1618);
private readonly pbc::MapField<bool, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> mapBoolToEnum_ = new pbc::MapField<bool, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum>();
public pbc::MapField<bool, global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum> MapBoolToEnum {
get { return mapBoolToEnum_; }
}
private object oneofField_;
public enum OneofFieldOneofCase {
None = 0,
......@@ -1051,14 +991,11 @@ namespace Google.Protobuf.TestProtos {
if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
if (OneofString != other.OneofString) return false;
if (OneofBytes != other.OneofBytes) return false;
if (!MapStringToNestedMessage.Equals(other.MapStringToNestedMessage)) return false;
if (!MapInt32ToBytes.Equals(other.MapInt32ToBytes)) return false;
if (!MapBoolToEnum.Equals(other.MapBoolToEnum)) return false;
return true;
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (SingleInt32 != 0) hash ^= SingleInt32.GetHashCode();
if (SingleInt64 != 0L) hash ^= SingleInt64.GetHashCode();
if (SingleUint32 != 0) hash ^= SingleUint32.GetHashCode();
......@@ -1107,9 +1044,6 @@ namespace Google.Protobuf.TestProtos {
if (oneofFieldCase_ == OneofFieldOneofCase.OneofNestedMessage) hash ^= OneofNestedMessage.GetHashCode();
if (oneofFieldCase_ == OneofFieldOneofCase.OneofString) hash ^= OneofString.GetHashCode();
if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) hash ^= OneofBytes.GetHashCode();
hash ^= MapStringToNestedMessage.GetHashCode();
hash ^= MapInt32ToBytes.GetHashCode();
hash ^= MapBoolToEnum.GetHashCode();
return hash;
}
......@@ -1300,9 +1234,6 @@ namespace Google.Protobuf.TestProtos {
output.WriteRawTag(146, 7);
output.WriteBytes(OneofBytes);
}
mapStringToNestedMessage_.WriteTo(output, _map_mapStringToNestedMessage_codec);
mapInt32ToBytes_.WriteTo(output, _map_mapInt32ToBytes_codec);
mapBoolToEnum_.WriteTo(output, _map_mapBoolToEnum_codec);
}
public int CalculateSize() {
......@@ -1539,9 +1470,6 @@ namespace Google.Protobuf.TestProtos {
if (oneofFieldCase_ == OneofFieldOneofCase.OneofBytes) {
size += 2 + pb::CodedOutputStream.ComputeBytesSize(OneofBytes);
}
size += mapStringToNestedMessage_.CalculateSize(_map_mapStringToNestedMessage_codec);
size += mapInt32ToBytes_.CalculateSize(_map_mapInt32ToBytes_codec);
size += mapBoolToEnum_.CalculateSize(_map_mapBoolToEnum_codec);
return size;
}
......@@ -1649,9 +1577,6 @@ namespace Google.Protobuf.TestProtos {
repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
repeatedImportEnum_.Add(other.repeatedImportEnum_);
repeatedPublicImportMessage_.Add(other.repeatedPublicImportMessage_);
mapStringToNestedMessage_.Add(other.mapStringToNestedMessage_);
mapInt32ToBytes_.Add(other.mapInt32ToBytes_);
mapBoolToEnum_.Add(other.mapBoolToEnum_);
switch (other.OneofFieldCase) {
case OneofFieldOneofCase.OneofUint32:
OneofUint32 = other.OneofUint32;
......@@ -1905,18 +1830,6 @@ namespace Google.Protobuf.TestProtos {
OneofBytes = input.ReadBytes();
break;
}
case 1602: {
mapStringToNestedMessage_.AddEntriesFrom(input, _map_mapStringToNestedMessage_codec);
break;
}
case 1610: {
mapInt32ToBytes_.AddEntriesFrom(input, _map_mapInt32ToBytes_codec);
break;
}
case 1618: {
mapBoolToEnum_.AddEntriesFrom(input, _map_mapBoolToEnum_codec);
break;
}
}
}
}
......@@ -1993,7 +1906,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Bb != 0) hash ^= Bb.GetHashCode();
return hash;
}
......@@ -2043,427 +1956,6 @@ namespace Google.Protobuf.TestProtos {
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class MapStringToNestedMessageEntry : pb::IMessage<MapStringToNestedMessageEntry> {
private static readonly pb::MessageParser<MapStringToNestedMessageEntry> _parser = new pb::MessageParser<MapStringToNestedMessageEntry>(() => new MapStringToNestedMessageEntry());
public static pb::MessageParser<MapStringToNestedMessageEntry> Parser { get { return _parser; } }
private static readonly string[] _fieldNames = new string[] { "key", "value" };
private static readonly uint[] _fieldTags = new uint[] { 10, 18 };
public static pbd::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestAllTypes_MapStringToNestedMessageEntry__Descriptor; }
}
public pb::FieldAccess.FieldAccessorTable<MapStringToNestedMessageEntry> Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestAllTypes_MapStringToNestedMessageEntry__FieldAccessorTable; }
}
private bool _frozen = false;
public bool IsFrozen { get { return _frozen; } }
public MapStringToNestedMessageEntry() { }
public MapStringToNestedMessageEntry(MapStringToNestedMessageEntry other) {
key_ = other.key_;
Value = other.value_ != null ? other.Value.Clone() : null;
}
public MapStringToNestedMessageEntry Clone() {
return new MapStringToNestedMessageEntry(this);
}
public void Freeze() {
if (IsFrozen) {
return;
}
_frozen = true;
if (value_ != null) Value.Freeze();
}
public const int KeyFieldNumber = 1;
private string key_ = "";
public string Key {
get { return key_; }
set {
pb::Freezable.CheckMutable(this);
key_ = value ?? "";
}
}
public const int ValueFieldNumber = 2;
private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage value_;
public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage Value {
get { return value_; }
set {
pb::Freezable.CheckMutable(this);
value_ = value;
}
}
public override bool Equals(object other) {
return Equals(other as MapStringToNestedMessageEntry);
}
public bool Equals(MapStringToNestedMessageEntry other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Key != other.Key) return false;
if (!object.Equals(Value, other.Value)) return false;
return true;
}
public override int GetHashCode() {
int hash = 17;
if (Key.Length != 0) hash ^= Key.GetHashCode();
if (value_ != null) hash ^= Value.GetHashCode();
return hash;
}
public void WriteTo(pb::CodedOutputStream output) {
if (Key.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Key);
}
if (value_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Value);
}
}
public int CalculateSize() {
int size = 0;
if (Key.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Key);
}
if (value_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value);
}
return size;
}
public void MergeFrom(MapStringToNestedMessageEntry other) {
if (other == null) {
return;
}
if (other.Key.Length != 0) {
Key = other.Key;
}
if (other.value_ != null) {
if (value_ == null) {
value_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
}
Value.MergeFrom(other.Value);
}
}
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while (input.ReadTag(out tag)) {
switch(tag) {
case 0:
throw pb::InvalidProtocolBufferException.InvalidTag();
default:
if (pb::WireFormat.IsEndGroupTag(tag)) {
return;
}
break;
case 10: {
Key = input.ReadString();
break;
}
case 18: {
if (value_ == null) {
value_ = new global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedMessage();
}
input.ReadMessage(value_);
break;
}
}
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class MapInt32ToBytesEntry : pb::IMessage<MapInt32ToBytesEntry> {
private static readonly pb::MessageParser<MapInt32ToBytesEntry> _parser = new pb::MessageParser<MapInt32ToBytesEntry>(() => new MapInt32ToBytesEntry());
public static pb::MessageParser<MapInt32ToBytesEntry> Parser { get { return _parser; } }
private static readonly string[] _fieldNames = new string[] { "key", "value" };
private static readonly uint[] _fieldTags = new uint[] { 8, 18 };
public static pbd::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestAllTypes_MapInt32ToBytesEntry__Descriptor; }
}
public pb::FieldAccess.FieldAccessorTable<MapInt32ToBytesEntry> Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestAllTypes_MapInt32ToBytesEntry__FieldAccessorTable; }
}
private bool _frozen = false;
public bool IsFrozen { get { return _frozen; } }
public MapInt32ToBytesEntry() { }
public MapInt32ToBytesEntry(MapInt32ToBytesEntry other) {
key_ = other.key_;
value_ = other.value_;
}
public MapInt32ToBytesEntry Clone() {
return new MapInt32ToBytesEntry(this);
}
public void Freeze() {
if (IsFrozen) {
return;
}
_frozen = true;
}
public const int KeyFieldNumber = 1;
private int key_;
public int Key {
get { return key_; }
set {
pb::Freezable.CheckMutable(this);
key_ = value;
}
}
public const int ValueFieldNumber = 2;
private pb::ByteString value_ = pb::ByteString.Empty;
public pb::ByteString Value {
get { return value_; }
set {
pb::Freezable.CheckMutable(this);
value_ = value ?? pb::ByteString.Empty;
}
}
public override bool Equals(object other) {
return Equals(other as MapInt32ToBytesEntry);
}
public bool Equals(MapInt32ToBytesEntry other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Key != other.Key) return false;
if (Value != other.Value) return false;
return true;
}
public override int GetHashCode() {
int hash = 17;
if (Key != 0) hash ^= Key.GetHashCode();
if (Value.Length != 0) hash ^= Value.GetHashCode();
return hash;
}
public void WriteTo(pb::CodedOutputStream output) {
if (Key != 0) {
output.WriteRawTag(8);
output.WriteInt32(Key);
}
if (Value.Length != 0) {
output.WriteRawTag(18);
output.WriteBytes(Value);
}
}
public int CalculateSize() {
int size = 0;
if (Key != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Key);
}
if (Value.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Value);
}
return size;
}
public void MergeFrom(MapInt32ToBytesEntry other) {
if (other == null) {
return;
}
if (other.Key != 0) {
Key = other.Key;
}
if (other.Value.Length != 0) {
Value = other.Value;
}
}
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while (input.ReadTag(out tag)) {
switch(tag) {
case 0:
throw pb::InvalidProtocolBufferException.InvalidTag();
default:
if (pb::WireFormat.IsEndGroupTag(tag)) {
return;
}
break;
case 8: {
Key = input.ReadInt32();
break;
}
case 18: {
Value = input.ReadBytes();
break;
}
}
}
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public sealed partial class MapBoolToEnumEntry : pb::IMessage<MapBoolToEnumEntry> {
private static readonly pb::MessageParser<MapBoolToEnumEntry> _parser = new pb::MessageParser<MapBoolToEnumEntry>(() => new MapBoolToEnumEntry());
public static pb::MessageParser<MapBoolToEnumEntry> Parser { get { return _parser; } }
private static readonly string[] _fieldNames = new string[] { "key", "value" };
private static readonly uint[] _fieldTags = new uint[] { 8, 16 };
public static pbd::MessageDescriptor Descriptor {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestAllTypes_MapBoolToEnumEntry__Descriptor; }
}
public pb::FieldAccess.FieldAccessorTable<MapBoolToEnumEntry> Fields {
get { return global::Google.Protobuf.TestProtos.UnittestProto3.internal__static_protobuf_unittest_TestAllTypes_MapBoolToEnumEntry__FieldAccessorTable; }
}
private bool _frozen = false;
public bool IsFrozen { get { return _frozen; } }
public MapBoolToEnumEntry() { }
public MapBoolToEnumEntry(MapBoolToEnumEntry other) {
key_ = other.key_;
value_ = other.value_;
}
public MapBoolToEnumEntry Clone() {
return new MapBoolToEnumEntry(this);
}
public void Freeze() {
if (IsFrozen) {
return;
}
_frozen = true;
}
public const int KeyFieldNumber = 1;
private bool key_;
public bool Key {
get { return key_; }
set {
pb::Freezable.CheckMutable(this);
key_ = value;
}
}
public const int ValueFieldNumber = 2;
private global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum value_ = global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED;
public global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum Value {
get { return value_; }
set {
pb::Freezable.CheckMutable(this);
value_ = value;
}
}
public override bool Equals(object other) {
return Equals(other as MapBoolToEnumEntry);
}
public bool Equals(MapBoolToEnumEntry other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Key != other.Key) return false;
if (Value != other.Value) return false;
return true;
}
public override int GetHashCode() {
int hash = 17;
if (Key != false) hash ^= Key.GetHashCode();
if (Value != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED) hash ^= Value.GetHashCode();
return hash;
}
public void WriteTo(pb::CodedOutputStream output) {
if (Key != false) {
output.WriteRawTag(8);
output.WriteBool(Key);
}
if (Value != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED) {
output.WriteRawTag(16);
output.WriteEnum((int) Value);
}
}
public int CalculateSize() {
int size = 0;
if (Key != false) {
size += 1 + 1;
}
if (Value != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Value);
}
return size;
}
public void MergeFrom(MapBoolToEnumEntry other) {
if (other == null) {
return;
}
if (other.Key != false) {
Key = other.Key;
}
if (other.Value != global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum.NESTED_ENUM_UNSPECIFIED) {
Value = other.Value;
}
}
public void MergeFrom(pb::CodedInputStream input) {
uint tag;
while (input.ReadTag(out tag)) {
switch(tag) {
case 0:
throw pb::InvalidProtocolBufferException.InvalidTag();
default:
if (pb::WireFormat.IsEndGroupTag(tag)) {
return;
}
break;
case 8: {
Key = input.ReadBool();
break;
}
case 16: {
value_ = (global::Google.Protobuf.TestProtos.TestAllTypes.Types.NestedEnum) input.ReadEnum();
break;
}
}
}
}
}
}
#endregion
......@@ -2553,7 +2045,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (child_ != null) hash ^= Child.GetHashCode();
if (payload_ != null) hash ^= Payload.GetHashCode();
hash ^= repeatedChild_.GetHashCode();
......@@ -2707,7 +2199,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (DeprecatedInt32 != 0) hash ^= DeprecatedInt32.GetHashCode();
return hash;
}
......@@ -2818,7 +2310,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (C != 0) hash ^= C.GetHashCode();
return hash;
}
......@@ -2917,7 +2409,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
return hash;
}
......@@ -3014,7 +2506,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (foreignNested_ != null) hash ^= ForeignNested.GetHashCode();
return hash;
}
......@@ -3143,7 +2635,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (A != 0) hash ^= A.GetHashCode();
if (Bb != 0) hash ^= Bb.GetHashCode();
return hash;
......@@ -3282,7 +2774,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (a_ != null) hash ^= A.GetHashCode();
if (I != 0) hash ^= I.GetHashCode();
return hash;
......@@ -3415,7 +2907,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (bb_ != null) hash ^= Bb.GetHashCode();
return hash;
}
......@@ -3545,7 +3037,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (a_ != null) hash ^= A.GetHashCode();
if (OptionalInt32 != 0) hash ^= OptionalInt32.GetHashCode();
return hash;
......@@ -3750,7 +3242,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (PrimitiveField != 0) hash ^= PrimitiveField.GetHashCode();
if (StringField.Length != 0) hash ^= StringField.GetHashCode();
if (EnumField != global::Google.Protobuf.TestProtos.ForeignEnum.FOREIGN_UNSPECIFIED) hash ^= EnumField.GetHashCode();
......@@ -4019,7 +3511,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (MyString.Length != 0) hash ^= MyString.GetHashCode();
if (MyInt != 0L) hash ^= MyInt.GetHashCode();
if (MyFloat != 0F) hash ^= MyFloat.GetHashCode();
......@@ -4194,7 +3686,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Oo != 0L) hash ^= Oo.GetHashCode();
if (Bb != 0) hash ^= Bb.GetHashCode();
return hash;
......@@ -4325,7 +3817,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (SparseEnum != global::Google.Protobuf.TestProtos.TestSparseEnum.TEST_SPARSE_ENUM_UNSPECIFIED) hash ^= SparseEnum.GetHashCode();
return hash;
}
......@@ -4436,7 +3928,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Data.Length != 0) hash ^= Data.GetHashCode();
return hash;
}
......@@ -4544,7 +4036,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
hash ^= data_.GetHashCode();
return hash;
}
......@@ -4657,7 +4149,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Data.Length != 0) hash ^= Data.GetHashCode();
return hash;
}
......@@ -4768,7 +4260,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Data.Length != 0) hash ^= Data.GetHashCode();
return hash;
}
......@@ -4879,7 +4371,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Data != 0) hash ^= Data.GetHashCode();
return hash;
}
......@@ -4990,7 +4482,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Data != 0) hash ^= Data.GetHashCode();
return hash;
}
......@@ -5101,7 +4593,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Data != 0L) hash ^= Data.GetHashCode();
return hash;
}
......@@ -5212,7 +4704,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Data != 0UL) hash ^= Data.GetHashCode();
return hash;
}
......@@ -5323,7 +4815,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Data != false) hash ^= Data.GetHashCode();
return hash;
}
......@@ -5486,7 +4978,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (fooCase_ == FooOneofCase.FooInt) hash ^= FooInt.GetHashCode();
if (fooCase_ == FooOneofCase.FooString) hash ^= FooString.GetHashCode();
if (fooCase_ == FooOneofCase.FooMessage) hash ^= FooMessage.GetHashCode();
......@@ -5749,7 +5241,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
hash ^= packedInt32_.GetHashCode();
hash ^= packedInt64_.GetHashCode();
hash ^= packedUint32_.GetHashCode();
......@@ -6211,7 +5703,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
hash ^= unpackedInt32_.GetHashCode();
hash ^= unpackedInt64_.GetHashCode();
hash ^= unpackedUint32_.GetHashCode();
......@@ -6587,7 +6079,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
hash ^= repeatedFixed32_.GetHashCode();
hash ^= repeatedInt32_.GetHashCode();
hash ^= repeatedFixed64_.GetHashCode();
......@@ -6791,7 +6283,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (A.Length != 0) hash ^= A.GetHashCode();
return hash;
}
......@@ -6890,7 +6382,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
return hash;
}
......@@ -6974,7 +6466,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
return hash;
}
......@@ -7058,7 +6550,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
return hash;
}
......@@ -7142,7 +6634,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
return hash;
}
......@@ -7226,7 +6718,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
return hash;
}
......@@ -7310,7 +6802,7 @@ namespace Google.Protobuf.TestProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
return hash;
}
......
......@@ -335,7 +335,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
hash ^= file_.GetHashCode();
return hash;
}
......@@ -559,7 +559,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Package.Length != 0) hash ^= Package.GetHashCode();
hash ^= dependency_.GetHashCode();
......@@ -940,7 +940,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
hash ^= field_.GetHashCode();
hash ^= extension_.GetHashCode();
......@@ -1207,7 +1207,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Start != 0) hash ^= Start.GetHashCode();
if (End != 0) hash ^= End.GetHashCode();
return hash;
......@@ -1345,7 +1345,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Start != 0) hash ^= Start.GetHashCode();
if (End != 0) hash ^= End.GetHashCode();
return hash;
......@@ -1573,7 +1573,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Number != 0) hash ^= Number.GetHashCode();
if (Label != global::Google.Protobuf.DescriptorProtos.FieldDescriptorProto.Types.Label.LABEL_OPTIONAL) hash ^= Label.GetHashCode();
......@@ -1843,7 +1843,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
return hash;
}
......@@ -1976,7 +1976,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
hash ^= value_.GetHashCode();
if (options_ != null) hash ^= Options.GetHashCode();
......@@ -2148,7 +2148,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Number != 0) hash ^= Number.GetHashCode();
if (options_ != null) hash ^= Options.GetHashCode();
......@@ -2317,7 +2317,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
hash ^= method_.GetHashCode();
if (options_ != null) hash ^= Options.GetHashCode();
......@@ -2525,7 +2525,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (InputType.Length != 0) hash ^= InputType.GetHashCode();
if (OutputType.Length != 0) hash ^= OutputType.GetHashCode();
......@@ -2882,7 +2882,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (JavaPackage.Length != 0) hash ^= JavaPackage.GetHashCode();
if (JavaOuterClassname.Length != 0) hash ^= JavaOuterClassname.GetHashCode();
if (JavaMultipleFiles != false) hash ^= JavaMultipleFiles.GetHashCode();
......@@ -3260,7 +3260,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (MessageSetWireFormat != false) hash ^= MessageSetWireFormat.GetHashCode();
if (NoStandardDescriptorAccessor != false) hash ^= NoStandardDescriptorAccessor.GetHashCode();
if (Deprecated != false) hash ^= Deprecated.GetHashCode();
......@@ -3500,7 +3500,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Ctype != global::Google.Protobuf.DescriptorProtos.FieldOptions.Types.CType.STRING) hash ^= Ctype.GetHashCode();
if (Packed != false) hash ^= Packed.GetHashCode();
if (Jstype != global::Google.Protobuf.DescriptorProtos.FieldOptions.Types.JSType.JS_NORMAL) hash ^= Jstype.GetHashCode();
......@@ -3740,7 +3740,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (AllowAlias != false) hash ^= AllowAlias.GetHashCode();
if (Deprecated != false) hash ^= Deprecated.GetHashCode();
hash ^= uninterpretedOption_.GetHashCode();
......@@ -3890,7 +3890,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Deprecated != false) hash ^= Deprecated.GetHashCode();
hash ^= uninterpretedOption_.GetHashCode();
return hash;
......@@ -4025,7 +4025,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Deprecated != false) hash ^= Deprecated.GetHashCode();
hash ^= uninterpretedOption_.GetHashCode();
return hash;
......@@ -4160,7 +4160,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (Deprecated != false) hash ^= Deprecated.GetHashCode();
hash ^= uninterpretedOption_.GetHashCode();
return hash;
......@@ -4355,7 +4355,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
hash ^= name_.GetHashCode();
if (IdentifierValue.Length != 0) hash ^= IdentifierValue.GetHashCode();
if (PositiveIntValue != 0UL) hash ^= PositiveIntValue.GetHashCode();
......@@ -4569,7 +4569,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
if (NamePart_.Length != 0) hash ^= NamePart_.GetHashCode();
if (IsExtension != false) hash ^= IsExtension.GetHashCode();
return hash;
......@@ -4697,7 +4697,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
hash ^= location_.GetHashCode();
return hash;
}
......@@ -4848,7 +4848,7 @@ namespace Google.Protobuf.DescriptorProtos {
}
public override int GetHashCode() {
int hash = 17;
int hash = 1;
hash ^= path_.GetHashCode();
hash ^= span_.GetHashCode();
if (LeadingComments.Length != 0) hash ^= LeadingComments.GetHashCode();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment