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 Summary
Modifier and TypeMethodDescriptionaddAllTestCases(Iterable<String> values) A list of test case names to run.addTestCases(String value) A list of test case names to run.addTestCasesBytes(com.google.protobuf.ByteString value) A list of test case names to run.build()clear()Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] periodically.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.A list of test case names to run.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] periodically.booleanWhether 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.getTestCases(int index) A list of test case names to run.com.google.protobuf.ByteStringgetTestCasesBytes(int index) A list of test case names to run.intA list of test case names to run.com.google.protobuf.ProtocolStringListA list of test case names to run.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEnableContinuousRun(boolean value) Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.test_cases] periodically.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.setTestCases(int index, String value) A list of test case names to run.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Environment.TestCasesConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Environment.TestCasesConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Environment.TestCasesConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Environment.TestCasesConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getTestCasesListin interfaceEnvironment.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:
getTestCasesCountin interfaceEnvironment.TestCasesConfigOrBuilder- Returns:
- The count of testCases.
-
getTestCases
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:
getTestCasesin interfaceEnvironment.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:
getTestCasesBytesin interfaceEnvironment.TestCasesConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the testCases at the given index.
-
setTestCases
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
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
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
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
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:
getEnableContinuousRunin interfaceEnvironment.TestCasesConfigOrBuilder- Returns:
- The enableContinuousRun.
-
setEnableContinuousRun
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
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:
getEnablePredeploymentRunin interfaceEnvironment.TestCasesConfigOrBuilder- Returns:
- The enablePredeploymentRun.
-
setEnablePredeploymentRun
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
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.
-