Class ContinuousTestResult.Builder (0.66.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
Type Description
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
Name Description
values Iterable<String>

The testCaseResults to add.

Returns
Type Description
ContinuousTestResult.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContinuousTestResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The testCaseResults to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the testCaseResults to add.

Returns
Type Description
ContinuousTestResult.Builder

This builder for chaining.

build()

public ContinuousTestResult build()
Returns
Type Description
ContinuousTestResult

buildPartial()

public ContinuousTestResult buildPartial()
Returns
Type Description
ContinuousTestResult

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ContinuousTestResult.Builder clearName()

The resource name for the continuous test result. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/continuousTestResults/<ContinuousTestResultID>.

string name = 1;

Returns
Type Description
ContinuousTestResult.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ContinuousTestResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
ContinuousTestResult.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ContinuousTestResult getDefaultInstanceForType()
Returns
Type Description
ContinuousTestResult

getDescriptorForType()

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

getName()

public String getName()

The resource name for the continuous test result. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/continuousTestResults/<ContinuousTestResultID>.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name for the continuous test result. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/continuousTestResults/<ContinuousTestResultID>.

string name = 1;

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
Timestamp

The runTime.

getRunTimeBuilder()

public Timestamp.Builder getRunTimeBuilder()

Time when the continuous testing run starts.

.google.protobuf.Timestamp run_time = 4;

Returns
Type Description
Builder

getRunTimeOrBuilder()

public TimestampOrBuilder getRunTimeOrBuilder()

Time when the continuous testing run starts.

.google.protobuf.Timestamp run_time = 4;

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the testCaseResults.

hasRunTime()

public boolean hasRunTime()

Time when the continuous testing run starts.

.google.protobuf.Timestamp run_time = 4;

Returns
Type Description
boolean

Whether the runTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContinuousTestResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ContinuousTestResult.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
ContinuousTestResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ContinuousTestResult.Builder setName(String value)

The resource name for the continuous test result. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/continuousTestResults/<ContinuousTestResultID>.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/continuousTestResults/<ContinuousTestResultID>.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value ContinuousTestResult.AggregatedTestResult

The result to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The testCaseResults to set.

Returns
Type Description
ContinuousTestResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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