Class TestConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<TestConfig.Builder>
-
- com.google.cloud.dialogflow.cx.v3.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.GeneratedMessageV3.Builder<TestConfig.Builder> implements TestConfigOrBuilder
Represents configurations for a test case.
Protobuf typegoogle.cloud.dialogflow.cx.v3.TestConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TestConfig.BuilderaddAllTrackingParameters(Iterable<String> values)Session parameters to be compared when calculating differences.TestConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TestConfig.BuilderaddTrackingParameters(String value)Session parameters to be compared when calculating differences.TestConfig.BuilderaddTrackingParametersBytes(com.google.protobuf.ByteString value)Session parameters to be compared when calculating differences.TestConfigbuild()TestConfigbuildPartial()TestConfig.Builderclear()TestConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TestConfig.BuilderclearFlow()Flow name to start the test case with.TestConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TestConfig.BuilderclearPage()The [page][google.cloud.dialogflow.cx.v3.Page] to start the test case with.TestConfig.BuilderclearTrackingParameters()Session parameters to be compared when calculating differences.TestConfig.Builderclone()TestConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetFlow()Flow name to start the test case with.com.google.protobuf.ByteStringgetFlowBytes()Flow name to start the test case with.StringgetPage()The [page][google.cloud.dialogflow.cx.v3.Page] to start the test case with.com.google.protobuf.ByteStringgetPageBytes()The [page][google.cloud.dialogflow.cx.v3.Page] to start the test case with.StringgetTrackingParameters(int index)Session parameters to be compared when calculating differences.com.google.protobuf.ByteStringgetTrackingParametersBytes(int index)Session parameters to be compared when calculating differences.intgetTrackingParametersCount()Session parameters to be compared when calculating differences.com.google.protobuf.ProtocolStringListgetTrackingParametersList()Session parameters to be compared when calculating differences.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TestConfig.BuildermergeFrom(TestConfig other)TestConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TestConfig.BuildermergeFrom(com.google.protobuf.Message other)TestConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TestConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TestConfig.BuildersetFlow(String value)Flow name to start the test case with.TestConfig.BuildersetFlowBytes(com.google.protobuf.ByteString value)Flow name to start the test case with.TestConfig.BuildersetPage(String value)The [page][google.cloud.dialogflow.cx.v3.Page] to start the test case with.TestConfig.BuildersetPageBytes(com.google.protobuf.ByteString value)The [page][google.cloud.dialogflow.cx.v3.Page] to start the test case with.TestConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TestConfig.BuildersetTrackingParameters(int index, String value)Session parameters to be compared when calculating differences.TestConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TestConfig.Builder>
-
clear
public TestConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<TestConfig.Builder>
-
getDefaultInstanceForType
public TestConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TestConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TestConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TestConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TestConfig.Builder>
-
setField
public TestConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TestConfig.Builder>
-
clearField
public TestConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TestConfig.Builder>
-
clearOneof
public TestConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TestConfig.Builder>
-
setRepeatedField
public TestConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TestConfig.Builder>
-
addRepeatedField
public TestConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TestConfig.Builder>
-
mergeFrom
public TestConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TestConfig.Builder>
-
mergeFrom
public TestConfig.Builder mergeFrom(TestConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public String getTrackingParameters(int index)
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
public TestConfig.Builder setTrackingParameters(int index, String value)
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
public TestConfig.Builder addTrackingParameters(String value)
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
public TestConfig.Builder addAllTrackingParameters(Iterable<String> values)
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
public TestConfig.Builder clearTrackingParameters()
Session parameters to be compared when calculating differences.
repeated string tracking_parameters = 1;- Returns:
- This builder for chaining.
-
addTrackingParametersBytes
public TestConfig.Builder addTrackingParametersBytes(com.google.protobuf.ByteString value)
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
public String getFlow()
Flow name to start the test case with. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. 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/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. 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
public TestConfig.Builder setFlow(String value)
Flow name to start the test case with. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. 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
public TestConfig.Builder clearFlow()
Flow name to start the test case with. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. 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
public TestConfig.Builder setFlowBytes(com.google.protobuf.ByteString value)
Flow name to start the test case with. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. 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
public String getPage()
The [page][google.cloud.dialogflow.cx.v3.Page] to start the test case with. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. 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.v3.Page] to start the test case with. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. 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
public TestConfig.Builder setPage(String value)
The [page][google.cloud.dialogflow.cx.v3.Page] to start the test case with. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. 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
public TestConfig.Builder clearPage()
The [page][google.cloud.dialogflow.cx.v3.Page] to start the test case with. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. 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
public TestConfig.Builder setPageBytes(com.google.protobuf.ByteString value)
The [page][google.cloud.dialogflow.cx.v3.Page] to start the test case with. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`. Only one of `flow` and `page` should be set to indicate the starting point of the test case. If both are set, `page` takes precedence over `flow`. 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.
-
setUnknownFields
public final TestConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TestConfig.Builder>
-
mergeUnknownFields
public final TestConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TestConfig.Builder>
-
-