Class StartEnvironmentFileUploadRequest

java.lang.Object
com.google.genai.gaos.models.operations.StartEnvironmentFileUploadRequest

public class StartEnvironmentFileUploadRequest extends Object
  • Constructor Details

    • StartEnvironmentFileUploadRequest

      public StartEnvironmentFileUploadRequest(@Nullable String apiVersion, @Nonnull String environment, @Nonnull String path, @Nullable Boolean extract, @Nullable Boolean overwrite, long xGoogUploadHeaderContentLength, @Nonnull String xGoogUploadHeaderContentType)
    • StartEnvironmentFileUploadRequest

      public StartEnvironmentFileUploadRequest(@Nonnull String environment, @Nonnull String path, long xGoogUploadHeaderContentLength, @Nonnull String xGoogUploadHeaderContentType)
  • Method Details

    • apiVersion

      public Optional<String> apiVersion()
      Which version of the API to use.
    • environment

      public Optional<String> environment()
      The ID of the environment that owns the destination file.
    • path

      public Optional<String> path()
      The relative destination path inside the environment workspace.
    • extract

      public Optional<Boolean> extract()
      Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`.
    • overwrite

      public Optional<Boolean> overwrite()
      Optional. Whether to overwrite the destination file if it already exists.
    • xGoogUploadCommand

      public Optional<String> xGoogUploadCommand()
      Command that starts the resumable upload session.
    • xGoogUploadHeaderContentLength

      public Optional<Long> xGoogUploadHeaderContentLength()
      Total number of file bytes that will be uploaded to the session URL.
    • xGoogUploadHeaderContentType

      public Optional<String> xGoogUploadHeaderContentType()
      MIME type of the file that will be uploaded to the session URL.
    • xGoogUploadProtocol

      public Optional<String> xGoogUploadProtocol()
      Resumable upload protocol selector.
    • builder

    • withApiVersion

      public StartEnvironmentFileUploadRequest withApiVersion(@Nullable String apiVersion)
      Which version of the API to use.
    • withEnvironment

      public StartEnvironmentFileUploadRequest withEnvironment(@Nonnull String environment)
      The ID of the environment that owns the destination file.
    • withPath

      public StartEnvironmentFileUploadRequest withPath(@Nonnull String path)
      The relative destination path inside the environment workspace.
    • withExtract

      public StartEnvironmentFileUploadRequest withExtract(@Nullable Boolean extract)
      Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`.
    • withOverwrite

      public StartEnvironmentFileUploadRequest withOverwrite(@Nullable Boolean overwrite)
      Optional. Whether to overwrite the destination file if it already exists.
    • withXGoogUploadHeaderContentLength

      public StartEnvironmentFileUploadRequest withXGoogUploadHeaderContentLength(long xGoogUploadHeaderContentLength)
      Total number of file bytes that will be uploaded to the session URL.
    • withXGoogUploadHeaderContentType

      public StartEnvironmentFileUploadRequest withXGoogUploadHeaderContentType(@Nonnull String xGoogUploadHeaderContentType)
      MIME type of the file that will be uploaded to the session URL.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object