Class IntentCoverage.Builder (0.12.1)

public static final class IntentCoverage.Builder extends GeneratedMessageV3.Builder<IntentCoverage.Builder> implements IntentCoverageOrBuilder

Intent coverage represents the percentage of all possible intents in the agent that are triggered in any of a parent's test cases.

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

Static Methods

getDescriptor()

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

Methods

addAllIntents(Iterable<? extends IntentCoverage.Intent> values)

public IntentCoverage.Builder addAllIntents(Iterable<? extends IntentCoverage.Intent> values)

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

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

addIntents(IntentCoverage.Intent value)

public IntentCoverage.Builder addIntents(IntentCoverage.Intent value)

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Parameter
Name Description
value IntentCoverage.Intent
Returns
Type Description
IntentCoverage.Builder

addIntents(IntentCoverage.Intent.Builder builderForValue)

public IntentCoverage.Builder addIntents(IntentCoverage.Intent.Builder builderForValue)

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Parameter
Name Description
builderForValue IntentCoverage.Intent.Builder
Returns
Type Description
IntentCoverage.Builder

addIntents(int index, IntentCoverage.Intent value)

public IntentCoverage.Builder addIntents(int index, IntentCoverage.Intent value)

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Parameters
Name Description
index int
value IntentCoverage.Intent
Returns
Type Description
IntentCoverage.Builder

addIntents(int index, IntentCoverage.Intent.Builder builderForValue)

public IntentCoverage.Builder addIntents(int index, IntentCoverage.Intent.Builder builderForValue)

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Parameters
Name Description
index int
builderForValue IntentCoverage.Intent.Builder
Returns
Type Description
IntentCoverage.Builder

addIntentsBuilder()

public IntentCoverage.Intent.Builder addIntentsBuilder()

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Returns
Type Description
IntentCoverage.Intent.Builder

addIntentsBuilder(int index)

public IntentCoverage.Intent.Builder addIntentsBuilder(int index)

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Parameter
Name Description
index int
Returns
Type Description
IntentCoverage.Intent.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public IntentCoverage build()
Returns
Type Description
IntentCoverage

buildPartial()

public IntentCoverage buildPartial()
Returns
Type Description
IntentCoverage

clear()

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

clearCoverageScore()

public IntentCoverage.Builder clearCoverageScore()

The percent of intents in the agent that are covered.

float coverage_score = 2;

Returns
Type Description
IntentCoverage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIntents()

public IntentCoverage.Builder clearIntents()

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Returns
Type Description
IntentCoverage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCoverageScore()

public float getCoverageScore()

The percent of intents in the agent that are covered.

float coverage_score = 2;

Returns
Type Description
float

The coverageScore.

getDefaultInstanceForType()

public IntentCoverage getDefaultInstanceForType()
Returns
Type Description
IntentCoverage

getDescriptorForType()

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

getIntents(int index)

public IntentCoverage.Intent getIntents(int index)

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Parameter
Name Description
index int
Returns
Type Description
IntentCoverage.Intent

getIntentsBuilder(int index)

public IntentCoverage.Intent.Builder getIntentsBuilder(int index)

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Parameter
Name Description
index int
Returns
Type Description
IntentCoverage.Intent.Builder

getIntentsBuilderList()

public List<IntentCoverage.Intent.Builder> getIntentsBuilderList()

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Returns
Type Description
List<Builder>

getIntentsCount()

public int getIntentsCount()

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Returns
Type Description
int

getIntentsList()

public List<IntentCoverage.Intent> getIntentsList()

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Returns
Type Description
List<Intent>

getIntentsOrBuilder(int index)

public IntentCoverage.IntentOrBuilder getIntentsOrBuilder(int index)

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Parameter
Name Description
index int
Returns
Type Description
IntentCoverage.IntentOrBuilder

getIntentsOrBuilderList()

public List<? extends IntentCoverage.IntentOrBuilder> getIntentsOrBuilderList()

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3.IntentCoverage.IntentOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(IntentCoverage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeIntents(int index)

public IntentCoverage.Builder removeIntents(int index)

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Parameter
Name Description
index int
Returns
Type Description
IntentCoverage.Builder

setCoverageScore(float value)

public IntentCoverage.Builder setCoverageScore(float value)

The percent of intents in the agent that are covered.

float coverage_score = 2;

Parameter
Name Description
value float

The coverageScore to set.

Returns
Type Description
IntentCoverage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setIntents(int index, IntentCoverage.Intent value)

public IntentCoverage.Builder setIntents(int index, IntentCoverage.Intent value)

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Parameters
Name Description
index int
value IntentCoverage.Intent
Returns
Type Description
IntentCoverage.Builder

setIntents(int index, IntentCoverage.Intent.Builder builderForValue)

public IntentCoverage.Builder setIntents(int index, IntentCoverage.Intent.Builder builderForValue)

The list of Intents present in the agent

repeated .google.cloud.dialogflow.cx.v3.IntentCoverage.Intent intents = 1;

Parameters
Name Description
index int
builderForValue IntentCoverage.Intent.Builder
Returns
Type Description
IntentCoverage.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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