Builder
class Builder
| kotlin.Any | |
| โณ | android.adservices.ondevicepersonalization.TrainingExampleRecord.Builder |
A builder for TrainingExampleRecord
Summary
| Public constructors | |
|---|---|
Builder() |
|
| Public methods | |
|---|---|
| TrainingExampleRecord |
build()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
Public methods
build
fun build(): TrainingExampleRecord
Builds the instance. This builder should not be touched after calling this!
| Return | |
|---|---|
TrainingExampleRecord |
This value cannot be null. |
setResumptionToken
fun setResumptionToken(vararg value: Byte): TrainingExampleRecord.Builder
The resumption token byte arrays corresponding to training examples. The last processed example's corresponding resumption token will be passed to android.adservices.ondevicepersonalization.IsolatedWorker#onTrainingExamples to support resumption.
| Parameters | |
|---|---|
value |
Byte: This value may be null. |
| Return | |
|---|---|
TrainingExampleRecord.Builder |
This value cannot be null. |
setTrainingExample
fun setTrainingExample(vararg value: Byte): TrainingExampleRecord.Builder
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. |