类 FileWithBytes.Builder

java.lang.Object
io.github.a2ap.core.model.FileWithBytes.Builder
封闭类:
FileWithBytes

public static class FileWithBytes.Builder extends Object
Builder class for FileWithBytes.
  • 方法详细资料

    • name

      public FileWithBytes.Builder name(String name)
      Sets the file name.
      参数:
      name - the file name
      返回:
      this builder for chaining
    • mimeType

      public FileWithBytes.Builder mimeType(String mimeType)
      Sets the MIME type.
      参数:
      mimeType - the MIME type
      返回:
      this builder for chaining
    • bytes

      public FileWithBytes.Builder bytes(String bytes)
      Sets the base64-encoded content.
      参数:
      bytes - the base64-encoded content
      返回:
      this builder for chaining
    • build

      public FileWithBytes build()
      Builds a new FileWithBytes instance.
      返回:
      the built instance