类 FileWithBytes

java.lang.Object
io.github.a2ap.core.model.FileContent
io.github.a2ap.core.model.FileWithBytes

public class FileWithBytes extends FileContent
file bytes content
  • 构造器详细资料

    • FileWithBytes

      public FileWithBytes()
      Default constructor.
    • FileWithBytes

      public FileWithBytes(String bytes)
      Constructor with bytes.
      参数:
      bytes - the base64-encoded content
    • FileWithBytes

      public FileWithBytes(String name, String mimeType, String bytes)
      Constructor with name, MIME type, and bytes.
      参数:
      name - the file name
      mimeType - the MIME type
      bytes - the base64-encoded content
  • 方法详细资料

    • getBytes

      public String getBytes()
      Gets the base64-encoded content.
      返回:
      the base64-encoded content
    • setBytes

      public void setBytes(String bytes)
      Sets the base64-encoded content.
      参数:
      bytes - the base64-encoded content to set
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 FileContent
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 FileContent
    • toString

      public String toString()
      覆盖:
      toString 在类中 FileContent
    • builder

      public static FileWithBytes.Builder builder()
      Returns a builder for FileWithBytes.
      返回:
      a new builder instance