執行輸出內容.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 資料表的永久資料。如果為空值,系統不會寫入任何持續性資料。

參數
value RequestLogRecord:此值不能為 null

傳回
ExecuteOutput.Builder