Reference documentation and code samples for the Google Cloud Ces V1 Client class CreateAgentRequest.
Request message for AgentService.CreateAgent.
Generated from protobuf message google.cloud.ces.v1.CreateAgentRequest
Namespace
Google \ Cloud \ Ces \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The resource name of the app to create an agent in. |
↳ agent_id |
string
Optional. The ID to use for the agent, which will become the final component of the agent's resource name. If not provided, a unique ID will be automatically assigned for the agent. |
↳ agent |
Agent
Required. The agent to create. |
getParent
Required. The resource name of the app to create an agent in.
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The resource name of the app to create an agent in.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAgentId
Optional. The ID to use for the agent, which will become the final component of the agent's resource name. If not provided, a unique ID will be automatically assigned for the agent.
| Returns | |
|---|---|
| Type | Description |
string |
|
setAgentId
Optional. The ID to use for the agent, which will become the final component of the agent's resource name. If not provided, a unique ID will be automatically assigned for the agent.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAgent
Required. The agent to create.
| Returns | |
|---|---|
| Type | Description |
Agent|null |
|
hasAgent
clearAgent
setAgent
Required. The agent to create.
| Parameter | |
|---|---|
| Name | Description |
var |
Agent
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. The resource name of the app to create an agent in. Please see AgentServiceClient::appName() for help formatting this field. |
agent |
Agent
Required. The agent to create. |
agentId |
string
Optional. The ID to use for the agent, which will become the final component of the agent's resource name. If not provided, a unique ID will be automatically assigned for the agent. |
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest |
|
static::buildFromParentAgent
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. The resource name of the app to create an agent in. Please see AgentServiceClient::appName() for help formatting this field. |
agent |
Agent
Required. The agent to create. |
| Returns | |
|---|---|
| Type | Description |
CreateAgentRequest |
|