TaskInfo.Builder

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>
setTaskName(String value)
Sets the MediaPipe task name.
abstract Builder<T>
setTaskOptions(T value)
Sets a task-specific options instance.
abstract Builder<T>
setTaskRunningModeName(String value)
Sets the MediaPipe task running mode name.

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> setTaskName (String value)

Sets the MediaPipe task 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.

public abstract Builder<T> setTaskRunningModeName (String value)

Sets the MediaPipe task running mode name.

Parameters
value