Class ContinuousTestResult.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ContinuousTestResult.Builder>
com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.Builder
All Implemented Interfaces:
ContinuousTestResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ContinuousTestResult

public static final class ContinuousTestResult.Builder extends com.google.protobuf.GeneratedMessage.Builder<ContinuousTestResult.Builder> implements ContinuousTestResultOrBuilder
 Represents a result from running a test case in an agent environment.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult
  • 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<ContinuousTestResult.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<ContinuousTestResult.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<ContinuousTestResult.Builder>
    • getDefaultInstanceForType

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

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

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

      public ContinuousTestResult.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<ContinuousTestResult.Builder>
    • mergeFrom

    • isInitialized

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

      public ContinuousTestResult.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<ContinuousTestResult.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The resource name for the continuous test result. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/continuousTestResults/<ContinuousTestResultID>`.
       
      string name = 1;
      Specified by:
      getName in interface ContinuousTestResultOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The resource name for the continuous test result. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/continuousTestResults/<ContinuousTestResultID>`.
       
      string name = 1;
      Specified by:
      getNameBytes in interface ContinuousTestResultOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ContinuousTestResult.Builder setName(String value)
       The resource name for the continuous test result. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/continuousTestResults/<ContinuousTestResultID>`.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ContinuousTestResult.Builder clearName()
       The resource name for the continuous test result. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/continuousTestResults/<ContinuousTestResultID>`.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ContinuousTestResult.Builder setNameBytes(com.google.protobuf.ByteString value)
       The resource name for the continuous test result. Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/continuousTestResults/<ContinuousTestResultID>`.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getResultValue

      public int getResultValue()
       The result of this continuous test run, i.e. whether all the tests in this
       continuous test run pass or not.
       
      .google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult result = 2;
      Specified by:
      getResultValue in interface ContinuousTestResultOrBuilder
      Returns:
      The enum numeric value on the wire for result.
    • setResultValue

      public ContinuousTestResult.Builder setResultValue(int value)
       The result of this continuous test run, i.e. whether all the tests in this
       continuous test run pass or not.
       
      .google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult result = 2;
      Parameters:
      value - The enum numeric value on the wire for result to set.
      Returns:
      This builder for chaining.
    • getResult

       The result of this continuous test run, i.e. whether all the tests in this
       continuous test run pass or not.
       
      .google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult result = 2;
      Specified by:
      getResult in interface ContinuousTestResultOrBuilder
      Returns:
      The result.
    • setResult

       The result of this continuous test run, i.e. whether all the tests in this
       continuous test run pass or not.
       
      .google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult result = 2;
      Parameters:
      value - The result to set.
      Returns:
      This builder for chaining.
    • clearResult

      public ContinuousTestResult.Builder clearResult()
       The result of this continuous test run, i.e. whether all the tests in this
       continuous test run pass or not.
       
      .google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult result = 2;
      Returns:
      This builder for chaining.
    • getTestCaseResultsList

      public com.google.protobuf.ProtocolStringList getTestCaseResultsList()
       A list of individual test case results names in this continuous test run.
       
      repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getTestCaseResultsList in interface ContinuousTestResultOrBuilder
      Returns:
      A list containing the testCaseResults.
    • getTestCaseResultsCount

      public int getTestCaseResultsCount()
       A list of individual test case results names in this continuous test run.
       
      repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getTestCaseResultsCount in interface ContinuousTestResultOrBuilder
      Returns:
      The count of testCaseResults.
    • getTestCaseResults

      public String getTestCaseResults(int index)
       A list of individual test case results names in this continuous test run.
       
      repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getTestCaseResults in interface ContinuousTestResultOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The testCaseResults at the given index.
    • getTestCaseResultsBytes

      public com.google.protobuf.ByteString getTestCaseResultsBytes(int index)
       A list of individual test case results names in this continuous test run.
       
      repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getTestCaseResultsBytes in interface ContinuousTestResultOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the testCaseResults at the given index.
    • setTestCaseResults

      public ContinuousTestResult.Builder setTestCaseResults(int index, String value)
       A list of individual test case results names in this continuous test run.
       
      repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The testCaseResults to set.
      Returns:
      This builder for chaining.
    • addTestCaseResults

      public ContinuousTestResult.Builder addTestCaseResults(String value)
       A list of individual test case results names in this continuous test run.
       
      repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The testCaseResults to add.
      Returns:
      This builder for chaining.
    • addAllTestCaseResults

      public ContinuousTestResult.Builder addAllTestCaseResults(Iterable<String> values)
       A list of individual test case results names in this continuous test run.
       
      repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      values - The testCaseResults to add.
      Returns:
      This builder for chaining.
    • clearTestCaseResults

      public ContinuousTestResult.Builder clearTestCaseResults()
       A list of individual test case results names in this continuous test run.
       
      repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addTestCaseResultsBytes

      public ContinuousTestResult.Builder addTestCaseResultsBytes(com.google.protobuf.ByteString value)
       A list of individual test case results names in this continuous test run.
       
      repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the testCaseResults to add.
      Returns:
      This builder for chaining.
    • hasRunTime

      public boolean hasRunTime()
       Time when the continuous testing run starts.
       
      .google.protobuf.Timestamp run_time = 4;
      Specified by:
      hasRunTime in interface ContinuousTestResultOrBuilder
      Returns:
      Whether the runTime field is set.
    • getRunTime

      public com.google.protobuf.Timestamp getRunTime()
       Time when the continuous testing run starts.
       
      .google.protobuf.Timestamp run_time = 4;
      Specified by:
      getRunTime in interface ContinuousTestResultOrBuilder
      Returns:
      The runTime.
    • setRunTime

      public ContinuousTestResult.Builder setRunTime(com.google.protobuf.Timestamp value)
       Time when the continuous testing run starts.
       
      .google.protobuf.Timestamp run_time = 4;
    • setRunTime

      public ContinuousTestResult.Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Time when the continuous testing run starts.
       
      .google.protobuf.Timestamp run_time = 4;
    • mergeRunTime

      public ContinuousTestResult.Builder mergeRunTime(com.google.protobuf.Timestamp value)
       Time when the continuous testing run starts.
       
      .google.protobuf.Timestamp run_time = 4;
    • clearRunTime

      public ContinuousTestResult.Builder clearRunTime()
       Time when the continuous testing run starts.
       
      .google.protobuf.Timestamp run_time = 4;
    • getRunTimeBuilder

      public com.google.protobuf.Timestamp.Builder getRunTimeBuilder()
       Time when the continuous testing run starts.
       
      .google.protobuf.Timestamp run_time = 4;
    • getRunTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder()
       Time when the continuous testing run starts.
       
      .google.protobuf.Timestamp run_time = 4;
      Specified by:
      getRunTimeOrBuilder in interface ContinuousTestResultOrBuilder