Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class CreateCompanionAgentRequest.
Request of CreateCompanionAgent.
Generated from protobuf message google.cloud.dialogflow.v2.CreateCompanionAgentRequest
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. Resource identifier of the project creating the companion agent. Format: |
↳ companion_agent |
CompanionAgent
Required. The companion agent to create. |
↳ companion_agent_id |
string
Optional. The resource ID of the companion agent to create. If not provided, the server will auto-generate a resource ID. |
getParent
Required. Resource identifier of the project creating the companion agent.
Format: projects/{project}/locations/{location}
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. Resource identifier of the project creating the companion agent.
Format: projects/{project}/locations/{location}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCompanionAgent
Required. The companion agent to create.
| Returns | |
|---|---|
| Type | Description |
CompanionAgent|null |
|
hasCompanionAgent
clearCompanionAgent
setCompanionAgent
Required. The companion agent to create.
| Parameter | |
|---|---|
| Name | Description |
var |
CompanionAgent
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCompanionAgentId
Optional. The resource ID of the companion agent to create. If not provided, the server will auto-generate a resource ID.
| Returns | |
|---|---|
| Type | Description |
string |
|
setCompanionAgentId
Optional. The resource ID of the companion agent to create. If not provided, the server will auto-generate a resource ID.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. Resource identifier of the project creating the companion agent.
Format: |
companionAgent |
CompanionAgent
Required. The companion agent to create. |
companionAgentId |
string
Optional. The resource ID of the companion agent to create. If not provided, the server will auto-generate a resource ID. |
| Returns | |
|---|---|
| Type | Description |
CreateCompanionAgentRequest |
|