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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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;
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;
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;
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;
addAnswersBuilder()
public KnowledgeAnswers.Answer.Builder addAnswersBuilder()
A list of answers from Knowledge Connector.
repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public KnowledgeAnswers.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public KnowledgeAnswers build()
buildPartial()
public KnowledgeAnswers buildPartial()
clear()
public KnowledgeAnswers.Builder clear()
Overrides
clearAnswers()
public KnowledgeAnswers.Builder clearAnswers()
A list of answers from Knowledge Connector.
repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
clearField(Descriptors.FieldDescriptor field)
public KnowledgeAnswers.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public KnowledgeAnswers.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public KnowledgeAnswers.Builder clone()
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
|
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
|
getAnswersBuilderList()
public List<KnowledgeAnswers.Answer.Builder> getAnswersBuilderList()
A list of answers from Knowledge Connector.
repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;
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;
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
|
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(KnowledgeAnswers other)
public KnowledgeAnswers.Builder mergeFrom(KnowledgeAnswers other)
public KnowledgeAnswers.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public KnowledgeAnswers.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final KnowledgeAnswers.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public KnowledgeAnswers.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public KnowledgeAnswers.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final KnowledgeAnswers.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides