Class StringList

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

public abstract class StringList extends JsonSerializable
User provided string values assigned to a single metadata key. This data type is not supported in Vertex AI.
  • Constructor Details

    • StringList

      public StringList()
  • Method Details

    • values

      public abstract Optional<List<String>> values()
      The string values of the metadata to store.
    • builder

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

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

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