Class BrowserStateTabEntry
-
- All Implemented Interfaces:
public final class BrowserStateTabEntryOne open browser tab reported in a
browser_stateblock'stabsinventory.tab_idis the caller-assigned identifier for the tab;titleandurldescribe the page the tab is currently showing and may be empty strings (a blank tab legitimately has both empty).activemarks the tab that is active after this call; whenevertabsis non-empty, exactly one entry is marked.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBrowserStateTabEntry.BuilderA builder for BrowserStateTabEntry.
-
Method Summary
Modifier and Type Method Description final StringtabId()The caller-assigned identifier for this tab, unique within the inventory. final Stringtitle()The title of the page the tab is showing. final Stringurl()The URL of the page the tab is showing. final Optional<Boolean>active()Whether this tab is the active tab after this call. final JsonField<String>_tabId()Returns the raw JSON value of tabId. final JsonField<String>_title()Returns the raw JSON value of title. final JsonField<String>_url()Returns the raw JSON value of url. final JsonField<Boolean>_active()Returns the raw JSON value of active. final Map<String, JsonValue>_additionalProperties()final BrowserStateTabEntry.BuildertoBuilder()final BrowserStateTabEntryvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BrowserStateTabEntry.Builderbuilder()Returns a mutable builder for constructing an instance of BrowserStateTabEntry. -
-
Method Detail
-
tabId
final String tabId()
The caller-assigned identifier for this tab, unique within the inventory.
-
active
final Optional<Boolean> active()
Whether this tab is the active tab after this call. Whenever
tabsis non-empty, exactly one entry is markedactive: true.
-
_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.
-
_title
final JsonField<String> _title()
Returns the raw JSON value of title.
Unlike title, 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.
-
_active
final JsonField<Boolean> _active()
Returns the raw JSON value of active.
Unlike active, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BrowserStateTabEntry.Builder toBuilder()
-
validate
final BrowserStateTabEntry 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 BrowserStateTabEntry.Builder builder()
Returns a mutable builder for constructing an instance of BrowserStateTabEntry.
The following fields are required:
.tabId() .title() .url()
-
-
-
-