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 class GcsSource.Builder

      Builder for GcsSource.

    • Constructor Summary

      Constructors 
      Constructor Description
      GcsSource()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<List<String>> uris() Required.
      static GcsSource.Builder builder() Instantiates a builder for GcsSource.
      abstract GcsSource.Builder toBuilder() Creates a builder with the same values as this instance.
      static GcsSource fromJson(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
    • Constructor Detail

      • GcsSource

        GcsSource()
    • 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.