Class BetaBrowserStateChangeDownloadCompleted
-
- All Implemented Interfaces:
public final class BetaBrowserStateChangeDownloadCompletedA file download that finished during this call, reported with the same
download_idas itsdownload_started— or without a priordownload_started, when the download finished during the call that started it (at most one state change perdownload_idper result).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaBrowserStateChangeDownloadCompleted.BuilderA builder for BetaBrowserStateChangeDownloadCompleted.
-
Method Summary
Modifier and Type Method Description final StringdownloadId()The caller-assigned identifier for this download, stable across the state changes reporting it. final Stringurl()The final post-redirect URL the download was served from. final Optional<String>path()Where the executor saved the file, on the executor's filesystem. final Optional<Long>sizeBytes()The completed download's size. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("download_completed")final JsonField<String>_downloadId()Returns the raw JSON value of downloadId. final JsonField<String>_url()Returns the raw JSON value of url. final JsonField<String>_path()Returns the raw JSON value of path. final JsonField<Long>_sizeBytes()Returns the raw JSON value of sizeBytes. final Map<String, JsonValue>_additionalProperties()final BetaBrowserStateChangeDownloadCompleted.BuildertoBuilder()final BetaBrowserStateChangeDownloadCompletedvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaBrowserStateChangeDownloadCompleted.Builderbuilder()Returns a mutable builder for constructing an instance of BetaBrowserStateChangeDownloadCompleted. -
-
Method Detail
-
downloadId
final String downloadId()
The caller-assigned identifier for this download, stable across the state changes reporting it.
-
path
final Optional<String> path()
Where the executor saved the file, on the executor's filesystem. Only included when another tool in the same environment can read the file at that path.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("download_completed")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_downloadId
final JsonField<String> _downloadId()
Returns the raw JSON value of downloadId.
Unlike downloadId, this method doesn't throw if the JSON field has an unexpected type.
-
_url
final JsonField<String> _url()
Returns the raw JSON value of url.
Unlike url, this method doesn't throw if the JSON field has an unexpected type.
-
_path
final JsonField<String> _path()
Returns the raw JSON value of path.
Unlike path, this method doesn't throw if the JSON field has an unexpected type.
-
_sizeBytes
final JsonField<Long> _sizeBytes()
Returns the raw JSON value of sizeBytes.
Unlike sizeBytes, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaBrowserStateChangeDownloadCompleted.Builder toBuilder()
-
validate
final BetaBrowserStateChangeDownloadCompleted validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaBrowserStateChangeDownloadCompleted.Builder builder()
Returns a mutable builder for constructing an instance of BetaBrowserStateChangeDownloadCompleted.
The following fields are required:
.downloadId() .url()
-
-
-
-