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

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
NameDescription
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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getEnvironment

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

Returns
TypeDescription
string

setEnvironment

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getConversationTurns

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setConversationTurns

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

Parameter
NameDescription
var array<Google\Cloud\Dialogflow\Cx\V3\ConversationTurn>
Returns
TypeDescription
$this

getTestResult

Whether the test case passed in the agent environment.

Returns
TypeDescription
int

setTestResult

Whether the test case passed in the agent environment.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTestTime

The time that the test was run.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasTestTime

clearTestTime

setTestTime

The time that the test was run.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this