Send feedback
Class KnowledgeAnswers.Builder (4.7.3)
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.7.3 keyboard_arrow_down
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]