Package com.openai.models.batches
Class BatchRequestCounts
-
- All Implemented Interfaces:
public final class BatchRequestCounts
The request counts for different statuses within the batch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
BatchRequestCounts.Builder
A builder for BatchRequestCounts.
-
Method Summary
Modifier and Type Method Description final Long
completed()
Number of requests that have been completed successfully. final Long
failed()
Number of requests that have failed. final Long
total()
Total number of requests in the batch. final JsonField<Long>
_completed()
Returns the raw JSON value of completed. final JsonField<Long>
_failed()
Returns the raw JSON value of failed. final JsonField<Long>
_total()
Returns the raw JSON value of total. final Map<String, JsonValue>
_additionalProperties()
final BatchRequestCounts.Builder
toBuilder()
final BatchRequestCounts
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static BatchRequestCounts.Builder
builder()
Returns a mutable builder for constructing an instance of BatchRequestCounts. -
-
Method Detail
-
_completed
final JsonField<Long> _completed()
Returns the raw JSON value of completed.
Unlike completed, this method doesn't throw if the JSON field has an unexpected type.
-
_failed
final JsonField<Long> _failed()
Returns the raw JSON value of failed.
Unlike failed, this method doesn't throw if the JSON field has an unexpected type.
-
_total
final JsonField<Long> _total()
Returns the raw JSON value of total.
Unlike total, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BatchRequestCounts.Builder toBuilder()
-
validate
final BatchRequestCounts validate()
-
builder
final static BatchRequestCounts.Builder builder()
Returns a mutable builder for constructing an instance of BatchRequestCounts.
The following fields are required:
.completed() .failed() .total()
-
-
-
-