Package com.openai.models.uploads.parts
Class PartCreateParams.Body
-
- All Implemented Interfaces:
public final class PartCreateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
PartCreateParams.Body.Builder
A builder for Body.
-
Method Summary
Modifier and Type Method Description final InputStream
data()
The chunk of bytes for this Part. final MultipartField<InputStream>
_data()
Returns the raw multipart value of data. final PartCreateParams.Body.Builder
toBuilder()
final PartCreateParams.Body
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static PartCreateParams.Body.Builder
builder()
Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
data
final InputStream data()
The chunk of bytes for this Part.
-
_data
final MultipartField<InputStream> _data()
Returns the raw multipart value of data.
Unlike data, this method doesn't throw if the multipart field has an unexpected type.
-
toBuilder
final PartCreateParams.Body.Builder toBuilder()
-
validate
final PartCreateParams.Body validate()
-
builder
final static PartCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.data()
-
-
-
-