public static abstract class
TaskInfo.Builder
Builder for TaskInfo
.
Public Constructors
Builder()
|
Public Methods
abstract TaskInfo<T> | |
final TaskInfo<T> | |
abstract Builder<T> | |
abstract Builder<T> |
setInputStreams(List<String> value)
Sets a list of task graph input stream info
String s in the form TAG:name. |
abstract Builder<T> |
setOutputStreams(List<String> value)
Sets a list of task graph output stream info
String s in the form TAG:name. |
abstract Builder<T> | |
abstract Builder<T> | |
abstract Builder<T> |
setTaskOptions(T value)
Sets a task-specific options instance.
|
abstract Builder<T> |
Inherited Methods
Public Constructors
public Builder ()
Public Methods
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 String
s in the form TAG:name.
Parameters
value |
---|
public abstract Builder<T> setOutputStreams (List<String> value)
Sets a list of task graph output stream info String
s 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 .
|
---|