|
25 | 25 | import com.google.errorprone.annotations.CanIgnoreReturnValue; |
26 | 26 | import com.google.genai.JsonSerializable; |
27 | 27 | import com.google.genai.types.GroundingMetadata; |
| 28 | +import com.google.genai.types.Transcription; |
28 | 29 | import java.util.Arrays; |
29 | 30 | import java.util.List; |
30 | 31 | import java.util.Map; |
@@ -78,6 +79,14 @@ public abstract class EventMetadata extends JsonSerializable { |
78 | 79 | @JsonProperty("turnComplete") |
79 | 80 | public abstract Optional<Boolean> turnComplete(); |
80 | 81 |
|
| 82 | + /** Optional. Audio transcription of user input. */ |
| 83 | + @JsonProperty("inputTranscription") |
| 84 | + public abstract Optional<Transcription> inputTranscription(); |
| 85 | + |
| 86 | + /** Optional. Audio transcription of model output. */ |
| 87 | + @JsonProperty("outputTranscription") |
| 88 | + public abstract Optional<Transcription> outputTranscription(); |
| 89 | + |
81 | 90 | /** Instantiates a builder for EventMetadata. */ |
82 | 91 | @ExcludeFromGeneratedCoverageReport |
83 | 92 | public static Builder builder() { |
@@ -241,6 +250,42 @@ public Builder clearTurnComplete() { |
241 | 250 | return turnComplete(Optional.empty()); |
242 | 251 | } |
243 | 252 |
|
| 253 | + /** |
| 254 | + * Setter for inputTranscription. |
| 255 | + * |
| 256 | + * <p>inputTranscription: Optional. Audio transcription of user input. |
| 257 | + */ |
| 258 | + @JsonProperty("inputTranscription") |
| 259 | + public abstract Builder inputTranscription(Transcription inputTranscription); |
| 260 | + |
| 261 | + @ExcludeFromGeneratedCoverageReport |
| 262 | + abstract Builder inputTranscription(Optional<Transcription> inputTranscription); |
| 263 | + |
| 264 | + /** Clears the value of inputTranscription field. */ |
| 265 | + @ExcludeFromGeneratedCoverageReport |
| 266 | + @CanIgnoreReturnValue |
| 267 | + public Builder clearInputTranscription() { |
| 268 | + return inputTranscription(Optional.empty()); |
| 269 | + } |
| 270 | + |
| 271 | + /** |
| 272 | + * Setter for outputTranscription. |
| 273 | + * |
| 274 | + * <p>outputTranscription: Optional. Audio transcription of model output. |
| 275 | + */ |
| 276 | + @JsonProperty("outputTranscription") |
| 277 | + public abstract Builder outputTranscription(Transcription outputTranscription); |
| 278 | + |
| 279 | + @ExcludeFromGeneratedCoverageReport |
| 280 | + abstract Builder outputTranscription(Optional<Transcription> outputTranscription); |
| 281 | + |
| 282 | + /** Clears the value of outputTranscription field. */ |
| 283 | + @ExcludeFromGeneratedCoverageReport |
| 284 | + @CanIgnoreReturnValue |
| 285 | + public Builder clearOutputTranscription() { |
| 286 | + return outputTranscription(Optional.empty()); |
| 287 | + } |
| 288 | + |
244 | 289 | public abstract EventMetadata build(); |
245 | 290 | } |
246 | 291 |
|
|
0 commit comments