类 FileWithBytes.Builder
java.lang.Object
io.github.a2ap.core.model.FileWithBytes.Builder
- 封闭类:
- FileWithBytes
Builder class for FileWithBytes.
-
方法概要
修饰符和类型方法说明build()Builds a new FileWithBytes instance.Sets the base64-encoded content.Sets the MIME type.Sets the file name.
-
方法详细资料
-
name
Sets the file name.- 参数:
name- the file name- 返回:
- this builder for chaining
-
mimeType
Sets the MIME type.- 参数:
mimeType- the MIME type- 返回:
- this builder for chaining
-
bytes
Sets the base64-encoded content.- 参数:
bytes- the base64-encoded content- 返回:
- this builder for chaining
-
build
Builds a new FileWithBytes instance.- 返回:
- the built instance
-