Class TestConfig.Builder (0.11.5)

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. If not set, default start flow is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

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

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. If not set, default start flow is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

string flow = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The flow.

getFlowBytes()

public ByteString getFlowBytes()

Flow name. If not set, default start flow is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

string flow = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for flow.

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. If not set, default start flow is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

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. If not set, default start flow is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

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.

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