Class WindowsScheduledTask.TaskAction.Builder (0.3.0)

public static final class WindowsScheduledTask.TaskAction.Builder extends GeneratedMessage.Builder<WindowsScheduledTask.TaskAction.Builder> implements WindowsScheduledTask.TaskActionOrBuilder

The task action.

Protobuf type google.backstory.WindowsScheduledTask.TaskAction

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllExecArguments(Iterable<String> values)

public WindowsScheduledTask.TaskAction.Builder addAllExecArguments(Iterable<String> values)

The arguments of the task. This field is only populated if the task action type is EXEC.

repeated string exec_arguments = 2;

Parameter
Name Description
values Iterable<String>

The execArguments to add.

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

addExecArguments(String value)

public WindowsScheduledTask.TaskAction.Builder addExecArguments(String value)

The arguments of the task. This field is only populated if the task action type is EXEC.

repeated string exec_arguments = 2;

Parameter
Name Description
value String

The execArguments to add.

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

addExecArgumentsBytes(ByteString value)

public WindowsScheduledTask.TaskAction.Builder addExecArgumentsBytes(ByteString value)

The arguments of the task. This field is only populated if the task action type is EXEC.

repeated string exec_arguments = 2;

Parameter
Name Description
value ByteString

The bytes of the execArguments to add.

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

build()

public WindowsScheduledTask.TaskAction build()
Returns
Type Description
WindowsScheduledTask.TaskAction

buildPartial()

public WindowsScheduledTask.TaskAction buildPartial()
Returns
Type Description
WindowsScheduledTask.TaskAction

clear()

public WindowsScheduledTask.TaskAction.Builder clear()
Returns
Type Description
WindowsScheduledTask.TaskAction.Builder
Overrides

clearActionType()

public WindowsScheduledTask.TaskAction.Builder clearActionType()

The action type of the task.

.google.backstory.WindowsScheduledTask.TaskAction.ActionType action_type = 1;

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

clearComClassId()

public WindowsScheduledTask.TaskAction.Builder clearComClassId()

The COM class IF the action is COM handler. This field is only populated if the task action type is COM_HANDLER.

string com_class_id = 4;

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

clearComData()

public WindowsScheduledTask.TaskAction.Builder clearComData()

The data of the task. This field is only populated if the task action type is COM_HANDLER.

string com_data = 5;

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

clearExecArguments()

public WindowsScheduledTask.TaskAction.Builder clearExecArguments()

The arguments of the task. This field is only populated if the task action type is EXEC.

repeated string exec_arguments = 2;

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

clearExecWorkingDirectory()

public WindowsScheduledTask.TaskAction.Builder clearExecWorkingDirectory()

The executable working directory of the task. This field is only populated if the task action type is EXEC.

string exec_working_directory = 3;

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

getActionType()

public WindowsScheduledTask.TaskAction.ActionType getActionType()

The action type of the task.

.google.backstory.WindowsScheduledTask.TaskAction.ActionType action_type = 1;

Returns
Type Description
WindowsScheduledTask.TaskAction.ActionType

The actionType.

getActionTypeValue()

public int getActionTypeValue()

The action type of the task.

.google.backstory.WindowsScheduledTask.TaskAction.ActionType action_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for actionType.

getComClassId()

public String getComClassId()

The COM class IF the action is COM handler. This field is only populated if the task action type is COM_HANDLER.

string com_class_id = 4;

Returns
Type Description
String

The comClassId.

getComClassIdBytes()

public ByteString getComClassIdBytes()

The COM class IF the action is COM handler. This field is only populated if the task action type is COM_HANDLER.

string com_class_id = 4;

Returns
Type Description
ByteString

The bytes for comClassId.

getComData()

public String getComData()

The data of the task. This field is only populated if the task action type is COM_HANDLER.

string com_data = 5;

Returns
Type Description
String

The comData.

getComDataBytes()

public ByteString getComDataBytes()

The data of the task. This field is only populated if the task action type is COM_HANDLER.

string com_data = 5;

Returns
Type Description
ByteString

The bytes for comData.

getDefaultInstanceForType()

public WindowsScheduledTask.TaskAction getDefaultInstanceForType()
Returns
Type Description
WindowsScheduledTask.TaskAction

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExecArguments(int index)

public String getExecArguments(int index)

The arguments of the task. This field is only populated if the task action type is EXEC.

repeated string exec_arguments = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The execArguments at the given index.

getExecArgumentsBytes(int index)

