Class TestCase.Builder (0.31.0)

public static final class TestCase.Builder extends GeneratedMessageV3.Builder<TestCase.Builder> implements TestCaseOrBuilder

Represents a test case.

Protobuf type google.cloud.dialogflow.cx.v3beta1.TestCase

Implements

TestCaseOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTags(Iterable<String> values)

public TestCase.Builder addAllTags(Iterable<String> values)

Tags are short descriptions that users may apply to test cases for organizational and filtering purposes. Each tag should start with "#" and has a limit of 30 characters.

repeated string tags = 2;

Parameter
Name Description
values Iterable<String>

The tags to add.

Returns
Type Description
TestCase.Builder

This builder for chaining.

addAllTestCaseConversationTurns(Iterable<? extends ConversationTurn> values)

public TestCase.Builder addAllTestCaseConversationTurns(Iterable<? extends ConversationTurn> values)

The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn test_case_conversation_turns = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn>
Returns
Type Description
TestCase.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TestCase.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TestCase.Builder
Overrides

addTags(String value)

public TestCase.Builder addTags(String value)

Tags are short descriptions that users may apply to test cases for organizational and filtering purposes. Each tag should start with "#" and has a limit of 30 characters.

repeated string tags = 2;

Parameter
Name Description
value String

The tags to add.

Returns
Type Description
TestCase.Builder

This builder for chaining.

addTagsBytes(ByteString value)

public TestCase.Builder addTagsBytes(ByteString value)

Tags are short descriptions that users may apply to test cases for organizational and filtering purposes. Each tag should start with "#" and has a limit of 30 characters.

repeated string tags = 2;

Parameter
Name Description
value ByteString

The bytes of the tags to add.

Returns
Type Description
TestCase.Builder

This builder for chaining.

addTestCaseConversationTurns(ConversationTurn value)

public TestCase.Builder addTestCaseConversationTurns(ConversationTurn value)

The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn test_case_conversation_turns = 5;

Parameter
Name Description
value ConversationTurn
Returns
Type Description
TestCase.Builder

addTestCaseConversationTurns(ConversationTurn.Builder builderForValue)

public TestCase.Builder addTestCaseConversationTurns(ConversationTurn.Builder builderForValue)

The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn test_case_conversation_turns = 5;

Parameter
Name Description
builderForValue ConversationTurn.Builder
Returns
Type Description
TestCase.Builder

addTestCaseConversationTurns(int index, ConversationTurn value)

public TestCase.Builder addTestCaseConversationTurns(int index, ConversationTurn value)

The conversation turns uttered when the test case was created, in chronological order. These include the canonical set of agent utterances that should occur when the agent is working properly.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn test_case_conversation_turns = 5;

Parameters
Name Description
index