Google Cloud Workload Manager V1 Client - Class AgentCommand (0.2.1)

Reference documentation and code samples for the Google Cloud Workload Manager V1 Client class AgentCommand.

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

Generated from protobuf message google.cloud.workloadmanager.v1.AgentCommand

Namespace

Google \ Cloud \ WorkloadManager \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ command string

The name of the agent one-time executable that will be invoked.

↳ parameters array|Google\Protobuf\Internal\MapField

A map of key/value pairs that can be used to specify additional one-time executable settings.

getCommand

The name of the agent one-time executable that will be invoked.

Returns
Type Description
string

setCommand

The name of the agent one-time executable that will be invoked.

Parameter
Name Description
var string
Returns
Type Description
$this

getParameters

A map of key/value pairs that can be used to specify additional one-time executable settings.

Returns
Type Description
Google\Protobuf\Internal\MapField

setParameters

A map of key/value pairs that can be used to specify additional one-time executable settings.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026年07月31日 UTC.