Class TestCase
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3beta1.TestCase
- All Implemented Interfaces:
TestCaseOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class TestCase
extends com.google.protobuf.GeneratedMessage
implements TestCaseOrBuilder
Represents a test case.Protobuf type
google.cloud.dialogflow.cx.v3beta1.TestCase- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static TestCasestatic final com.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.The latest test result.The latest test result.getName()The unique identifier of the test case.com.google.protobuf.ByteStringThe unique identifier of the test case.getNotes()Additional freeform notes about the test case.com.google.protobuf.ByteStringAdditional freeform notes about the test case.com.google.protobuf.Parser<TestCase>intgetTags(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.intTags are short descriptions that users may apply to test cases for organizational and filtering purposes.com.google.protobuf.ProtocolStringListTags are short descriptions that users may apply to test cases for organizational and filtering purposes.getTestCaseConversationTurns(int index) The conversation turns uttered when the test case was created, in chronological order.intThe conversation turns uttered when the test case was created, in chronological order.The conversation turns uttered when the test case was created, in chronological order.getTestCaseConversationTurnsOrBuilder(int index) The conversation turns uttered when the test case was created, in chronological order.List<? extends ConversationTurnOrBuilder>The conversation turns uttered when the test case was created, in chronological order.Config for the test case.Config for the test case.booleanOutput only.inthashCode()booleanThe latest test result.booleanConfig for the test case.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic TestCase.Builderstatic TestCase.BuildernewBuilder(TestCase prototype) protected TestCase.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
TAGS_FIELD_NUMBER
public static final int TAGS_FIELD_NUMBER- See Also:
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER- See Also:
-
NOTES_FIELD_NUMBER
public static final int NOTES_FIELD_NUMBER- See Also:
-
TEST_CONFIG_FIELD_NUMBER
public static final int TEST_CONFIG_FIELD_NUMBER- See Also:
-
TEST_CASE_CONVERSATION_TURNS_FIELD_NUMBER
public static final int TEST_CASE_CONVERSATION_TURNS_FIELD_NUMBER- See Also:
-
CREATION_TIME_FIELD_NUMBER
public static final int CREATION_TIME_FIELD_NUMBER- See Also:
-
LAST_TEST_RESULT_FIELD_NUMBER
public static final int LAST_TEST_RESULT_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
The unique identifier of the test case. [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCase] will populate the name automatically. Otherwise use format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
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.v3beta1.TestCases.CreateTestCase] will populate the name automatically. Otherwise use format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
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
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
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
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.v3beta1.TestConfig test_config = 13;- Specified by:
hasTestConfigin interfaceTestCaseOrBuilder- Returns:
- Whether the testConfig field is set.
-
getTestConfig
Config for the test case.
.google.cloud.dialogflow.cx.v3beta1.TestConfig test_config = 13;- Specified by:
getTestConfigin interfaceTestCaseOrBuilder- Returns:
- The testConfig.
-
getTestConfigOrBuilder
Config for the test case.
.google.cloud.dialogflow.cx.v3beta1.TestConfig test_config = 13;- Specified by:
getTestConfigOrBuilderin interfaceTestCaseOrBuilder
-
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;- Specified by:
getTestCaseConversationTurnsListin interfaceTestCaseOrBuilder
-
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;- 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.v3beta1.ConversationTurn test_case_conversation_turns = 5;- Specified by:
getTestCaseConversationTurnsCountin interfaceTestCaseOrBuilder
-
getTestCaseConversationTurns
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;- Specified by:
getTestCaseConversationTurnsin interfaceTestCaseOrBuilder
-
getTestCaseConversationTurnsOrBuilder
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;- 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.v3beta1.TestCaseResult last_test_result = 12;- Specified by:
hasLastTestResultin interfaceTestCaseOrBuilder- Returns:
- Whether the lastTestResult field is set.
-
getLastTestResult
The latest test result.
.google.cloud.dialogflow.cx.v3beta1.TestCaseResult last_test_result = 12;- Specified by:
getLastTestResultin interfaceTestCaseOrBuilder- Returns:
- The lastTestResult.
-
getLastTestResultOrBuilder
The latest test result.
.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static TestCase parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TestCase parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TestCase parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TestCase.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-