public ByteString getExecArgumentsBytes(int index)

The arguments of the task. This field is only populated if the task action type is EXEC.

repeated string exec_arguments = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the execArguments at the given index.

getExecArgumentsCount()

public int getExecArgumentsCount()

The arguments of the task. This field is only populated if the task action type is EXEC.

repeated string exec_arguments = 2;

Returns
Type Description
int

The count of execArguments.

getExecArgumentsList()

public ProtocolStringList getExecArgumentsList()

The arguments of the task. This field is only populated if the task action type is EXEC.

repeated string exec_arguments = 2;

Returns
Type Description
ProtocolStringList

A list containing the execArguments.

getExecWorkingDirectory()

public String getExecWorkingDirectory()

The executable working directory of the task. This field is only populated if the task action type is EXEC.

string exec_working_directory = 3;

Returns
Type Description
String

The execWorkingDirectory.

getExecWorkingDirectoryBytes()

public ByteString getExecWorkingDirectoryBytes()

The executable working directory of the task. This field is only populated if the task action type is EXEC.

string exec_working_directory = 3;

Returns
Type Description
ByteString

The bytes for execWorkingDirectory.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WindowsScheduledTask.TaskAction other)

public WindowsScheduledTask.TaskAction.Builder mergeFrom(WindowsScheduledTask.TaskAction other)
Parameter
Name Description
other WindowsScheduledTask.TaskAction
Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WindowsScheduledTask.TaskAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WindowsScheduledTask.TaskAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WindowsScheduledTask.TaskAction.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WindowsScheduledTask.TaskAction.Builder
Overrides

setActionType(WindowsScheduledTask.TaskAction.ActionType value)

public WindowsScheduledTask.TaskAction.Builder setActionType(WindowsScheduledTask.TaskAction.ActionType value)

The action type of the task.

.google.backstory.WindowsScheduledTask.TaskAction.ActionType action_type = 1;

Parameter
Name Description
value WindowsScheduledTask.TaskAction.ActionType

The actionType to set.

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

setActionTypeValue(int value)

public WindowsScheduledTask.TaskAction.Builder setActionTypeValue(int value)

The action type of the task.

.google.backstory.WindowsScheduledTask.TaskAction.ActionType action_type = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for actionType to set.

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

setComClassId(String value)

public WindowsScheduledTask.TaskAction.Builder setComClassId(String value)

The COM class IF the action is COM handler. This field is only populated if the task action type is COM_HANDLER.

string com_class_id = 4;

Parameter
Name Description
value String

The comClassId to set.

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

setComClassIdBytes(ByteString value)

public WindowsScheduledTask.TaskAction.Builder setComClassIdBytes(ByteString value)

The COM class IF the action is COM handler. This field is only populated if the task action type is COM_HANDLER.

string com_class_id = 4;

Parameter
Name Description
value ByteString

The bytes for comClassId to set.

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

setComData(String value)

public WindowsScheduledTask.TaskAction.Builder setComData(String value)

The data of the task. This field is only populated if the task action type is COM_HANDLER.

string com_data = 5;

Parameter
Name Description
value String

The comData to set.

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

setComDataBytes(ByteString value)

public WindowsScheduledTask.TaskAction.Builder setComDataBytes(ByteString value)

The data of the task. This field is only populated if the task action type is COM_HANDLER.

string com_data = 5;

Parameter
Name Description
value ByteString

The bytes for comData to set.

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

setExecArguments(int index, String value)

public WindowsScheduledTask.TaskAction.Builder setExecArguments(int index, String value)

The arguments of the task. This field is only populated if the task action type is EXEC.

repeated string exec_arguments = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The execArguments to set.

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

setExecWorkingDirectory(String value)

public WindowsScheduledTask.TaskAction.Builder setExecWorkingDirectory(String value)

The executable working directory of the task. This field is only populated if the task action type is EXEC.

string exec_working_directory = 3;

Parameter
Name Description
value String

The execWorkingDirectory to set.

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.

setExecWorkingDirectoryBytes(ByteString value)

public WindowsScheduledTask.TaskAction.Builder setExecWorkingDirectoryBytes(ByteString value)

The executable working directory of the task. This field is only populated if the task action type is EXEC.

string exec_working_directory = 3;

Parameter
Name Description
value ByteString

The bytes for execWorkingDirectory to set.

Returns
Type Description
WindowsScheduledTask.TaskAction.Builder

This builder for chaining.