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

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (BiddingStrategyId != 0L)
            {
                hash ^= BiddingStrategyId.GetHashCode();
            }
            if (Type != global::Google.Ads.GoogleAds.V9.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified)
            {
                hash ^= Type.GetHashCode();
            }
            if (ModificationMethod != global::Google.Ads.GoogleAds.V9.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified)
            {
                hash ^= ModificationMethod.GetHashCode();
            }
            if (StartDate.Length != 0)
            {
                hash ^= StartDate.GetHashCode();
            }
            if (EndDate.Length != 0)
            {
                hash ^= EndDate.GetHashCode();
            }
            if (pointListCase_ == PointListOneofCase.TargetCpaPointList)
            {
                hash ^= TargetCpaPointList.GetHashCode();
            }
            if (pointListCase_ == PointListOneofCase.TargetRoasPointList)
            {
                hash ^= TargetRoasPointList.GetHashCode();
            }
            hash ^= (int)pointListCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }