class Google::Apis::YoutubePartnerV1::MediaRequestInfo
Extra information added to operations that support Scotty media requests.
Attributes
The number of current bytes uploaded or downloaded. Corresponds to the JSON property `currentBytes` @return [Fixnum]
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. Corresponds to the JSON property `customData` @return [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. Corresponds to the JSON property `diffObjectVersion` @return [String]
The type of notification received from Scotty. Corresponds to the JSON property `notificationType` @return [String]
The Scotty request ID. Corresponds to the JSON property `requestId` @return [String]
The total size of the file. Corresponds to the JSON property `totalBytes` @return [Fixnum]
Whether the total bytes field contains an estimated data. Corresponds to the JSON property `totalBytesIsEstimated` @return [Boolean]
Whether the total bytes field contains an estimated data. Corresponds to the JSON property `totalBytesIsEstimated` @return [Boolean]
Public Class Methods
# File lib/google/apis/youtube_partner_v1/classes.rb, line 2307 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/youtube_partner_v1/classes.rb, line 2312 def update!(**args) @current_bytes = args[:current_bytes] if args.key?(:current_bytes) @custom_data = args[:custom_data] if args.key?(:custom_data) @diff_object_version = args[:diff_object_version] if args.key?(:diff_object_version) @notification_type = args[:notification_type] if args.key?(:notification_type) @request_id = args[:request_id] if args.key?(:request_id) @total_bytes = args[:total_bytes] if args.key?(:total_bytes) @total_bytes_is_estimated = args[:total_bytes_is_estimated] if args.key?(:total_bytes_is_estimated) end