ExecuteOutput.Builder

public static final class ExecuteOutput.Builder
extends Object

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


用于构建 ExecuteOutput 的构建器

摘要

公共构造函数

Builder()

公共方法

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

构建实例。

ExecuteOutput.Builder setRenderingConfigs(List<RenderingConfig> value)

一个 RenderingConfig 对象列表,每个槽对应一个对象,由调用应用在请求中指定。

ExecuteOutput.Builder setRequestLogRecord(RequestLogRecord value)

IsolatedWorker#onExecute(ExecuteInput, java.util.function.Consumer) 完成后写入 REQUESTS 表的持久化数据。

继承的方法

公共构造函数

公共方法

addRenderingConfig

public ExecuteOutput.Builder addRenderingConfig (RenderingConfig value)

参数
value RenderingConfig: 此值不能为 null

返回
ExecuteOutput.Builder 此值不能为 null

build

public ExecuteOutput build ()

构建实例。调用此方法后不应再操作此构建器!

返回
ExecuteOutput 此值不能为 null

setRenderingConfigs

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

一个 RenderingConfig 对象列表,每个槽对应一个对象,由调用应用在请求中指定。调用应用和服务必须就此列表的预期大小达成一致。

参数
value List: 此值不能为 null

返回
ExecuteOutput.Builder 此值不能为 null

setRequestLogRecord

public ExecuteOutput.Builder setRequestLogRecord (RequestLogRecord value)

IsolatedWorker#onExecute(ExecuteInput, java.util.function.Consumer) 完成后写入 REQUESTS 表的持久化数据。如果为 null,则不会写入持久化数据。

参数
value RequestLogRecord: 此值不能为 null

返回
ExecuteOutput.Builder