public void MergeFrom(Sku other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.marketingInfo_ != null) { if (marketingInfo_ == null) { MarketingInfo = new global::Google.Cloud.Channel.V1.MarketingInfo(); } MarketingInfo.MergeFrom(other.MarketingInfo); } if (other.product_ != null) { if (product_ == null) { Product = new global::Google.Cloud.Channel.V1.Product(); } Product.MergeFrom(other.Product); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (marketingInfo_ != null) { hash ^= MarketingInfo.GetHashCode(); } if (product_ != null) { hash ^= Product.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }