@@ -128,6 +128,17 @@ export function batchJobDestinationFromVertex(
128128 common . setValueByPath ( toObject , [ 'bigqueryUri' ] , fromBigqueryUri ) ;
129129 }
130130
131+ const fromVertexDataset = common . getValueByPath ( fromObject , [
132+ 'vertexMultimodalDatasetDestination' ,
133+ ] ) ;
134+ if ( fromVertexDataset != null ) {
135+ common . setValueByPath (
136+ toObject ,
137+ [ 'vertexDataset' ] ,
138+ vertexMultimodalDatasetDestinationFromVertex ( fromVertexDataset ) ,
139+ ) ;
140+ }
141+
131142 return toObject ;
132143}
133144
@@ -178,6 +189,17 @@ export function batchJobDestinationToVertex(
178189 ) ;
179190 }
180191
192+ const fromVertexDataset = common . getValueByPath ( fromObject , [
193+ 'vertexDataset' ,
194+ ] ) ;
195+ if ( fromVertexDataset != null ) {
196+ common . setValueByPath (
197+ toObject ,
198+ [ 'vertexMultimodalDatasetDestination' ] ,
199+ vertexMultimodalDatasetDestinationToVertex ( fromVertexDataset ) ,
200+ ) ;
201+ }
202+
181203 return toObject ;
182204}
183205
@@ -342,6 +364,18 @@ export function batchJobSourceFromVertex(
342364 common . setValueByPath ( toObject , [ 'bigqueryUri' ] , fromBigqueryUri ) ;
343365 }
344366
367+ const fromVertexDatasetName = common . getValueByPath ( fromObject , [
368+ 'vertexMultimodalDatasetSource' ,
369+ 'datasetName' ,
370+ ] ) ;
371+ if ( fromVertexDatasetName != null ) {
372+ common . setValueByPath (
373+ toObject ,
374+ [ 'vertexDatasetName' ] ,
375+ fromVertexDatasetName ,
376+ ) ;
377+ }
378+
345379 return toObject ;
346380}
347381
@@ -381,6 +415,12 @@ export function batchJobSourceToMldev(
381415 common . setValueByPath ( toObject , [ 'requests' , 'requests' ] , transformedList ) ;
382416 }
383417
418+ if ( common . getValueByPath ( fromObject , [ 'vertexDatasetName' ] ) !== undefined ) {
419+ throw new Error (
420+ 'vertexDatasetName parameter is not supported in Gemini API.' ,
421+ ) ;
422+ }
423+
384424 return toObject ;
385425}
386426
@@ -416,6 +456,17 @@ export function batchJobSourceToVertex(
416456 throw new Error ( 'inlinedRequests parameter is not supported in Vertex AI.' ) ;
417457 }
418458
459+ const fromVertexDatasetName = common . getValueByPath ( fromObject , [
460+ 'vertexDatasetName' ,
461+ ] ) ;
462+ if ( fromVertexDatasetName != null ) {
463+ common . setValueByPath (
464+ toObject ,
465+ [ 'vertexMultimodalDatasetSource' , 'datasetName' ] ,
466+ fromVertexDatasetName ,
467+ ) ;
468+ }
469+
419470 return toObject ;
420471}
421472
@@ -1989,3 +2040,52 @@ export function toolToMldev(fromObject: types.Tool): Record<string, unknown> {
19892040
19902041 return toObject ;
19912042}
2043+
2044+ export function vertexMultimodalDatasetDestinationFromVertex (
2045+ fromObject : types . VertexMultimodalDatasetDestination ,
2046+ ) : Record < string , unknown > {
2047+ const toObject : Record < string , unknown > = { } ;
2048+
2049+ const fromBigqueryDestination = common . getValueByPath ( fromObject , [
2050+ 'bigqueryDestination' ,
2051+ 'outputUri' ,
2052+ ] ) ;
2053+ if ( fromBigqueryDestination != null ) {
2054+ common . setValueByPath (
2055+ toObject ,
2056+ [ 'bigqueryDestination' ] ,
2057+ fromBigqueryDestination ,
2058+ ) ;
2059+ }
2060+
2061+ const fromDisplayName = common . getValueByPath ( fromObject , [ 'displayName' ] ) ;
2062+ if ( fromDisplayName != null ) {
2063+ common . setValueByPath ( toObject , [ 'displayName' ] , fromDisplayName ) ;
2064+ }
2065+
2066+ return toObject ;
2067+ }
2068+
2069+ export function vertexMultimodalDatasetDestinationToVertex (
2070+ fromObject : types . VertexMultimodalDatasetDestination ,
2071+ ) : Record < string , unknown > {
2072+ const toObject : Record < string , unknown > = { } ;
2073+
2074+ const fromBigqueryDestination = common . getValueByPath ( fromObject , [
2075+ 'bigqueryDestination' ,
2076+ ] ) ;
2077+ if ( fromBigqueryDestination != null ) {
2078+ common . setValueByPath (
2079+ toObject ,
2080+ [ 'bigqueryDestination' , 'outputUri' ] ,
2081+ fromBigqueryDestination ,
2082+ ) ;
2083+ }
2084+
2085+ const fromDisplayName = common . getValueByPath ( fromObject , [ 'displayName' ] ) ;
2086+ if ( fromDisplayName != null ) {
2087+ common . setValueByPath ( toObject , [ 'displayName' ] , fromDisplayName ) ;
2088+ }
2089+
2090+ return toObject ;
2091+ }
0 commit comments