public final class TestCase extends GeneratedMessageV3 implements TestCaseOrBuilder
Represents a test case.
Protobuf type google.cloud.dialogflow.cx.v3beta1.TestCase
Static Fields
CREATION_TIME_FIELD_NUMBER
public static final int CREATION_TIME_FIELD_NUMBER
Field Value
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
LAST_TEST_RESULT_FIELD_NUMBER
public static final int LAST_TEST_RESULT_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
NOTES_FIELD_NUMBER
public static final int NOTES_FIELD_NUMBER
Field Value
public static final int TAGS_FIELD_NUMBER
Field Value
TEST_CASE_CONVERSATION_TURNS_FIELD_NUMBER
public static final int TEST_CASE_CONVERSATION_TURNS_FIELD_NUMBER
Field Value
TEST_CONFIG_FIELD_NUMBER
public static final int TEST_CONFIG_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static TestCase getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static TestCase.Builder newBuilder()
Returns
newBuilder(TestCase prototype)
public static TestCase.Builder newBuilder(TestCase prototype)
Parameter
Returns
public static TestCase parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TestCase parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static TestCase parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TestCase parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static TestCase parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TestCase parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TestCase parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TestCase parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TestCase parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TestCase parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static TestCase parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TestCase parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<TestCase> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCreationTime()
public Timestamp getCreationTime()
Output only. When the test was created.
.google.protobuf.Timestamp creation_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getCreationTimeOrBuilder()
public TimestampOrBuilder getCreationTimeOrBuilder()
Output only. When the test was created.
.google.protobuf.Timestamp creation_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getDefaultInstanceForType()
public TestCase getDefaultInstanceForType()
Returns
getDisplayName()
public String getDisplayName()
Required. The human-readable name of the test case, unique within the
agent. Limit of 200 characters.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type |
Description |
String |
The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Required. The human-readable name of the test case, unique within the
agent. Limit of 200 characters.
string display_name = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type |
Description |
ByteString |
The bytes for displayName.
|
getLastTestResult()
public TestCaseResult getLastTestResult()
The latest test result.
.google.cloud.dialogflow.cx.v3beta1.TestCaseResult last_test_result = 12;
Returns
getLastTestResultOrBuilder()
public TestCaseResultOrBuilder getLastTestResultOrBuilder()
The latest test result.
.google.cloud.dialogflow.cx.v3beta1.TestCaseResult last_test_result = 12;
Returns
getName()
The unique identifier of the test case.
TestCases.CreateTestCase
will populate the name automatically. Otherwise use format:
projects/<Project ID>/locations/<LocationID>/agents/
<AgentID>/testCases/<TestCase ID>
.
string name = 1;
Returns
Type |
Description |
String |
The name.
|
getNameBytes()
public ByteString getNameBytes()
The unique identifier of the test case.
TestCases.CreateTestCase
will populate the name automatically. Otherwise use format:
projects/<Project ID>/locations/<LocationID>/agents/
<AgentID>/testCases/<TestCase ID>
.
string name = 1;
Returns
getNotes()
Additional freeform notes about the test case. Limit of 400 characters.
string notes = 4;
Returns
Type |
Description |
String |
The notes.
|
getNotesBytes()
public ByteString getNotesBytes()
Additional freeform notes about the test case. Limit of 400 characters.
string notes = 4;
Returns
getParserForType()
public Parser<TestCase> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
public String getTags(int index)
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 |
index |
int
The index of the element to return.
|
Returns
Type |
Description |
String |
The tags at the given index.
|
public ByteString getTagsBytes(int index)
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 |
index |
int
The index of the value to return.
|
Returns
Type |
Description |
ByteString |
The bytes of the tags at the given index.
|
public int getTagsCount()
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;
Returns
Type |
Description |
int |
The count of tags.
|
public ProtocolStringList getTagsList()
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;
Returns
getTestCaseConversationTurns(int index)
public ConversationTurn getTestCaseConversationTurns(int index)
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 |
index |
int
|
Returns
getTestCaseConversationTurnsCount()
public int getTestCaseConversationTurnsCount()
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;
Returns
getTestCaseConversationTurnsList()
public List<ConversationTurn> getTestCaseConversationTurnsList()
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;
Returns
getTestCaseConversationTurnsOrBuilder(int index)
public ConversationTurnOrBuilder getTestCaseConversationTurnsOrBuilder(int index)
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 |
index |
int
|
Returns
getTestCaseConversationTurnsOrBuilderList()
public List<? extends ConversationTurnOrBuilder> getTestCaseConversationTurnsOrBuilderList()
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;
Returns
Type |
Description |
List<? extends com.google.cloud.dialogflow.cx.v3beta1.ConversationTurnOrBuilder> |
|
getTestConfig()
public TestConfig getTestConfig()
Config for the test case.
.google.cloud.dialogflow.cx.v3beta1.TestConfig test_config = 13;
Returns
getTestConfigOrBuilder()
public TestConfigOrBuilder getTestConfigOrBuilder()
Config for the test case.
.google.cloud.dialogflow.cx.v3beta1.TestConfig test_config = 13;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasCreationTime()
public boolean hasCreationTime()
Output only. When the test was created.
.google.protobuf.Timestamp creation_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type |
Description |
boolean |
Whether the creationTime field is set.
|
hasLastTestResult()
public boolean hasLastTestResult()
The latest test result.
.google.cloud.dialogflow.cx.v3beta1.TestCaseResult last_test_result = 12;
Returns
Type |
Description |
boolean |
Whether the lastTestResult field is set.
|
hasTestConfig()
public boolean hasTestConfig()
Config for the test case.
.google.cloud.dialogflow.cx.v3beta1.TestConfig test_config = 13;
Returns
Type |
Description |
boolean |
Whether the testConfig field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public TestCase.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TestCase.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public TestCase.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions