Class RealtimeTranslationSessionCreatedEvent
-
- All Implemented Interfaces:
public final class RealtimeTranslationSessionCreatedEventReturned when a translation session is created. Emitted automatically when a new connection is established as the first server event. This event contains the default translation session configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classRealtimeTranslationSessionCreatedEvent.BuilderA builder for RealtimeTranslationSessionCreatedEvent.
-
Method Summary
Modifier and Type Method Description final StringeventId()The unique ID of the server event. final RealtimeTranslationSessionsession()The translation session configuration. final JsonValue_type()The event type, must be session.created.final JsonField<String>_eventId()Returns the raw JSON value of eventId. final JsonField<RealtimeTranslationSession>_session()Returns the raw JSON value of session. final Map<String, JsonValue>_additionalProperties()final RealtimeTranslationSessionCreatedEvent.BuildertoBuilder()final RealtimeTranslationSessionCreatedEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RealtimeTranslationSessionCreatedEvent.Builderbuilder()Returns a mutable builder for constructing an instance of RealtimeTranslationSessionCreatedEvent. -
-
Method Detail
-
session
final RealtimeTranslationSession session()
The translation session configuration.
-
_type
final JsonValue _type()
The event type, must be
session.created.Expected to always return the following:
JsonValue.from("session.created")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.
-
_session
final JsonField<RealtimeTranslationSession> _session()
Returns the raw JSON value of session.
Unlike session, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeTranslationSessionCreatedEvent.Builder toBuilder()
-
validate
final RealtimeTranslationSessionCreatedEvent 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 RealtimeTranslationSessionCreatedEvent.Builder builder()
Returns a mutable builder for constructing an instance of RealtimeTranslationSessionCreatedEvent.
The following fields are required:
.eventId() .session()
-
-
-
-