- 0.66.0 (latest)
- 0.65.0
- 0.64.0
- 0.63.0
- 0.62.0
- 0.60.0
- 0.59.0
- 0.58.0
- 0.57.0
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.7
- 0.13.1
- 0.12.1
- 0.11.5
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Environment.TestCasesConfig.BuilderImplements
Environment.TestCasesConfigOrBuilderStatic 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 |
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 |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public Environment.TestCasesConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Environment.TestCasesConfig.Builder |
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 |
getDefaultInstanceForType()
public Environment.TestCasesConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Environment.TestCasesConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Environment.TestCasesConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Environment.TestCasesConfig.Builder |
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 |
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 |
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 |