ExecuteOutput.Builder

public static final class ExecuteOutput.Builder
extends Object

java.lang.Object
   ↳ android.adservices.ondevicepersonalization.ExecuteOutput.Builder


A builder for ExecuteOutput

Summary

Public constructors

Builder()

Public methods

ExecuteOutput.Builder addRenderingConfig(RenderingConfig value)
ExecuteOutput build()

Builds the instance.

ExecuteOutput.Builder setRenderingConfigs(List<RenderingConfig> value)

A list of RenderingConfig objects, one per slot specified in the request from the calling app.

ExecuteOutput.Builder setRequestLogRecord(RequestLogRecord value)

Persistent data to be written to the REQUESTS table after IsolatedWorker#onExecute(ExecuteInput, java.util.function.Consumer) completes.

Inherited methods

Public constructors

Public methods

addRenderingConfig

public ExecuteOutput.Builder addRenderingConfig (RenderingConfig value)

Parameters
value RenderingConfig: This value cannot be null.

Returns
ExecuteOutput.Builder This value cannot be null.

build

public ExecuteOutput build ()

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

Returns
ExecuteOutput This value cannot be null.

setRenderingConfigs

public ExecuteOutput.Builder setRenderingConfigs (List<RenderingConfig> value)

A list of RenderingConfig objects, one per slot specified in the request from the calling app. The calling app and the service must agree on the expected size of this list.

Parameters
value List: This value cannot be null.

Returns
ExecuteOutput.Builder This value cannot be null.

setRequestLogRecord

public ExecuteOutput.Builder setRequestLogRecord (RequestLogRecord value)

Persistent data to be written to the REQUESTS table after IsolatedWorker#onExecute(ExecuteInput, java.util.function.Consumer) completes. If null, no persistent data will be written.

Parameters
value RequestLogRecord: This value cannot be null.

Returns
ExecuteOutput.Builder