Class ResumableUploadCallSettings

java.lang.Object
com.google.api.gax.rpc.ResumableUploadCallSettings

@BetaApi @NullMarked public abstract class ResumableUploadCallSettings extends Object
A settings class to configure a ResumableUploadCallable for executing resumable uploads. Encapsulates protocol options such as payload chunk size and global upload timeout.
  • Constructor Details

    • ResumableUploadCallSettings

      public ResumableUploadCallSettings()
  • Method Details

    • getChunkSize

      public abstract int getChunkSize()
      Returns the configured chunk size in bytes (defaults to 8 MB / 8,388,608 bytes).
    • getGlobalTimeout

      public abstract @Nullable Duration getGlobalTimeout()
      Returns the global upload timeout governing the entire upload duration, or null if disabled.
    • merge

      Merges another ResumableUploadCallSettings instance with this one. Fields set in other override fields in this instance.
      Parameters:
      other - settings to overlay; may be null
      Returns:
      a new, resolved ResumableUploadCallSettings instance
    • toBuilder

      public abstract ResumableUploadCallSettings.Builder toBuilder()
    • newBuilder

      public static ResumableUploadCallSettings.Builder newBuilder()