Package com.google.genai.types
Class GcsSource
-
- All Implemented Interfaces:
public abstract class GcsSource extends JsonSerializable
The Google Cloud Storage location for the input content. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classGcsSource.BuilderBuilder for GcsSource.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description GcsSource()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<String>>uris()Required. static GcsSource.Builderbuilder()Instantiates a builder for GcsSource. abstract GcsSource.BuildertoBuilder()Creates a builder with the same values as this instance. static GcsSourcefromJson(String jsonString)Deserializes a JSON string to a GcsSource object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
uris
abstract Optional<List<String>> uris()
Required. Google Cloud Storage URI(-s) to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/wildcards.
-
builder
static GcsSource.Builder builder()
Instantiates a builder for GcsSource.
-
toBuilder
abstract GcsSource.Builder toBuilder()
Creates a builder with the same values as this instance.
-
-
-
-