Commit 965395b
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.
PiperOrigin-RevId: 8619691781 parent a0240d9 commit 965395b
File tree
3 files changed
+22
-22
lines changed- google/genai
- tests/files
3 files changed
+22
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
104 | 115 | | |
105 | 116 | | |
106 | 117 | | |
| |||
152 | 163 | | |
153 | 164 | | |
154 | 165 | | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
| 441 | + | |
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
| 452 | + | |
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
| 980 | + | |
981 | 981 | | |
982 | 982 | | |
983 | 983 | | |
| |||
988 | 988 | | |
989 | 989 | | |
990 | 990 | | |
991 | | - | |
| 991 | + | |
992 | 992 | | |
993 | 993 | | |
994 | 994 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14026 | 14026 | | |
14027 | 14027 | | |
14028 | 14028 | | |
14029 | | - | |
14030 | | - | |
| 14029 | + | |
| 14030 | + | |
14031 | 14031 | | |
14032 | 14032 | | |
14033 | 14033 | | |
| |||
14039 | 14039 | | |
14040 | 14040 | | |
14041 | 14041 | | |
14042 | | - | |
14043 | | - | |
| 14042 | + | |
| 14043 | + | |
14044 | 14044 | | |
14045 | 14045 | | |
14046 | 14046 | | |
| |||
14049 | 14049 | | |
14050 | 14050 | | |
14051 | 14051 | | |
14052 | | - | |
14053 | | - | |
| 14052 | + | |
| 14053 | + | |
14054 | 14054 | | |
14055 | 14055 | | |
14056 | 14056 | | |
| |||
0 commit comments