Package com.openai.models.beta.realtime
Class RateLimitsUpdatedEvent.RateLimit
-
- All Implemented Interfaces:
public final class RateLimitsUpdatedEvent.RateLimit
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RateLimitsUpdatedEvent.RateLimit.Builder
A builder for RateLimit.
public final class
RateLimitsUpdatedEvent.RateLimit.Name
The name of the rate limit (
requests
,tokens
).
-
Method Summary
Modifier and Type Method Description final Optional<Long>
limit()
The maximum allowed value for the rate limit. final Optional<RateLimitsUpdatedEvent.RateLimit.Name>
name()
The name of the rate limit ( requests
,tokens
).final Optional<Long>
remaining()
The remaining value before the limit is reached. final Optional<Double>
resetSeconds()
Seconds until the rate limit resets. final JsonField<Long>
_limit()
Returns the raw JSON value of limit. final JsonField<RateLimitsUpdatedEvent.RateLimit.Name>
_name()
Returns the raw JSON value of name. final JsonField<Long>
_remaining()
Returns the raw JSON value of remaining. final JsonField<Double>
_resetSeconds()
Returns the raw JSON value of resetSeconds. final Map<String, JsonValue>
_additionalProperties()
final RateLimitsUpdatedEvent.RateLimit.Builder
toBuilder()
final RateLimitsUpdatedEvent.RateLimit
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RateLimitsUpdatedEvent.RateLimit.Builder
builder()
Returns a mutable builder for constructing an instance of RateLimit. -
-
Method Detail
-
name
final Optional<RateLimitsUpdatedEvent.RateLimit.Name> name()
The name of the rate limit (
requests
,tokens
).
-
resetSeconds
final Optional<Double> resetSeconds()
Seconds until the rate limit resets.
-
_limit
final JsonField<Long> _limit()
Returns the raw JSON value of limit.
Unlike limit, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<RateLimitsUpdatedEvent.RateLimit.Name> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_remaining
final JsonField<Long> _remaining()
Returns the raw JSON value of remaining.
Unlike remaining, this method doesn't throw if the JSON field has an unexpected type.
-
_resetSeconds
final JsonField<Double> _resetSeconds()
Returns the raw JSON value of resetSeconds.
Unlike resetSeconds, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RateLimitsUpdatedEvent.RateLimit.Builder toBuilder()
-
validate
final RateLimitsUpdatedEvent.RateLimit validate()
-
builder
final static RateLimitsUpdatedEvent.RateLimit.Builder builder()
Returns a mutable builder for constructing an instance of RateLimit.
-
-
-
-