Class IntentCoverage.Builder (0.14.2)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v3beta1.IntentCoverage.Intent intents = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent>
Returns
TypeDescription
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.v3beta1.IntentCoverage.Intent intents = 1;

Parameter
NameDescription
valueIntentCoverage.Intent
Returns
TypeDescription
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.v3beta1.IntentCoverage.Intent intents = 1;

Parameter
NameDescription
builderForValueIntentCoverage.Intent.Builder
Returns
TypeDescription
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.v3beta1.IntentCoverage.Intent intents = 1;

Parameters
NameDescription
indexint
valueIntentCoverage.Intent
Returns
TypeDescription
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.v3beta1.IntentCoverage.Intent intents = 1;

Parameters
NameDescription
indexint
builderForValueIntentCoverage.Intent.Builder
Returns
TypeDescription
IntentCoverage.Builder

addIntentsBuilder()

public IntentCoverage.Intent.Builder addIntentsBuilder()

The list of Intents present in the agent

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

Returns
TypeDescription
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.v3beta1.IntentCoverage.Intent intents = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
IntentCoverage.Intent.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public IntentCoverage build()
Returns
TypeDescription
IntentCoverage

buildPartial()

public IntentCoverage buildPartial()
Returns
TypeDescription
IntentCoverage

clear()

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

clearCoverageScore()

public IntentCoverage.Builder clearCoverageScore()

The percent of intents in the agent that are covered.

float coverage_score = 2;

Returns
TypeDescription
IntentCoverage.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearIntents()

public IntentCoverage.Builder clearIntents()

The list of Intents present in the agent

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

Returns
TypeDescription
IntentCoverage.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCoverageScore()

public float getCoverageScore()

The percent of intents in the agent that are covered.

float coverage_score = 2;

Returns
TypeDescription
float

The coverageScore.

getDefaultInstanceForType()

public IntentCoverage getDefaultInstanceForType()
Returns
TypeDescription
IntentCoverage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIntents(int index)

public IntentCoverage.Intent getIntents(int index)

The list of Intents present in the agent

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v3beta1.IntentCoverage.Intent intents = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
IntentCoverage.Intent.Builder

getIntentsBuilderList()

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

The list of Intents present in the agent

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

Returns
TypeDescription
List<Builder>

getIntentsCount()

public int getIntentsCount()

The list of Intents present in the agent

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

Returns
TypeDescription
int

getIntentsList()

public List<IntentCoverage.Intent> getIntentsList()

The list of Intents present in the agent

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

Returns
TypeDescription
List<Intent>

getIntentsOrBuilder(int index)

public IntentCoverage.IntentOrBuilder getIntentsOrBuilder(int index)

The list of Intents present in the agent

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

Parameter
NameDescription
indexint
Returns
TypeDescription
IntentCoverage.IntentOrBuilder

getIntentsOrBuilderList()

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

The list of Intents present in the agent

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

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IntentOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(IntentCoverage other)

public IntentCoverage.Builder mergeFrom(IntentCoverage other)
Parameter
NameDescription
otherIntentCoverage
Returns
TypeDescription
IntentCoverage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

The coverageScore to set.

Returns
TypeDescription
IntentCoverage.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public IntentCoverage.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v3beta1.IntentCoverage.Intent intents = 1;

Parameters
NameDescription
indexint
valueIntentCoverage.Intent
Returns
TypeDescription
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.v3beta1.IntentCoverage.Intent intents = 1;

Parameters
NameDescription
indexint
builderForValueIntentCoverage.Intent.Builder
Returns
TypeDescription
IntentCoverage.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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