Package com.openai.models.conversations
Class InputFileContent
-
- All Implemented Interfaces:
public final class InputFileContent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
InputFileContent.Builder
A builder for InputFileContent.
-
Method Summary
Modifier and Type Method Description final Optional<String>
fileId()
The ID of the file to be sent to the model. final JsonValue
_type()
The type of the input item. final Optional<String>
fileUrl()
The URL of the file to be sent to the model. final Optional<String>
filename()
The name of the file to be sent to the model. final JsonField<String>
_fileId()
Returns the raw JSON value of fileId. final JsonField<String>
_fileUrl()
Returns the raw JSON value of fileUrl. final JsonField<String>
_filename()
Returns the raw JSON value of filename. final Map<String, JsonValue>
_additionalProperties()
final InputFileContent.Builder
toBuilder()
final InputFileContent
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static InputFileContent.Builder
builder()
Returns a mutable builder for constructing an instance of InputFileContent. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the input item. Always
input_file
.Expected to always return the following:
JsonValue.from("input_file")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_fileUrl
final JsonField<String> _fileUrl()
Returns the raw JSON value of fileUrl.
Unlike fileUrl, 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 InputFileContent.Builder toBuilder()
-
validate
final InputFileContent validate()
-
builder
final static InputFileContent.Builder builder()
Returns a mutable builder for constructing an instance of InputFileContent.
The following fields are required:
.fileId()
-
-
-
-