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 classPartCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final InputStreamdata()The chunk of bytes for this Part. final MultipartField<InputStream>_data()Returns the raw multipart value of data. final Map<String, JsonValue>_additionalProperties()final PartCreateParams.Body.BuildertoBuilder()final PartCreateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static PartCreateParams.Body.Builderbuilder()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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final PartCreateParams.Body.Builder toBuilder()
-
validate
final PartCreateParams.Body 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 PartCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.data()
-
-
-
-