Class TestCaseResult.Builder

  • All Implemented Interfaces:
    TestCaseResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    TestCaseResult

    public static final class TestCaseResult.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TestCaseResult.Builder>
    implements TestCaseResultOrBuilder
     Represents a result from running a test case in an agent environment.
     
    Protobuf type google.cloud.dialogflow.cx.v3beta1.TestCaseResult
    • Method Detail

      • 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.Builder<TestCaseResult.Builder>
      • clear

        public TestCaseResult.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<TestCaseResult.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TestCaseResult.Builder>
      • getDefaultInstanceForType

        public TestCaseResult getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public TestCaseResult build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public TestCaseResult buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public TestCaseResult.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TestCaseResult.Builder>
      • setField

        public TestCaseResult.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<TestCaseResult.Builder>
      • clearField

        public TestCaseResult.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TestCaseResult.Builder>
      • clearOneof

        public TestCaseResult.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TestCaseResult.Builder>
      • setRepeatedField

        public TestCaseResult.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TestCaseResult.Builder>
      • addRepeatedField

        public TestCaseResult.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TestCaseResult.Builder>
      • mergeFrom

        public TestCaseResult.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TestCaseResult.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TestCaseResult.Builder>
      • mergeFrom

        public TestCaseResult.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TestCaseResult.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The resource name for the test case result. Format:
         `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/
         <TestCase ID>/results/<TestCaseResult ID>`.
         
        string name = 1;
        Specified by:
        getName in interface TestCaseResultOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The resource name for the test case result. Format:
         `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/
         <TestCase ID>/results/<TestCaseResult ID>`.
         
        string name = 1;
        Specified by:
        getNameBytes in interface TestCaseResultOrBuilder
        Returns:
        The bytes for name.
      • setName

        public TestCaseResult.Builder setName​(String value)
         The resource name for the test case result. Format:
         `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/
         <TestCase ID>/results/<TestCaseResult ID>`.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public TestCaseResult.Builder clearName()
         The resource name for the test case result. Format:
         `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/
         <TestCase ID>/results/<TestCaseResult ID>`.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public TestCaseResult.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The resource name for the test case result. Format:
         `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/
         <TestCase ID>/results/<TestCaseResult ID>`.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getEnvironment

        public String getEnvironment()
         Environment where the test was run. If not set, it indicates the draft
         environment.
         
        string environment = 2 [(.google.api.resource_reference) = { ... }
        Specified by:
        getEnvironment in interface TestCaseResultOrBuilder
        Returns:
        The environment.
      • getEnvironmentBytes

        public com.google.protobuf.ByteString getEnvironmentBytes()
         Environment where the test was run. If not set, it indicates the draft
         environment.
         
        string environment = 2 [(.google.api.resource_reference) = { ... }
        Specified by:
        getEnvironmentBytes in interface TestCaseResultOrBuilder
        Returns:
        The bytes for environment.
      • setEnvironment

        public TestCaseResult.Builder setEnvironment​(String value)
         Environment where the test was run. If not set, it indicates the draft
         environment.
         
        string environment = 2 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The environment to set.
        Returns:
        This builder for chaining.
      • clearEnvironment

        public TestCaseResult.Builder clearEnvironment()
         Environment where the test was run. If not set, it indicates the draft
         environment.
         
        string environment = 2 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setEnvironmentBytes

        public TestCaseResult.Builder setEnvironmentBytes​(com.google.protobuf.ByteString value)
         Environment where the test was run. If not set, it indicates the draft
         environment.
         
        string environment = 2 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for environment to set.
        Returns:
        This builder for chaining.
      • getConversationTurnsCount

        public int getConversationTurnsCount()
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
        Specified by:
        getConversationTurnsCount in interface TestCaseResultOrBuilder
      • getConversationTurns

        public ConversationTurn getConversationTurns​(int index)
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
        Specified by:
        getConversationTurns in interface TestCaseResultOrBuilder
      • setConversationTurns

        public TestCaseResult.Builder setConversationTurns​(int index,
                                                           ConversationTurn value)
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      • setConversationTurns

        public TestCaseResult.Builder setConversationTurns​(int index,
                                                           ConversationTurn.Builder builderForValue)
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      • addConversationTurns

        public TestCaseResult.Builder addConversationTurns​(ConversationTurn value)
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      • addConversationTurns

        public TestCaseResult.Builder addConversationTurns​(int index,
                                                           ConversationTurn value)
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      • addConversationTurns

        public TestCaseResult.Builder addConversationTurns​(ConversationTurn.Builder builderForValue)
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      • addConversationTurns

        public TestCaseResult.Builder addConversationTurns​(int index,
                                                           ConversationTurn.Builder builderForValue)
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      • addAllConversationTurns

        public TestCaseResult.Builder addAllConversationTurns​(Iterable<? extends ConversationTurn> values)
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      • clearConversationTurns

        public TestCaseResult.Builder clearConversationTurns()
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      • removeConversationTurns

        public TestCaseResult.Builder removeConversationTurns​(int index)
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      • getConversationTurnsBuilder

        public ConversationTurn.Builder getConversationTurnsBuilder​(int index)
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      • addConversationTurnsBuilder

        public ConversationTurn.Builder addConversationTurnsBuilder()
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      • addConversationTurnsBuilder

        public ConversationTurn.Builder addConversationTurnsBuilder​(int index)
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      • getConversationTurnsBuilderList

        public List<ConversationTurn.Builder> getConversationTurnsBuilderList()
         The conversation turns uttered during the test case replay in chronological
         order.
         
        repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      • getTestResultValue

        public int getTestResultValue()
         Whether the test case passed in the agent environment.
         
        .google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;
        Specified by:
        getTestResultValue in interface TestCaseResultOrBuilder
        Returns:
        The enum numeric value on the wire for testResult.
      • setTestResultValue

        public TestCaseResult.Builder setTestResultValue​(int value)
         Whether the test case passed in the agent environment.
         
        .google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;
        Parameters:
        value - The enum numeric value on the wire for testResult to set.
        Returns:
        This builder for chaining.
      • getTestResult

        public TestResult getTestResult()
         Whether the test case passed in the agent environment.
         
        .google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;
        Specified by:
        getTestResult in interface TestCaseResultOrBuilder
        Returns:
        The testResult.
      • setTestResult

        public TestCaseResult.Builder setTestResult​(TestResult value)
         Whether the test case passed in the agent environment.
         
        .google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;
        Parameters:
        value - The testResult to set.
        Returns:
        This builder for chaining.
      • clearTestResult

        public TestCaseResult.Builder clearTestResult()
         Whether the test case passed in the agent environment.
         
        .google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;
        Returns:
        This builder for chaining.
      • hasTestTime

        public boolean hasTestTime()
         The time that the test was run.
         
        .google.protobuf.Timestamp test_time = 5;
        Specified by:
        hasTestTime in interface TestCaseResultOrBuilder
        Returns:
        Whether the testTime field is set.
      • getTestTime

        public com.google.protobuf.Timestamp getTestTime()
         The time that the test was run.
         
        .google.protobuf.Timestamp test_time = 5;
        Specified by:
        getTestTime in interface TestCaseResultOrBuilder
        Returns:
        The testTime.
      • setTestTime

        public TestCaseResult.Builder setTestTime​(com.google.protobuf.Timestamp value)
         The time that the test was run.
         
        .google.protobuf.Timestamp test_time = 5;
      • setTestTime

        public TestCaseResult.Builder setTestTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time that the test was run.
         
        .google.protobuf.Timestamp test_time = 5;
      • mergeTestTime

        public TestCaseResult.Builder mergeTestTime​(com.google.protobuf.Timestamp value)
         The time that the test was run.
         
        .google.protobuf.Timestamp test_time = 5;
      • clearTestTime

        public TestCaseResult.Builder clearTestTime()
         The time that the test was run.
         
        .google.protobuf.Timestamp test_time = 5;
      • getTestTimeBuilder

        public com.google.protobuf.Timestamp.Builder getTestTimeBuilder()
         The time that the test was run.
         
        .google.protobuf.Timestamp test_time = 5;
      • getTestTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getTestTimeOrBuilder()
         The time that the test was run.
         
        .google.protobuf.Timestamp test_time = 5;
        Specified by:
        getTestTimeOrBuilder in interface TestCaseResultOrBuilder
      • setUnknownFields

        public final TestCaseResult.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TestCaseResult.Builder>
      • mergeUnknownFields

        public final TestCaseResult.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TestCaseResult.Builder>