Google is committed to advancing racial equity for Black communities. See how.

PayloadTransferUpdate.Builder

public static final class PayloadTransferUpdate.Builder extends Object

Builder class for PayloadTransferUpdate.

Public Constructor Summary

Builder()
Creates a builder using the default payload transfer update.
Builder(PayloadTransferUpdate origin)
Creates a builder, copying the payload transfer update.

Public Method Summary

PayloadTransferUpdate
build()
Builds an instance of PayloadTransferUpdate.
PayloadTransferUpdate.Builder
setBytesTransferred(long bytesTransferred)
Sets the number of bytes transferred so far.
PayloadTransferUpdate.Builder
setPayloadId(long payloadId)
Sets a payload identifier.
PayloadTransferUpdate.Builder
setStatus(int status)
Sets the status of the payload.
PayloadTransferUpdate.Builder
setTotalBytes(long totalBytes)
Sets the total number of bytes in the payload.

Inherited Method Summary

Public Constructors

public Builder ()

Creates a builder using the default payload transfer update.

public Builder (PayloadTransferUpdate origin)

Creates a builder, copying the payload transfer update.

Public Methods

public PayloadTransferUpdate build ()

Builds an instance of PayloadTransferUpdate.

public PayloadTransferUpdate.Builder setBytesTransferred (long bytesTransferred)

Sets the number of bytes transferred so far.

public PayloadTransferUpdate.Builder setPayloadId (long payloadId)

Sets a payload identifier.

public PayloadTransferUpdate.Builder setStatus (int status)

Sets the status of the payload.

public PayloadTransferUpdate.Builder setTotalBytes (long totalBytes)

Sets the total number of bytes in the payload.