Class ImportFileResponse

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

public abstract class ImportFileResponse extends JsonSerializable
Response for ImportFile to import a File API file with a file search store.
  • Constructor Details

    • ImportFileResponse

      public ImportFileResponse()
  • Method Details

    • sdkHttpResponse

      public abstract Optional<HttpResponse> sdkHttpResponse()
      Used to retain the full HTTP response.
    • parent

      public abstract Optional<String> parent()
      The name of the FileSearchStore containing Documents.
    • documentName

      public abstract Optional<String> documentName()
      The identifier for the Document imported.
    • builder

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

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

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