Package com.google.genai.types
Class ImportFileOperation
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.Operation<ImportFileResponse,ImportFileOperation>
com.google.genai.types.ImportFileOperation
Long-running operation for importing a file to a FileSearchStore.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ImportFileOperation. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImportFileOperation.Builderbuilder()Instantiates a builder for ImportFileOperation.fromApiResponse(com.fasterxml.jackson.databind.JsonNode apiResponse, boolean isVertexAi) Creates a new Operation object from an API response.static ImportFileOperationDeserializes a JSON string to a ImportFileOperation object.abstract Optional<ImportFileResponse>response()The result of the ImportFile operation, available when the operation is done.abstract ImportFileOperation.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, stringToJsonNode, toJson
-
Constructor Details
-
ImportFileOperation
public ImportFileOperation()
-
-
Method Details
-
response
The result of the ImportFile operation, available when the operation is done.- Specified by:
responsein classOperation<ImportFileResponse,ImportFileOperation>
-
fromApiResponse
public ImportFileOperation fromApiResponse(com.fasterxml.jackson.databind.JsonNode apiResponse, boolean isVertexAi) Description copied from class:OperationCreates a new Operation object from an API response.- Specified by:
fromApiResponsein classOperation<ImportFileResponse,ImportFileOperation> - Parameters:
apiResponse- The API response.isVertexAi- Whether the API response is from Vertex AI.- Returns:
- The new Operation object.
-
builder
Instantiates a builder for ImportFileOperation. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ImportFileOperation object.
-