public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (CampaignId != 0L) { hash ^= CampaignId.GetHashCode(); } if (Type != global::Google.Ads.GoogleAds.V10.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { hash ^= Type.GetHashCode(); } if (ModificationMethod != global::Google.Ads.GoogleAds.V10.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.CpcBidPointList) { hash ^= CpcBidPointList.GetHashCode(); } if (pointListCase_ == PointListOneofCase.TargetCpaPointList) { hash ^= TargetCpaPointList.GetHashCode(); } if (pointListCase_ == PointListOneofCase.TargetRoasPointList) { hash ^= TargetRoasPointList.GetHashCode(); } if (pointListCase_ == PointListOneofCase.TargetImpressionSharePointList) { hash ^= TargetImpressionSharePointList.GetHashCode(); } if (pointListCase_ == PointListOneofCase.BudgetPointList) { hash ^= BudgetPointList.GetHashCode(); } hash ^= (int)pointListCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (HasAdGroupId) { hash ^= AdGroupId.GetHashCode(); } if (Type != global::Google.Ads.GoogleAds.V6.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { hash ^= Type.GetHashCode(); } if (ModificationMethod != global::Google.Ads.GoogleAds.V6.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { hash ^= ModificationMethod.GetHashCode(); } if (HasStartDate) { hash ^= StartDate.GetHashCode(); } if (HasEndDate) { hash ^= EndDate.GetHashCode(); } if (pointListCase_ == PointListOneofCase.CpcBidPointList) { hash ^= CpcBidPointList.GetHashCode(); } if (pointListCase_ == PointListOneofCase.CpvBidPointList) { hash ^= CpvBidPointList.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); }
public void MergeFrom(BiddingStrategySimulation other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.BiddingStrategyId != 0L) { BiddingStrategyId = other.BiddingStrategyId; } if (other.Type != global::Google.Ads.GoogleAds.V7.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { Type = other.Type; } if (other.ModificationMethod != global::Google.Ads.GoogleAds.V7.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { ModificationMethod = other.ModificationMethod; } if (other.StartDate.Length != 0) { StartDate = other.StartDate; } if (other.EndDate.Length != 0) { EndDate = other.EndDate; } switch (other.PointListCase) { case PointListOneofCase.TargetCpaPointList: if (TargetCpaPointList == null) { TargetCpaPointList = new global::Google.Ads.GoogleAds.V7.Common.TargetCpaSimulationPointList(); } TargetCpaPointList.MergeFrom(other.TargetCpaPointList); break; case PointListOneofCase.TargetRoasPointList: if (TargetRoasPointList == null) { TargetRoasPointList = new global::Google.Ads.GoogleAds.V7.Common.TargetRoasSimulationPointList(); } TargetRoasPointList.MergeFrom(other.TargetRoasPointList); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(AdGroupSimulation other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.adGroupId_ != null) { if (adGroupId_ == null || other.AdGroupId != 0L) { AdGroupId = other.AdGroupId; } } if (other.Type != global::Google.Ads.GoogleAds.V4.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { Type = other.Type; } if (other.ModificationMethod != global::Google.Ads.GoogleAds.V4.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { ModificationMethod = other.ModificationMethod; } if (other.startDate_ != null) { if (startDate_ == null || other.StartDate != "") { StartDate = other.StartDate; } } if (other.endDate_ != null) { if (endDate_ == null || other.EndDate != "") { EndDate = other.EndDate; } } switch (other.PointListCase) { case PointListOneofCase.CpcBidPointList: if (CpcBidPointList == null) { CpcBidPointList = new global::Google.Ads.GoogleAds.V4.Common.CpcBidSimulationPointList(); } CpcBidPointList.MergeFrom(other.CpcBidPointList); break; case PointListOneofCase.CpvBidPointList: if (CpvBidPointList == null) { CpvBidPointList = new global::Google.Ads.GoogleAds.V4.Common.CpvBidSimulationPointList(); } CpvBidPointList.MergeFrom(other.CpvBidPointList); break; case PointListOneofCase.TargetCpaPointList: if (TargetCpaPointList == null) { TargetCpaPointList = new global::Google.Ads.GoogleAds.V4.Common.TargetCpaSimulationPointList(); } TargetCpaPointList.MergeFrom(other.TargetCpaPointList); break; case PointListOneofCase.TargetRoasPointList: if (TargetRoasPointList == null) { TargetRoasPointList = new global::Google.Ads.GoogleAds.V4.Common.TargetRoasSimulationPointList(); } TargetRoasPointList.MergeFrom(other.TargetRoasPointList); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(CampaignSimulation other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.CampaignId != 0L) { CampaignId = other.CampaignId; } if (other.Type != global::Google.Ads.GoogleAds.V10.Enums.SimulationTypeEnum.Types.SimulationType.Unspecified) { Type = other.Type; } if (other.ModificationMethod != global::Google.Ads.GoogleAds.V10.Enums.SimulationModificationMethodEnum.Types.SimulationModificationMethod.Unspecified) { ModificationMethod = other.ModificationMethod; } if (other.StartDate.Length != 0) { StartDate = other.StartDate; } if (other.EndDate.Length != 0) { EndDate = other.EndDate; } switch (other.PointListCase) { case PointListOneofCase.CpcBidPointList: if (CpcBidPointList == null) { CpcBidPointList = new global::Google.Ads.GoogleAds.V10.Common.CpcBidSimulationPointList(); } CpcBidPointList.MergeFrom(other.CpcBidPointList); break; case PointListOneofCase.TargetCpaPointList: if (TargetCpaPointList == null) { TargetCpaPointList = new global::Google.Ads.GoogleAds.V10.Common.TargetCpaSimulationPointList(); } TargetCpaPointList.MergeFrom(other.TargetCpaPointList); break; case PointListOneofCase.TargetRoasPointList: if (TargetRoasPointList == null) { TargetRoasPointList = new global::Google.Ads.GoogleAds.V10.Common.TargetRoasSimulationPointList(); } TargetRoasPointList.MergeFrom(other.TargetRoasPointList); break; case PointListOneofCase.TargetImpressionSharePointList: if (TargetImpressionSharePointList == null) { TargetImpressionSharePointList = new global::Google.Ads.GoogleAds.V10.Common.TargetImpressionShareSimulationPointList(); } TargetImpressionSharePointList.MergeFrom(other.TargetImpressionSharePointList); break; case PointListOneofCase.BudgetPointList: if (BudgetPointList == null) { BudgetPointList = new global::Google.Ads.GoogleAds.V10.Common.BudgetSimulationPointList(); } BudgetPointList.MergeFrom(other.BudgetPointList); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }