Package com.google.genai.types
Class ImportFileResponse
-
- All Implemented Interfaces:
public abstract class ImportFileResponse extends JsonSerializable
Response for ImportFile to import a File API file with a file search store.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classImportFileResponse.BuilderBuilder for ImportFileResponse.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ImportFileResponse()
-
Method Summary
Modifier and Type Method Description abstract Optional<HttpResponse>sdkHttpResponse()Used to retain the full HTTP response. abstract Optional<String>parent()The name of the FileSearchStore containing Documents. abstract Optional<String>documentName()The identifier for the Document imported. static ImportFileResponse.Builderbuilder()Instantiates a builder for ImportFileResponse. abstract ImportFileResponse.BuildertoBuilder()Creates a builder with the same values as this instance. static ImportFileResponsefromJson(String jsonString)Deserializes a JSON string to a ImportFileResponse 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
-
sdkHttpResponse
abstract Optional<HttpResponse> sdkHttpResponse()
Used to retain the full HTTP response.
-
documentName
abstract Optional<String> documentName()
The identifier for the Document imported.
-
builder
static ImportFileResponse.Builder builder()
Instantiates a builder for ImportFileResponse.
-
toBuilder
abstract ImportFileResponse.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ImportFileResponse fromJson(String jsonString)
Deserializes a JSON string to a ImportFileResponse object.
-
-
-
-