# WebTriggerOutput.Builder

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Ctors](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder#pubctors)\|[Methods](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder#inhmethods)  

# WebTriggerOutput.Builder

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder "View this page in Kotlin")\|Java

`
public
static
final

class
WebTriggerOutput.Builder
`  
`

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


``


`

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

<br />

*** ** * ** ***

A builder for[WebTriggerOutput](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput)

## Summary

|                                                           ### Public constructors                                                           ||
|------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[Builder](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder#Builder())`() ` |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ### Public methods                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ||
|--------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` `[WebTriggerOutput.Builder](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder) | ` `[addEventLogRecord](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder#addEventLogRecord(android.adservices.ondevicepersonalization.EventLogRecord))`(`[EventLogRecord](https://developer.android.com/reference/android/adservices/ondevicepersonalization/EventLogRecord)` value) `                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ` `[WebTriggerOutput](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput)                 | ` `[build](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder#build())`() ` Builds the instance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ` `[WebTriggerOutput.Builder](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder) | ` `[setEventLogRecords](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder#setEventLogRecords(java.util.List<android.adservices.ondevicepersonalization.EventLogRecord>))`(`[List](https://developer.android.com/reference/java/util/List)`<`[EventLogRecord](https://developer.android.com/reference/android/adservices/ondevicepersonalization/EventLogRecord)`> value) ` A list of[EventLogRecord](https://developer.android.com/reference/android/adservices/ondevicepersonalization/EventLogRecord)objects to be written to the EVENTS table.                                                                                                                                                                                                                                         |
| ` `[WebTriggerOutput.Builder](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder) | ` `[setRequestLogRecord](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder#setRequestLogRecord(android.adservices.ondevicepersonalization.RequestLogRecord))`(`[RequestLogRecord](https://developer.android.com/reference/android/adservices/ondevicepersonalization/RequestLogRecord)` value) ` Persistent data to be written to the REQUESTS table after[IsolatedWorker.onWebTrigger(WebTriggerInput, android.os.OutcomeReceiver)](https://developer.android.com/reference/android/adservices/ondevicepersonalization/IsolatedWorker#onWebTrigger(android.adservices.ondevicepersonalization.WebTriggerInput,%20android.os.OutcomeReceiver<android.adservices.ondevicepersonalization.WebTriggerOutput,android.adservices.ondevicepersonalization.IsolatedServiceException>))completes. |

| ### 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 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public Builder ()
```

<br />

<br />

## Public methods

### addEventLogRecord

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public WebTriggerOutput.Builder addEventLogRecord (EventLogRecord value)
```

<br />

<br />

|                          Parameters                           ||
|---------|------------------------------------------------------|
| `value` | `EventLogRecord`: This value cannot be`null`. <br /> |

|                                                                                   Returns                                                                                   ||
|-----------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [WebTriggerOutput.Builder](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder) | This value cannot be`null`. <br /> |

**See also:**

- [setEventLogRecords(List)](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder#setEventLogRecords(java.util.List<android.adservices.ondevicepersonalization.EventLogRecord>))  

### build

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public WebTriggerOutput build ()
```

Builds the instance. This builder should not be touched after calling this!

<br />

|                                                                           Returns                                                                           ||
|-------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [WebTriggerOutput](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput) | This value cannot be`null`. <br /> |

### setEventLogRecords

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public WebTriggerOutput.Builder setEventLogRecords (List<EventLogRecord> value)
```

A list of[EventLogRecord](https://developer.android.com/reference/android/adservices/ondevicepersonalization/EventLogRecord)objects to be written to the EVENTS table. Each[EventLogRecord](https://developer.android.com/reference/android/adservices/ondevicepersonalization/EventLogRecord)must be associated with an existing[RequestLogRecord](https://developer.android.com/reference/android/adservices/ondevicepersonalization/RequestLogRecord)in the REQUESTS table, specified using[EventLogRecord.Builder.setRequestLogRecord(RequestLogRecord)](https://developer.android.com/reference/android/adservices/ondevicepersonalization/EventLogRecord.Builder#setRequestLogRecord(android.adservices.ondevicepersonalization.RequestLogRecord)). If the[RequestLogRecord](https://developer.android.com/reference/android/adservices/ondevicepersonalization/RequestLogRecord)is not specified, the[EventLogRecord](https://developer.android.com/reference/android/adservices/ondevicepersonalization/EventLogRecord)will not be written. The list can be empty if no data needs to be written to the EVENTS table.

<br />

|                     Parameters                      ||
|---------|--------------------------------------------|
| `value` | `List`: This value cannot be`null`. <br /> |

|                                                                                   Returns                                                                                   ||
|-----------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|
| [WebTriggerOutput.Builder](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder) | This value cannot be`null`. <br /> |

### setRequestLogRecord

Added in[API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public WebTriggerOutput.Builder setRequestLogRecord (RequestLogRecord value)
```

Persistent data to be written to the REQUESTS table after[IsolatedWorker.onWebTrigger(WebTriggerInput, android.os.OutcomeReceiver)](https://developer.android.com/reference/android/adservices/ondevicepersonalization/IsolatedWorker#onWebTrigger(android.adservices.ondevicepersonalization.WebTriggerInput,%20android.os.OutcomeReceiver<android.adservices.ondevicepersonalization.WebTriggerOutput,android.adservices.ondevicepersonalization.IsolatedServiceException>))completes. This can be`null`if no data needs to be written to the REQUESTS table.

<br />

|                          Parameters                          ||
|---------|-----------------------------------------------------|
| `value` | `RequestLogRecord`: This value may be`null`. <br /> |

|                                                                     Returns                                                                     ||
|-----------------------------------------------------------------------------------------------------------------------------------------|--------|
| [WebTriggerOutput.Builder](https://developer.android.com/reference/android/adservices/ondevicepersonalization/WebTriggerOutput.Builder) | <br /> |