public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { Id = input.ReadUInt64(); break; } case 18: { Label = input.ReadString(); break; } case 26: { if (boundingBox_ == null) { boundingBox_ = new global::Atlas.Augmented.BoundingBox(); } input.ReadMessage(boundingBox_); break; } } } }
public void MergeFrom(DetectedObject other) { if (other == null) { return; } if (other.Id != 0UL) { Id = other.Id; } if (other.Label.Length != 0) { Label = other.Label; } if (other.boundingBox_ != null) { if (boundingBox_ == null) { boundingBox_ = new global::Atlas.Augmented.BoundingBox(); } BoundingBox.MergeFrom(other.BoundingBox); } }