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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DialogflowAssistAnswer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DialogflowAssistAnswer build()
buildPartial()
public DialogflowAssistAnswer buildPartial()
clear()
public DialogflowAssistAnswer.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public DialogflowAssistAnswer.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearIntentSuggestion()
public DialogflowAssistAnswer.Builder clearIntentSuggestion()
An intent suggestion generated from conversation.
.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
clearOneof(Descriptors.OneofDescriptor oneof)
public DialogflowAssistAnswer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearQueryResult()
public DialogflowAssistAnswer.Builder clearQueryResult()
Result from v2 agent.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
clearResult()
public DialogflowAssistAnswer.Builder clearResult()
clone()
public DialogflowAssistAnswer.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getIntentSuggestion()
public IntentSuggestion getIntentSuggestion()
An intent suggestion generated from conversation.
.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
getIntentSuggestionBuilder()
public IntentSuggestion.Builder getIntentSuggestionBuilder()
An intent suggestion generated from conversation.
.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
getIntentSuggestionOrBuilder()
public IntentSuggestionOrBuilder getIntentSuggestionOrBuilder()
An intent suggestion generated from conversation.
.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
getQueryResult()
public QueryResult getQueryResult()
Result from v2 agent.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
getQueryResultBuilder()
public QueryResult.Builder getQueryResultBuilder()
Result from v2 agent.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
getQueryResultOrBuilder()
public QueryResultOrBuilder getQueryResultOrBuilder()
Result from v2 agent.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
getResultCase()
public DialogflowAssistAnswer.ResultCase getResultCase()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(DialogflowAssistAnswer other)
public DialogflowAssistAnswer.Builder mergeFrom(DialogflowAssistAnswer other)
public DialogflowAssistAnswer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DialogflowAssistAnswer.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeIntentSuggestion(IntentSuggestion value)
public DialogflowAssistAnswer.Builder mergeIntentSuggestion(IntentSuggestion value)
An intent suggestion generated from conversation.
.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
mergeQueryResult(QueryResult value)
public DialogflowAssistAnswer.Builder mergeQueryResult(QueryResult value)
Result from v2 agent.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DialogflowAssistAnswer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public DialogflowAssistAnswer.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setIntentSuggestion(IntentSuggestion value)
public DialogflowAssistAnswer.Builder setIntentSuggestion(IntentSuggestion value)
An intent suggestion generated from conversation.
.google.cloud.dialogflow.v2beta1.IntentSuggestion intent_suggestion = 5;
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;
setQueryResult(QueryResult value)
public DialogflowAssistAnswer.Builder setQueryResult(QueryResult value)
Result from v2 agent.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
setQueryResult(QueryResult.Builder builderForValue)
public DialogflowAssistAnswer.Builder setQueryResult(QueryResult.Builder builderForValue)
Result from v2 agent.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DialogflowAssistAnswer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DialogflowAssistAnswer.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides