Class FileContent
java.lang.Object
co.elastic.clients.elasticsearch.inference.FileContent
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<FileContent>Json deserializer forFileContent -
Method Summary
Modifier and TypeMethodDescriptionfinal StringfileData()Required - The base64 encoded file datafinal Stringfilename()Required - The name of the filestatic FileContentrebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forFileContent
-
-
Method Details
-
of
-
fileData
Required - The base64 encoded file dataAPI name:
file_data -
filename
Required - The name of the fileAPI name:
filename -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
FileContent.Builderinitialized with field values of this instance
-
setupFileContentDeserializer
-