Class RealtimeTranslationSessionCloseEvent
-
- All Implemented Interfaces:
public final class RealtimeTranslationSessionCloseEventGracefully close the realtime translation session. The server flushes pending input audio and emits any remaining translated output before closing the session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeTranslationSessionCloseEvent.BuilderA builder for RealtimeTranslationSessionCloseEvent.
-
Method Summary
Modifier and Type Method Description final JsonValue_type()The event type, must be session.close.final Optional<String>eventId()Optional client-generated ID used to identify this event. final JsonField<String>_eventId()Returns the raw JSON value of eventId. final Map<String, JsonValue>_additionalProperties()final RealtimeTranslationSessionCloseEvent.BuildertoBuilder()final RealtimeTranslationSessionCloseEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeTranslationSessionCloseEvent.Builderbuilder()Returns a mutable builder for constructing an instance of RealtimeTranslationSessionCloseEvent. -
-
Method Detail
-
_type
final JsonValue _type()
The event type, must be
session.close.Expected to always return the following:
JsonValue.from("session.close")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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 RealtimeTranslationSessionCloseEvent.Builder toBuilder()
-
validate
final RealtimeTranslationSessionCloseEvent 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 RealtimeTranslationSessionCloseEvent.Builder builder()
Returns a mutable builder for constructing an instance of RealtimeTranslationSessionCloseEvent.
-
-
-
-