Package com.openai.models
Class UploadPartCreateParams
-
- All Implemented Interfaces:
-
com.openai.core.Params
public final class UploadPartCreateParams implements Params
Adds a Part to an Upload object. A Part represents a chunk of bytes from the file you are trying to upload.
Each Part can be at most 64 MB, and you can add Parts until you hit the Upload maximum of 8 GB.
It is possible to add multiple Parts in parallel. You can decide the intended order of the Parts when you complete the Upload.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUploadPartCreateParams.Bodypublic final classUploadPartCreateParams.BuilderA builder for UploadPartCreateParams.
-
Method Summary
Modifier and Type Method Description final StringuploadId()final ByteArraydata()The chunk of bytes for this Part. final MultipartField<ByteArray>_data()The chunk of bytes for this Part. final Headers_additionalHeaders()final QueryParams_additionalQueryParams()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. final StringgetPathParam(Integer index)final UploadPartCreateParams.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UploadPartCreateParams.Builderbuilder()Returns a mutable builder for constructing an instance of UploadPartCreateParams. -
-
Method Detail
-
_data
final MultipartField<ByteArray> _data()
The chunk of bytes for this Part.
-
_additionalHeaders
final Headers _additionalHeaders()
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
getPathParam
final String getPathParam(Integer index)
-
toBuilder
final UploadPartCreateParams.Builder toBuilder()
-
builder
final static UploadPartCreateParams.Builder builder()
Returns a mutable builder for constructing an instance of UploadPartCreateParams.
The following fields are required:
.uploadId() .data()
-
-
-
-