Class RealtimeTranslationSessionUpdateEvent
-
- All Implemented Interfaces:
public final class RealtimeTranslationSessionUpdateEventSend this event to update the translation session configuration. Translation sessions support updates to
audio.output.language,audio.input.transcription, andaudio.input.noise_reduction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeTranslationSessionUpdateEvent.BuilderA builder for RealtimeTranslationSessionUpdateEvent.
-
Method Summary
Modifier and Type Method Description final RealtimeTranslationSessionUpdateRequestsession()Translation session fields to update. final JsonValue_type()The event type, must be session.update.final Optional<String>eventId()Optional client-generated ID used to identify this event. final JsonField<RealtimeTranslationSessionUpdateRequest>_session()Returns the raw JSON value of session. final JsonField<String>_eventId()Returns the raw JSON value of eventId. final Map<String, JsonValue>_additionalProperties()final RealtimeTranslationSessionUpdateEvent.BuildertoBuilder()final RealtimeTranslationSessionUpdateEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeTranslationSessionUpdateEvent.Builderbuilder()Returns a mutable builder for constructing an instance of RealtimeTranslationSessionUpdateEvent. -
-
Method Detail
-
session
final RealtimeTranslationSessionUpdateRequest session()
Translation session fields to update. The session
typeandmodelare set at creation and cannot be changed withsession.update.
-
_type
final JsonValue _type()
The event type, must be
session.update.Expected to always return the following:
JsonValue.from("session.update")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_session
final JsonField<RealtimeTranslationSessionUpdateRequest> _session()
Returns the raw JSON value of session.
Unlike session, this method doesn't throw if the JSON field has an unexpected type.
-
_eventId
final JsonField<String> _eventId()
Returns the raw JSON value of eventId.
Unlike eventId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeTranslationSessionUpdateEvent.Builder toBuilder()
-
validate
final RealtimeTranslationSessionUpdateEvent validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static RealtimeTranslationSessionUpdateEvent.Builder builder()
Returns a mutable builder for constructing an instance of RealtimeTranslationSessionUpdateEvent.
The following fields are required:
.session()
-
-
-
-