Class ResponseInputFileContent
-
- All Implemented Interfaces:
public final class ResponseInputFileContentA file input to the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseInputFileContent.BuilderA builder for ResponseInputFileContent.
-
Method Summary
Modifier and Type Method Description final JsonValue_type()The type of the input item. final Optional<String>fileData()The base64-encoded data of the file to be sent to the model. final Optional<String>fileId()The ID of the file to be sent to the model. 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>_fileData()Returns the raw JSON value of fileData. 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 ResponseInputFileContent.BuildertoBuilder()final ResponseInputFileContentvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseInputFileContent.Builderbuilder()Returns a mutable builder for constructing an instance of ResponseInputFileContent. -
-
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).
-
fileData
final Optional<String> fileData()
The base64-encoded data of the file to be sent to the model.
-
_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.
-
_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 ResponseInputFileContent.Builder toBuilder()
-
validate
final ResponseInputFileContent validate()
-
builder
final static ResponseInputFileContent.Builder builder()
Returns a mutable builder for constructing an instance of ResponseInputFileContent.
-
-
-
-