Class Environment.TestCasesConfig.Builder (0.94.0)

public static final class Environment.TestCasesConfig.Builder extends GeneratedMessage.Builder<Environment.TestCasesConfig.Builder> implements Environment.TestCasesConfigOrBuilder

The configuration for continuous tests.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTestCases(Iterable<String> values)

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) = { ... }

Parameter
Name Description
values Iterable<String>

The testCases to add.

Returns
Type Description
Environment.TestCasesConfig.Builder

This builder for chaining.

addTestCases(String value)

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) = { ... }

Parameter
Name Description
value String

The testCases to add.

Returns
Type Description
Environment.TestCasesConfig.Builder

This builder for chaining.

addTestCasesBytes(ByteString value)

public Environment.TestCasesConfig.Builder addTestCasesBytes(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) = { ... }

Parameter
Name Description
value ByteString

The bytes of the testCases to add.

Returns
Type Description
Environment.TestCasesConfig.Builder

This builder for chaining.

build()

public Environment.TestCasesConfig build()
Returns
Type Description
Environment.TestCasesConfig

buildPartial()

public Environment.TestCasesConfig buildPartial()
Returns
Type Description
Environment.TestCasesConfig

clear()

public Environment.TestCasesConfig.Builder clear()
Returns
Type Description
Environment.TestCasesConfig.Builder
Overrides

clearEnableContinuousRun()

public Environment.TestCasesConfig.Builder clearEnableContinuousRun()

Whether to run test cases in TestCasesConfig.test_cases periodically. Default false. If set to true, run once a day.

bool enable_continuous_run = 2;

Returns
Type Description
Environment.TestCasesConfig.Builder

This builder for chaining.

clearEnablePredeploymentRun()

public Environment.TestCasesConfig.Builder clearEnablePredeploymentRun()

Whether to run test cases in TestCasesConfig.test_cases before deploying a flow version to the environment. Default false.

bool enable_predeployment_run = 3;

Returns
Type Description
Environment.TestCasesConfig.Builder

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
Type Description
Environment.TestCasesConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public Environment.TestCasesConfig getDefaultInstanceForType()
Returns
Type Description
Environment.TestCasesConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnableContinuousRun()

public boolean getEnableContinuousRun()

Whether to run test cases in TestCasesConfig.test_cases periodically. Default false. If set to true, run once a day.

bool enable_continuous_run = 2;

Returns
Type Description
boolean

The enableContinuousRun.

getEnablePredeploymentRun()

public boolean getEnablePredeploymentRun()

Whether to run test cases in TestCasesConfig.test_cases before deploying a flow version to the environment. Default false.

bool enable_predeployment_run = 3;

Returns
Type Description
boolean

The enablePredeploymentRun.

getTestCases(int index)

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) = { ... }

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The testCases at the given index.

getTestCasesBytes(int index)

public 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) = { ... }

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the testCases at the given index.

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) = { ... }

Returns
Type Description
int

The count of testCases.

getTestCasesList()

public 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) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the testCases.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Environment.TestCasesConfig other)

public Environment.TestCasesConfig.Builder mergeFrom(Environment.TestCasesConfig other)
Parameter
Name Description
other Environment.TestCasesConfig
Returns
Type Description
Environment.TestCasesConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Environment.TestCasesConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Environment.TestCasesConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Environment.TestCasesConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Environment.TestCasesConfig.Builder
Overrides

setEnableContinuousRun(boolean value)

public Environment.TestCasesConfig.Builder setEnableContinuousRun(boolean value)

Whether to run test cases in TestCasesConfig.test_cases periodically. Default false. If set to true, run once a day.

bool enable_continuous_run = 2;

Parameter
Name Description
value boolean

The enableContinuousRun to set.

Returns
Type Description
Environment.TestCasesConfig.Builder

This builder for chaining.

setEnablePredeploymentRun(boolean value)

public Environment.TestCasesConfig.Builder setEnablePredeploymentRun(boolean value)

Whether to run test cases in TestCasesConfig.test_cases before deploying a flow version to the environment. Default false.

bool enable_predeployment_run = 3;

Parameter
Name Description
value boolean

The enablePredeploymentRun to set.

Returns
Type Description
Environment.TestCasesConfig.Builder

This builder for chaining.

setTestCases(int index, String value)

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
Name Description
index int

The index to set the value at.

value String

The testCases to set.

Returns
Type Description
Environment.TestCasesConfig.Builder

This builder for chaining.