# MediaRequestInfo

- [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/MediaRequestInfo#SCHEMA_REPRESENTATION)

Extra information added to operations that support Scotty media requests.

| JSON representation |
|---|
| ``` { "requestId": string, "notificationType": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/NotificationType`), "currentBytes": string, "totalBytes": string, "totalBytesIsEstimated": boolean, "customData": string, "diffObjectVersion": string, "finalStatus": integer, "requestReceivedParamsServingInfo": string, "physicalHeaders": string } ``` |

| Fields ||
|---|---|
| `requestId` | `string` The Scotty request ID. |
| `notificationType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/NotificationType`)`` The type of notification received from Scotty. |
| `currentBytes` | `string (https://developers.google.com/discovery/v1/type-format format)` The number of current bytes uploaded or downloaded. |
| `totalBytes` | `string (https://developers.google.com/discovery/v1/type-format format)` The total size of the file. |
| `totalBytesIsEstimated` | `boolean` Whether the total bytes field contains an estimated data. |
| `customData` | `string` Data to be copied to backend requests. Custom data is returned to Scotty in the agentState field, which Scotty will then provide in subsequent upload notifications. |
| `diffObjectVersion` | `string` Set if the http request info is diff encoded. The value of this field is the version number of the base revision. This is corresponding to Apiary's mediaDiffObjectVersion (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionVariable.java). See go/esf-scotty-diff-upload for more information. |
| `finalStatus` | `integer` The existence of the finalStatus field indicates that this is the last call to the agent for this requestId. [http://google3/uploader/agent/scotty_agent.proto?l=737\&rcl=347601929](http://google3/uploader/agent/scotty_agent.proto?l=737&rcl=347601929) |
| `requestReceivedParamsServingInfo` | `string (https://developers.google.com/discovery/v1/type-format format)` The partition of the Scotty server handling this request. type is uploader_service.RequestReceivedParamsServingInfo LINT.IfChange(request_received_params_serving_info_annotations) LINT.ThenChange() A base64-encoded string. |
| `physicalHeaders` | `string (https://developers.google.com/discovery/v1/type-format format)` The physical headers provided by RequestReceivedParameters in Scotty request. type is uploader_service.KeyValuePairs. A base64-encoded string. |