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

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

                case 10: {
                    if (modelParam_ == null)
                    {
                        modelParam_ = new global::Apollo.Perception.Camera.Denseline.ModelParam();
                    }
                    input.ReadMessage(modelParam_);
                    break;
                }

                case 18: {
                    if (netParam_ == null)
                    {
                        netParam_ = new global::Apollo.Perception.Camera.Denseline.NetworkParam();
                    }
                    input.ReadMessage(netParam_);
                    break;
                }
                }
            }
        }
Exemple #2
0
 public void MergeFrom(DenselineParam other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelParam_ != null)
     {
         if (modelParam_ == null)
         {
             modelParam_ = new global::Apollo.Perception.Camera.Denseline.ModelParam();
         }
         ModelParam.MergeFrom(other.ModelParam);
     }
     if (other.netParam_ != null)
     {
         if (netParam_ == null)
         {
             netParam_ = new global::Apollo.Perception.Camera.Denseline.NetworkParam();
         }
         NetParam.MergeFrom(other.NetParam);
     }
 }