Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Double10 != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Double10);
            }
            if (Float11 != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Float11);
            }
            if (Int3221 != 0)
            {
                hash ^= Int3221.GetHashCode();
            }
            if (Int6422 != 0L)
            {
                hash ^= Int6422.GetHashCode();
            }
            if (Uint3230 != 0)
            {
                hash ^= Uint3230.GetHashCode();
            }
            if (Uint6431 != 0UL)
            {
                hash ^= Uint6431.GetHashCode();
            }
            if (Sint3235 != 0)
            {
                hash ^= Sint3235.GetHashCode();
            }
            if (Sint6436 != 0L)
            {
                hash ^= Sint6436.GetHashCode();
            }
            if (Fixed3240 != 0)
            {
                hash ^= Fixed3240.GetHashCode();
            }
            if (Fixed6441 != 0UL)
            {
                hash ^= Fixed6441.GetHashCode();
            }
            if (Sfixed3245 != 0)
            {
                hash ^= Sfixed3245.GetHashCode();
            }
            if (Sfixed6446 != 0L)
            {
                hash ^= Sfixed6446.GetHashCode();
            }
            if (Bool70 != false)
            {
                hash ^= Bool70.GetHashCode();
            }
            if (String71.Length != 0)
            {
                hash ^= String71.GetHashCode();
            }
            if (Bytes72.Length != 0)
            {
                hash ^= Bytes72.GetHashCode();
            }
            if (Type80 != 0)
            {
                hash ^= Type80.GetHashCode();
            }
            hash ^= Map100.GetHashCode();
            hash ^= stringList101_.GetHashCode();
            hash ^= int32List102_.GetHashCode();
            hash ^= Map110.GetHashCode();
            if (user_ != null)
            {
                hash ^= User.GetHashCode();
            }
            hash ^= users_.GetHashCode();
            hash ^= Map132.GetHashCode();
            if (testOneofCase_ == TestOneofOneofCase.OfName300)
            {
                hash ^= OfName300.GetHashCode();
            }
            if (testOneofCase_ == TestOneofOneofCase.OfName2301)
            {
                hash ^= OfName2301.GetHashCode();
            }
            hash ^= (int)testOneofCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 public bool Equals(GReq other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Double10, other.Double10))
     {
         return(false);
     }
     if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Float11, other.Float11))
     {
         return(false);
     }
     if (Int3221 != other.Int3221)
     {
         return(false);
     }
     if (Int6422 != other.Int6422)
     {
         return(false);
     }
     if (Uint3230 != other.Uint3230)
     {
         return(false);
     }
     if (Uint6431 != other.Uint6431)
     {
         return(false);
     }
     if (Sint3235 != other.Sint3235)
     {
         return(false);
     }
     if (Sint6436 != other.Sint6436)
     {
         return(false);
     }
     if (Fixed3240 != other.Fixed3240)
     {
         return(false);
     }
     if (Fixed6441 != other.Fixed6441)
     {
         return(false);
     }
     if (Sfixed3245 != other.Sfixed3245)
     {
         return(false);
     }
     if (Sfixed6446 != other.Sfixed6446)
     {
         return(false);
     }
     if (Bool70 != other.Bool70)
     {
         return(false);
     }
     if (String71 != other.String71)
     {
         return(false);
     }
     if (Bytes72 != other.Bytes72)
     {
         return(false);
     }
     if (Type80 != other.Type80)
     {
         return(false);
     }
     if (!Map100.Equals(other.Map100))
     {
         return(false);
     }
     if (!stringList101_.Equals(other.stringList101_))
     {
         return(false);
     }
     if (!int32List102_.Equals(other.int32List102_))
     {
         return(false);
     }
     if (!Map110.Equals(other.Map110))
     {
         return(false);
     }
     if (!object.Equals(User, other.User))
     {
         return(false);
     }
     if (!users_.Equals(other.users_))
     {
         return(false);
     }
     if (!Map132.Equals(other.Map132))
     {
         return(false);
     }
     if (OfName300 != other.OfName300)
     {
         return(false);
     }
     if (OfName2301 != other.OfName2301)
     {
         return(false);
     }
     if (TestOneofCase != other.TestOneofCase)
     {
         return(false);
     }
     return(Equals(_unknownFields, other._unknownFields));
 }