Skip to content

Commit

Permalink
Add Name() access to the source names in api2.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 703479142
  • Loading branch information
MediaPipe Team authored and copybara-github committed Dec 6, 2024
1 parent f264ea8 commit 12e3389
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mediapipe/framework/api2/builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ class SourceImpl {
return !(*this == other);
}

const std::string& Name() const { return base_->name_; }

Src& SetName(const char* name) {
base_->name_ = std::string(name);
return *this;
Expand Down

0 comments on commit 12e3389

Please sign in to comment.