Class ProjectRateLimit
-
- All Implemented Interfaces:
public final class ProjectRateLimitRepresents a project rate limit config.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classProjectRateLimit.BuilderA builder for ProjectRateLimit.
-
Method Summary
Modifier and Type Method Description final Stringid()The identifier, which can be referenced in API endpoints. final LongmaxRequestsPer1Minute()The maximum requests per minute. final LongmaxTokensPer1Minute()The maximum tokens per minute. final Stringmodel()The model this rate limit applies to. final JsonValue_object_()The object type, which is always project.rate_limitExpected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("project.rate_limit")final Optional<Long>batch1DayMaxInputTokens()The maximum batch input tokens per day. final Optional<Long>maxAudioMegabytesPer1Minute()The maximum audio megabytes per minute. final Optional<Long>maxImagesPer1Minute()The maximum images per minute. final Optional<Long>maxRequestsPer1Day()The maximum requests per day. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Long>_maxRequestsPer1Minute()Returns the raw JSON value of maxRequestsPer1Minute. final JsonField<Long>_maxTokensPer1Minute()Returns the raw JSON value of maxTokensPer1Minute. final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<Long>_batch1DayMaxInputTokens()Returns the raw JSON value of batch1DayMaxInputTokens. final JsonField<Long>_maxAudioMegabytesPer1Minute()Returns the raw JSON value of maxAudioMegabytesPer1Minute. final JsonField<Long>_maxImagesPer1Minute()Returns the raw JSON value of maxImagesPer1Minute. final JsonField<Long>_maxRequestsPer1Day()Returns the raw JSON value of maxRequestsPer1Day. final Map<String, JsonValue>_additionalProperties()final ProjectRateLimit.BuildertoBuilder()final ProjectRateLimitvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ProjectRateLimit.Builderbuilder()Returns a mutable builder for constructing an instance of ProjectRateLimit. -
-
Method Detail
-
maxRequestsPer1Minute
final Long maxRequestsPer1Minute()
The maximum requests per minute.
-
maxTokensPer1Minute
final Long maxTokensPer1Minute()
The maximum tokens per minute.
-
_object_
final JsonValue _object_()
The object type, which is always
project.rate_limitExpected to always return the following:
JsonValue.from("project.rate_limit")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
batch1DayMaxInputTokens
final Optional<Long> batch1DayMaxInputTokens()
The maximum batch input tokens per day. Only present for relevant models.
-
maxAudioMegabytesPer1Minute
final Optional<Long> maxAudioMegabytesPer1Minute()
The maximum audio megabytes per minute. Only present for relevant models.
-
maxImagesPer1Minute
final Optional<Long> maxImagesPer1Minute()
The maximum images per minute. Only present for relevant models.
-
maxRequestsPer1Day
final Optional<Long> maxRequestsPer1Day()
The maximum requests per day. Only present for relevant models.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_maxRequestsPer1Minute
final JsonField<Long> _maxRequestsPer1Minute()
Returns the raw JSON value of maxRequestsPer1Minute.
Unlike maxRequestsPer1Minute, this method doesn't throw if the JSON field has an unexpected type.
-
_maxTokensPer1Minute
final JsonField<Long> _maxTokensPer1Minute()
Returns the raw JSON value of maxTokensPer1Minute.
Unlike maxTokensPer1Minute, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_batch1DayMaxInputTokens
final JsonField<Long> _batch1DayMaxInputTokens()
Returns the raw JSON value of batch1DayMaxInputTokens.
Unlike batch1DayMaxInputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_maxAudioMegabytesPer1Minute
final JsonField<Long> _maxAudioMegabytesPer1Minute()
Returns the raw JSON value of maxAudioMegabytesPer1Minute.
Unlike maxAudioMegabytesPer1Minute, this method doesn't throw if the JSON field has an unexpected type.
-
_maxImagesPer1Minute
final JsonField<Long> _maxImagesPer1Minute()
Returns the raw JSON value of maxImagesPer1Minute.
Unlike maxImagesPer1Minute, this method doesn't throw if the JSON field has an unexpected type.
-
_maxRequestsPer1Day
final JsonField<Long> _maxRequestsPer1Day()
Returns the raw JSON value of maxRequestsPer1Day.
Unlike maxRequestsPer1Day, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ProjectRateLimit.Builder toBuilder()
-
validate
final ProjectRateLimit 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 ProjectRateLimit.Builder builder()
Returns a mutable builder for constructing an instance of ProjectRateLimit.
The following fields are required:
.id() .maxRequestsPer1Minute() .maxTokensPer1Minute() .model()
-
-
-
-