Class TestCaseResult.Builder (0.14.2)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn>
Returns
TypeDescription
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
NameDescription
valueConversationTurn
Returns
TypeDescription
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
NameDescription
builderForValueConversationTurn.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueConversationTurn
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConversationTurn.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ConversationTurn.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TestCaseResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TestCaseResult.Builder
Overrides

build()

public TestCaseResult build()
Returns
TypeDescription
TestCaseResult

buildPartial()

public TestCaseResult buildPartial()
Returns
TypeDescription
TestCaseResult

clear()

public TestCaseResult.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TestCaseResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public TestCaseResult.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3beta1.ConversationTurnOrBuilder>

getDefaultInstanceForType()

public TestCaseResult getDefaultInstanceForType()
Returns
TypeDescription
TestCaseResult

getDescriptorForType()

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

The testTime.

getTestTimeBuilder()

public Timestamp.Builder getTestTimeBuilder()

The time that the test was run.

.google.protobuf.Timestamp test_time = 5;

Returns
TypeDescription
Builder

getTestTimeOrBuilder()

public TimestampOrBuilder getTestTimeOrBuilder()

The time that the test was run.

.google.protobuf.Timestamp test_time = 5;

Returns
TypeDescription
TimestampOrBuilder

hasTestTime()

public boolean hasTestTime()

The time that the test was run.

.google.protobuf.Timestamp test_time = 5;

Returns
TypeDescription
boolean

Whether the testTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TestCaseResult other)

public TestCaseResult.Builder mergeFrom(TestCaseResult other)
Parameter
NameDescription
otherTestCaseResult
Returns
TypeDescription
TestCaseResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TestCaseResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
TestCaseResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TestCaseResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueConversationTurn
Returns
TypeDescription
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
NameDescription
indexint
builderForValueConversationTurn.Builder
Returns
TypeDescription
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
NameDescription
valueString

The environment to set.

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

The bytes for environment to set.

Returns
TypeDescription
TestCaseResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

The testResult to set.

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

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

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
TestCaseResult.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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