public void MergeFrom(TravelAgent other)
 {
     if (other == null)
     {
         return;
     }
     if (other.entityId_ != null)
     {
         if (entityId_ == null)
         {
             entityId_ = new global::HOLMS.Types.Booking.Indicators.TravelAgentIndicator();
         }
         EntityId.MergeFrom(other.EntityId);
     }
     if (other.IataId.Length != 0)
     {
         IataId = other.IataId;
     }
     if (other.CommissionType != 0)
     {
         CommissionType = other.CommissionType;
     }
     if (other.commissionAmount_ != null)
     {
         if (commissionAmount_ == null)
         {
             commissionAmount_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         CommissionAmount.MergeFrom(other.CommissionAmount);
     }
     if (other.commissionPercentage_ != null)
     {
         if (commissionPercentage_ == null)
         {
             commissionPercentage_ = new global::HOLMS.Types.Primitive.FixedPointRatio();
         }
         CommissionPercentage.MergeFrom(other.CommissionPercentage);
     }
     if (other.GivenName.Length != 0)
     {
         GivenName = other.GivenName;
     }
     if (other.FamilyName.Length != 0)
     {
         FamilyName = other.FamilyName;
     }
     if (other.BusinessAddress1.Length != 0)
     {
         BusinessAddress1 = other.BusinessAddress1;
     }
     if (other.BusinessAddress2.Length != 0)
     {
         BusinessAddress2 = other.BusinessAddress2;
     }
     if (other.BusinessCity.Length != 0)
     {
         BusinessCity = other.BusinessCity;
     }
     if (other.BusinessState.Length != 0)
     {
         BusinessState = other.BusinessState;
     }
     if (other.BusinessZip.Length != 0)
     {
         BusinessZip = other.BusinessZip;
     }
     if (other.BusinessNation.Length != 0)
     {
         BusinessNation = other.BusinessNation;
     }
     if (other.BusinessPhoneNumber.Length != 0)
     {
         BusinessPhoneNumber = other.BusinessPhoneNumber;
     }
     if (other.BusinessFaxNumber.Length != 0)
     {
         BusinessFaxNumber = other.BusinessFaxNumber;
     }
     if (other.BusinessEmailAddress.Length != 0)
     {
         BusinessEmailAddress = other.BusinessEmailAddress;
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (IataId.Length != 0)
            {
                hash ^= IataId.GetHashCode();
            }
            if (CommissionType != 0)
            {
                hash ^= CommissionType.GetHashCode();
            }
            if (commissionAmount_ != null)
            {
                hash ^= CommissionAmount.GetHashCode();
            }
            if (commissionPercentage_ != null)
            {
                hash ^= CommissionPercentage.GetHashCode();
            }
            if (GivenName.Length != 0)
            {
                hash ^= GivenName.GetHashCode();
            }
            if (FamilyName.Length != 0)
            {
                hash ^= FamilyName.GetHashCode();
            }
            if (BusinessAddress1.Length != 0)
            {
                hash ^= BusinessAddress1.GetHashCode();
            }
            if (BusinessAddress2.Length != 0)
            {
                hash ^= BusinessAddress2.GetHashCode();
            }
            if (BusinessCity.Length != 0)
            {
                hash ^= BusinessCity.GetHashCode();
            }
            if (BusinessState.Length != 0)
            {
                hash ^= BusinessState.GetHashCode();
            }
            if (BusinessZip.Length != 0)
            {
                hash ^= BusinessZip.GetHashCode();
            }
            if (BusinessNation.Length != 0)
            {
                hash ^= BusinessNation.GetHashCode();
            }
            if (BusinessPhoneNumber.Length != 0)
            {
                hash ^= BusinessPhoneNumber.GetHashCode();
            }
            if (BusinessFaxNumber.Length != 0)
            {
                hash ^= BusinessFaxNumber.GetHashCode();
            }
            if (BusinessEmailAddress.Length != 0)
            {
                hash ^= BusinessEmailAddress.GetHashCode();
            }
            return(hash);
        }