Class TransitionCoverage.Builder (0.13.1)

public static final class TransitionCoverage.Builder extends GeneratedMessageV3.Builder<TransitionCoverage.Builder> implements TransitionCoverageOrBuilder

Transition coverage represents the percentage of all possible page transitions (page-level transition routes and event handlers, excluding transition route groups) present within any of a parent's test cases.

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

Static Methods

getDescriptor()

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

Methods

addAllTransitions(Iterable<? extends TransitionCoverage.Transition> values)

public TransitionCoverage.Builder addAllTransitions(Iterable<? extends TransitionCoverage.Transition> values)

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition>
Returns
Type Description
TransitionCoverage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTransitions(TransitionCoverage.Transition value)

public TransitionCoverage.Builder addTransitions(TransitionCoverage.Transition value)

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Parameter
Name Description
value TransitionCoverage.Transition
Returns
Type Description
TransitionCoverage.Builder

addTransitions(TransitionCoverage.Transition.Builder builderForValue)

public TransitionCoverage.Builder addTransitions(TransitionCoverage.Transition.Builder builderForValue)

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Parameter
Name Description
builderForValue TransitionCoverage.Transition.Builder
Returns
Type Description
TransitionCoverage.Builder

addTransitions(int index, TransitionCoverage.Transition value)

public TransitionCoverage.Builder addTransitions(int index, TransitionCoverage.Transition value)

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Parameters
Name Description
index int
value TransitionCoverage.Transition
Returns
Type Description
TransitionCoverage.Builder

addTransitions(int index, TransitionCoverage.Transition.Builder builderForValue)

public TransitionCoverage.Builder addTransitions(int index, TransitionCoverage.Transition.Builder builderForValue)

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Parameters
Name Description
index int
builderForValue TransitionCoverage.Transition.Builder
Returns
Type Description
TransitionCoverage.Builder

addTransitionsBuilder()

public TransitionCoverage.Transition.Builder addTransitionsBuilder()

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Returns
Type Description
TransitionCoverage.Transition.Builder

addTransitionsBuilder(int index)

public TransitionCoverage.Transition.Builder addTransitionsBuilder(int index)

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Parameter
Name Description
index int
Returns
Type Description
TransitionCoverage.Transition.Builder

build()

public TransitionCoverage build()
Returns
Type Description
TransitionCoverage

buildPartial()

public TransitionCoverage buildPartial()
Returns
Type Description
TransitionCoverage

clear()

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

clearCoverageScore()

public TransitionCoverage.Builder clearCoverageScore()

The percent of transitions in the agent that are covered.

float coverage_score = 2;

Returns
Type Description
TransitionCoverage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTransitions()

public TransitionCoverage.Builder clearTransitions()

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Returns
Type Description
TransitionCoverage.Builder

clone()

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

getCoverageScore()

public float getCoverageScore()

The percent of transitions in the agent that are covered.

float coverage_score = 2;

Returns
Type Description
float

The coverageScore.

getDefaultInstanceForType()

public TransitionCoverage getDefaultInstanceForType()
Returns
Type Description
TransitionCoverage

getDescriptorForType()

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

getTransitions(int index)

public TransitionCoverage.Transition getTransitions(int index)

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Parameter
Name Description
index int
Returns
Type Description
TransitionCoverage.Transition

getTransitionsBuilder(int index)

public TransitionCoverage.Transition.Builder getTransitionsBuilder(int index)

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Parameter
Name Description
index int
Returns
Type Description
TransitionCoverage.Transition.Builder

getTransitionsBuilderList()

public List<TransitionCoverage.Transition.Builder> getTransitionsBuilderList()

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Returns
Type Description
List<Builder>

getTransitionsCount()

public int getTransitionsCount()

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Returns
Type Description
int

getTransitionsList()

public List<TransitionCoverage.Transition> getTransitionsList()

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Returns
Type Description
List<Transition>

getTransitionsOrBuilder(int index)

public TransitionCoverage.TransitionOrBuilder getTransitionsOrBuilder(int index)

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Parameter
Name Description
index int
Returns
Type Description
TransitionCoverage.TransitionOrBuilder

getTransitionsOrBuilderList()

public List<? extends TransitionCoverage.TransitionOrBuilder> getTransitionsOrBuilderList()

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TransitionCoverage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTransitions(int index)

public TransitionCoverage.Builder removeTransitions(int index)

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Parameter
Name Description
index int
Returns
Type Description
TransitionCoverage.Builder

setCoverageScore(float value)

public TransitionCoverage.Builder setCoverageScore(float value)

The percent of transitions in the agent that are covered.

float coverage_score = 2;

Parameter
Name Description
value float

The coverageScore to set.

Returns
Type Description
TransitionCoverage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setTransitions(int index, TransitionCoverage.Transition value)

public TransitionCoverage.Builder setTransitions(int index, TransitionCoverage.Transition value)

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Parameters
Name Description
index int
value TransitionCoverage.Transition
Returns
Type Description
TransitionCoverage.Builder

setTransitions(int index, TransitionCoverage.Transition.Builder builderForValue)

public TransitionCoverage.Builder setTransitions(int index, TransitionCoverage.Transition.Builder builderForValue)

The list of Transitions present in the agent.

repeated .google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition transitions = 1;

Parameters
Name Description
index int
builderForValue TransitionCoverage.Transition.Builder
Returns
Type Description
TransitionCoverage.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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