Package com.google.genai.types
Class Transcription
-
- All Implemented Interfaces:
public abstract class Transcription extends JsonSerializable
Audio transcription in Server Conent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classTranscription.BuilderBuilder for Transcription.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description Transcription()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>text()Optional. abstract Optional<Boolean>finished()Optional. static Transcription.Builderbuilder()Instantiates a builder for Transcription. abstract Transcription.BuildertoBuilder()Creates a builder with the same values as this instance. static TranscriptionfromJson(String jsonString)Deserializes a JSON string to a Transcription object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
finished
abstract Optional<Boolean> finished()
Optional. The bool indicates the end of the transcription.
-
builder
static Transcription.Builder builder()
Instantiates a builder for Transcription.
-
toBuilder
abstract Transcription.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static Transcription fromJson(String jsonString)
Deserializes a JSON string to a Transcription object.
-
-
-
-