Class TestCaseResult.Builder (0.43.0)

public static final class TestCaseResult.Builder extends GeneratedMessageV3.Builder<TestCaseResult.Builder> implements TestCaseResultOrBuilder

Represents a result from running a test case in an agent environment.

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

Static Methods

getDescriptor()

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

Methods

addAllConversationTurns(Iterable<? extends ConversationTurn> values)

public TestCaseResult.Builder addAllConversationTurns(Iterable<? extends ConversationTurn> values)

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn>
Returns
Type Description
TestCaseResult.Builder

addConversationTurns(ConversationTurn value)

public TestCaseResult.Builder addConversationTurns(ConversationTurn value)

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Parameter
Name Description
value ConversationTurn
Returns
Type Description
TestCaseResult.Builder

addConversationTurns(ConversationTurn.Builder builderForValue)

public TestCaseResult.Builder addConversationTurns(ConversationTurn.Builder builderForValue)

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Parameter
Name Description
builderForValue ConversationTurn.Builder
Returns
Type Description
TestCaseResult.Builder

addConversationTurns(int index, ConversationTurn value)

public TestCaseResult.Builder addConversationTurns(int index, ConversationTurn value)

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Parameters
Name Description
index int
value ConversationTurn
Returns
Type Description
TestCaseResult.Builder

addConversationTurns(int index, ConversationTurn.Builder builderForValue)

public TestCaseResult.Builder addConversationTurns(int index, ConversationTurn.Builder builderForValue)

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Parameters
Name Description
index int
builderForValue ConversationTurn.Builder
Returns
Type Description
TestCaseResult.Builder

addConversationTurnsBuilder()

public ConversationTurn.Builder addConversationTurnsBuilder()

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Returns
Type Description
ConversationTurn.Builder

addConversationTurnsBuilder(int index)

public ConversationTurn.Builder addConversationTurnsBuilder(int index)

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Parameter
Name Description
index int
Returns
Type Description
ConversationTurn.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TestCaseResult build()
Returns
Type Description
TestCaseResult

buildPartial()

public TestCaseResult buildPartial()
Returns
Type Description
TestCaseResult

clear()

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

clearConversationTurns()

public TestCaseResult.Builder clearConversationTurns()

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Returns
Type Description
TestCaseResult.Builder

clearEnvironment()

public TestCaseResult.Builder clearEnvironment()

Environment where the test was run. If not set, it indicates the draft environment.

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

Returns
Type Description
TestCaseResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public TestCaseResult.Builder clearName()

The resource name for the test case result. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/ <TestCase ID>/results/<TestCaseResult ID>.

string name = 1;

Returns
Type Description
TestCaseResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTestResult()

public TestCaseResult.Builder clearTestResult()

Whether the test case passed in the agent environment.

.google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;

Returns
Type Description
TestCaseResult.Builder

This builder for chaining.

clearTestTime()

public TestCaseResult.Builder clearTestTime()

The time that the test was run.

.google.protobuf.Timestamp test_time = 5;

Returns
Type Description
TestCaseResult.Builder

clone()

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

getConversationTurns(int index)

public ConversationTurn getConversationTurns(int index)

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Parameter
Name Description
index int
Returns
Type Description
ConversationTurn

getConversationTurnsBuilder(int index)

public ConversationTurn.Builder getConversationTurnsBuilder(int index)

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Parameter
Name Description
index int
Returns
Type Description
ConversationTurn.Builder

getConversationTurnsBuilderList()

public List<ConversationTurn.Builder> getConversationTurnsBuilderList()

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Returns
Type Description
List<Builder>

getConversationTurnsCount()

public int getConversationTurnsCount()

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Returns
Type Description
int

getConversationTurnsList()

public List<ConversationTurn> getConversationTurnsList()

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Returns
Type Description
List<ConversationTurn>

getConversationTurnsOrBuilder(int index)

public ConversationTurnOrBuilder getConversationTurnsOrBuilder(int index)

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Parameter
Name Description
index int
Returns
Type Description
ConversationTurnOrBuilder

getConversationTurnsOrBuilderList()

public List<? extends ConversationTurnOrBuilder> getConversationTurnsOrBuilderList()

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3beta1.ConversationTurnOrBuilder>

getDefaultInstanceForType()

public TestCaseResult getDefaultInstanceForType()
Returns
Type Description
TestCaseResult

getDescriptorForType()

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

getEnvironment()

public String getEnvironment()

Environment where the test was run. If not set, it indicates the draft environment.

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

Returns
Type Description
String

The environment.

