Class ImportFileOperation

  • All Implemented Interfaces:

    
    public abstract class ImportFileOperation
    extends Operation<T, O>
                        

    Long-running operation for importing a file to a FileSearchStore.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class ImportFileOperation.Builder

      Builder for ImportFileOperation.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<ImportFileResponse> response() The result of the ImportFile operation, available when the operation is done.
      ImportFileOperation fromApiResponse(JsonNode apiResponse, boolean isVertexAi) Creates a new Operation object from an API response.
      static ImportFileOperation.Builder builder() Instantiates a builder for ImportFileOperation.
      abstract ImportFileOperation.Builder toBuilder() Creates a builder with the same values as this instance.
      static ImportFileOperation fromJson(String jsonString) Deserializes a JSON string to a ImportFileOperation object.
      • Methods inherited from class com.google.genai.types.Operation

        done, error, metadata, name
      • 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