Class TestCaseResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TestCaseResult.Builder>
com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessage.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 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.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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public TestCaseResult.Builder mergeFrom(TestCaseResult other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`.
       
      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.
    • getConversationTurnsList

      public List<ConversationTurn> getConversationTurnsList()
       The conversation turns uttered during the test case replay in chronological
       order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      Specified by:
      getConversationTurnsList in interface TestCaseResultOrBuilder
    • 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;
    • getConversationTurnsOrBuilder

      public ConversationTurnOrBuilder getConversationTurnsOrBuilder(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:
      getConversationTurnsOrBuilder in interface TestCaseResultOrBuilder
    • getConversationTurnsOrBuilderList

      public List<? extends ConversationTurnOrBuilder> getConversationTurnsOrBuilderList()
       The conversation turns uttered during the test case replay in chronological
       order.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;
      Specified by:
      getConversationTurnsOrBuilderList in interface TestCaseResultOrBuilder
    • 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