Class RealtimeTranslationSession.Builder
-
- All Implemented Interfaces:
public final class RealtimeTranslationSession.BuilderA builder for RealtimeTranslationSession.
-
-
Method Summary
-
-
Method Detail
-
id
final RealtimeTranslationSession.Builder id(String id)
Unique identifier for the session that looks like
sess_1234567890abcdef.
-
id
final RealtimeTranslationSession.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
audio
final RealtimeTranslationSession.Builder audio(RealtimeTranslationSession.Audio audio)
Configuration for translation input and output audio.
-
audio
final RealtimeTranslationSession.Builder audio(JsonField<RealtimeTranslationSession.Audio> audio)
Sets Builder.audio to an arbitrary JSON value.
You should usually call Builder.audio with a well-typed Audio value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
expiresAt
final RealtimeTranslationSession.Builder expiresAt(Long expiresAt)
Expiration timestamp for the session, in seconds since epoch.
-
expiresAt
final RealtimeTranslationSession.Builder expiresAt(JsonField<Long> expiresAt)
Sets Builder.expiresAt to an arbitrary JSON value.
You should usually call Builder.expiresAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final RealtimeTranslationSession.Builder model(String model)
The Realtime translation model used for this session. This field is set at session creation and cannot be changed with
session.update.
-
model
final RealtimeTranslationSession.Builder model(JsonField<String> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final RealtimeTranslationSession.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("translation")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final RealtimeTranslationSession.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RealtimeTranslationSession.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RealtimeTranslationSession.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RealtimeTranslationSession.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RealtimeTranslationSession.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RealtimeTranslationSession build()
Returns an immutable instance of RealtimeTranslationSession.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .audio() .expiresAt() .model()
-
-
-
-