Added in API level 35

Builder


class Builder
kotlin.Any
   ↳ android.adservices.ondevicepersonalization.TrainingExampleRecord.Builder

A builder for TrainingExampleRecord

Summary

Public constructors

Public methods
TrainingExampleRecord

Builds the instance.

TrainingExampleRecord.Builder
setResumptionToken(vararg value: Byte)

The resumption token byte arrays corresponding to training examples.

TrainingExampleRecord.Builder
setTrainingExample(vararg value: Byte)

Training example byte arrays.

Public constructors

Builder

Added in API level 35
Builder()

Public methods

build

Added in API level 35
fun build(): TrainingExampleRecord

Deprecated: Deprecated in Java.

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

Return
TrainingExampleRecord This value cannot be null.

setResumptionToken

Added in API level 35
fun setResumptionToken(vararg value: Byte): TrainingExampleRecord.Builder

Deprecated: Deprecated in Java.

The resumption token byte arrays corresponding to training examples. The last processed example's corresponding resumption token will be passed to IsolatedWorker.onTrainingExamples to support resumption.

Parameters
value Byte: This value may be null.
Return
TrainingExampleRecord.Builder This value cannot be null.

setTrainingExample

Added in API level 35
fun setTrainingExample(vararg value: Byte): TrainingExampleRecord.Builder

Deprecated: Deprecated in Java.

Training example byte arrays. The format is a binary serialized tensorflow.Example proto. The maximum allowed example size is 50KB.

Parameters
value Byte: This value may be null.
Return
TrainingExampleRecord.Builder This value cannot be null.