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
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
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
Returns
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
Returns
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
Returns
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
Returns
addAnswersBuilder()
public KnowledgeAnswers.Answer.Builder addAnswersBuilder()
A list of answers from Knowledge Connector.
repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public KnowledgeAnswers.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public KnowledgeAnswers build()
Returns
buildPartial()
public KnowledgeAnswers buildPartial()
Returns
clear()
public KnowledgeAnswers.Builder clear()
Returns
Overrides
clearAnswers()
public KnowledgeAnswers.Builder clearAnswers()
A list of answers from Knowledge Connector.
repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public KnowledgeAnswers.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public KnowledgeAnswers.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public KnowledgeAnswers.Builder clone()
Returns
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
Returns
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
Returns
getAnswersBuilderList()
public List<KnowledgeAnswers.Answer.Builder> getAnswersBuilderList()
A list of answers from Knowledge Connector.
repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
Returns
getAnswersCount()
public int getAnswersCount()
A list of answers from Knowledge Connector.
repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
Returns
getAnswersList()
public List<KnowledgeAnswers.Answer> getAnswersList()
A list of answers from Knowledge Connector.
repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
Returns
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
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(KnowledgeAnswers other)
public KnowledgeAnswers.Builder mergeFrom(KnowledgeAnswers other)
Parameter
Returns
public KnowledgeAnswers.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public KnowledgeAnswers.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final KnowledgeAnswers.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public KnowledgeAnswers.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public KnowledgeAnswers.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final KnowledgeAnswers.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides