Class ContinuousTestResult.Builder (0.13.0)

public static final class ContinuousTestResult.Builder extends GeneratedMessageV3.Builder<ContinuousTestResult.Builder> implements ContinuousTestResultOrBuilder

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

Protobuf type google.cloud.dialogflow.cx.v3.ContinuousTestResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllTestCaseResults(Iterable<String> values)

public ContinuousTestResult.Builder addAllTestCaseResults(Iterable<String> values)

A list of individual test case results names in this continuous test run.

repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valuesIterable<String>

The testCaseResults to add.

Returns
TypeDescription
ContinuousTestResult.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTestCaseResults(String value)

public ContinuousTestResult.Builder addTestCaseResults(String value)

A list of individual test case results names in this continuous test run.

repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The testCaseResults to add.

Returns
TypeDescription
ContinuousTestResult.Builder

This builder for chaining.

addTestCaseResultsBytes(ByteString value)

public ContinuousTestResult.Builder addTestCaseResultsBytes(ByteString value)

A list of individual test case results names in this continuous test run.

repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes of the testCaseResults to add.

Returns
TypeDescription
ContinuousTestResult.Builder

This builder for chaining.

build()

public ContinuousTestResult build()
Returns
TypeDescription
ContinuousTestResult

buildPartial()

public ContinuousTestResult buildPartial()
Returns
TypeDescription
ContinuousTestResult

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ContinuousTestResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ContinuousTestResult.Builder
Overrides

clearName()

public ContinuousTestResult.Builder clearName()

The resource name for the continuous test result. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/continuousTestResults/<ContinuousTestResult ID>.

string name = 1;

Returns
TypeDescription
ContinuousTestResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ContinuousTestResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ContinuousTestResult.Builder
Overrides

clearResult()

public ContinuousTestResult.Builder clearResult()

The result of this continuous test run, i.e. whether all the tests in this continuous test run pass or not.

.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2;

Returns
TypeDescription
ContinuousTestResult.Builder

This builder for chaining.

clearRunTime()

public ContinuousTestResult.Builder clearRunTime()

Time when the continuous testing run starts.

.google.protobuf.Timestamp run_time = 4;

Returns
TypeDescription
ContinuousTestResult.Builder

clearTestCaseResults()

public ContinuousTestResult.Builder clearTestCaseResults()

A list of individual test case results names in this continuous test run.

repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ContinuousTestResult.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ContinuousTestResult getDefaultInstanceForType()
Returns
TypeDescription
ContinuousTestResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

The resource name for the continuous test result. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/continuousTestResults/<ContinuousTestResult ID>.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name for the continuous test result. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/continuousTestResults/<ContinuousTestResult ID>.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getResult()

public ContinuousTestResult.AggregatedTestResult getResult()

The result of this continuous test run, i.e. whether all the tests in this continuous test run pass or not.

.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2;

Returns
TypeDescription
ContinuousTestResult.AggregatedTestResult

The result.

getResultValue()

public int getResultValue()

The result of this continuous test run, i.e. whether all the tests in this continuous test run pass or not.

.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for result.

getRunTime()

public Timestamp getRunTime()

Time when the continuous testing run starts.

.google.protobuf.Timestamp run_time = 4;

Returns
TypeDescription
Timestamp

The runTime.

getRunTimeBuilder()

public Timestamp.Builder getRunTimeBuilder()

Time when the continuous testing run starts.

.google.protobuf.Timestamp run_time = 4;

Returns
TypeDescription
Builder

getRunTimeOrBuilder()

public TimestampOrBuilder getRunTimeOrBuilder()

Time when the continuous testing run starts.

.google.protobuf.Timestamp run_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getTestCaseResults(int index)

public String getTestCaseResults(int index)

A list of individual test case results names in this continuous test run.

repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The testCaseResults at the given index.

getTestCaseResultsBytes(int index)

public ByteString getTestCaseResultsBytes(int index)

A list of individual test case results names in this continuous test run.

repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the testCaseResults at the given index.

getTestCaseResultsCount()

public int getTestCaseResultsCount()

A list of individual test case results names in this continuous test run.

repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
int

The count of testCaseResults.

getTestCaseResultsList()

public ProtocolStringList getTestCaseResultsList()

A list of individual test case results names in this continuous test run.

repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the testCaseResults.

hasRunTime()

public boolean hasRunTime()

Time when the continuous testing run starts.

.google.protobuf.Timestamp run_time = 4;

Returns
TypeDescription
boolean

Whether the runTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ContinuousTestResult other)

public ContinuousTestResult.Builder mergeFrom(ContinuousTestResult other)
Parameter
NameDescription
otherContinuousTestResult
Returns
TypeDescription
ContinuousTestResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRunTime(Timestamp value)

public ContinuousTestResult.Builder mergeRunTime(Timestamp value)

Time when the continuous testing run starts.

.google.protobuf.Timestamp run_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ContinuousTestResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ContinuousTestResult.Builder setName(String value)

The resource name for the continuous test result. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/continuousTestResults/<ContinuousTestResult ID>.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ContinuousTestResult.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ContinuousTestResult.Builder setNameBytes(ByteString value)

The resource name for the continuous test result. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/continuousTestResults/<ContinuousTestResult ID>.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ContinuousTestResult.Builder

This builder for chaining.

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

public ContinuousTestResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ContinuousTestResult.Builder
Overrides

setResult(ContinuousTestResult.AggregatedTestResult value)

public ContinuousTestResult.Builder setResult(ContinuousTestResult.AggregatedTestResult value)

The result of this continuous test run, i.e. whether all the tests in this continuous test run pass or not.

.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2;

Parameter
NameDescription
valueContinuousTestResult.AggregatedTestResult

The result to set.

Returns
TypeDescription
ContinuousTestResult.Builder

This builder for chaining.

setResultValue(int value)

public ContinuousTestResult.Builder setResultValue(int value)

The result of this continuous test run, i.e. whether all the tests in this continuous test run pass or not.

.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = 2;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ContinuousTestResult.Builder

This builder for chaining.

setRunTime(Timestamp value)

public ContinuousTestResult.Builder setRunTime(Timestamp value)

Time when the continuous testing run starts.

.google.protobuf.Timestamp run_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ContinuousTestResult.Builder

setRunTime(Timestamp.Builder builderForValue)

public ContinuousTestResult.Builder setRunTime(Timestamp.Builder builderForValue)

Time when the continuous testing run starts.

.google.protobuf.Timestamp run_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ContinuousTestResult.Builder

setTestCaseResults(int index, String value)

public ContinuousTestResult.Builder setTestCaseResults(int index, String value)

A list of individual test case results names in this continuous test run.

repeated string test_case_results = 3 [(.google.api.resource_reference) = { ... }

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The testCaseResults to set.

Returns
TypeDescription
ContinuousTestResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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