Class TestConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TestConfig.Builder>
com.google.cloud.dialogflow.cx.v3beta1.TestConfig.Builder
- All Implemented Interfaces:
TestConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TestConfig
public static final class TestConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TestConfig.Builder>
implements TestConfigOrBuilder
Represents configurations for a test case.Protobuf type
google.cloud.dialogflow.cx.v3beta1.TestConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllTrackingParameters(Iterable<String> values) Session parameters to be compared when calculating differences.addTrackingParameters(String value) Session parameters to be compared when calculating differences.addTrackingParametersBytes(com.google.protobuf.ByteString value) Session parameters to be compared when calculating differences.build()clear()Flow name to start the test case with.The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with.Session parameters to be compared when calculating differences.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFlow()Flow name to start the test case with.com.google.protobuf.ByteStringFlow name to start the test case with.getPage()The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with.com.google.protobuf.ByteStringThe [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with.getTrackingParameters(int index) Session parameters to be compared when calculating differences.com.google.protobuf.ByteStringgetTrackingParametersBytes(int index) Session parameters to be compared when calculating differences.intSession parameters to be compared when calculating differences.com.google.protobuf.ProtocolStringListSession parameters to be compared when calculating differences.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TestConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Flow name to start the test case with.setFlowBytes(com.google.protobuf.ByteString value) Flow name to start the test case with.The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with.setPageBytes(com.google.protobuf.ByteString value) The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with.setTrackingParameters(int index, String value) Session parameters to be compared when calculating differences.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<TestConfig.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<TestConfig.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<TestConfig.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<TestConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TestConfig.Builder>
-
mergeFrom
public TestConfig.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<TestConfig.Builder>- Throws:
IOException
-
getTrackingParametersList
public com.google.protobuf.ProtocolStringList getTrackingParametersList()Session parameters to be compared when calculating differences.
repeated string tracking_parameters = 1;- Specified by:
getTrackingParametersListin interfaceTestConfigOrBuilder- Returns:
- A list containing the trackingParameters.
-
getTrackingParametersCount
public int getTrackingParametersCount()Session parameters to be compared when calculating differences.
repeated string tracking_parameters = 1;- Specified by:
getTrackingParametersCountin interfaceTestConfigOrBuilder- Returns:
- The count of trackingParameters.
-
getTrackingParameters
Session parameters to be compared when calculating differences.
repeated string tracking_parameters = 1;- Specified by:
getTrackingParametersin interfaceTestConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The trackingParameters at the given index.
-
getTrackingParametersBytes
public com.google.protobuf.ByteString getTrackingParametersBytes(int index) Session parameters to be compared when calculating differences.
repeated string tracking_parameters = 1;- Specified by:
getTrackingParametersBytesin interfaceTestConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the trackingParameters at the given index.
-
setTrackingParameters
Session parameters to be compared when calculating differences.
repeated string tracking_parameters = 1;- Parameters:
index- The index to set the value at.value- The trackingParameters to set.- Returns:
- This builder for chaining.
-
addTrackingParameters
Session parameters to be compared when calculating differences.
repeated string tracking_parameters = 1;- Parameters:
value- The trackingParameters to add.- Returns:
- This builder for chaining.
-
addAllTrackingParameters
Session parameters to be compared when calculating differences.
repeated string tracking_parameters = 1;- Parameters:
values- The trackingParameters to add.- Returns:
- This builder for chaining.
-
clearTrackingParameters
Session parameters to be compared when calculating differences.
repeated string tracking_parameters = 1;- Returns:
- This builder for chaining.
-
addTrackingParametersBytes
Session parameters to be compared when calculating differences.
repeated string tracking_parameters = 1;- Parameters:
value- The bytes of the trackingParameters to add.- Returns:
- This builder for chaining.
-
getFlow
Flow name to start the test case with. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.
string flow = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getFlowin interfaceTestConfigOrBuilder- Returns:
- The flow.
-
getFlowBytes
public com.google.protobuf.ByteString getFlowBytes()Flow name to start the test case with. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.
string flow = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getFlowBytesin interfaceTestConfigOrBuilder- Returns:
- The bytes for flow.
-
setFlow
Flow name to start the test case with. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.
string flow = 2 [(.google.api.resource_reference) = { ... }- Parameters:
value- The flow to set.- Returns:
- This builder for chaining.
-
clearFlow
Flow name to start the test case with. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.
string flow = 2 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setFlowBytes
Flow name to start the test case with. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.
string flow = 2 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for flow to set.- Returns:
- This builder for chaining.
-
getPage
The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.
string page = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getPagein interfaceTestConfigOrBuilder- Returns:
- The page.
-
getPageBytes
public com.google.protobuf.ByteString getPageBytes()The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.
string page = 3 [(.google.api.resource_reference) = { ... }- Specified by:
getPageBytesin interfaceTestConfigOrBuilder- Returns:
- The bytes for page.
-
setPage
The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.
string page = 3 [(.google.api.resource_reference) = { ... }- Parameters:
value- The page to set.- Returns:
- This builder for chaining.
-
clearPage
The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.
string page = 3 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setPageBytes
The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If neither is set, the test case will start with start page on the default start flow.
string page = 3 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for page to set.- Returns:
- This builder for chaining.
-