Class DialogflowAssistAnswer (4.43.0)

public final class DialogflowAssistAnswer extends GeneratedMessageV3 implements DialogflowAssistAnswerOrBuilder

Represents a Dialogflow assist answer.

Protobuf type google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer

Static Fields

ANSWER_RECORD_FIELD_NUMBER

public static final int ANSWER_RECORD_FIELD_NUMBER
Field Value
Type Description
int

INTENT_SUGGESTION_FIELD_NUMBER

public static final int INTENT_SUGGESTION_FIELD_NUMBER
Field Value
Type Description
int

QUERY_RESULT_FIELD_NUMBER

public static final int QUERY_RESULT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DialogflowAssistAnswer getDefaultInstance()
Returns
Type Description
DialogflowAssistAnswer

getDescriptor()

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

newBuilder()

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

newBuilder(DialogflowAssistAnswer prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

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 answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"

string answer_record = 2;

Returns
Type Description
String

The answerRecord.

getAnswerRecordBytes()

public ByteString getAnswerRecordBytes()

The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"

string answer_record = 2;

Returns
Type Description
ByteString

The bytes for answerRecord.

getDefaultInstanceForType()

public DialogflowAssistAnswer getDefaultInstanceForType()
Returns
Type Description
DialogflowAssistAnswer

getIntentSuggestion()

public IntentSuggestion getIntentSuggestion()

An intent suggestion generated from conversation.

.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;

Returns
Type Description
IntentSuggestion

The intentSuggestion.

getIntentSuggestionOrBuilder()

public IntentSuggestionOrBuilder getIntentSuggestionOrBuilder()

An intent suggestion generated from conversation.

.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;

Returns
Type Description
IntentSuggestionOrBuilder

getParserForType()

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

getQueryResult()

public QueryResult getQueryResult()

Result from v2 agent.

.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;

Returns
Type Description
QueryResult

The queryResult.

getQueryResultOrBuilder()

public QueryResultOrBuilder getQueryResultOrBuilder()

Result from v2 agent.

.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;

Returns
Type Description
QueryResultOrBuilder

getResultCase()

public DialogflowAssistAnswer.ResultCase getResultCase()
Returns
Type Description
DialogflowAssistAnswer.ResultCase

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasIntentSuggestion()

public boolean hasIntentSuggestion()

An intent suggestion generated from conversation.

.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;

Returns
Type Description
boolean

Whether the intentSuggestion field is set.

hasQueryResult()

public boolean hasQueryResult()

Result from v2 agent.

.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;

Returns
Type Description
boolean

Whether the queryResult 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 DialogflowAssistAnswer.Builder newBuilderForType()
Returns
Type Description
DialogflowAssistAnswer.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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