Class TestConfig.Builder (0.53.0)

public static final class TestConfig.Builder extends GeneratedMessageV3.Builder<TestConfig.Builder> implements TestConfigOrBuilder

Represents configurations for a test case.

Protobuf type google.cloud.dialogflow.cx.v3beta1.TestConfig

Implements

TestConfigOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTrackingParameters(Iterable<String> values)

public TestConfig.Builder addAllTrackingParameters(Iterable<String> values)

Session parameters to be compared when calculating differences.

repeated string tracking_parameters = 1;

Parameter
Name Description
values Iterable<String>

The trackingParameters to add.

Returns
Type Description
TestConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TestConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TestConfig.Builder
Overrides

addTrackingParameters(String value)

public TestConfig.Builder addTrackingParameters(String value)

Session parameters to be compared when calculating differences.

repeated string tracking_parameters = 1;

Parameter
Name Description
value String

The trackingParameters to add.

Returns
Type Description
TestConfig.Builder

This builder for chaining.

addTrackingParametersBytes(ByteString value)

public TestConfig.Builder addTrackingParametersBytes(ByteString value)

Session parameters to be compared when calculating differences.

repeated string tracking_parameters = 1;

Parameter
Name Description
value ByteString

The bytes of the trackingParameters to add.

Returns
Type Description
TestConfig.Builder

This builder for chaining.

build()

public TestConfig build()
Returns
Type Description
TestConfig

buildPartial()

public TestConfig buildPartial()
Returns
Type Description
TestConfig

clear()

public TestConfig.Builder clear()
Returns
Type Description
TestConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TestConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
TestConfig.Builder
Overrides

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
Type Description
TestConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TestConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
TestConfig.Builder
Overrides

clearPage()

public TestConfig.Builder clearPage()

The 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
Type Description
TestConfig.Builder

This builder for chaining.

clearTrackingParameters()

public TestConfig.Builder clearTrackingParameters()

Session parameters to be compared when calculating differences.

repeated string tracking_parameters = 1;

Returns
Type Description
TestConfig.Builder

This builder for chaining.

clone()

public TestConfig.Builder clone()
Returns
Type Description
TestConfig.Builder
Overrides

getDefaultInstanceForType()

public TestConfig getDefaultInstanceForType()
Returns
Type Description
TestConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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) = { ... }

Returns
Type Description
String

The flow.

getFlowBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for flow.

getPage()

public String getPage()

The 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
Type Description
String

The page.

getPageBytes()

public ByteString getPageBytes()

The 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
Type Description
ByteString

The bytes for page.

getTrackingParameters(int index)

public String getTrackingParameters(int index)

Session parameters to be compared when calculating differences.

repeated string tracking_parameters = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The trackingParameters at the given index.

getTrackingParametersBytes(int index)

public ByteString getTrackingParametersBytes(int index)

Session parameters to be compared when calculating differences.

repeated string tracking_parameters = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the trackingParameters at the given index.

getTrackingParametersCount()

public int getTrackingParametersCount()

Session parameters to be compared when calculating differences.

repeated string tracking_parameters = 1;

Returns
Type Description
int

The count of trackingParameters.

getTrackingParametersList()

public ProtocolStringList getTrackingParametersList()

Session parameters to be compared when calculating differences.

repeated string tracking_parameters = 1;

Returns
Type Description
ProtocolStringList

A list containing the trackingParameters.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TestConfig other)

public TestConfig.Builder mergeFrom(TestConfig other)
Parameter
Name Description
other TestConfig
Returns
Type Description
TestConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TestConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TestConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TestConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TestConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TestConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TestConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TestConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
TestConfig.Builder
Overrides

setFlow(String value)

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) = { ... }

Parameter
Name Description
value String

The flow to set.

Returns
Type Description
TestConfig.Builder

This builder for chaining.

setFlowBytes(ByteString value)

public TestConfig.Builder setFlowBytes(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) = { ... }

Parameter
Name Description
value ByteString

The bytes for flow to set.

Returns
Type Description
TestConfig.Builder

This builder for chaining.

setPage(String value)

public TestConfig.Builder setPage(String value)

The 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) = { ... }

Parameter
Name Description
value String

The page to set.

Returns
Type Description
TestConfig.Builder

This builder for chaining.

setPageBytes(ByteString value)

public TestConfig.Builder setPageBytes(ByteString value)

The 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) = { ... }

Parameter
Name Description
value ByteString

The bytes for page to set.

Returns
Type Description
TestConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public TestConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
TestConfig.Builder
Overrides

setTrackingParameters(int index, String value)

public TestConfig.Builder setTrackingParameters(int index, String value)

Session parameters to be compared when calculating differences.

repeated string tracking_parameters = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The trackingParameters to set.

Returns
Type Description
TestConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TestConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
TestConfig.Builder
Overrides