类 TextPart

java.lang.Object
io.github.a2ap.core.model.Part
io.github.a2ap.core.model.TextPart

public class TextPart extends Part
Represents a text part of a message.
  • 构造器详细资料

    • TextPart

      public TextPart()
      Default constructor
    • TextPart

      public TextPart(String text)
      Constructor with text
      参数:
      text - The text content
  • 方法详细资料

    • getKind

      public String getKind()
      Gets the kind
      覆盖:
      getKind 在类中 Part
      返回:
      The kind, always "text"
    • getText

      public String getText()
      Gets the text content
      返回:
      The text content
    • setText

      public void setText(String text)
      Sets the text content
      参数:
      text - The text content to set
    • equals

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

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

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

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