public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (localization_ == null) { localization_ = new global::Apollo.Localization.LocalizationEstimate(); } input.ReadMessage(localization_); break; } case 18: { if (chassisDetail_ == null) { chassisDetail_ = new global::Apollo.Canbus.ChassisDetail(); } input.ReadMessage(chassisDetail_); break; } } } }
public void MergeFrom(CarStatus other) { if (other == null) { return; } if (other.localization_ != null) { if (localization_ == null) { localization_ = new global::Apollo.Localization.LocalizationEstimate(); } Localization.MergeFrom(other.Localization); } if (other.chassisDetail_ != null) { if (chassisDetail_ == null) { chassisDetail_ = new global::Apollo.Canbus.ChassisDetail(); } ChassisDetail.MergeFrom(other.ChassisDetail); } }