public override int GetHashCode() { int hash = 1; if (ResourceName.Length != 0) { hash ^= ResourceName.GetHashCode(); } if (accountLinkId_ != null) { hash ^= AccountLinkId.GetHashCode(); } if (Status != global::Google.Ads.GoogleAds.V4.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus.Unspecified) { hash ^= Status.GetHashCode(); } if (Type != global::Google.Ads.GoogleAds.V4.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType.Unspecified) { hash ^= Type.GetHashCode(); } if (linkedAccountCase_ == LinkedAccountOneofCase.ThirdPartyAppAnalytics) { hash ^= ThirdPartyAppAnalytics.GetHashCode(); } hash ^= (int)linkedAccountCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(AccountLink other) { if (other == null) { return; } if (other.ResourceName.Length != 0) { ResourceName = other.ResourceName; } if (other.accountLinkId_ != null) { if (accountLinkId_ == null || other.AccountLinkId != 0L) { AccountLinkId = other.AccountLinkId; } } if (other.Status != global::Google.Ads.GoogleAds.V4.Enums.AccountLinkStatusEnum.Types.AccountLinkStatus.Unspecified) { Status = other.Status; } if (other.Type != global::Google.Ads.GoogleAds.V4.Enums.LinkedAccountTypeEnum.Types.LinkedAccountType.Unspecified) { Type = other.Type; } switch (other.LinkedAccountCase) { case LinkedAccountOneofCase.ThirdPartyAppAnalytics: if (ThirdPartyAppAnalytics == null) { ThirdPartyAppAnalytics = new global::Google.Ads.GoogleAds.V4.Resources.ThirdPartyAppAnalyticsLinkIdentifier(); } ThirdPartyAppAnalytics.MergeFrom(other.ThirdPartyAppAnalytics); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }