WebSourceRegistrationRequest.Builder

public static final class WebSourceRegistrationRequest.Builder
extends Object

java.lang.Object
   ↳ android.adservices.measurement.WebSourceRegistrationRequest.Builder


Builder for WebSourceRegistrationRequest.

Summary

Public constructors

Builder()

Public methods

WebSourceRegistrationRequest build()

Pre-validates paramerters and builds WebSourceRegistrationRequest.

WebSourceRegistrationRequest.Builder setInputEvent(InputEvent inputEvent)

Setter for input event.

WebSourceRegistrationRequest.Builder setOsDestination(Uri osDestination)

Setter for OS destination.

WebSourceRegistrationRequest.Builder setSourceParams(List<WebSourceParams> webSourceParams)

Setter for source params.

WebSourceRegistrationRequest.Builder setTopOriginUri(Uri topOriginUri)

Setter for top origin Uri.

WebSourceRegistrationRequest.Builder setVerifiedDestination(Uri verifiedDestination)

Setter for verified destination.

WebSourceRegistrationRequest.Builder setWebDestination(Uri webDestination)

Setter for web destination.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

build

public WebSourceRegistrationRequest build ()

Pre-validates paramerters and builds WebSourceRegistrationRequest.

Returns
WebSourceRegistrationRequest This value cannot be null.

setInputEvent

public WebSourceRegistrationRequest.Builder setInputEvent (InputEvent inputEvent)

Setter for input event.

Parameters
inputEvent InputEvent: user input event This value may be null.

Returns
WebSourceRegistrationRequest.Builder builder This value cannot be null.

setOsDestination

public WebSourceRegistrationRequest.Builder setOsDestination (Uri osDestination)

Setter for OS destination. At least one of OS destination or web destination is required.

Parameters
osDestination Uri: app destination Uri This value cannot be null.

Returns
WebSourceRegistrationRequest.Builder builder This value cannot be null.

setSourceParams

public WebSourceRegistrationRequest.Builder setSourceParams (List<WebSourceParams> webSourceParams)

Setter for source params. It is a required parameter and the provided list should not be empty.

Parameters
webSourceParams List: source sourceParams This value cannot be null.

Returns
WebSourceRegistrationRequest.Builder builder This value cannot be null.

setTopOriginUri

public WebSourceRegistrationRequest.Builder setTopOriginUri (Uri topOriginUri)

Setter for top origin Uri. It is a required parameter.

Parameters
topOriginUri Uri: publisher top origin Uri This value cannot be null.

Returns
WebSourceRegistrationRequest.Builder builder This value cannot be null.

setVerifiedDestination

public WebSourceRegistrationRequest.Builder setVerifiedDestination (Uri verifiedDestination)

Setter for verified destination.

Parameters
verifiedDestination Uri: verified destination This value may be null.

Returns
WebSourceRegistrationRequest.Builder builder This value cannot be null.

setWebDestination

public WebSourceRegistrationRequest.Builder setWebDestination (Uri webDestination)

Setter for web destination. At least one of OS destination or web destination is required.

Parameters
webDestination Uri: web destination Uri This value cannot be null.

Returns
WebSourceRegistrationRequest.Builder builder This value cannot be null.