Class FixRequest

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

public class FixRequest extends Object
FixRequest

Request parameters specific to FIX sessions, used for generating and validating security patches.

  • Constructor Details

    • FixRequest

      public FixRequest(@Nullable String description, @Nullable String findingId, @Nullable List<FileContent> sourceFiles)
    • FixRequest

      public FixRequest()
  • Method Details

    • description

      public Optional<String> description()
      Additional context or custom instructions provided by the user to guide the patch generation process.
    • findingId

      public Optional<String> findingId()
      The identifier of the specific security finding to be remediated. This ID maps to a previously discovered vulnerability.
    • sourceFiles

      public Optional<List<FileContent>> sourceFiles()
      A list of source files providing context for the remediation. These files are typically the ones containing the identified vulnerability.
    • builder

      public static FixRequest.Builder builder()
    • withDescription

      public FixRequest withDescription(@Nullable String description)
      Additional context or custom instructions provided by the user to guide the patch generation process.
    • withFindingId

      public FixRequest withFindingId(@Nullable String findingId)
      The identifier of the specific security finding to be remediated. This ID maps to a previously discovered vulnerability.
    • withSourceFiles

      public FixRequest withSourceFiles(@Nullable List<FileContent> sourceFiles)
      A list of source files providing context for the remediation. These files are typically the ones containing the identified vulnerability.
    • 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