Attention: This MediaPipe Solutions Preview is an early release. Learn more.

TaskInfo.Builder

Stay organized with collections Save and categorize content based on your preferences.
public static abstract class TaskInfo.Builder

Builder for TaskInfo.

Public Constructors

Public Methods

abstract TaskInfo<T>
final TaskInfo<T>
build()
Validates and builds the TaskInfo instance.
abstract Builder<T>
setEnableFlowLimiting(Boolean value)
Sets to true if the task requires a flow limiter.
abstract Builder<T>
setInputStreams(List<String> value)
Sets a list of task graph input stream info Strings in the form TAG:name.
abstract Builder<T>
setOutputStreams(List<String> value)
Sets a list of task graph output stream info Strings in the form TAG:name.
abstract Builder<T>
setTaskGraphName(String value)
Sets the MediaPipe task graph name.
abstract Builder<T>
setTaskOptions(T value)
Sets a task-specific options instance.

Inherited Methods

Public Constructors

public Builder ()

Public Methods

public abstract TaskInfo<T> autoBuild ()

public final TaskInfo<T> build ()

Validates and builds the TaskInfo instance. *

Throws
IllegalArgumentException if the required information such as task graph name, graph input streams, and the graph output streams are empty.

public abstract Builder<T> setEnableFlowLimiting (Boolean value)

Sets to true if the task requires a flow limiter.

Parameters
value

public abstract Builder<T> setInputStreams (List<String> value)

Sets a list of task graph input stream info Strings in the form TAG:name.

Parameters
value

public abstract Builder<T> setOutputStreams (List<String> value)

Sets a list of task graph output stream info Strings in the form TAG:name.

Parameters
value

public abstract Builder<T> setTaskGraphName (String value)

Sets the MediaPipe task graph name.

Parameters
value

public abstract Builder<T> setTaskOptions (T value)

Sets a task-specific options instance.

Parameters
value a task-specific options that is derived from TaskOptions.