# Class TransferPart

Represents an individual part of the EntityBody being uploaded.

Namespace: OpenCloud\ObjectStore\Upload
CodeCoverageIgnore
Located at OpenCloud/ObjectStore/Upload/TransferPart.php

Methods summary
`public mixed` | # `setContentLength( integer $contentLength )` #### Parameters $contentLength `integer` $contentLength #### Returns `mixed` $this
`public integer` | # `getContentLength( )` #### Returns `integer`
`public mixed` | # `setETag( string $etag )` #### Parameters $etag `string` $etag #### Returns `mixed` $this
`public string` | # `getETag( )` #### Returns `string`
`public mixed` | # `setPartNumber( integer $partNumber )` #### Parameters $partNumber `integer` $partNumber #### Returns `mixed` $this
`public integer` | # `getPartNumber( )` #### Returns `integer`
`public mixed` | # `setPath( mixed $path )` #### Parameters $path `mixed` $path #### Returns `mixed` $this
`public string` | # `getPath( )` #### Returns `string`
`public static OpenCloud\Common\Http\Request` | # `createRequest( EntityBody $part, integer $number, OpenStack $client, array $options )` Create the request needed for this upload to the API. Create the request needed for this upload to the API. #### Parameters $part `EntityBody` $part The entity body being uploaded $number `integer` $number Its number/position, needed for name $client `OpenStack` $client Client responsible for issuing requests $options `array` $options Set by the Transfer object #### Returns `OpenCloud\Common\Http\Request`
`public static `OpenCloud\ObjectStore\Upload\TransferPart`` | # `fromResponse( Guzzle\Http\Message\Response $response, integer $partNumber = 1 )` Construct a TransferPart from a HTTP response delivered by the API. Construct a TransferPart from a HTTP response delivered by the API. #### Parameters $response `Guzzle\Http\Message\Response` $response $partNumber `integer` $partNumber #### Returns ``OpenCloud\ObjectStore\Upload\TransferPart``

Properties summary
`protected integer` | $partNumber | `` | # Its position in the upload queue. Its position in the upload queue.
`protected string` | $eTag | `` | # This upload's ETag checksum. This upload's ETag checksum.
`protected integer` | $contentLength | `` | # The length of this upload in bytes. The length of this upload in bytes.
`protected string` | $path | `` | # The API path of this upload. The API path of this upload.