Class 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 type google.cloud.dialogflow.cx.v3beta1.TestCase
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.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 class com.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 interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
        Returns:
        The testConfig.
      • 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 interface TestCaseOrBuilder
      • 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 interface TestCaseOrBuilder
      • 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 interface TestCaseOrBuilder
      • 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 interface TestCaseOrBuilder
      • 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 interface TestCaseOrBuilder
      • 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 interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
      • hasLastTestResult

        public boolean hasLastTestResult()
         The latest test result.
         
        .google.cloud.dialogflow.cx.v3beta1.TestCaseResult last_test_result = 12;
        Specified by:
        hasLastTestResult in interface TestCaseOrBuilder
        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 interface TestCaseOrBuilder
        Returns:
        The lastTestResult.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws IOException
        Throws:
        IOException
      • newBuilderForType

        public TestCase.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public TestCase.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected TestCase.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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 interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public TestCase getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder