public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { NumRoi = input.ReadInt32(); break; } case 18: { if (rects_ == null) { rects_ = new global::RI.Rect(); } input.ReadMessage(rects_); break; } } } }
public void MergeFrom(ROI other) { if (other == null) { return; } if (other.NumRoi != 0) { NumRoi = other.NumRoi; } if (other.rects_ != null) { if (rects_ == null) { rects_ = new global::RI.Rect(); } Rects.MergeFrom(other.Rects); } }