Reference documentation and code samples for the Google Cloud Ces V1 Client class CreateGuardrailRequest.
Request message for AgentService.CreateGuardrail.
Generated from protobuf message google.cloud.ces.v1.CreateGuardrailRequest
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 a guardrail in. |
↳ guardrail_id |
string
Optional. The ID to use for the guardrail, which will become the final component of the guardrail's resource name. If not provided, a unique ID will be automatically assigned for the guardrail. |
↳ guardrail |
Guardrail
Required. The guardrail to create. |
getParent
Required. The resource name of the app to create a guardrail in.
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The resource name of the app to create a guardrail in.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGuardrailId
Optional. The ID to use for the guardrail, which will become the final component of the guardrail's resource name. If not provided, a unique ID will be automatically assigned for the guardrail.
| Returns | |
|---|---|
| Type | Description |
string |
|
setGuardrailId
Optional. The ID to use for the guardrail, which will become the final component of the guardrail's resource name. If not provided, a unique ID will be automatically assigned for the guardrail.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGuardrail
Required. The guardrail to create.
| Returns | |
|---|---|
| Type | Description |
Guardrail|null |
|
hasGuardrail
clearGuardrail
setGuardrail
Required. The guardrail to create.
| Parameter | |
|---|---|
| Name | Description |
var |
Guardrail
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
static::build
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. The resource name of the app to create a guardrail in. Please see AgentServiceClient::appName() for help formatting this field. |
guardrail |
Guardrail
Required. The guardrail to create. |
guardrailId |
string
Optional. The ID to use for the guardrail, which will become the final component of the guardrail's resource name. If not provided, a unique ID will be automatically assigned for the guardrail. |
| Returns | |
|---|---|
| Type | Description |
CreateGuardrailRequest |
|
static::buildFromParentGuardrail
| Parameters | |
|---|---|
| Name | Description |
parent |
string
Required. The resource name of the app to create a guardrail in. Please see AgentServiceClient::appName() for help formatting this field. |
guardrail |
Guardrail
Required. The guardrail to create. |
| Returns | |
|---|---|
| Type | Description |
CreateGuardrailRequest |
|