public void MergeFrom(CampaignCriterionSimulation other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.campaignId_ != null) { if (campaignId_ == null || other.CampaignId != 0L) { CampaignId = other.CampaignId; } } if (other.criterionId_ != null) { if (criterionId_ == null || other.CriterionId != 0L) { CriterionId = other.CriterionId; } } 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.BidModifierPointList: if (BidModifierPointList == null) { BidModifierPointList = new global::Google.Ads.GoogleAds.V4.Common.BidModifierSimulationPointList(); } BidModifierPointList.MergeFrom(other.BidModifierPointList); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (HasCampaignId) { hash ^= CampaignId.GetHashCode(); } if (HasCriterionId) { hash ^= CriterionId.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 (HasStartDate) { hash ^= StartDate.GetHashCode(); } if (HasEndDate) { hash ^= EndDate.GetHashCode(); } if (pointListCase_ == PointListOneofCase.BidModifierPointList) { hash ^= BidModifierPointList.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 (campaignId_ != null) { hash ^= CampaignId.GetHashCode(); } if (criterionId_ != null) { hash ^= CriterionId.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (ModificationMethod != 0) { hash ^= ModificationMethod.GetHashCode(); } if (startDate_ != null) { hash ^= StartDate.GetHashCode(); } if (endDate_ != null) { hash ^= EndDate.GetHashCode(); } if (pointListCase_ == PointListOneofCase.BidModifierPointList) { hash ^= BidModifierPointList.GetHashCode(); } hash ^= (int)pointListCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }