public final class KnowledgeAnswers extends GeneratedMessageV3 implements KnowledgeAnswersOrBuilder
Represents the result of querying a Knowledge base.
Protobuf type google.cloud.dialogflow.v2beta1.KnowledgeAnswers
Static Fields
ANSWERS_FIELD_NUMBER
public static final int ANSWERS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static KnowledgeAnswers getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static KnowledgeAnswers.Builder newBuilder()
Returns
newBuilder(KnowledgeAnswers prototype)
public static KnowledgeAnswers.Builder newBuilder(KnowledgeAnswers prototype)
Parameter
Returns
public static KnowledgeAnswers parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static KnowledgeAnswers parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static KnowledgeAnswers parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAnswers parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static KnowledgeAnswers parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAnswers parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static KnowledgeAnswers parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static KnowledgeAnswers parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static KnowledgeAnswers parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static KnowledgeAnswers parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static KnowledgeAnswers parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static KnowledgeAnswers parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<KnowledgeAnswers> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
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
Name |
Description |
index |
int
|
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
Name |
Description |
index |
int
|
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
getParserForType()
public Parser<KnowledgeAnswers> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public KnowledgeAnswers.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected KnowledgeAnswers.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public KnowledgeAnswers.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions