public void MergeFrom(Flight other)
 {
     if (other == null)
     {
         return;
     }
     if (other.departingDate_ != null)
     {
         if (departingDate_ == null)
         {
             DepartingDate = new global::Flights.Date();
         }
         DepartingDate.MergeFrom(other.DepartingDate);
     }
     if (other.arrivingDate_ != null)
     {
         if (arrivingDate_ == null)
         {
             ArrivingDate = new global::Flights.Date();
         }
         ArrivingDate.MergeFrom(other.ArrivingDate);
     }
     if (other.DepartingCity.Length != 0)
     {
         DepartingCity = other.DepartingCity;
     }
     if (other.ArrivingCity.Length != 0)
     {
         ArrivingCity = other.ArrivingCity;
     }
     if (other.Passanger != 0)
     {
         Passanger = other.Passanger;
     }
     if (other.Price != 0D)
     {
         Price = other.Price;
     }
     if (other.Provider.Length != 0)
     {
         Provider = other.Provider;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (departingDate_ != null)
            {
                hash ^= DepartingDate.GetHashCode();
            }
            if (arrivingDate_ != null)
            {
                hash ^= ArrivingDate.GetHashCode();
            }
            if (DepartingCity.Length != 0)
            {
                hash ^= DepartingCity.GetHashCode();
            }
            if (ArrivingCity.Length != 0)
            {
                hash ^= ArrivingCity.GetHashCode();
            }
            if (Passanger != 0)
            {
                hash ^= Passanger.GetHashCode();
            }
            if (Price != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Price);
            }
            if (Provider.Length != 0)
            {
                hash ^= Provider.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }