Class BetaBrowserStateChangeDownloadCompleted.Builder
-
- All Implemented Interfaces:
public final class BetaBrowserStateChangeDownloadCompleted.BuilderA builder for BetaBrowserStateChangeDownloadCompleted.
-
-
Method Summary
-
-
Method Detail
-
downloadId
final BetaBrowserStateChangeDownloadCompleted.Builder downloadId(String downloadId)
The caller-assigned identifier for this download, stable across the state changes reporting it.
-
downloadId
final BetaBrowserStateChangeDownloadCompleted.Builder downloadId(JsonField<String> downloadId)
Sets Builder.downloadId to an arbitrary JSON value.
You should usually call Builder.downloadId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaBrowserStateChangeDownloadCompleted.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("download_completed")This method is primarily for setting the field to an undocumented or not yet supported value.
-
url
final BetaBrowserStateChangeDownloadCompleted.Builder url(String url)
The final post-redirect URL the download was served from.
-
url
final BetaBrowserStateChangeDownloadCompleted.Builder url(JsonField<String> url)
Sets Builder.url to an arbitrary JSON value.
You should usually call Builder.url with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
path
final BetaBrowserStateChangeDownloadCompleted.Builder path(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.
-
path
final BetaBrowserStateChangeDownloadCompleted.Builder path(Optional<String> path)
Alias for calling Builder.path with
path.orElse(null).
-
path
final BetaBrowserStateChangeDownloadCompleted.Builder path(JsonField<String> path)
Sets Builder.path to an arbitrary JSON value.
You should usually call Builder.path with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sizeBytes
final BetaBrowserStateChangeDownloadCompleted.Builder sizeBytes(Long sizeBytes)
The completed download's size.
-
sizeBytes
final BetaBrowserStateChangeDownloadCompleted.Builder sizeBytes(Long sizeBytes)
Alias for Builder.sizeBytes.
This unboxed primitive overload exists for backwards compatibility.
-
sizeBytes
final BetaBrowserStateChangeDownloadCompleted.Builder sizeBytes(Optional<Long> sizeBytes)
Alias for calling Builder.sizeBytes with
sizeBytes.orElse(null).
-
sizeBytes
final BetaBrowserStateChangeDownloadCompleted.Builder sizeBytes(JsonField<Long> sizeBytes)
Sets Builder.sizeBytes to an arbitrary JSON value.
You should usually call Builder.sizeBytes with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaBrowserStateChangeDownloadCompleted.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaBrowserStateChangeDownloadCompleted.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaBrowserStateChangeDownloadCompleted.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaBrowserStateChangeDownloadCompleted.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaBrowserStateChangeDownloadCompleted.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaBrowserStateChangeDownloadCompleted build()
Returns an immutable instance of BetaBrowserStateChangeDownloadCompleted.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.downloadId() .url()
-
-
-
-