pub struct MediaRequestInfo {
pub current_bytes: Option<i64>,
pub custom_data: Option<String>,
pub diff_object_version: Option<String>,
pub final_status: Option<i32>,
pub notification_type: Option<String>,
pub physical_headers: Option<Vec<u8>>,
pub request_id: Option<String>,
pub request_received_params_serving_info: Option<Vec<u8>>,
pub total_bytes: Option<i64>,
pub total_bytes_is_estimated: Option<bool>,
}Expand description
Extra information added to operations that support Scotty media requests.
This type is not used in any activity, and only used as part of another schema.
Fields§
§current_bytes: Option<i64>The number of current bytes uploaded or downloaded.
custom_data: Option<String>Data to be copied to backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications.
diff_object_version: Option<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.
final_status: Option<i32>The existence of the final_status field indicates that this is the last call to the agent for this request_id. http://google3/uploader/agent/scotty_agent.proto?l=737&rcl=347601929
notification_type: Option<String>The type of notification received from Scotty.
physical_headers: Option<Vec<u8>>The physical headers provided by RequestReceivedParameters in Scotty request. type is uploader_service.KeyValuePairs.
request_id: Option<String>The Scotty request ID.
request_received_params_serving_info: Option<Vec<u8>>The partition of the Scotty server handling this request. type is uploader_service.RequestReceivedParamsServingInfo LINT.IfChange(request_received_params_serving_info_annotations) LINT.ThenChange()
total_bytes: Option<i64>The total size of the file.
total_bytes_is_estimated: Option<bool>Whether the total bytes field contains an estimated data.
Trait Implementations§
Source§impl Clone for MediaRequestInfo
impl Clone for MediaRequestInfo
Source§fn clone(&self) -> MediaRequestInfo
fn clone(&self) -> MediaRequestInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more