Package com.google.genai.types
Class StringList
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.StringList
User provided string values assigned to a single metadata key. This data type is not supported in
Vertex AI.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringList.Builderbuilder()Instantiates a builder for StringList.static StringListDeserializes a JSON string to a StringList object.abstract StringList.BuilderCreates a builder with the same values as this instance.values()The string values of the metadata to store.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
StringList
public StringList()
-
-
Method Details
-
values
The string values of the metadata to store. -
builder
Instantiates a builder for StringList. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a StringList object.
-