Package com.openai.models.beta.chatkit
Class ChatKitUploadFileResponse
-
- All Implemented Interfaces:
public final class ChatKitUploadFileResponse
Represents either a file or image attachment.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ChatKitUploadFileResponse.Visitor
An interface that defines how to map each variant of ChatKitUploadFileResponse to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<FilePart>
file()
Metadata for a non-image file uploaded through ChatKit. final Optional<ImagePart>
image()
Metadata for an image uploaded through ChatKit. final Boolean
isFile()
final Boolean
isImage()
final FilePart
asFile()
Metadata for a non-image file uploaded through ChatKit. final ImagePart
asImage()
Metadata for an image uploaded through ChatKit. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(ChatKitUploadFileResponse.Visitor<T> visitor)
final ChatKitUploadFileResponse
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatKitUploadFileResponse
ofFile(FilePart file)
Metadata for a non-image file uploaded through ChatKit. final static ChatKitUploadFileResponse
ofImage(ImagePart image)
Metadata for an image uploaded through ChatKit. -
-
Method Detail
-
accept
final <T extends Any> T accept(ChatKitUploadFileResponse.Visitor<T> visitor)
-
validate
final ChatKitUploadFileResponse validate()
-
ofFile
final static ChatKitUploadFileResponse ofFile(FilePart file)
Metadata for a non-image file uploaded through ChatKit.
-
ofImage
final static ChatKitUploadFileResponse ofImage(ImagePart image)
Metadata for an image uploaded through ChatKit.
-
-
-
-