Class BetaBrowserStateBlockParam.Builder
-
- All Implemented Interfaces:
public final class BetaBrowserStateBlockParam.BuilderA builder for BetaBrowserStateBlockParam.
-
-
Method Summary
-
-
Method Detail
-
tabs
final BetaBrowserStateBlockParam.Builder tabs(List<BetaBrowserStateTabEntry> tabs)
All tabs open in the browser after this call — the full inventory, not a delta. May be empty. Whenever non-empty, exactly one entry carries
active: true.
-
tabs
final BetaBrowserStateBlockParam.Builder tabs(JsonField<List<BetaBrowserStateTabEntry>> tabs)
Sets Builder.tabs to an arbitrary JSON value.
You should usually call Builder.tabs with a well-typed
List<BetaBrowserStateTabEntry>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaBrowserStateBlockParam.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("browser_state")This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheControl
final BetaBrowserStateBlockParam.Builder cacheControl(BetaCacheControlEphemeral cacheControl)
Create a cache control breakpoint at this content block.
-
cacheControl
final BetaBrowserStateBlockParam.Builder cacheControl(Optional<BetaCacheControlEphemeral> cacheControl)
Alias for calling Builder.cacheControl with
cacheControl.orElse(null).
-
cacheControl
final BetaBrowserStateBlockParam.Builder cacheControl(JsonField<BetaCacheControlEphemeral> cacheControl)
Sets Builder.cacheControl to an arbitrary JSON value.
You should usually call Builder.cacheControl with a well-typed BetaCacheControlEphemeral value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stateChanges
final BetaBrowserStateBlockParam.Builder stateChanges(List<BetaBrowserStateChange> stateChanges)
Tabs opened and download state changes during this call. "Nothing to report" is expressed by omitting the field, never by an empty list.
-
stateChanges
final BetaBrowserStateBlockParam.Builder stateChanges(Optional<List<BetaBrowserStateChange>> stateChanges)
Alias for calling Builder.stateChanges with
stateChanges.orElse(null).
-
stateChanges
final BetaBrowserStateBlockParam.Builder stateChanges(JsonField<List<BetaBrowserStateChange>> stateChanges)
Sets Builder.stateChanges to an arbitrary JSON value.
You should usually call Builder.stateChanges with a well-typed
List<BetaBrowserStateChange>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaBrowserStateBlockParam.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addTab
final BetaBrowserStateBlockParam.Builder addTab(BetaBrowserStateTabEntry tab)
Adds a single BetaBrowserStateTabEntry to tabs.
-
addStateChange
final BetaBrowserStateBlockParam.Builder addStateChange(BetaBrowserStateChange stateChange)
Adds a single BetaBrowserStateChange to stateChanges.
-
addStateChange
final BetaBrowserStateBlockParam.Builder addStateChange(BetaBrowserStateChangeTabOpened tabOpened)
Alias for calling addStateChange with
BetaBrowserStateChange.ofTabOpened(tabOpened).
-
addStateChange
final BetaBrowserStateBlockParam.Builder addStateChange(BetaBrowserStateChangeDownloadStarted downloadStarted)
Alias for calling addStateChange with
BetaBrowserStateChange.ofDownloadStarted(downloadStarted).
-
addStateChange
final BetaBrowserStateBlockParam.Builder addStateChange(BetaBrowserStateChangeDownloadCompleted downloadCompleted)
Alias for calling addStateChange with
BetaBrowserStateChange.ofDownloadCompleted(downloadCompleted).
-
addStateChange
final BetaBrowserStateBlockParam.Builder addStateChange(BetaBrowserStateChangeDownloadFailed downloadFailed)
Alias for calling addStateChange with
BetaBrowserStateChange.ofDownloadFailed(downloadFailed).
-
addTabOpenedStateChange
final BetaBrowserStateBlockParam.Builder addTabOpenedStateChange(String tabId)
Alias for calling addStateChange with the following:
BetaBrowserStateChangeTabOpened.builder() .tabId(tabId) .build()
-
putAdditionalProperty
final BetaBrowserStateBlockParam.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaBrowserStateBlockParam.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaBrowserStateBlockParam.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaBrowserStateBlockParam.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaBrowserStateBlockParam build()
Returns an immutable instance of BetaBrowserStateBlockParam.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.tabs()
-
-
-
-