Skip to content

Commit e03296a

Browse files
google-genai-botcopybara-github
authored andcommitted
feat: Add parameters to video response_format.
PiperOrigin-RevId: 910867624
1 parent 0d1cc9c commit e03296a

3 files changed

Lines changed: 429 additions & 16 deletions

File tree

src/main/java/com/google/genai/interactions/models/interactions/AudioResponseFormat.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,15 +317,15 @@ private constructor(
317317

318318
@JvmField val INLINE = of("inline")
319319

320-
@JvmField val URL = of("url")
320+
@JvmField val URI = of("uri")
321321

322322
@JvmStatic fun of(value: String) = Delivery(JsonField.of(value))
323323
}
324324

325325
/** An enum containing [Delivery]'s known values. */
326326
enum class Known {
327327
INLINE,
328-
URL,
328+
URI,
329329
}
330330

331331
/**
@@ -339,7 +339,7 @@ private constructor(
339339
*/
340340
enum class Value {
341341
INLINE,
342-
URL,
342+
URI,
343343
/** An enum member indicating that [Delivery] was instantiated with an unknown value. */
344344
_UNKNOWN,
345345
}
@@ -354,7 +354,7 @@ private constructor(
354354
fun value(): Value =
355355
when (this) {
356356
INLINE -> Value.INLINE
357-
URL -> Value.URL
357+
URI -> Value.URI
358358
else -> Value._UNKNOWN
359359
}
360360

@@ -370,7 +370,7 @@ private constructor(
370370
fun known(): Known =
371371
when (this) {
372372
INLINE -> Known.INLINE
373-
URL -> Known.URL
373+
URI -> Known.URI
374374
else -> throw GeminiNextGenApiInvalidDataException("Unknown Delivery: $value")
375375
}
376376

src/main/java/com/google/genai/interactions/models/interactions/ImageResponseFormat.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -528,15 +528,15 @@ private constructor(
528528

529529
@JvmField val INLINE = of("inline")
530530

531-
@JvmField val URL = of("url")
531+
@JvmField val URI = of("uri")
532532

533533
@JvmStatic fun of(value: String) = Delivery(JsonField.of(value))
534534
}
535535

536536
/** An enum containing [Delivery]'s known values. */
537537
enum class Known {
538538
INLINE,
539-
URL,
539+
URI,
540540
}
541541

542542
/**
@@ -550,7 +550,7 @@ private constructor(
550550
*/
551551
enum class Value {
552552
INLINE,
553-
URL,
553+
URI,
554554
/** An enum member indicating that [Delivery] was instantiated with an unknown value. */
555555
_UNKNOWN,
556556
}
@@ -565,7 +565,7 @@ private constructor(
565565
fun value(): Value =
566566
when (this) {
567567
INLINE -> Value.INLINE
568-
URL -> Value.URL
568+
URI -> Value.URI
569569
else -> Value._UNKNOWN
570570
}
571571

@@ -581,7 +581,7 @@ private constructor(
581581
fun known(): Known =
582582
when (this) {
583583
INLINE -> Known.INLINE
584-
URL -> Known.URL
584+
URI -> Known.URI
585585
else -> throw GeminiNextGenApiInvalidDataException("Unknown Delivery: $value")
586586
}
587587

0 commit comments

Comments
 (0)