public override int GetHashCode() { int hash = 1; if (kindCase_ == KindOneofCase.NullValue) { hash ^= NullValue.GetHashCode(); } if (kindCase_ == KindOneofCase.NumberValue) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NumberValue); } if (kindCase_ == KindOneofCase.StringValue) { hash ^= StringValue.GetHashCode(); } if (kindCase_ == KindOneofCase.BoolValue) { hash ^= BoolValue.GetHashCode(); } if (kindCase_ == KindOneofCase.StructValue) { hash ^= StructValue.GetHashCode(); } if (kindCase_ == KindOneofCase.ListValue) { hash ^= ListValue.GetHashCode(); } hash ^= (int)kindCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (kindCase_ == KindOneofCase.NullValue) { hash ^= NullValue.GetHashCode(); } if (kindCase_ == KindOneofCase.NumberValue) { hash ^= NumberValue.GetHashCode(); } if (kindCase_ == KindOneofCase.StringValue) { hash ^= StringValue.GetHashCode(); } if (kindCase_ == KindOneofCase.BoolValue) { hash ^= BoolValue.GetHashCode(); } if (kindCase_ == KindOneofCase.StructValue) { hash ^= StructValue.GetHashCode(); } if (kindCase_ == KindOneofCase.ListValue) { hash ^= ListValue.GetHashCode(); } hash ^= (int)kindCase_; return(hash); }