public override int GetHashCode() { int hash = 1; if (perceptionObstacle_ != null) { hash ^= PerceptionObstacle.GetHashCode(); } if (Timestamp != 0D) { hash ^= Timestamp.GetHashCode(); } if (PredictedPeriod != 0D) { hash ^= PredictedPeriod.GetHashCode(); } hash ^= trajectory_.GetHashCode(); if (intent_ != null) { hash ^= Intent.GetHashCode(); } if (priority_ != null) { hash ^= Priority.GetHashCode(); } if (IsStatic != false) { hash ^= IsStatic.GetHashCode(); } return(hash); }
public void MergeFrom(PredictionObstacle other) { if (other == null) { return; } if (other.perceptionObstacle_ != null) { if (perceptionObstacle_ == null) { perceptionObstacle_ = new global::Apollo.Perception.PerceptionObstacle(); } PerceptionObstacle.MergeFrom(other.PerceptionObstacle); } if (other.Timestamp != 0D) { Timestamp = other.Timestamp; } if (other.PredictedPeriod != 0D) { PredictedPeriod = other.PredictedPeriod; } trajectory_.Add(other.trajectory_); if (other.intent_ != null) { if (intent_ == null) { intent_ = new global::Apollo.Prediction.ObstacleIntent(); } Intent.MergeFrom(other.Intent); } if (other.priority_ != null) { if (priority_ == null) { priority_ = new global::Apollo.Prediction.ObstaclePriority(); } Priority.MergeFrom(other.Priority); } if (other.IsStatic != false) { IsStatic = other.IsStatic; } }