Class PartialArg

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.PartialArg

public abstract class PartialArg extends JsonSerializable
Partial argument value of the function call. This data type is not supported in Gemini API.
  • Constructor Details

    • PartialArg

      public PartialArg()
  • Method Details

    • nullValue

      public abstract Optional<NullValue> nullValue()
      Optional. Represents a null value.
    • numberValue

      public abstract Optional<Double> numberValue()
      Optional. Represents a double value.
    • stringValue

      public abstract Optional<String> stringValue()
      Optional. Represents a string value.
    • boolValue

      public abstract Optional<Boolean> boolValue()
      Optional. Represents a boolean value.
    • jsonPath

      public abstract Optional<String> jsonPath()
      Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
    • willContinue

      public abstract Optional<Boolean> willContinue()
      Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.
    • builder

      public static PartialArg.Builder builder()
      Instantiates a builder for PartialArg.
    • toBuilder

      public abstract PartialArg.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static PartialArg fromJson(String jsonString)
      Deserializes a JSON string to a PartialArg object.