public void MergeFrom(AdGroupAd other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.Status != global::Google.Ads.GoogleAds.V10.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus.Unspecified) { Status = other.Status; } if (other.HasAdGroup) { AdGroup = other.AdGroup; } if (other.ad_ != null) { if (ad_ == null) { Ad = new global::Google.Ads.GoogleAds.V10.Resources.Ad(); } Ad.MergeFrom(other.Ad); } if (other.policySummary_ != null) { if (policySummary_ == null) { PolicySummary = new global::Google.Ads.GoogleAds.V10.Resources.AdGroupAdPolicySummary(); } PolicySummary.MergeFrom(other.PolicySummary); } if (other.AdStrength != global::Google.Ads.GoogleAds.V10.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) { AdStrength = other.AdStrength; } actionItems_.Add(other.actionItems_); labels_.Add(other.labels_); _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (Status != global::Google.Ads.GoogleAds.V10.Enums.AdGroupAdStatusEnum.Types.AdGroupAdStatus.Unspecified) { hash ^= Status.GetHashCode(); } if (HasAdGroup) { hash ^= AdGroup.GetHashCode(); } if (ad_ != null) { hash ^= Ad.GetHashCode(); } if (policySummary_ != null) { hash ^= PolicySummary.GetHashCode(); } if (AdStrength != global::Google.Ads.GoogleAds.V10.Enums.AdStrengthEnum.Types.AdStrength.Unspecified) { hash ^= AdStrength.GetHashCode(); } hash ^= actionItems_.GetHashCode(); hash ^= labels_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }