Class Environment.TestCasesConfig.Builder (0.45.0)

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

The configuration for continuous tests.

Protobuf type google.cloud.dialogflow.cx.v3.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/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>

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.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Environment.TestCasesConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Environment.TestCasesConfig.Builder
Overrides

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/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>

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/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>

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.

clearField(Descriptors.FieldDescriptor field)

public Environment.TestCasesConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Environment.TestCasesConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Environment.TestCasesConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Environment.TestCasesConfig.Builder
Overrides

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

This builder for chaining.

clone()

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

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/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>

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/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>

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/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>

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/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>

repeated string test_cases = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ProtocolStringList

A list containing the testCases.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Environment.TestCasesConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public Environment.TestCasesConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Environment.TestCasesConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Environment.TestCasesConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Environment.TestCasesConfig.Builder
Overrides

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/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final Environment.TestCasesConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Environment.TestCasesConfig.Builder
Overrides