public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } if (OrgDisplayName.Length != 0) { hash ^= OrgDisplayName.GetHashCode(); } if (orgPostalAddress_ != null) { hash ^= OrgPostalAddress.GetHashCode(); } if (primaryContactInfo_ != null) { hash ^= PrimaryContactInfo.GetHashCode(); } if (AlternateEmail.Length != 0) { hash ^= AlternateEmail.GetHashCode(); } if (Domain.Length != 0) { hash ^= Domain.GetHashCode(); } if (createTime_ != null) { hash ^= CreateTime.GetHashCode(); } if (updateTime_ != null) { hash ^= UpdateTime.GetHashCode(); } if (CloudIdentityId.Length != 0) { hash ^= CloudIdentityId.GetHashCode(); } if (LanguageCode.Length != 0) { hash ^= LanguageCode.GetHashCode(); } if (cloudIdentityInfo_ != null) { hash ^= CloudIdentityInfo.GetHashCode(); } if (ChannelPartnerId.Length != 0) { hash ^= ChannelPartnerId.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(Customer other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.OrgDisplayName.Length != 0) { OrgDisplayName = other.OrgDisplayName; } if (other.orgPostalAddress_ != null) { if (orgPostalAddress_ == null) { OrgPostalAddress = new global::Google.Type.PostalAddress(); } OrgPostalAddress.MergeFrom(other.OrgPostalAddress); } if (other.primaryContactInfo_ != null) { if (primaryContactInfo_ == null) { PrimaryContactInfo = new global::Google.Cloud.Channel.V1.ContactInfo(); } PrimaryContactInfo.MergeFrom(other.PrimaryContactInfo); } if (other.AlternateEmail.Length != 0) { AlternateEmail = other.AlternateEmail; } if (other.Domain.Length != 0) { Domain = other.Domain; } if (other.createTime_ != null) { if (createTime_ == null) { CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreateTime.MergeFrom(other.CreateTime); } if (other.updateTime_ != null) { if (updateTime_ == null) { UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } UpdateTime.MergeFrom(other.UpdateTime); } if (other.CloudIdentityId.Length != 0) { CloudIdentityId = other.CloudIdentityId; } if (other.LanguageCode.Length != 0) { LanguageCode = other.LanguageCode; } if (other.cloudIdentityInfo_ != null) { if (cloudIdentityInfo_ == null) { CloudIdentityInfo = new global::Google.Cloud.Channel.V1.CloudIdentityInfo(); } CloudIdentityInfo.MergeFrom(other.CloudIdentityInfo); } if (other.ChannelPartnerId.Length != 0) { ChannelPartnerId = other.ChannelPartnerId; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }