Package com.google.genai.types
Class PartialArg.Builder
java.lang.Object
com.google.genai.types.PartialArg.Builder
- Enclosing class:
- PartialArg
Builder for PartialArg.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract PartialArg.BuilderboolValue(boolean boolValue) Setter for boolValue.abstract PartialArgbuild()Clears the value of boolValue field.Clears the value of jsonPath field.Clears the value of nullValue field.Clears the value of numberValue field.Clears the value of stringValue field.Clears the value of willContinue field.abstract PartialArg.BuilderSetter for jsonPath.abstract PartialArg.BuilderSetter for nullValue.nullValue(NullValue.Known knownType) Setter for nullValue given a known enum.Setter for nullValue given a string.abstract PartialArg.BuildernumberValue(Double numberValue) Setter for numberValue.abstract PartialArg.BuilderstringValue(String stringValue) Setter for stringValue.abstract PartialArg.BuilderwillContinue(boolean willContinue) Setter for willContinue.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
nullValue
Setter for nullValue.nullValue: Optional. Represents a null value.
-
clearNullValue
Clears the value of nullValue field. -
nullValue
Setter for nullValue given a known enum.nullValue: Optional. Represents a null value.
-
nullValue
Setter for nullValue given a string.nullValue: Optional. Represents a null value.
-
numberValue
Setter for numberValue.numberValue: Optional. Represents a double value.
-
clearNumberValue
Clears the value of numberValue field. -
stringValue
Setter for stringValue.stringValue: Optional. Represents a string value.
-
clearStringValue
Clears the value of stringValue field. -
boolValue
Setter for boolValue.boolValue: Optional. Represents a boolean value.
-
clearBoolValue
Clears the value of boolValue field. -
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
Clears the value of jsonPath field. -
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
Clears the value of willContinue field. -
build
-