类 FileWithBytes
java.lang.Object
io.github.a2ap.core.model.FileContent
io.github.a2ap.core.model.FileWithBytes
file bytes content
-
嵌套类概要
嵌套类 -
构造器概要
构造器构造器说明Default constructor.FileWithBytes(String bytes) Constructor with bytes.FileWithBytes(String name, String mimeType, String bytes) Constructor with name, MIME type, and bytes. -
方法概要
从类继承的方法 io.github.a2ap.core.model.FileContent
getMimeType, getName, setMimeType, setName
-
构造器详细资料
-
FileWithBytes
public FileWithBytes()Default constructor. -
FileWithBytes
Constructor with bytes.- 参数:
bytes- the base64-encoded content
-
FileWithBytes
Constructor with name, MIME type, and bytes.- 参数:
name- the file namemimeType- the MIME typebytes- the base64-encoded content
-
-
方法详细资料
-
getBytes
Gets the base64-encoded content.- 返回:
- the base64-encoded content
-
setBytes
Sets the base64-encoded content.- 参数:
bytes- the base64-encoded content to set
-
equals
- 覆盖:
equals在类中FileContent
-
hashCode
public int hashCode()- 覆盖:
hashCode在类中FileContent
-
toString
- 覆盖:
toString在类中FileContent
-
builder
Returns a builder for FileWithBytes.- 返回:
- a new builder instance
-