Class DialogflowAssistAnswer.Builder (4.50.0)

public static final class DialogflowAssistAnswer.Builder extends GeneratedMessageV3.Builder<DialogflowAssistAnswer.Builder> implements DialogflowAssistAnswerOrBuilder

Represents a Dialogflow assist answer.

Protobuf type google.cloud.dialogflow.v2beta1.DialogflowAssistAnswer

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DialogflowAssistAnswer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DialogflowAssistAnswer.Builder
Overrides

build()

public DialogflowAssistAnswer build()
Returns
Type Description
DialogflowAssistAnswer

buildPartial()

public DialogflowAssistAnswer buildPartial()
Returns
Type Description
DialogflowAssistAnswer

clear()

public DialogflowAssistAnswer.Builder clear()
Returns
Type Description
DialogflowAssistAnswer.Builder
Overrides

clearAnswerRecord()

public DialogflowAssistAnswer.Builder clearAnswerRecord()

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
DialogflowAssistAnswer.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DialogflowAssistAnswer.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DialogflowAssistAnswer.Builder
Overrides

clearIntentSuggestion()

public DialogflowAssistAnswer.Builder clearIntentSuggestion()

An intent suggestion generated from conversation.

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

Returns
Type Description
DialogflowAssistAnswer.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DialogflowAssistAnswer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DialogflowAssistAnswer.Builder
Overrides

clearQueryResult()

public DialogflowAssistAnswer.Builder clearQueryResult()

Result from v2 agent.

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

Returns
Type Description
DialogflowAssistAnswer.Builder

clearResult()

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

clone()

public DialogflowAssistAnswer.Builder clone()
Returns
Type Description
DialogflowAssistAnswer.Builder
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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getIntentSuggestion()

public IntentSuggestion getIntentSuggestion()

An intent suggestion generated from conversation.

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

Returns
Type Description
IntentSuggestion

The intentSuggestion.

getIntentSuggestionBuilder()

public IntentSuggestion.Builder getIntentSuggestionBuilder()

An intent suggestion generated from conversation.

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

Returns
Type Description
IntentSuggestion.Builder

getIntentSuggestionOrBuilder()

public IntentSuggestionOrBuilder getIntentSuggestionOrBuilder()

An intent suggestion generated from conversation.

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

Returns
Type Description
IntentSuggestionOrBuilder

getQueryResult()

public QueryResult getQueryResult()

Result from v2 agent.

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

Returns
Type Description
QueryResult

The queryResult.

getQueryResultBuilder()

public QueryResult.Builder getQueryResultBuilder()

Result from v2 agent.

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

Returns
Type Description
QueryResult.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DialogflowAssistAnswer other)

public DialogflowAssistAnswer.Builder mergeFrom(DialogflowAssistAnswer other)
Parameter
Name Description
other DialogflowAssistAnswer
Returns
Type Description
DialogflowAssistAnswer.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DialogflowAssistAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DialogflowAssistAnswer.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DialogflowAssistAnswer.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DialogflowAssistAnswer.Builder
Overrides

mergeIntentSuggestion(IntentSuggestion value)

public DialogflowAssistAnswer.Builder mergeIntentSuggestion(IntentSuggestion value)

An intent suggestion generated from conversation.

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

Parameter
Name Description
value IntentSuggestion
Returns
Type Description
DialogflowAssistAnswer.Builder

mergeQueryResult(QueryResult value)

public DialogflowAssistAnswer.Builder mergeQueryResult(QueryResult value)

Result from v2 agent.

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

Parameter
Name Description
value QueryResult
Returns
Type Description
DialogflowAssistAnswer.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DialogflowAssistAnswer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DialogflowAssistAnswer.Builder
Overrides

setAnswerRecord(String value)

public DialogflowAssistAnswer.Builder setAnswerRecord(String value)

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

string answer_record = 2;

Parameter
Name Description
value String

The answerRecord to set.

Returns
Type Description
DialogflowAssistAnswer.Builder

This builder for chaining.

setAnswerRecordBytes(ByteString value)

public DialogflowAssistAnswer.Builder setAnswerRecordBytes(ByteString value)

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

string answer_record = 2;

Parameter
Name Description
value ByteString

The bytes for answerRecord to set.

Returns
Type Description
DialogflowAssistAnswer.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DialogflowAssistAnswer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DialogflowAssistAnswer.Builder
Overrides

setIntentSuggestion(IntentSuggestion value)

public DialogflowAssistAnswer.Builder setIntentSuggestion(IntentSuggestion value)

An intent suggestion generated from conversation.

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

Parameter
Name Description
value IntentSuggestion
Returns
Type Description
DialogflowAssistAnswer.Builder

setIntentSuggestion(IntentSuggestion.Builder builderForValue)

public DialogflowAssistAnswer.Builder setIntentSuggestion(IntentSuggestion.Builder builderForValue)

An intent suggestion generated from conversation.

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

Parameter
Name Description
builderForValue IntentSuggestion.Builder
Returns
Type Description
DialogflowAssistAnswer.Builder

setQueryResult(QueryResult value)

public DialogflowAssistAnswer.Builder setQueryResult(QueryResult value)

Result from v2 agent.

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

Parameter
Name Description
value QueryResult
Returns
Type Description
DialogflowAssistAnswer.Builder

setQueryResult(QueryResult.Builder builderForValue)

public DialogflowAssistAnswer.Builder setQueryResult(QueryResult.Builder builderForValue)

Result from v2 agent.

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

Parameter
Name Description
builderForValue QueryResult.Builder
Returns
Type Description
DialogflowAssistAnswer.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DialogflowAssistAnswer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DialogflowAssistAnswer.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DialogflowAssistAnswer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DialogflowAssistAnswer.Builder
Overrides