Class BrowserFileUploadInput
-
- All Implemented Interfaces:
public final class BrowserFileUploadInputSet the value of a file-input element to one or more files. The target must be an element reference; at least one of paths or document_ids is required.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBrowserFileUploadInput.BuilderA builder for BrowserFileUploadInput.
-
Method Summary
Modifier and Type Method Description final BrowserRefTargettarget()An element on the page, identified by a reference from a prior read_pageorfindresult.final Optional<List<String>>documentIds()References to files the harness has staged, for deployments where the browser executor cannot read the caller's filesystem. final Optional<List<String>>paths()File paths on the browser executor's filesystem. final Optional<String>tabId()Tab to act on. final JsonField<BrowserRefTarget>_target()Returns the raw JSON value of target. final JsonField<List<String>>_documentIds()Returns the raw JSON value of documentIds. final JsonField<List<String>>_paths()Returns the raw JSON value of paths. final JsonField<String>_tabId()Returns the raw JSON value of tabId. final Map<String, JsonValue>_additionalProperties()final BrowserFileUploadInput.BuildertoBuilder()final BrowserFileUploadInputvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BrowserFileUploadInput.Builderbuilder()Returns a mutable builder for constructing an instance of BrowserFileUploadInput. final static BrowserFileUploadInputof(BrowserRefTarget target)Returns an immutable instance of BrowserFileUploadInput with the required target set to the given value. -
-
Method Detail
-
target
final BrowserRefTarget target()
An element on the page, identified by a reference from a prior
read_pageorfindresult. References are scoped to the tab that produced them and become stale after navigation or a major re-render.
-
documentIds
final Optional<List<String>> documentIds()
References to files the harness has staged, for deployments where the browser executor cannot read the caller's filesystem.
-
_target
final JsonField<BrowserRefTarget> _target()
Returns the raw JSON value of target.
Unlike target, this method doesn't throw if the JSON field has an unexpected type.
-
_documentIds
final JsonField<List<String>> _documentIds()
Returns the raw JSON value of documentIds.
Unlike documentIds, this method doesn't throw if the JSON field has an unexpected type.
-
_paths
final JsonField<List<String>> _paths()
Returns the raw JSON value of paths.
Unlike paths, this method doesn't throw if the JSON field has an unexpected type.
-
_tabId
final JsonField<String> _tabId()
Returns the raw JSON value of tabId.
Unlike tabId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BrowserFileUploadInput.Builder toBuilder()
-
validate
final BrowserFileUploadInput 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 BrowserFileUploadInput.Builder builder()
Returns a mutable builder for constructing an instance of BrowserFileUploadInput.
The following fields are required:
.target()
-
of
final static BrowserFileUploadInput of(BrowserRefTarget target)
Returns an immutable instance of BrowserFileUploadInput with the required target set to the given value.
-
-
-
-