Class 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.GeneratedMessageV3.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 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<ContinuousTestResult.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/environments/<Environment
         ID>/continuousTestResults/<ContinuousTestResult ID>`.
         
        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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/environments/<Environment
         ID>/continuousTestResults/<ContinuousTestResult ID>`.
         
        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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/environments/<Environment
         ID>/continuousTestResults/<ContinuousTestResult ID>`.
         
        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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/environments/<Environment
         ID>/continuousTestResults/<ContinuousTestResult ID>`.
         
        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/<Project ID>/locations/<Location ID>/agents/<Agent
         ID>/environments/<Environment
         ID>/continuousTestResults/<ContinuousTestResult ID>`.
         
        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.
      • setResult

        public ContinuousTestResult.Builder setResult​(ContinuousTestResult.AggregatedTestResult 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 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
      • setUnknownFields

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

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