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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    Represents a test case.

    Nested 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.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    com.google.protobuf.Timestamp
    Output only.
    com.google.protobuf.TimestampOrBuilder
    Output only.
    static TestCase
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Required.
    com.google.protobuf.ByteString
    Required.
    The latest test result.
    The latest test result.
    The unique identifier of the test case.
    com.google.protobuf.ByteString
    The unique identifier of the test case.
    Additional freeform notes about the test case.
    com.google.protobuf.ByteString
    Additional freeform notes about the test case.
    com.google.protobuf.Parser<TestCase>
     
    int
     
    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
    Tags are short descriptions that users may apply to test cases for organizational and filtering purposes.
    com.google.protobuf.ProtocolStringList
    Tags are short descriptions that users may apply to test cases for organizational and filtering purposes.
    The conversation turns uttered when the test case was created, in chronological order.
    int
    The 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.
    The 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.
    Config for the test case.
    Config for the test case.
    boolean
    Output only.
    int
     
    boolean
    The latest test result.
    boolean
    Config for the test case.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(TestCase prototype)
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static TestCase
     
    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
     
    static TestCase
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static TestCase
     
    static TestCase
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<TestCase>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`.
       
      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.
    • getTestConfigOrBuilder

      public TestConfigOrBuilder getTestConfigOrBuilder()
       Config for the test case.
       
      .google.cloud.dialogflow.cx.v3beta1.TestConfig test_config = 13;
      Specified by:
      getTestConfigOrBuilder in interface TestCaseOrBuilder
    • 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.
    • getLastTestResultOrBuilder

      public TestCaseResultOrBuilder getLastTestResultOrBuilder()
       The latest test result.
       
      .google.cloud.dialogflow.cx.v3beta1.TestCaseResult last_test_result = 12;
      Specified by:
      getLastTestResultOrBuilder in interface TestCaseOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(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 interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.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 interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected TestCase.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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