Skip to content

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Jan 17, 2026

feat: Add registerFiles for you can use gcs files with mldev.

How does this all work?

  • Web and node need to have identical interfaces.
  • We overload the public registerFiles method in NodeFiles
  • The generator generates registerFilesInternal as private. the generator doesn't have a protected option. so we use an additional protected async _registerFiles wrapper so that registerFiles can call through to internalRegisterFiles.
  • The public RegisterFilesParameters type uses any for the type of auth, because web can't access the GoogleAuth types.
  • Renamed the old RegisterFilesParameters to InternalRegisterFilesParameters to abvoid conflict. this is backwards compatible - it wasn't publicly used.

@copybara-service copybara-service bot force-pushed the copybara/852951219 branch 12 times, most recently from ff61922 to de66808 Compare January 24, 2026 01:05
How does this all work?

- Web and node need to have __identical__ interfaces.
- We overload the public registerFiles method in NodeFiles
- The generator generates registerFilesInternal as private. the generator doesn't have a protected option. so we use an additional `protected async _registerFiles` wrapper so that registerFiles can call through to internalRegisterFiles.
- The public RegisterFilesParameters type uses `any` for the type of auth, because web can't access the GoogleAuth types.
- Renamed the old RegisterFilesParameters to InternalRegisterFilesParameters to abvoid conflict. this is backwards compatible - it wasn't publicly used.

PiperOrigin-RevId: 852951219
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant