Class Environment.TestCasesConfig.Builder (0.14.2)

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.v3beta1.Environment.TestCasesConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The testCases to add.

Returns
TypeDescription
Environment.TestCasesConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Environment.TestCasesConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The testCases to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the testCases to add.

Returns
TypeDescription
Environment.TestCasesConfig.Builder

This builder for chaining.

build()

public Environment.TestCasesConfig build()
Returns
TypeDescription
Environment.TestCasesConfig

buildPartial()

public Environment.TestCasesConfig buildPartial()
Returns
TypeDescription
Environment.TestCasesConfig

clear()

public Environment.TestCasesConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Environment.TestCasesConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Environment.TestCasesConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Environment.TestCasesConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Environment.TestCasesConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Environment.TestCasesConfig.Builder

This builder for chaining.

clone()

public Environment.TestCasesConfig.Builder clone()
Returns
TypeDescription
Environment.TestCasesConfig.Builder
Overrides

getDefaultInstanceForType()

public Environment.TestCasesConfig getDefaultInstanceForType()
Returns
TypeDescription
Environment.TestCasesConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the testCases.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Environment.TestCasesConfig other)

public Environment.TestCasesConfig.Builder mergeFrom(Environment.TestCasesConfig other)
Parameter
NameDescription
otherEnvironment.TestCasesConfig
Returns
TypeDescription
Environment.TestCasesConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Environment.TestCasesConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Environment.TestCasesConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Environment.TestCasesConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Environment.TestCasesConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Environment.TestCasesConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The enableContinuousRun to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The enablePredeploymentRun to set.

Returns
TypeDescription
Environment.TestCasesConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Environment.TestCasesConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The testCases to set.

Returns
TypeDescription
Environment.TestCasesConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Environment.TestCasesConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Environment.TestCasesConfig.Builder
Overrides