Class TransitionCoverage.Builder (0.14.2)

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.v3beta1.TransitionCoverage

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v3beta1.TransitionCoverage.Transition transitions = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition>
Returns
TypeDescription
TransitionCoverage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TransitionCoverage.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v3beta1.TransitionCoverage.Transition transitions = 1;

Parameter
NameDescription
valueTransitionCoverage.Transition
Returns
TypeDescription
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.v3beta1.TransitionCoverage.Transition transitions = 1;

Parameter
NameDescription
builderForValueTransitionCoverage.Transition.Builder
Returns
TypeDescription
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.v3beta1.TransitionCoverage.Transition transitions = 1;

Parameters
NameDescription
indexint
valueTransitionCoverage.Transition
Returns
TypeDescription
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.v3beta1.TransitionCoverage.Transition transitions = 1;

Parameters
NameDescription
indexint
builderForValueTransitionCoverage.Transition.Builder
Returns
TypeDescription
TransitionCoverage.Builder

addTransitionsBuilder()

public TransitionCoverage.Transition.Builder addTransitionsBuilder()

The list of Transitions present in the agent.

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

Returns
TypeDescription
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.v3beta1.TransitionCoverage.Transition transitions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TransitionCoverage.Transition.Builder

build()

public TransitionCoverage build()
Returns
TypeDescription
TransitionCoverage

buildPartial()

public TransitionCoverage buildPartial()
Returns
TypeDescription
TransitionCoverage

clear()

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

clearCoverageScore()

public TransitionCoverage.Builder clearCoverageScore()

The percent of transitions in the agent that are covered.

float coverage_score = 2;

Returns
TypeDescription
TransitionCoverage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTransitions()

public TransitionCoverage.Builder clearTransitions()

The list of Transitions present in the agent.

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

Returns
TypeDescription
TransitionCoverage.Builder

clone()

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

getCoverageScore()

public float getCoverageScore()

The percent of transitions in the agent that are covered.

float coverage_score = 2;

Returns
TypeDescription
float

The coverageScore.

getDefaultInstanceForType()

public TransitionCoverage getDefaultInstanceForType()
Returns
TypeDescription
TransitionCoverage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getTransitions(int index)

public TransitionCoverage.Transition getTransitions(int index)

The list of Transitions present in the agent.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v3beta1.TransitionCoverage.Transition transitions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TransitionCoverage.Transition.Builder

getTransitionsBuilderList()

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

The list of Transitions present in the agent.

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

Returns
TypeDescription
List<Builder>

getTransitionsCount()

public int getTransitionsCount()

The list of Transitions present in the agent.

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

Returns
TypeDescription
int

getTransitionsList()

public List<TransitionCoverage.Transition> getTransitionsList()

The list of Transitions present in the agent.

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

Returns
TypeDescription
List<Transition>

getTransitionsOrBuilder(int index)

public TransitionCoverage.TransitionOrBuilder getTransitionsOrBuilder(int index)

The list of Transitions present in the agent.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
TransitionCoverage.TransitionOrBuilder

getTransitionsOrBuilderList()

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

The list of Transitions present in the agent.

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

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TransitionCoverage other)

public TransitionCoverage.Builder mergeFrom(TransitionCoverage other)
Parameter
NameDescription
otherTransitionCoverage
Returns
TypeDescription
TransitionCoverage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TransitionCoverage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v3beta1.TransitionCoverage.Transition transitions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuefloat

The coverageScore to set.

Returns
TypeDescription
TransitionCoverage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public TransitionCoverage.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v3beta1.TransitionCoverage.Transition transitions = 1;

Parameters
NameDescription
indexint
valueTransitionCoverage.Transition
Returns
TypeDescription
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.v3beta1.TransitionCoverage.Transition transitions = 1;

Parameters
NameDescription
indexint
builderForValueTransitionCoverage.Transition.Builder
Returns
TypeDescription
TransitionCoverage.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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