public override int GetHashCode() { int hash = 1; if (UserId.Length != 0) { hash ^= UserId.GetHashCode(); } if (Timestamp != 0L) { hash ^= Timestamp.GetHashCode(); } if (ActivityType != 0) { hash ^= ActivityType.GetHashCode(); } if (accountActivity_ != null) { hash ^= AccountActivity.GetHashCode(); } if (userActivity_ != null) { hash ^= UserActivity.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(Activity other) { if (other == null) { return; } if (other.UserId.Length != 0) { UserId = other.UserId; } if (other.Timestamp != 0L) { Timestamp = other.Timestamp; } if (other.ActivityType != 0) { ActivityType = other.ActivityType; } if (other.accountActivity_ != null) { if (accountActivity_ == null) { accountActivity_ = new global::Datalake.Schema.AccountActivity(); } AccountActivity.MergeFrom(other.AccountActivity); } if (other.userActivity_ != null) { if (userActivity_ == null) { userActivity_ = new global::Datalake.Schema.UserActivity(); } UserActivity.MergeFrom(other.UserActivity); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }