Class KnowledgeAnswers.Builder (4.3.1)

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

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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer>
Returns
TypeDescription
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
NameDescription
valueKnowledgeAnswers.Answer
Returns
TypeDescription
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
NameDescription
builderForValueKnowledgeAnswers.Answer.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueKnowledgeAnswers.Answer
Returns
TypeDescription
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
NameDescription
indexint
builderForValueKnowledgeAnswers.Answer.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
KnowledgeAnswers.Answer.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KnowledgeAnswers build()
Returns
TypeDescription
KnowledgeAnswers

buildPartial()

public KnowledgeAnswers buildPartial()
Returns
TypeDescription
KnowledgeAnswers

clear()

public KnowledgeAnswers.Builder clear()
Returns
TypeDescription
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
TypeDescription
KnowledgeAnswers.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public KnowledgeAnswers.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getAnswersCount()

public int getAnswersCount()

A list of answers from Knowledge Connector.

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

Returns
TypeDescription
int

getAnswersList()

public List<KnowledgeAnswers.Answer> getAnswersList()

A list of answers from Knowledge Connector.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder>

getDefaultInstanceForType()

public KnowledgeAnswers getDefaultInstanceForType()
Returns
TypeDescription
KnowledgeAnswers

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(KnowledgeAnswers other)

public KnowledgeAnswers.Builder mergeFrom(KnowledgeAnswers other)
Parameter
NameDescription
otherKnowledgeAnswers
Returns
TypeDescription
KnowledgeAnswers.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KnowledgeAnswers.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueKnowledgeAnswers.Answer
Returns
TypeDescription
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
NameDescription
indexint
builderForValueKnowledgeAnswers.Answer.Builder
Returns
TypeDescription
KnowledgeAnswers.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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