Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  
Summary:[Ctors](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder#pubctors)\|[Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder#pubmethods)\|[Inherited Methods](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder#inhmethods)  

# WebSourceRegistrationRequest.Builder

`
public
static
final

class
WebSourceRegistrationRequest.Builder
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|---------------------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.adservices.measurement.WebSourceRegistrationRequest.Builder |

<br />

*** ** * ** ***

Builder for[WebSourceRegistrationRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest).

## Summary

|                                                                                                                                                                                                                                                                                                                                                              ### Public constructors                                                                                                                                                                                                                                                                                                                                                               ||
| |---|
| ` `[Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder#Builder(java.util.List<android.adservices.measurement.WebSourceParams>,%20android.net.Uri))`(`[List](https://developer.android.com/reference/java/util/List)`<`[WebSourceParams](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceParams)`> webSourceParams, `[Uri](https://developer.android.com/reference/android/net/Uri)` topOriginUri) ` Builder constructor for[WebSourceRegistrationRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest). |

|                                                                                                                                                                                                                                                                 ### Public methods                                                                                                                                                                                                                                                                 ||
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[WebSourceRegistrationRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest)                 | ` `[build](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder#build())`() ` Pre-validates parameters and builds[WebSourceRegistrationRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest). |
| ` `[WebSourceRegistrationRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder) | ` `[setAppDestination](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder#setAppDestination(android.net.Uri))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` appDestination) ` Setter for app destination.                                                 |
| ` `[WebSourceRegistrationRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder) | ` `[setInputEvent](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder#setInputEvent(android.view.InputEvent))`(`[InputEvent](https://developer.android.com/reference/android/view/InputEvent)` inputEvent) ` Setter for input event.                                          |
| ` `[WebSourceRegistrationRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder) | ` `[setVerifiedDestination](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder#setVerifiedDestination(android.net.Uri))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` verifiedDestination) ` Setter for verified destination.                             |
| ` `[WebSourceRegistrationRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder) | ` `[setWebDestination](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder#setWebDestination(android.net.Uri))`(`[Uri](https://developer.android.com/reference/android/net/Uri)` webDestination) ` Setter for web destination.                                                 |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Public constructors

### Builder

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public Builder (List<WebSourceParams> webSourceParams, 
                Uri topOriginUri)
```

Builder constructor for[WebSourceRegistrationRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest).

<br />

|                                                                       Parameters                                                                        ||
|-------------------|--------------------------------------------------------------------------------------------------------------------------------------|
| `webSourceParams` | `List`: source parameters containing source registration parameters, the list should not be empty This value cannot be`null`. <br /> |
| `topOriginUri`    | `Uri`: source publisher[Uri](https://developer.android.com/reference/android/net/Uri)This value cannot be`null`. <br />              |

## Public methods

### build

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public WebSourceRegistrationRequest build ()
```

Pre-validates parameters and builds[WebSourceRegistrationRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest).

<br />

|                                                                                              Returns                                                                                              ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [WebSourceRegistrationRequest](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest) | This value cannot be`null`. <br /> |

### setAppDestination

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public WebSourceRegistrationRequest.Builder setAppDestination (Uri appDestination)
```

Setter for app destination. It is the android app[Uri](https://developer.android.com/reference/android/net/Uri)where corresponding conversion is expected. At least one of app destination or web destination is required.

<br />

|                                                              Parameters                                                               ||
|------------------|---------------------------------------------------------------------------------------------------------------------|
| `appDestination` | `Uri`: app destination[Uri](https://developer.android.com/reference/android/net/Uri)This value may be`null`. <br /> |

|                                                                                                          Returns                                                                                                          ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------|
| [WebSourceRegistrationRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder) | builder This value cannot be`null`. <br /> |

### setInputEvent

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public WebSourceRegistrationRequest.Builder setInputEvent (InputEvent inputEvent)
```

Setter for input event.

<br />

|                                                                           Parameters                                                                           ||
|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
| `inputEvent` | `InputEvent`: User Interaction InputEvent used by the AttributionReporting API to distinguish clicks from views. This value may be`null`. <br /> |

|                                                                                                          Returns                                                                                                          ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------|
| [WebSourceRegistrationRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder) | builder This value cannot be`null`. <br /> |

### setVerifiedDestination

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public WebSourceRegistrationRequest.Builder setVerifiedDestination (Uri verifiedDestination)
```

Setter for verified destination.

<br />

|                                     Parameters                                     ||
|-----------------------|-------------------------------------------------------------|
| `verifiedDestination` | `Uri`: verified destination This value may be`null`. <br /> |

|                                                                                                          Returns                                                                                                          ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------|
| [WebSourceRegistrationRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder) | builder This value cannot be`null`. <br /> |

### setWebDestination

Added in[API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Also in[Ad Services Extensions 4](https://developer.android.com/sdkExtensions)  

```
public WebSourceRegistrationRequest.Builder setWebDestination (Uri webDestination)
```

Setter for web destination. It is the website[Uri](https://developer.android.com/reference/android/net/Uri)where corresponding conversion is expected. At least one of app destination or web destination is required.

<br />

|                                                              Parameters                                                               ||
|------------------|---------------------------------------------------------------------------------------------------------------------|
| `webDestination` | `Uri`: web destination[Uri](https://developer.android.com/reference/android/net/Uri)This value may be`null`. <br /> |

|                                                                                                          Returns                                                                                                          ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------|
| [WebSourceRegistrationRequest.Builder](https://developer.android.com/design-for-safety/privacy-sandbox/reference/adservices/measurement/WebSourceRegistrationRequest.Builder) | builder This value cannot be`null`. <br /> |