Class KnowledgeAnswers.Builder (4.37.0)

public static final class KnowledgeAnswers.Builder extends GeneratedMessageV3.Builder<KnowledgeAnswers.Builder> implements KnowledgeAnswersOrBuilder

Represents the result of querying a Knowledge base.

Protobuf type google.cloud.dialogflow.v2beta1.KnowledgeAnswers

Static Methods

getDescriptor()

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

Methods

addAllAnswers(Iterable<? extends KnowledgeAnswers.Answer> values)

public KnowledgeAnswers.Builder addAllAnswers(Iterable<? extends KnowledgeAnswers.Answer> values)

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer>
Returns
Type Description
KnowledgeAnswers.Builder

addAnswers(KnowledgeAnswers.Answer value)

public KnowledgeAnswers.Builder addAnswers(KnowledgeAnswers.Answer value)

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Parameter
Name Description
value KnowledgeAnswers.Answer
Returns
Type Description
KnowledgeAnswers.Builder

addAnswers(KnowledgeAnswers.Answer.Builder builderForValue)

public KnowledgeAnswers.Builder addAnswers(KnowledgeAnswers.Answer.Builder builderForValue)

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Parameter
Name Description
builderForValue KnowledgeAnswers.Answer.Builder
Returns
Type Description
KnowledgeAnswers.Builder

addAnswers(int index, KnowledgeAnswers.Answer value)

public KnowledgeAnswers.Builder addAnswers(int index, KnowledgeAnswers.Answer value)

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Parameters
Name Description
index int
value KnowledgeAnswers.Answer
Returns
Type Description
KnowledgeAnswers.Builder

addAnswers(int index, KnowledgeAnswers.Answer.Builder builderForValue)

public KnowledgeAnswers.Builder addAnswers(int index, KnowledgeAnswers.Answer.Builder builderForValue)

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Parameters
Name Description
index int
builderForValue KnowledgeAnswers.Answer.Builder
Returns
Type Description
KnowledgeAnswers.Builder

addAnswersBuilder()

public KnowledgeAnswers.Answer.Builder addAnswersBuilder()

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Returns
Type Description
KnowledgeAnswers.Answer.Builder

addAnswersBuilder(int index)

public KnowledgeAnswers.Answer.Builder addAnswersBuilder(int index)

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeAnswers.Answer.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KnowledgeAnswers build()
Returns
Type Description
KnowledgeAnswers

buildPartial()

public KnowledgeAnswers buildPartial()
Returns
Type Description
KnowledgeAnswers

clear()

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

clearAnswers()

public KnowledgeAnswers.Builder clearAnswers()

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Returns
Type Description
KnowledgeAnswers.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAnswers(int index)

public KnowledgeAnswers.Answer getAnswers(int index)

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeAnswers.Answer

getAnswersBuilder(int index)

public KnowledgeAnswers.Answer.Builder getAnswersBuilder(int index)

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeAnswers.Answer.Builder

getAnswersBuilderList()

public List<KnowledgeAnswers.Answer.Builder> getAnswersBuilderList()

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Returns
Type Description
List<Builder>

getAnswersCount()

public int getAnswersCount()

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Returns
Type Description
int

getAnswersList()

public List<KnowledgeAnswers.Answer> getAnswersList()

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Returns
Type Description
List<Answer>

getAnswersOrBuilder(int index)

public KnowledgeAnswers.AnswerOrBuilder getAnswersOrBuilder(int index)

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeAnswers.AnswerOrBuilder

getAnswersOrBuilderList()

public List<? extends KnowledgeAnswers.AnswerOrBuilder> getAnswersOrBuilderList()

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder>

getDefaultInstanceForType()

public KnowledgeAnswers getDefaultInstanceForType()
Returns
Type Description
KnowledgeAnswers

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KnowledgeAnswers other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAnswers(int index)

public KnowledgeAnswers.Builder removeAnswers(int index)

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeAnswers.Builder

setAnswers(int index, KnowledgeAnswers.Answer value)

public KnowledgeAnswers.Builder setAnswers(int index, KnowledgeAnswers.Answer value)

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Parameters
Name Description
index int
value KnowledgeAnswers.Answer
Returns
Type Description
KnowledgeAnswers.Builder

setAnswers(int index, KnowledgeAnswers.Answer.Builder builderForValue)

public KnowledgeAnswers.Builder setAnswers(int index, KnowledgeAnswers.Answer.Builder builderForValue)

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Parameters
Name Description
index int
builderForValue KnowledgeAnswers.Answer.Builder
Returns
Type Description
KnowledgeAnswers.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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