Skip to content

Commit 640419d

Browse files
amirhcopybara-github
authored andcommitted
No public description
PiperOrigin-RevId: 906666964
1 parent e089fcb commit 640419d

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

  • src/main/java/com/google/genai/interactions/models/interactions

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,7 +2070,7 @@ private constructor(
20702070
* @throws GeminiNextGenApiInvalidDataException if the JSON field has an unexpected type
20712071
* (e.g. if the server responded with an unexpected value).
20722072
*/
2073-
@Deprecated("deprecated") fun rate(): Optional<Int> = rate.getOptional("rate")
2073+
fun rate(): Optional<Int> = rate.getOptional("rate")
20742074

20752075
/**
20762076
* The sample rate of the audio.
@@ -2116,10 +2116,7 @@ private constructor(
21162116
*
21172117
* Unlike [rate], this method doesn't throw if the JSON field has an unexpected type.
21182118
*/
2119-
@Deprecated("deprecated")
2120-
@JsonProperty("rate")
2121-
@ExcludeMissing
2122-
fun _rate(): JsonField<Int> = rate
2119+
@JsonProperty("rate") @ExcludeMissing fun _rate(): JsonField<Int> = rate
21232120

21242121
/**
21252122
* Returns the raw JSON value of [sampleRate].
@@ -2229,7 +2226,7 @@ private constructor(
22292226
fun mimeType(mimeType: JsonField<MimeType>) = apply { this.mimeType = mimeType }
22302227

22312228
/** Deprecated. Use sample_rate instead. The value is ignored. */
2232-
@Deprecated("deprecated") fun rate(rate: Int) = rate(JsonField.of(rate))
2229+
fun rate(rate: Int) = rate(JsonField.of(rate))
22332230

22342231
/**
22352232
* Sets [Builder.rate] to an arbitrary JSON value.
@@ -2238,7 +2235,6 @@ private constructor(
22382235
* This method is primarily for setting the field to an undocumented or not yet
22392236
* supported value.
22402237
*/
2241-
@Deprecated("deprecated")
22422238
fun rate(rate: JsonField<Int>) = apply { this.rate = rate }
22432239

22442240
/** The sample rate of the audio. */

0 commit comments

Comments
 (0)