public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { ModelType = input.ReadString(); break; } case 18: { if (networkParam_ == null) { networkParam_ = new global::Apollo.Perception.Lidar.NetworkParam(); } input.ReadMessage(networkParam_); break; } case 26: { if (featureParam_ == null) { featureParam_ = new global::Apollo.Perception.Lidar.FeatureParam(); } input.ReadMessage(featureParam_); break; } case 32: { DoClassification = input.ReadBool(); break; } case 40: { DoHeading = input.ReadBool(); break; } case 48: { GpuId = input.ReadUInt32(); break; } case 58: { GroundDetector = input.ReadString(); break; } case 66: { RoiFilter = input.ReadString(); break; } case 72: { RemoveGroundPoints = input.ReadBool(); break; } case 85: { ObjectnessThresh = input.ReadFloat(); break; } case 93: { ConfidenceThresh = input.ReadFloat(); break; } case 101: { HeightThresh = input.ReadFloat(); break; } case 104: { MinPtsNum = input.ReadUInt32(); break; } case 117: { ConfidenceRange = input.ReadFloat(); break; } } } }
public void MergeFrom(CNNSegParam other) { if (other == null) { return; } if (other.ModelType.Length != 0) { ModelType = other.ModelType; } if (other.networkParam_ != null) { if (networkParam_ == null) { networkParam_ = new global::Apollo.Perception.Lidar.NetworkParam(); } NetworkParam.MergeFrom(other.NetworkParam); } if (other.featureParam_ != null) { if (featureParam_ == null) { featureParam_ = new global::Apollo.Perception.Lidar.FeatureParam(); } FeatureParam.MergeFrom(other.FeatureParam); } if (other.DoClassification != false) { DoClassification = other.DoClassification; } if (other.DoHeading != false) { DoHeading = other.DoHeading; } if (other.GpuId != 0) { GpuId = other.GpuId; } if (other.GroundDetector.Length != 0) { GroundDetector = other.GroundDetector; } if (other.RoiFilter.Length != 0) { RoiFilter = other.RoiFilter; } if (other.RemoveGroundPoints != false) { RemoveGroundPoints = other.RemoveGroundPoints; } if (other.ObjectnessThresh != 0F) { ObjectnessThresh = other.ObjectnessThresh; } if (other.ConfidenceThresh != 0F) { ConfidenceThresh = other.ConfidenceThresh; } if (other.HeightThresh != 0F) { HeightThresh = other.HeightThresh; } if (other.MinPtsNum != 0) { MinPtsNum = other.MinPtsNum; } if (other.ConfidenceRange != 0F) { ConfidenceRange = other.ConfidenceRange; } }