Command

public abstract class Command


A specific instance of the execution of a command.

Summary

Nested types

public abstract class Command.Builder

Builder for Command.

public abstract class Command.ClearAppsDataStatus

The status of the clear apps data command.

Builder for Command.ClearAppsDataStatus.

The status of clearing a single app.

Builder for Command.ClearAppsDataStatus.PerAppStatus.

Whether the given app was cleared, and what error if any occurred.

public enum Command.State

State of the command.

public abstract class Command.StatusCase

Status specific to the kind of command.

The possible kind of Command.StatusCase.

Public methods

static Command.Builder
abstract String

A unique id for this instance of the command.

abstract Instant

The time at which this command was completed.

abstract Instant

The time at which this command was created.

static Command
abstract Command.State

The state of this command.

abstract Command.StatusCase

Status specific to the kind of command.

abstract Command.Builder

Public methods

builder

public static Command.Builder builder()

getCommandId

public abstract String getCommandId()

A unique id for this instance of the command.

getCompleteTime

public abstract Instant getCompleteTime()

The time at which this command was completed.

getCreateTime

public abstract Instant getCreateTime()

The time at which this command was created.

getDefaultInstance

public static Command getDefaultInstance()

getState

public abstract Command.State getState()

The state of this command.

getStatus

public abstract Command.StatusCase getStatus()

Status specific to the kind of command.

toBuilder

public abstract Command.Builder toBuilder()