Class KnowledgeAnswers (4.7.3)

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
TypeDescription
int

Static Methods

getDefaultInstance()

public static KnowledgeAnswers getDefaultInstance()
Returns
TypeDescription
KnowledgeAnswers

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static KnowledgeAnswers.Builder newBuilder()
Returns
TypeDescription
KnowledgeAnswers.Builder

newBuilder(KnowledgeAnswers prototype)

public static KnowledgeAnswers.Builder newBuilder(KnowledgeAnswers prototype)
Parameter
NameDescription
prototypeKnowledgeAnswers
Returns
TypeDescription
KnowledgeAnswers.Builder

parseDelimitedFrom(InputStream input)

public static KnowledgeAnswers parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
KnowledgeAnswers
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAnswers parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KnowledgeAnswers
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static KnowledgeAnswers parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
KnowledgeAnswers
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAnswers parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KnowledgeAnswers
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static KnowledgeAnswers parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
KnowledgeAnswers
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAnswers parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KnowledgeAnswers
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static KnowledgeAnswers parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
KnowledgeAnswers
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAnswers parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KnowledgeAnswers
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static KnowledgeAnswers parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
KnowledgeAnswers
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAnswers parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KnowledgeAnswers
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static KnowledgeAnswers parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
KnowledgeAnswers
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static KnowledgeAnswers parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
KnowledgeAnswers
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<KnowledgeAnswers> parser()
Returns
TypeDescription
Parser<KnowledgeAnswers>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
KnowledgeAnswers.Answer

getAnswersCount()

public int getAnswersCount()

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Returns
TypeDescription
int

getAnswersList()

public List<KnowledgeAnswers.Answer> getAnswersList()

A list of answers from Knowledge Connector.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer answers = 1;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.AnswerOrBuilder>

getDefaultInstanceForType()

public KnowledgeAnswers getDefaultInstanceForType()
Returns
TypeDescription
KnowledgeAnswers

getParserForType()

public Parser<KnowledgeAnswers> getParserForType()
Returns
TypeDescription
Parser<KnowledgeAnswers>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public KnowledgeAnswers.Builder newBuilderForType()
Returns
TypeDescription
KnowledgeAnswers.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected KnowledgeAnswers.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
KnowledgeAnswers.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public KnowledgeAnswers.Builder toBuilder()
Returns
TypeDescription
KnowledgeAnswers.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException