0.10.0 (latest) 0.9.0 0.7.0 0.4.0 0.3.0 0.1.0

    public interface CommandOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getAgentCommand()

    public abstract AgentCommand getAgentCommand()

AgentCommand specifies a one-time executable program for the agent to
run.

`.google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.AgentCommand` | The agentCommand. |

### getAgentCommandOrBuilder()

    public abstract AgentCommandOrBuilder getAgentCommandOrBuilder()

AgentCommand specifies a one-time executable program for the agent to
run.

`.google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.AgentCommandOrBuilder` |   |

### getCommandTypeCase()

    public abstract Command.CommandTypeCase getCommandTypeCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.Command.CommandTypeCase` |   |

### getShellCommand()

    public abstract ShellCommand getShellCommand()

ShellCommand is invoked via the agent's command line executor.

`.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.ShellCommand` | The shellCommand. |

### getShellCommandOrBuilder()

    public abstract ShellCommandOrBuilder getShellCommandOrBuilder()

ShellCommand is invoked via the agent's command line executor.

`.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/com.google.cloud.workloadmanager.v1.ShellCommandOrBuilder` |   |

### hasAgentCommand()

    public abstract boolean hasAgentCommand()

AgentCommand specifies a one-time executable program for the agent to
run.

`.google.cloud.workloadmanager.v1.AgentCommand agent_command = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the agentCommand field is set. |

### hasShellCommand()

    public abstract boolean hasShellCommand()

ShellCommand is invoked via the agent's command line executor.

`.google.cloud.workloadmanager.v1.ShellCommand shell_command = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the shellCommand field is set. |