getEnvironmentBytes()

public ByteString getEnvironmentBytes()

Environment where the test was run. If not set, it indicates the draft environment.

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

Returns
Type Description
ByteString

The bytes for environment.

getName()

public String getName()

The resource name for the test case result. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/ <TestCase ID>/results/<TestCaseResult ID>.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name for the test case result. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/ <TestCase ID>/results/<TestCaseResult ID>.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getTestResult()

public TestResult getTestResult()

Whether the test case passed in the agent environment.

.google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;

Returns
Type Description
TestResult

The testResult.

getTestResultValue()

public int getTestResultValue()

Whether the test case passed in the agent environment.

.google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;

Returns
Type Description
int

The enum numeric value on the wire for testResult.

getTestTime()

public Timestamp getTestTime()

The time that the test was run.

.google.protobuf.Timestamp test_time = 5;

Returns
Type Description
Timestamp

The testTime.

getTestTimeBuilder()

public Timestamp.Builder getTestTimeBuilder()

The time that the test was run.

.google.protobuf.Timestamp test_time = 5;

Returns
Type Description
Builder

getTestTimeOrBuilder()

public TimestampOrBuilder getTestTimeOrBuilder()

The time that the test was run.

.google.protobuf.Timestamp test_time = 5;

Returns
Type Description
TimestampOrBuilder

hasTestTime()

public boolean hasTestTime()

The time that the test was run.

.google.protobuf.Timestamp test_time = 5;

Returns
Type Description
boolean

Whether the testTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TestCaseResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTestTime(Timestamp value)

public TestCaseResult.Builder mergeTestTime(Timestamp value)

The time that the test was run.

.google.protobuf.Timestamp test_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
TestCaseResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeConversationTurns(int index)

public TestCaseResult.Builder removeConversationTurns(int index)

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Parameter
Name Description
index int
Returns
Type Description
TestCaseResult.Builder

setConversationTurns(int index, ConversationTurn value)

public TestCaseResult.Builder setConversationTurns(int index, ConversationTurn value)

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Parameters
Name Description
index int
value ConversationTurn
Returns
Type Description
TestCaseResult.Builder

setConversationTurns(int index, ConversationTurn.Builder builderForValue)

public TestCaseResult.Builder setConversationTurns(int index, ConversationTurn.Builder builderForValue)

The conversation turns uttered during the test case replay in chronological order.

repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;

Parameters
Name Description
index int
builderForValue ConversationTurn.Builder
Returns
Type Description
TestCaseResult.Builder

setEnvironment(String value)

public TestCaseResult.Builder setEnvironment(String value)

Environment where the test was run. If not set, it indicates the draft environment.

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

Parameter
Name Description
value String

The environment to set.

Returns
Type Description
TestCaseResult.Builder

This builder for chaining.

setEnvironmentBytes(ByteString value)

public TestCaseResult.Builder setEnvironmentBytes(ByteString value)

Environment where the test was run. If not set, it indicates the draft environment.

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

Parameter
Name Description
value ByteString

The bytes for environment to set.

Returns
Type Description
TestCaseResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public TestCaseResult.Builder setName(String value)

The resource name for the test case result. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/ <TestCase ID>/results/<TestCaseResult ID>.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
TestCaseResult.Builder

This builder for chaining.

setNameBytes(ByteString value)

public TestCaseResult.Builder setNameBytes(ByteString value)

The resource name for the test case result. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/ <TestCase ID>/results/<TestCaseResult ID>.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
TestCaseResult.Builder

This builder for chaining.

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

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

setTestResult(TestResult value)

public TestCaseResult.Builder setTestResult(TestResult value)

Whether the test case passed in the agent environment.

.google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;

Parameter
Name Description
value TestResult

The testResult to set.

Returns
Type Description
TestCaseResult.Builder

This builder for chaining.

setTestResultValue(int value)

public TestCaseResult.Builder setTestResultValue(int value)

Whether the test case passed in the agent environment.

.google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for testResult to set.

Returns
Type Description
TestCaseResult.Builder

This builder for chaining.

setTestTime(Timestamp value)

public TestCaseResult.Builder setTestTime(Timestamp value)

The time that the test was run.

.google.protobuf.Timestamp test_time = 5;

Parameter
Name Description
value Timestamp
Returns
Type Description
TestCaseResult.Builder

setTestTime(Timestamp.Builder builderForValue)

public TestCaseResult.Builder setTestTime(Timestamp.Builder builderForValue)

The time that the test was run.

.google.protobuf.Timestamp test_time = 5;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TestCaseResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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