类 FileWithUri

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

public class FileWithUri extends FileContent
file url content
  • 构造器详细资料

    • FileWithUri

      public FileWithUri()
      Default constructor.
    • FileWithUri

      public FileWithUri(String uri)
      Constructor with URI.
      参数:
      uri - the file URI
    • FileWithUri

      public FileWithUri(String name, String mimeType, String uri)
      Constructor with name, MIME type, and URI.
      参数:
      name - the file name
      mimeType - the MIME type
      uri - the file URI
  • 方法详细资料

    • getUri

      public String getUri()
      Gets the URI of the file.
      返回:
      the URI
    • setUri

      public void setUri(String uri)
      Sets the URI of the file.
      参数:
      uri - the URI 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 FileWithUri.Builder builder()
      Returns a builder for FileWithUri.
      返回:
      a new builder instance