class Google::Apis::YoutubePartnerV1::MediaRequestInfo

Extra information added to operations that support Scotty media requests.

Attributes

current_bytes[RW]

The number of current bytes uploaded or downloaded. Corresponds to the JSON property `currentBytes` @return [Fixnum]

custom_data[RW]

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]

diff_object_version[RW]

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]

notification_type[RW]

The type of notification received from Scotty. Corresponds to the JSON property `notificationType` @return [String]

request_id[RW]

The Scotty request ID. Corresponds to the JSON property `requestId` @return [String]

total_bytes[RW]

The total size of the file. Corresponds to the JSON property `totalBytes` @return [Fixnum]

total_bytes_is_estimated[RW]

Whether the total bytes field contains an estimated data. Corresponds to the JSON property `totalBytesIsEstimated` @return [Boolean]

total_bytes_is_estimated?[RW]

Whether the total bytes field contains an estimated data. Corresponds to the JSON property `totalBytesIsEstimated` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/youtube_partner_v1/classes.rb, line 2307
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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