Class KnowledgeAssistAnswer (4.54.0)

public final class KnowledgeAssistAnswer extends GeneratedMessageV3 implements KnowledgeAssistAnswerOrBuilder

Represents a Knowledge Assist answer.

Protobuf type google.cloud.dialogflow.v2.KnowledgeAssistAnswer

Static Fields

ANSWER_RECORD_FIELD_NUMBER

public static final int ANSWER_RECORD_FIELD_NUMBER
Field Value
Type Description
int

SUGGESTED_QUERY_ANSWER_FIELD_NUMBER

public static final int SUGGESTED_QUERY_ANSWER_FIELD_NUMBER
Field Value
Type Description
int

SUGGESTED_QUERY_FIELD_NUMBER

public static final int SUGGESTED_QUERY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static KnowledgeAssistAnswer getDefaultInstance()
Returns
Type Description
KnowledgeAssistAnswer

getDescriptor()

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

newBuilder()

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

newBuilder(KnowledgeAssistAnswer prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAnswerRecord()

public String getAnswerRecord()

The name of the answer record. Format: projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>.

string answer_record = 3;

Returns
Type Description
String

The answerRecord.

getAnswerRecordBytes()

public ByteString getAnswerRecordBytes()

The name of the answer record. Format: projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>.

string answer_record = 3;

Returns
Type Description
ByteString

The bytes for answerRecord.

getDefaultInstanceForType()

public KnowledgeAssistAnswer getDefaultInstanceForType()
Returns
Type Description
KnowledgeAssistAnswer

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSuggestedQuery()

public KnowledgeAssistAnswer.SuggestedQuery getSuggestedQuery()

The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.

.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1;

Returns
Type Description
KnowledgeAssistAnswer.SuggestedQuery

The suggestedQuery.

getSuggestedQueryAnswer()

public KnowledgeAssistAnswer.KnowledgeAnswer getSuggestedQueryAnswer()

The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.

.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer suggested_query_answer = 2;

Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer

The suggestedQueryAnswer.

getSuggestedQueryAnswerOrBuilder()

public KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder getSuggestedQueryAnswerOrBuilder()

The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.

.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer suggested_query_answer = 2;

Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder

getSuggestedQueryOrBuilder()

public KnowledgeAssistAnswer.SuggestedQueryOrBuilder getSuggestedQueryOrBuilder()

The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.

.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1;

Returns
Type Description
KnowledgeAssistAnswer.SuggestedQueryOrBuilder

hasSuggestedQuery()

public boolean hasSuggestedQuery()

The query suggested based on the context. Suggestion is made only if it is different from the previous suggestion.

.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1;

Returns
Type Description
boolean

Whether the suggestedQuery field is set.

hasSuggestedQueryAnswer()

public boolean hasSuggestedQueryAnswer()

The answer generated for the suggested query. Whether or not an answer is generated depends on how confident we are about the generated query.

.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer suggested_query_answer = 2;

Returns
Type Description
boolean

Whether the suggestedQueryAnswer field is set.

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 KnowledgeAssistAnswer.Builder newBuilderForType()
Returns
Type Description
KnowledgeAssistAnswer.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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