Class PartialArg.Builder

java.lang.Object
com.google.genai.types.PartialArg.Builder
Enclosing class:
PartialArg

public abstract static class PartialArg.Builder extends Object
Builder for PartialArg.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • nullValue

      public abstract PartialArg.Builder nullValue(NullValue nullValue)
      Setter for nullValue.

      nullValue: Optional. Represents a null value.

    • clearNullValue

      @CanIgnoreReturnValue public PartialArg.Builder clearNullValue()
      Clears the value of nullValue field.
    • nullValue

      @CanIgnoreReturnValue public PartialArg.Builder nullValue(NullValue.Known knownType)
      Setter for nullValue given a known enum.

      nullValue: Optional. Represents a null value.

    • nullValue

      @CanIgnoreReturnValue public PartialArg.Builder nullValue(String nullValue)
      Setter for nullValue given a string.

      nullValue: Optional. Represents a null value.

    • numberValue

      public abstract PartialArg.Builder numberValue(Double numberValue)
      Setter for numberValue.

      numberValue: Optional. Represents a double value.

    • clearNumberValue

      @CanIgnoreReturnValue public PartialArg.Builder clearNumberValue()
      Clears the value of numberValue field.
    • stringValue

      public abstract PartialArg.Builder stringValue(String stringValue)
      Setter for stringValue.

      stringValue: Optional. Represents a string value.

    • clearStringValue

      @CanIgnoreReturnValue public PartialArg.Builder clearStringValue()
      Clears the value of stringValue field.
    • boolValue

      public abstract PartialArg.Builder boolValue(boolean boolValue)
      Setter for boolValue.

      boolValue: Optional. Represents a boolean value.

    • clearBoolValue

      @CanIgnoreReturnValue public PartialArg.Builder clearBoolValue()
      Clears the value of boolValue field.
    • jsonPath

      public abstract PartialArg.Builder jsonPath(String jsonPath)
      Setter for jsonPath.

      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".

    • clearJsonPath

      @CanIgnoreReturnValue public PartialArg.Builder clearJsonPath()
      Clears the value of jsonPath field.
    • willContinue

      public abstract PartialArg.Builder willContinue(boolean willContinue)
      Setter for willContinue.

      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.

    • clearWillContinue

      @CanIgnoreReturnValue public PartialArg.Builder clearWillContinue()
      Clears the value of willContinue field.
    • build

      public abstract PartialArg build()