Class RealtimeTranscriptionSessionClientSecret
-
- All Implemented Interfaces:
public final class RealtimeTranscriptionSessionClientSecret
Ephemeral key returned by the API. Only present when the session is created on the server via REST API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RealtimeTranscriptionSessionClientSecret.Builder
A builder for RealtimeTranscriptionSessionClientSecret.
-
Method Summary
Modifier and Type Method Description final Long
expiresAt()
Timestamp for when the token expires. final String
value()
Ephemeral key usable in client environments to authenticate connections to the Realtime API. final JsonField<Long>
_expiresAt()
Returns the raw JSON value of expiresAt. final JsonField<String>
_value()
Returns the raw JSON value of value. final Map<String, JsonValue>
_additionalProperties()
final RealtimeTranscriptionSessionClientSecret.Builder
toBuilder()
final RealtimeTranscriptionSessionClientSecret
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RealtimeTranscriptionSessionClientSecret.Builder
builder()
Returns a mutable builder for constructing an instance of RealtimeTranscriptionSessionClientSecret. -
-
Method Detail
-
expiresAt
final Long expiresAt()
Timestamp for when the token expires. Currently, all tokens expire after one minute.
-
value
final String value()
Ephemeral key usable in client environments to authenticate connections to the Realtime API. Use this in client-side environments rather than a standard API token, which should only be used server-side.
-
_expiresAt
final JsonField<Long> _expiresAt()
Returns the raw JSON value of expiresAt.
Unlike expiresAt, this method doesn't throw if the JSON field has an unexpected type.
-
_value
final JsonField<String> _value()
Returns the raw JSON value of value.
Unlike value, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RealtimeTranscriptionSessionClientSecret.Builder toBuilder()
-
validate
final RealtimeTranscriptionSessionClientSecret validate()
-
builder
final static RealtimeTranscriptionSessionClientSecret.Builder builder()
Returns a mutable builder for constructing an instance of RealtimeTranscriptionSessionClientSecret.
The following fields are required:
.expiresAt() .value()
-
-
-
-