TrainingExamplesOutput.Builder


public static final class TrainingExamplesOutput.Builder
extends Object

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


A builder for TrainingExamplesOutput

Summary

Public constructors

Builder()

Public methods

TrainingExamplesOutput.Builder addTrainingExampleRecord(TrainingExampleRecord value)
TrainingExamplesOutput build()

Builds the instance.

TrainingExamplesOutput.Builder setTrainingExampleRecords(List<TrainingExampleRecord> value)

The list of training example byte arrays.

Inherited methods

Public constructors

Builder

Added in API level 35
public Builder ()

Public methods

addTrainingExampleRecord

Added in API level 35
public TrainingExamplesOutput.Builder addTrainingExampleRecord (TrainingExampleRecord value)

Parameters
value TrainingExampleRecord: This value cannot be null.

Returns
TrainingExamplesOutput.Builder This value cannot be null.

build

Added in API level 35
public TrainingExamplesOutput build ()

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

Returns
TrainingExamplesOutput This value cannot be null.

setTrainingExampleRecords

Added in API level 35
public TrainingExamplesOutput.Builder setTrainingExampleRecords (List<TrainingExampleRecord> value)

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

Parameters
value List: This value cannot be null.

Returns
TrainingExamplesOutput.Builder This value cannot be null.