Class ChatCompletionContentPart.File.FileObject
-
- All Implemented Interfaces:
public final class ChatCompletionContentPart.File.FileObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classChatCompletionContentPart.File.FileObject.BuilderA builder for FileObject.
-
Method Summary
Modifier and Type Method Description final Optional<String>fileData()The base64 encoded file data, used when passing the file to the model as a string. final Optional<String>fileId()The ID of an uploaded file to use as input. final Optional<String>filename()The name of the file, used when passing the file to the model as a string. final JsonField<String>_fileData()Returns the raw JSON value of fileData. final JsonField<String>_fileId()Returns the raw JSON value of fileId. final JsonField<String>_filename()Returns the raw JSON value of filename. final Map<String, JsonValue>_additionalProperties()final ChatCompletionContentPart.File.FileObject.BuildertoBuilder()final ChatCompletionContentPart.File.FileObjectvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ChatCompletionContentPart.File.FileObject.Builderbuilder()Returns a mutable builder for constructing an instance of FileObject. -
-
Method Detail
-
fileData
final Optional<String> fileData()
The base64 encoded file data, used when passing the file to the model as a string.
-
filename
final Optional<String> filename()
The name of the file, used when passing the file to the model as a string.
-
_fileData
final JsonField<String> _fileData()
Returns the raw JSON value of fileData.
Unlike fileData, this method doesn't throw if the JSON field has an unexpected type.
-
_fileId
final JsonField<String> _fileId()
Returns the raw JSON value of fileId.
Unlike fileId, this method doesn't throw if the JSON field has an unexpected type.
-
_filename
final JsonField<String> _filename()
Returns the raw JSON value of filename.
Unlike filename, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ChatCompletionContentPart.File.FileObject.Builder toBuilder()
-
validate
final ChatCompletionContentPart.File.FileObject 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 ChatCompletionContentPart.File.FileObject.Builder builder()
Returns a mutable builder for constructing an instance of FileObject.
-
-
-
-