public void MergeFrom(PredictionObstacles other) { if (other == null) { return; } if (other.header_ != null) { if (header_ == null) { header_ = new global::Apollo.Common.Header(); } Header.MergeFrom(other.Header); } predictionObstacle_.Add(other.predictionObstacle_); if (other.PerceptionErrorCode != 0) { PerceptionErrorCode = other.PerceptionErrorCode; } if (other.StartTimestamp != 0D) { StartTimestamp = other.StartTimestamp; } if (other.EndTimestamp != 0D) { EndTimestamp = other.EndTimestamp; } if (other.intent_ != null) { if (intent_ == null) { intent_ = new global::Apollo.Prediction.Intent(); } Intent.MergeFrom(other.Intent); } if (other.scenario_ != null) { if (scenario_ == null) { scenario_ = new global::Apollo.Prediction.Scenario(); } Scenario.MergeFrom(other.Scenario); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (header_ == null) { header_ = new global::Apollo.Common.Header(); } input.ReadMessage(header_); break; } case 18: { predictionObstacle_.AddEntriesFrom(input, _repeated_predictionObstacle_codec); break; } case 24: { perceptionErrorCode_ = (global::Apollo.Common.ErrorCode)input.ReadEnum(); break; } case 33: { StartTimestamp = input.ReadDouble(); break; } case 41: { EndTimestamp = input.ReadDouble(); break; } case 50: { if (intent_ == null) { intent_ = new global::Apollo.Prediction.Intent(); } input.ReadMessage(intent_); break; } case 58: { if (scenario_ == null) { scenario_ = new global::Apollo.Prediction.Scenario(); } input.ReadMessage(scenario_); break; } } } }