Class Environment.TestCasesConfig.Builder

    • 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<Environment.TestCasesConfig.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<Environment.TestCasesConfig.Builder>
      • getDefaultInstanceForType

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

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

        public Environment.TestCasesConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public Environment.TestCasesConfig.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<Environment.TestCasesConfig.Builder>
        Throws:
        IOException
      • getTestCasesList

        public com.google.protobuf.ProtocolStringList getTestCasesList()
         A list of test case names to run. They should be under the same agent.
         Format of each test case name: `projects/<Project ID>/locations/
         <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
         
        repeated string test_cases = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTestCasesList in interface Environment.TestCasesConfigOrBuilder
        Returns:
        A list containing the testCases.
      • getTestCasesCount

        public int getTestCasesCount()
         A list of test case names to run. They should be under the same agent.
         Format of each test case name: `projects/<Project ID>/locations/
         <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
         
        repeated string test_cases = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTestCasesCount in interface Environment.TestCasesConfigOrBuilder
        Returns:
        The count of testCases.
      • getTestCases

        public String getTestCases​(int index)
         A list of test case names to run. They should be under the same agent.
         Format of each test case name: `projects/<Project ID>/locations/
         <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
         
        repeated string test_cases = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTestCases in interface Environment.TestCasesConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The testCases at the given index.
      • getTestCasesBytes

        public com.google.protobuf.ByteString getTestCasesBytes​(int index)
         A list of test case names to run. They should be under the same agent.
         Format of each test case name: `projects/<Project ID>/locations/
         <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
         
        repeated string test_cases = 1 [(.google.api.resource_reference) = { ... }
        Specified by:
        getTestCasesBytes in interface Environment.TestCasesConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the testCases at the given index.
      • setTestCases

        public Environment.TestCasesConfig.Builder setTestCases​(int index,
                                                                String value)
         A list of test case names to run. They should be under the same agent.
         Format of each test case name: `projects/<Project ID>/locations/
         <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
         
        repeated string test_cases = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        index - The index to set the value at.
        value - The testCases to set.
        Returns:
        This builder for chaining.
      • addTestCases

        public Environment.TestCasesConfig.Builder addTestCases​(String value)
         A list of test case names to run. They should be under the same agent.
         Format of each test case name: `projects/<Project ID>/locations/
         <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
         
        repeated string test_cases = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The testCases to add.
        Returns:
        This builder for chaining.
      • addAllTestCases

        public Environment.TestCasesConfig.Builder addAllTestCases​(Iterable<String> values)
         A list of test case names to run. They should be under the same agent.
         Format of each test case name: `projects/<Project ID>/locations/
         <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
         
        repeated string test_cases = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        values - The testCases to add.
        Returns:
        This builder for chaining.
      • clearTestCases

        public Environment.TestCasesConfig.Builder clearTestCases()
         A list of test case names to run. They should be under the same agent.
         Format of each test case name: `projects/<Project ID>/locations/
         <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
         
        repeated string test_cases = 1 [(.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • addTestCasesBytes

        public Environment.TestCasesConfig.Builder addTestCasesBytes​(com.google.protobuf.ByteString value)
         A list of test case names to run. They should be under the same agent.
         Format of each test case name: `projects/<Project ID>/locations/
         <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`
         
        repeated string test_cases = 1 [(.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes of the testCases to add.
        Returns:
        This builder for chaining.
      • getEnableContinuousRun

        public boolean getEnableContinuousRun()
         Whether to run test cases in
         [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases]
         periodically. Default false. If set to true, run once a day.
         
        bool enable_continuous_run = 2;
        Specified by:
        getEnableContinuousRun in interface Environment.TestCasesConfigOrBuilder
        Returns:
        The enableContinuousRun.
      • setEnableContinuousRun

        public Environment.TestCasesConfig.Builder setEnableContinuousRun​(boolean value)
         Whether to run test cases in
         [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases]
         periodically. Default false. If set to true, run once a day.
         
        bool enable_continuous_run = 2;
        Parameters:
        value - The enableContinuousRun to set.
        Returns:
        This builder for chaining.
      • clearEnableContinuousRun

        public Environment.TestCasesConfig.Builder clearEnableContinuousRun()
         Whether to run test cases in
         [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases]
         periodically. Default false. If set to true, run once a day.
         
        bool enable_continuous_run = 2;
        Returns:
        This builder for chaining.
      • getEnablePredeploymentRun

        public boolean getEnablePredeploymentRun()
         Whether to run test cases in
         [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases]
         before deploying a flow version to the environment. Default false.
         
        bool enable_predeployment_run = 3;
        Specified by:
        getEnablePredeploymentRun in interface Environment.TestCasesConfigOrBuilder
        Returns:
        The enablePredeploymentRun.
      • setEnablePredeploymentRun

        public Environment.TestCasesConfig.Builder setEnablePredeploymentRun​(boolean value)
         Whether to run test cases in
         [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases]
         before deploying a flow version to the environment. Default false.
         
        bool enable_predeployment_run = 3;
        Parameters:
        value - The enablePredeploymentRun to set.
        Returns:
        This builder for chaining.
      • clearEnablePredeploymentRun

        public Environment.TestCasesConfig.Builder clearEnablePredeploymentRun()
         Whether to run test cases in
         [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases]
         before deploying a flow version to the environment. Default false.
         
        bool enable_predeployment_run = 3;
        Returns:
        This builder for chaining.
      • mergeUnknownFields

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