Class FileContent

java.lang.Object
com.google.genai.gaos.models.interactions.FileContent

public class FileContent extends Object
FileContent

Content of a single file in the codebase.

  • Constructor Details

    • FileContent

      public FileContent(@Nullable String content, @Nullable String path)
    • FileContent

      public FileContent()
  • Method Details

    • content

      public Optional<String> content()
      The UTF-8 encoded text content of the file.
    • path

      public Optional<String> path()
      The relative path of the file from the project root.
    • builder

      public static FileContent.Builder builder()
    • withContent

      public FileContent withContent(@Nullable String content)
      The UTF-8 encoded text content of the file.
    • withPath

      public FileContent withPath(@Nullable String path)
      The relative path of the file from the project root.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object