Class RealtimeTranslationSessionUpdateEvent.Builder
-
- All Implemented Interfaces:
public final class RealtimeTranslationSessionUpdateEvent.BuilderA builder for RealtimeTranslationSessionUpdateEvent.
-
-
Method Summary
-
-
Method Detail
-
session
final RealtimeTranslationSessionUpdateEvent.Builder session(RealtimeTranslationSessionUpdateRequest session)
Translation session fields to update. The session
typeandmodelare set at creation and cannot be changed withsession.update.
-
session
final RealtimeTranslationSessionUpdateEvent.Builder session(JsonField<RealtimeTranslationSessionUpdateRequest> session)
Sets Builder.session to an arbitrary JSON value.
You should usually call Builder.session with a well-typed RealtimeTranslationSessionUpdateRequest value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final RealtimeTranslationSessionUpdateEvent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("session.update")This method is primarily for setting the field to an undocumented or not yet supported value.
-
eventId
final RealtimeTranslationSessionUpdateEvent.Builder eventId(String eventId)
Optional client-generated ID used to identify this event.
-
eventId
final RealtimeTranslationSessionUpdateEvent.Builder eventId(JsonField<String> eventId)
Sets Builder.eventId to an arbitrary JSON value.
You should usually call Builder.eventId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeTranslationSessionUpdateEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeTranslationSessionUpdateEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeTranslationSessionUpdateEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeTranslationSessionUpdateEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeTranslationSessionUpdateEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeTranslationSessionUpdateEvent build()
Returns an immutable instance of RealtimeTranslationSessionUpdateEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.session()
-
-
-
-