public void MergeFrom(ForeignProperty other) { if (other == null) { return; } if (other.PropertyName.Length != 0) { PropertyName = other.PropertyName; } if (other.propertyForeignTenancyId_ != null) { if (propertyForeignTenancyId_ == null) { propertyForeignTenancyId_ = new global::HOLMS.Types.Primitive.Uuid(); } PropertyForeignTenancyId.MergeFrom(other.PropertyForeignTenancyId); } if (other.ApiUrl.Length != 0) { ApiUrl = other.ApiUrl; } if (other.entityId_ != null) { if (entityId_ == null) { entityId_ = new global::HOLMS.Types.TenancyConfig.Indicators.ForeignPropertyIndicator(); } EntityId.MergeFrom(other.EntityId); } if (other.WebsiteUrl.Length != 0) { WebsiteUrl = other.WebsiteUrl; } }
public override int GetHashCode() { int hash = 1; if (PropertyName.Length != 0) { hash ^= PropertyName.GetHashCode(); } if (propertyForeignTenancyId_ != null) { hash ^= PropertyForeignTenancyId.GetHashCode(); } if (ApiUrl.Length != 0) { hash ^= ApiUrl.GetHashCode(); } if (entityId_ != null) { hash ^= EntityId.GetHashCode(); } if (WebsiteUrl.Length != 0) { hash ^= WebsiteUrl.GetHashCode(); } return(hash); }