Class Environment.TestCasesConfig.Builder

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

public static final class Environment.TestCasesConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Environment.TestCasesConfig.Builder> implements Environment.TestCasesConfigOrBuilder
 The configuration for continuous tests.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig
  • 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<Environment.TestCasesConfig.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<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.GeneratedMessage.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

      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
    • mergeFrom

      public Environment.TestCasesConfig.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<Environment.TestCasesConfig.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<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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>`
       
      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.