Google Cloud Dialogflow Cx V3 Client - Class TestCaseResult (0.5.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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>.

↳ environment string

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

↳ conversation_turns array<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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>.

Returns
Type Description
string

setName

The resource name for the test case result. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>.

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<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