public void MergeFrom(CustomerFeed other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.feed_ != null) { if (feed_ == null || other.Feed != "") { Feed = other.Feed; } } placeholderTypes_.Add(other.placeholderTypes_); if (other.matchingFunction_ != null) { if (matchingFunction_ == null) { MatchingFunction = new global::Google.Ads.GoogleAds.V2.Common.MatchingFunction(); } MatchingFunction.MergeFrom(other.MatchingFunction); } if (other.Status != 0) { Status = other.Status; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (feed_ != null) { hash ^= Feed.GetHashCode(); } hash ^= placeholderTypes_.GetHashCode(); if (matchingFunction_ != null) { hash ^= MatchingFunction.GetHashCode(); } if (Status != 0) { hash ^= Status.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(CustomerFeed other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.HasFeed) { Feed = other.Feed; } placeholderTypes_.Add(other.placeholderTypes_); if (other.matchingFunction_ != null) { if (matchingFunction_ == null) { MatchingFunction = new global::Google.Ads.GoogleAds.V6.Common.MatchingFunction(); } MatchingFunction.MergeFrom(other.MatchingFunction); } if (other.Status != global::Google.Ads.GoogleAds.V6.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { Status = other.Status; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (HasFeed) { hash ^= Feed.GetHashCode(); } hash ^= placeholderTypes_.GetHashCode(); if (matchingFunction_ != null) { hash ^= MatchingFunction.GetHashCode(); } if (Status != global::Google.Ads.GoogleAds.V6.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { hash ^= Status.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public virtual void WriteTo(XElement xE) { XElement xItem = null; if (FeedId != null) { xItem = new XElement(XName.Get("feedId", "https://adwords.google.com/api/adwords/cm/v201609")); xItem.Add(FeedId.Value.ToString()); xE.Add(xItem); } if (MatchingFunction != null) { xItem = new XElement(XName.Get("matchingFunction", "https://adwords.google.com/api/adwords/cm/v201609")); MatchingFunction.WriteTo(xItem); xE.Add(xItem); } if (PlaceholderTypes != null) { foreach (var placeholderTypesItem in PlaceholderTypes) { xItem = new XElement(XName.Get("placeholderTypes", "https://adwords.google.com/api/adwords/cm/v201609")); xItem.Add(placeholderTypesItem.ToString()); xE.Add(xItem); } } if (Status != null) { xItem = new XElement(XName.Get("status", "https://adwords.google.com/api/adwords/cm/v201609")); xItem.Add(Status.Value.ToXmlValue()); xE.Add(xItem); } }
public void MergeFrom(AdGroupFeed other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.feed_ != null) { if (feed_ == null || other.Feed != "") { Feed = other.Feed; } } if (other.adGroup_ != null) { if (adGroup_ == null || other.AdGroup != "") { AdGroup = other.AdGroup; } } placeholderTypes_.Add(other.placeholderTypes_); if (other.matchingFunction_ != null) { if (matchingFunction_ == null) { MatchingFunction = new global::Google.Ads.GoogleAds.V4.Common.MatchingFunction(); } MatchingFunction.MergeFrom(other.MatchingFunction); } if (other.Status != global::Google.Ads.GoogleAds.V4.Enums.FeedLinkStatusEnum.Types.FeedLinkStatus.Unspecified) { Status = other.Status; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }