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 class
UploadPartCreateParams.Body
public final class
UploadPartCreateParams.Builder
A builder for UploadPartCreateParams.
-
Method Summary
Modifier and Type Method Description final String
uploadId()
final ByteArray
data()
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 String
getPathParam(Integer index)
final UploadPartCreateParams.Builder
toBuilder()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static UploadPartCreateParams.Builder
builder()
-
-
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()
-
-
-
-