Class Upload
- 
                    
                    - All Implemented Interfaces:
 
 public final class UploadThe Upload object can accept byte chunks in the form of Parts. 
- 
                
                    
                    - 
                                
                            
                                Nested Class SummaryNested Classes Modifier and Type Class Description public final classUpload.BuilderA builder for Upload. public final classUpload.StatusThe status of the Upload. 
 - 
                                
                            
                                Method SummaryModifier and Type Method Description final Stringid()The Upload unique identifier, which can be referenced in API endpoints. final Longbytes()The intended number of bytes to be uploaded. final LongcreatedAt()The Unix timestamp (in seconds) for when the Upload was created. final LongexpiresAt()The Unix timestamp (in seconds) for when the Upload will expire. final Stringfilename()The name of the file to be uploaded. final JsonValue_object_()The object type, which is always "upload". final Stringpurpose()The intended purpose of the file. final Upload.Statusstatus()The status of the Upload. final Optional<FileObject>file()The Fileobject represents a document that has been uploaded to OpenAI.final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Long>_bytes()Returns the raw JSON value of bytes. final JsonField<Long>_createdAt()Returns the raw JSON value of createdAt. final JsonField<Long>_expiresAt()Returns the raw JSON value of expiresAt. final JsonField<String>_filename()Returns the raw JSON value of filename. final JsonField<String>_purpose()Returns the raw JSON value of purpose. final JsonField<Upload.Status>_status()Returns the raw JSON value of status. final JsonField<FileObject>_file()Returns the raw JSON value of file. final Map<String, JsonValue>_additionalProperties()final Upload.BuildertoBuilder()final Uploadvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static Upload.Builderbuilder()Returns a mutable builder for constructing an instance of Upload. - 
                    
                    
                    - 
                                
                            
                                Method Detail- 
                                        _object_final JsonValue _object_() The object type, which is always "upload". Expected to always return the following: JsonValue.from("upload")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value). 
 - 
                                        purposefinal String purpose() The intended purpose of the file. Please refer here for acceptable values. 
 - 
                                        statusfinal Upload.Status status() The status of the Upload. 
 - 
                                        filefinal Optional<FileObject> file() The Fileobject represents a document that has been uploaded to OpenAI.
 - 
                                        _idfinal JsonField<String> _id() Returns the raw JSON value of id. Unlike id, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _bytesfinal JsonField<Long> _bytes() Returns the raw JSON value of bytes. Unlike bytes, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _createdAtfinal JsonField<Long> _createdAt() Returns the raw JSON value of createdAt. Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _expiresAtfinal JsonField<Long> _expiresAt() Returns the raw JSON value of expiresAt. Unlike expiresAt, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _filenamefinal 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. 
 - 
                                        _purposefinal JsonField<String> _purpose() Returns the raw JSON value of purpose. Unlike purpose, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _statusfinal JsonField<Upload.Status> _status() Returns the raw JSON value of status. Unlike status, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _filefinal JsonField<FileObject> _file() Returns the raw JSON value of file. Unlike file, this method doesn't throw if the JSON field has an unexpected type. 
 - 
                                        _additionalPropertiesfinal Map<String, JsonValue> _additionalProperties() 
 - 
                                        toBuilderfinal Upload.Builder toBuilder() 
 - 
                                        builderfinal static Upload.Builder builder() Returns a mutable builder for constructing an instance of Upload. The following fields are required: .id() .bytes() .createdAt() .expiresAt() .filename() .purpose() .status()
 
- 
                                        
 
- 
                                
                            
                                
 
- 
                    
                    
                    
 
-