Class TestConfig.Builder (0.14.1)

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.v3.TestConfig

Implements

TestConfigOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The trackingParameters to add.

Returns
TypeDescription
TestConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TestConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The trackingParameters to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the trackingParameters to add.

Returns
TypeDescription
TestConfig.Builder

This builder for chaining.

build()

public TestConfig build()
Returns
TypeDescription
TestConfig

buildPartial()

public TestConfig buildPartial()
Returns
TypeDescription
TestConfig

clear()

public TestConfig.Builder clear()
Returns
TypeDescription
TestConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public TestConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
TestConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TestConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TestConfig.Builder

This builder for chaining.

clone()

public TestConfig.Builder clone()
Returns
TypeDescription
TestConfig.Builder
Overrides

getDefaultInstanceForType()

public TestConfig getDefaultInstanceForType()
Returns
TypeDescription
TestConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
int

The count of trackingParameters.

getTrackingParametersList()

public ProtocolStringList getTrackingParametersList()

Session parameters to be compared when calculating differences.

repeated string tracking_parameters = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the trackingParameters.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TestConfig other)

public TestConfig.Builder mergeFrom(TestConfig other)
Parameter
NameDescription
otherTestConfig
Returns
TypeDescription
TestConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TestConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TestConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TestConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TestConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TestConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TestConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public TestConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The flow to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for flow to set.

Returns
TypeDescription
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
NameDescription
valueString

The page to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for page to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The trackingParameters to set.

Returns
TypeDescription
TestConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TestConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TestConfig.Builder
Overrides