Google Cloud Dialogflow Cx V3 Client - Class TestCaseResult (0.4.0)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class TestCaseResult.

Represents a result from running a test case in an agent environment.

Generated from protobuf message google.cloud.dialogflow.cx.v3.TestCaseResult

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The resource name for the test case result. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/ <TestCase ID>/results/<TestCaseResult ID>.

↳ environment string

Environment where the test was run. If not set, it indicates the draft environment.

↳ conversation_turns array<Google\Cloud\Dialogflow\Cx\V3\ConversationTurn>

The conversation turns uttered during the test case replay in chronological order.

↳ test_result int

Whether the test case passed in the agent environment.

↳ test_time Google\Protobuf\Timestamp

The time that the test was run.

getName

The resource name for the test case result. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/ <TestCase ID>/results/<TestCaseResult ID>.

Returns
Type Description
string

setName

The resource name for the test case result. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/ <TestCase ID>/results/<TestCaseResult ID>.

Parameter
Name Description
var string
Returns
Type Description
$this

getEnvironment

Environment where the test was run. If not set, it indicates the draft environment.

Returns
Type Description
string

setEnvironment

Environment where the test was run. If not set, it indicates the draft environment.

Parameter
Name Description
var string
Returns
Type Description
$this

getConversationTurns

The conversation turns uttered during the test case replay in chronological order.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setConversationTurns

The conversation turns uttered during the test case replay in chronological order.

Parameter
Name Description
var array<Google\Cloud\Dialogflow\Cx\V3\ConversationTurn>
Returns
Type Description
$this

getTestResult

Whether the test case passed in the agent environment.

Returns
Type Description
int

setTestResult

Whether the test case passed in the agent environment.

Parameter
Name Description
var int
Returns
Type Description
$this

getTestTime

The time that the test was run.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasTestTime

clearTestTime

setTestTime

The time that the test was run.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this