Class TestCase
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dialogflow.cx.v3.TestCase
-
- All Implemented Interfaces:
TestCaseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class TestCase extends com.google.protobuf.GeneratedMessageV3 implements TestCaseOrBuilder
Represents a test case.
Protobuf typegoogle.cloud.dialogflow.cx.v3.TestCase- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTestCase.BuilderRepresents a test case.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCREATION_TIME_FIELD_NUMBERstatic intDISPLAY_NAME_FIELD_NUMBERstatic intLAST_TEST_RESULT_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intNOTES_FIELD_NUMBERstatic intTAGS_FIELD_NUMBERstatic intTEST_CASE_CONVERSATION_TURNS_FIELD_NUMBERstatic intTEST_CONFIG_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)com.google.protobuf.TimestampgetCreationTime()Output only.com.google.protobuf.TimestampOrBuildergetCreationTimeOrBuilder()Output only.static TestCasegetDefaultInstance()TestCasegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetDisplayName()Required.com.google.protobuf.ByteStringgetDisplayNameBytes()Required.TestCaseResultgetLastTestResult()The latest test result.TestCaseResultOrBuildergetLastTestResultOrBuilder()The latest test result.StringgetName()The unique identifier of the test case.com.google.protobuf.ByteStringgetNameBytes()The unique identifier of the test case.StringgetNotes()Additional freeform notes about the test case.com.google.protobuf.ByteStringgetNotesBytes()Additional freeform notes about the test case.com.google.protobuf.Parser<TestCase>getParserForType()intgetSerializedSize()StringgetTags(int index)Tags are short descriptions that users may apply to test cases for organizational and filtering purposes.com.google.protobuf.ByteStringgetTagsBytes(int index)Tags are short descriptions that users may apply to test cases for organizational and filtering purposes.intgetTagsCount()Tags are short descriptions that users may apply to test cases for organizational and filtering purposes.com.google.protobuf.ProtocolStringListgetTagsList()Tags are short descriptions that users may apply to test cases for organizational and filtering purposes.ConversationTurngetTestCaseConversationTurns(int index)The conversation turns uttered when the test case was created, in chronological order.intgetTestCaseConversationTurnsCount()The conversation turns uttered when the test case was created, in chronological order.List<ConversationTurn>getTestCaseConversationTurnsList()The conversation turns uttered when the test case was created, in chronological order.ConversationTurnOrBuildergetTestCaseConversationTurnsOrBuilder(int index)The conversation turns uttered when the test case was created, in chronological order.List<? extends ConversationTurnOrBuilder>getTestCaseConversationTurnsOrBuilderList()The conversation turns uttered when the test case was created, in chronological order.TestConfiggetTestConfig()Config for the test case.TestConfigOrBuildergetTestConfigOrBuilder()Config for the test case.booleanhasCreationTime()Output only.inthashCode()booleanhasLastTestResult()The latest test result.booleanhasTestConfig()Config for the test case.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TestCase.BuildernewBuilder()static TestCase.BuildernewBuilder(TestCase prototype)TestCase.BuildernewBuilderForType()protected TestCase.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TestCaseparseDelimitedFrom(InputStream input)static TestCaseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TestCaseparseFrom(byte[] data)static TestCaseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TestCaseparseFrom(com.google.protobuf.ByteString data)static TestCaseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TestCaseparseFrom(com.google.protobuf.CodedInputStream input)static TestCaseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TestCaseparseFrom(InputStream input)static TestCaseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TestCaseparseFrom(ByteBuffer data)static TestCaseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TestCase>parser()TestCase.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NOTES_FIELD_NUMBER
public static final int NOTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEST_CONFIG_FIELD_NUMBER
public static final int TEST_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TEST_CASE_CONVERSATION_TURNS_FIELD_NUMBER
public static final int TEST_CASE_CONVERSATION_TURNS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATION_TIME_FIELD_NUMBER
public static final int CREATION_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAST_TEST_RESULT_FIELD_NUMBER
public static final int LAST_TEST_RESULT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
The unique identifier of the test case. [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically. Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/ <AgentID>/testCases/<TestCase ID>`.
string name = 1;- Specified by:
getNamein interfaceTestCaseOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The unique identifier of the test case. [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically. Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/ <AgentID>/testCases/<TestCase ID>`.
string name = 1;- Specified by:
getNameBytesin interfaceTestCaseOrBuilder- Returns:
- The bytes for name.
-
getTagsList
public com.google.protobuf.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;- Specified by:
getTagsListin interfaceTestCaseOrBuilder- Returns:
- A list containing the tags.
-
getTagsCount
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;- Specified by:
getTagsCountin interfaceTestCaseOrBuilder- Returns:
- The count of tags.
-
getTags
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;- Specified by:
getTagsin interfaceTestCaseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The tags at the given index.
-
getTagsBytes
public com.google.protobuf.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;- Specified by:
getTagsBytesin interfaceTestCaseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the tags at the given index.
-
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];- Specified by:
getDisplayNamein interfaceTestCaseOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.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];- Specified by:
getDisplayNameBytesin interfaceTestCaseOrBuilder- Returns:
- The bytes for displayName.
-
getNotes
public String getNotes()
Additional freeform notes about the test case. Limit of 400 characters.
string notes = 4;- Specified by:
getNotesin interfaceTestCaseOrBuilder- Returns:
- The notes.
-
getNotesBytes
public com.google.protobuf.ByteString getNotesBytes()
Additional freeform notes about the test case. Limit of 400 characters.
string notes = 4;- Specified by:
getNotesBytesin interfaceTestCaseOrBuilder- Returns:
- The bytes for notes.
-
hasTestConfig
public boolean hasTestConfig()
Config for the test case.
.google.cloud.dialogflow.cx.v3.TestConfig test_config = 13;- Specified by:
hasTestConfigin interfaceTestCaseOrBuilder- Returns:
- Whether the testConfig field is set.
-
getTestConfig
public TestConfig getTestConfig()
Config for the test case.
.google.cloud.dialogflow.cx.v3.TestConfig test_config = 13;- Specified by:
getTestConfigin interfaceTestCaseOrBuilder- Returns:
- The testConfig.
-
getTestConfigOrBuilder
public TestConfigOrBuilder getTestConfigOrBuilder()
Config for the test case.
.google.cloud.dialogflow.cx.v3.TestConfig test_config = 13;- Specified by:
getTestConfigOrBuilderin interfaceTestCaseOrBuilder
-
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.v3.ConversationTurn test_case_conversation_turns = 5;- Specified by:
getTestCaseConversationTurnsListin interfaceTestCaseOrBuilder
-
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.v3.ConversationTurn test_case_conversation_turns = 5;- Specified by:
getTestCaseConversationTurnsOrBuilderListin interfaceTestCaseOrBuilder
-
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.v3.ConversationTurn test_case_conversation_turns = 5;- Specified by:
getTestCaseConversationTurnsCountin interfaceTestCaseOrBuilder
-
getTestCaseConversationTurns
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.v3.ConversationTurn test_case_conversation_turns = 5;- Specified by:
getTestCaseConversationTurnsin interfaceTestCaseOrBuilder
-
getTestCaseConversationTurnsOrBuilder
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.v3.ConversationTurn test_case_conversation_turns = 5;- Specified by:
getTestCaseConversationTurnsOrBuilderin interfaceTestCaseOrBuilder
-
hasCreationTime
public boolean hasCreationTime()
Output only. When the test was created.
.google.protobuf.Timestamp creation_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreationTimein interfaceTestCaseOrBuilder- Returns:
- Whether the creationTime field is set.
-
getCreationTime
public com.google.protobuf.Timestamp getCreationTime()
Output only. When the test was created.
.google.protobuf.Timestamp creation_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreationTimein interfaceTestCaseOrBuilder- Returns:
- The creationTime.
-
getCreationTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder()
Output only. When the test was created.
.google.protobuf.Timestamp creation_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreationTimeOrBuilderin interfaceTestCaseOrBuilder
-
hasLastTestResult
public boolean hasLastTestResult()
The latest test result.
.google.cloud.dialogflow.cx.v3.TestCaseResult last_test_result = 12;- Specified by:
hasLastTestResultin interfaceTestCaseOrBuilder- Returns:
- Whether the lastTestResult field is set.
-
getLastTestResult
public TestCaseResult getLastTestResult()
The latest test result.
.google.cloud.dialogflow.cx.v3.TestCaseResult last_test_result = 12;- Specified by:
getLastTestResultin interfaceTestCaseOrBuilder- Returns:
- The lastTestResult.
-
getLastTestResultOrBuilder
public TestCaseResultOrBuilder getLastTestResultOrBuilder()
The latest test result.
.google.cloud.dialogflow.cx.v3.TestCaseResult last_test_result = 12;- Specified by:
getLastTestResultOrBuilderin interfaceTestCaseOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TestCase parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TestCase parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TestCase parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TestCase parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TestCase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TestCase parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TestCase parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TestCase parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TestCase parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static TestCase parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static TestCase parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static TestCase parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public TestCase.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TestCase.Builder newBuilder()
-
newBuilder
public static TestCase.Builder newBuilder(TestCase prototype)
-
toBuilder
public TestCase.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TestCase.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TestCase getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TestCase> parser()
-
getParserForType
public com.google.protobuf.Parser<TestCase> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TestCase getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-