Class: Google::Apis::WalletobjectsV1::MediaRequestInfo
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::MediaRequestInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb
Overview
Extra information added to operations that support Scotty media requests.
Instance Attribute Summary collapse
-
#current_bytes ⇒ Fixnum
The number of current bytes uploaded or downloaded.
-
#custom_data ⇒ String
Data to be copied to backend requests.
-
#diff_object_version ⇒ String
Set if the http request info is diff encoded.
-
#final_status ⇒ Fixnum
The existence of the final_status field indicates that this is the last call to the agent for this request_id.
-
#notification_type ⇒ String
The type of notification received from Scotty.
-
#request_id ⇒ String
The Scotty request ID.
-
#request_received_params_serving_info ⇒ String
The partition of the Scotty server handling this request.
-
#total_bytes ⇒ Fixnum
The total size of the file.
-
#total_bytes_is_estimated ⇒ Boolean
(also: #total_bytes_is_estimated?)
Whether the total bytes field contains an estimated data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MediaRequestInfo
constructor
A new instance of MediaRequestInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ MediaRequestInfo
Returns a new instance of MediaRequestInfo.
5895 5896 5897 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5895 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current_bytes ⇒ Fixnum
The number of current bytes uploaded or downloaded.
Corresponds to the JSON property currentBytes
5841 5842 5843 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5841 def current_bytes @current_bytes end |
#custom_data ⇒ 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.
Corresponds to the JSON property customData
5848 5849 5850 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5848 def custom_data @custom_data end |
#diff_object_version ⇒ 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
5857 5858 5859 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5857 def diff_object_version @diff_object_version end |
#final_status ⇒ Fixnum
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
Corresponds to the JSON property finalStatus
5864 5865 5866 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5864 def final_status @final_status end |
#notification_type ⇒ String
The type of notification received from Scotty.
Corresponds to the JSON property notificationType
5869 5870 5871 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5869 def notification_type @notification_type end |
#request_id ⇒ String
The Scotty request ID.
Corresponds to the JSON property requestId
5874 5875 5876 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5874 def request_id @request_id end |
#request_received_params_serving_info ⇒ String
The partition of the Scotty server handling this request. type is
uploader_service.RequestReceivedParamsServingInfo LINT.IfChange(
request_received_params_serving_info_annotations) LINT.ThenChange()
Corresponds to the JSON property requestReceivedParamsServingInfo
NOTE: Values are automatically base64 encoded/decoded in the client library.
5882 5883 5884 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5882 def request_received_params_serving_info @request_received_params_serving_info end |
#total_bytes ⇒ Fixnum
The total size of the file.
Corresponds to the JSON property totalBytes
5887 5888 5889 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5887 def total_bytes @total_bytes end |
#total_bytes_is_estimated ⇒ Boolean Also known as: total_bytes_is_estimated?
Whether the total bytes field contains an estimated data.
Corresponds to the JSON property totalBytesIsEstimated
5892 5893 5894 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5892 def total_bytes_is_estimated @total_bytes_is_estimated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 5900 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) @final_status = args[:final_status] if args.key?(:final_status) @notification_type = args[:notification_type] if args.key?(:notification_type) @request_id = args[:request_id] if args.key?(:request_id) @request_received_params_serving_info = args[:request_received_params_serving_info] if args.key?(:request_received_params_serving_info) @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 |