示例#1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 8: {
                    obstacleType_ = (global::Apollo.Perception.PerceptionObstacle.Types.Type)input.ReadEnum();
                    break;
                }

                case 16: {
                    obstacleStatus_ = (global::Apollo.Prediction.ObstacleConf.Types.ObstacleStatus)input.ReadEnum();
                    break;
                }

                case 24: {
                    evaluatorType_ = (global::Apollo.Prediction.ObstacleConf.Types.EvaluatorType)input.ReadEnum();
                    break;
                }

                case 32: {
                    predictorType_ = (global::Apollo.Prediction.ObstacleConf.Types.PredictorType)input.ReadEnum();
                    break;
                }
                }
            }
        }
示例#2
0
 public void MergeFrom(ObstacleConf other)
 {
     if (other == null)
     {
         return;
     }
     if (other.ObstacleType != 0)
     {
         ObstacleType = other.ObstacleType;
     }
     if (other.ObstacleStatus != 0)
     {
         ObstacleStatus = other.ObstacleStatus;
     }
     if (other.EvaluatorType != 0)
     {
         EvaluatorType = other.EvaluatorType;
     }
     if (other.PredictorType != 0)
     {
         PredictorType = other.PredictorType;
     }
 }