Class KnowledgeAnswers (4.37.0)

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
Type Description
int

Static Methods

getDefaultInstance()

public static KnowledgeAnswers getDefaultInstance()
Returns
Type Description
KnowledgeAnswers

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static KnowledgeAnswers.Builder newBuilder()
Returns
Type Description
KnowledgeAnswers.Builder

newBuilder(KnowledgeAnswers prototype)

public static KnowledgeAnswers.Builder newBuilder(KnowledgeAnswers prototype)
Parameter
Name Description
prototype KnowledgeAnswers
Returns
Type Description
KnowledgeAnswers.Builder

parseDelimitedFrom(InputStream input)

public static KnowledgeAnswers parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
KnowledgeAnswers
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAnswers parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAnswers
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static KnowledgeAnswers parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
KnowledgeAnswers
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAnswers parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAnswers
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static KnowledgeAnswers parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
KnowledgeAnswers
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAnswers parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAnswers
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static KnowledgeAnswers parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
KnowledgeAnswers
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAnswers parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAnswers
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static KnowledgeAnswers parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
KnowledgeAnswers
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAnswers parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAnswers
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static KnowledgeAnswers parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
KnowledgeAnswers
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAnswers parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KnowledgeAnswers
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<KnowledgeAnswers> parser()
Returns
Type Description
Parser<KnowledgeAnswers>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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
Type Description
KnowledgeAnswers.Answer

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;

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder>

getDefaultInstanceForType()

public KnowledgeAnswers getDefaultInstanceForType()
Returns
Type Description
KnowledgeAnswers

getParserForType()

public Parser<KnowledgeAnswers> getParserForType()
Returns
Type Description
Parser<KnowledgeAnswers>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public KnowledgeAnswers.Builder newBuilderForType()
Returns
Type Description
KnowledgeAnswers.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected KnowledgeAnswers.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
KnowledgeAnswers.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public KnowledgeAnswers.Builder toBuilder()
Returns
Type Description
KnowledgeAnswers.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException