Class TestCase
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class TestCase extends com.google.protobuf.GeneratedMessageV3 implements TestCaseOrBuilder
Represents a test case.
Protobuf typegoogle.cloud.dialogflow.cx.v3beta1.TestCase
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestCase.Builder
Represents 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 int
CREATION_TIME_FIELD_NUMBER
static int
DISPLAY_NAME_FIELD_NUMBER
static int
LAST_TEST_RESULT_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
NOTES_FIELD_NUMBER
static int
TAGS_FIELD_NUMBER
static int
TEST_CASE_CONVERSATION_TURNS_FIELD_NUMBER
static int
TEST_CONFIG_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
com.google.protobuf.Timestamp
getCreationTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreationTimeOrBuilder()
Output only.static TestCase
getDefaultInstance()
TestCase
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getDisplayName()
Required.com.google.protobuf.ByteString
getDisplayNameBytes()
Required.TestCaseResult
getLastTestResult()
The latest test result.TestCaseResultOrBuilder
getLastTestResultOrBuilder()
The latest test result.String
getName()
The unique identifier of the test case.com.google.protobuf.ByteString
getNameBytes()
The unique identifier of the test case.String
getNotes()
Additional freeform notes about the test case.com.google.protobuf.ByteString
getNotesBytes()
Additional freeform notes about the test case.com.google.protobuf.Parser<TestCase>
getParserForType()
int
getSerializedSize()
String
getTags(int index)
Tags are short descriptions that users may apply to test cases for organizational and filtering purposes.com.google.protobuf.ByteString
getTagsBytes(int index)
Tags are short descriptions that users may apply to test cases for organizational and filtering purposes.int
getTagsCount()
Tags are short descriptions that users may apply to test cases for organizational and filtering purposes.com.google.protobuf.ProtocolStringList
getTagsList()
Tags are short descriptions that users may apply to test cases for organizational and filtering purposes.ConversationTurn
getTestCaseConversationTurns(int index)
The conversation turns uttered when the test case was created, in chronological order.int
getTestCaseConversationTurnsCount()
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.ConversationTurnOrBuilder
getTestCaseConversationTurnsOrBuilder(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.TestConfig
getTestConfig()
Config for the test case.TestConfigOrBuilder
getTestConfigOrBuilder()
Config for the test case.boolean
hasCreationTime()
Output only.int
hashCode()
boolean
hasLastTestResult()
The latest test result.boolean
hasTestConfig()
Config for the test case.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static TestCase.Builder
newBuilder()
static TestCase.Builder
newBuilder(TestCase prototype)
TestCase.Builder
newBuilderForType()
protected TestCase.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static TestCase
parseDelimitedFrom(InputStream input)
static TestCase
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TestCase
parseFrom(byte[] data)
static TestCase
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TestCase
parseFrom(com.google.protobuf.ByteString data)
static TestCase
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TestCase
parseFrom(com.google.protobuf.CodedInputStream input)
static TestCase
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TestCase
parseFrom(InputStream input)
static TestCase
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TestCase
parseFrom(ByteBuffer data)
static TestCase
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<TestCase>
parser()
TestCase.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public String 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/<Project ID>/locations/<LocationID>/agents/ <AgentID>/testCases/<TestCase ID>`.
string name = 1;
- Specified by:
getName
in 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/<Project ID>/locations/<LocationID>/agents/ <AgentID>/testCases/<TestCase ID>`.
string name = 1;
- Specified by:
getNameBytes
in 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:
getTagsList
in 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:
getTagsCount
in 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:
getTags
in 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:
getTagsBytes
in 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:
getDisplayName
in 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:
getDisplayNameBytes
in 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:
getNotes
in 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:
getNotesBytes
in 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:
hasTestConfig
in interfaceTestCaseOrBuilder
- Returns:
- Whether the testConfig field is set.
-
getTestConfig
public TestConfig getTestConfig()
Config for the test case.
.google.cloud.dialogflow.cx.v3beta1.TestConfig test_config = 13;
- Specified by:
getTestConfig
in interfaceTestCaseOrBuilder
- Returns:
- The testConfig.
-
getTestConfigOrBuilder
public TestConfigOrBuilder getTestConfigOrBuilder()
Config for the test case.
.google.cloud.dialogflow.cx.v3beta1.TestConfig test_config = 13;
- Specified by:
getTestConfigOrBuilder
in 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.v3beta1.ConversationTurn test_case_conversation_turns = 5;
- Specified by:
getTestCaseConversationTurnsList
in 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.v3beta1.ConversationTurn test_case_conversation_turns = 5;
- Specified by:
getTestCaseConversationTurnsOrBuilderList
in 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:
getTestCaseConversationTurnsCount
in 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.v3beta1.ConversationTurn test_case_conversation_turns = 5;
- Specified by:
getTestCaseConversationTurns
in 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.v3beta1.ConversationTurn test_case_conversation_turns = 5;
- Specified by:
getTestCaseConversationTurnsOrBuilder
in 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:
hasCreationTime
in 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:
getCreationTime
in 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:
getCreationTimeOrBuilder
in interfaceTestCaseOrBuilder
-
hasLastTestResult
public boolean hasLastTestResult()
The latest test result.
.google.cloud.dialogflow.cx.v3beta1.TestCaseResult last_test_result = 12;
- Specified by:
hasLastTestResult
in interfaceTestCaseOrBuilder
- Returns:
- Whether the lastTestResult field is set.
-
getLastTestResult
public TestCaseResult getLastTestResult()
The latest test result.
.google.cloud.dialogflow.cx.v3beta1.TestCaseResult last_test_result = 12;
- Specified by:
getLastTestResult
in interfaceTestCaseOrBuilder
- Returns:
- The lastTestResult.
-
getLastTestResultOrBuilder
public TestCaseResultOrBuilder getLastTestResultOrBuilder()
The latest test result.
.google.cloud.dialogflow.cx.v3beta1.TestCaseResult last_test_result = 12;
- Specified by:
getLastTestResultOrBuilder
in interfaceTestCaseOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TestCase.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TestCase getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-