public static final class QueryResult.Builder extends GeneratedMessageV3.Builder<QueryResult.Builder> implements QueryResultOrBuilder
Represents the result of conversational query or event processing.Protobuf type
google.cloud.dialogflow.v2beta1.QueryResult| Modifier and Type | Method and Description |
|---|---|
QueryResult.Builder |
addAllFulfillmentMessages(java.lang.Iterable<? extends Intent.Message> values)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
addAllOutputContexts(java.lang.Iterable<? extends Context> values)
The collection of output contexts.
|
QueryResult.Builder |
addFulfillmentMessages(Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
addFulfillmentMessages(Intent.Message value)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
addFulfillmentMessages(int index,
Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
addFulfillmentMessages(int index,
Intent.Message value)
The collection of rich messages to present to the user.
|
Intent.Message.Builder |
addFulfillmentMessagesBuilder()
The collection of rich messages to present to the user.
|
Intent.Message.Builder |
addFulfillmentMessagesBuilder(int index)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
addOutputContexts(Context.Builder builderForValue)
The collection of output contexts.
|
QueryResult.Builder |
addOutputContexts(Context value)
The collection of output contexts.
|
QueryResult.Builder |
addOutputContexts(int index,
Context.Builder builderForValue)
The collection of output contexts.
|
QueryResult.Builder |
addOutputContexts(int index,
Context value)
The collection of output contexts.
|
Context.Builder |
addOutputContextsBuilder()
The collection of output contexts.
|
Context.Builder |
addOutputContextsBuilder(int index)
The collection of output contexts.
|
QueryResult.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
QueryResult |
build() |
QueryResult |
buildPartial() |
QueryResult.Builder |
clear() |
QueryResult.Builder |
clearAction()
The action name from the matched intent.
|
QueryResult.Builder |
clearAllRequiredParamsPresent()
This field is set to:
- `false` if the matched intent has required parameters and not all of
the required parameter values have been collected.
|
QueryResult.Builder |
clearDiagnosticInfo()
The free-form diagnostic info.
|
QueryResult.Builder |
clearField(Descriptors.FieldDescriptor field) |
QueryResult.Builder |
clearFulfillmentMessages()
The collection of rich messages to present to the user.
|
QueryResult.Builder |
clearFulfillmentText()
The text to be pronounced to the user or shown on the screen.
|
QueryResult.Builder |
clearIntent()
The intent that matched the conversational query.
|
QueryResult.Builder |
clearIntentDetectionConfidence()
The intent detection confidence.
|
QueryResult.Builder |
clearLanguageCode()
The language that was triggered during intent detection.
|
QueryResult.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
QueryResult.Builder |
clearOutputContexts()
The collection of output contexts.
|
QueryResult.Builder |
clearParameters()
The collection of extracted parameters.
|
QueryResult.Builder |
clearQueryText()
The original conversational query text:
- If natural language text was provided as input, `query_text` contains
a copy of the input.
|
QueryResult.Builder |
clearSpeechRecognitionConfidence()
The Speech recognition confidence between 0.0 and 1.0.
|
QueryResult.Builder |
clearWebhookPayload()
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
QueryResult.Builder |
clearWebhookSource()
If the query was fulfilled by a webhook call, this field is set to the
value of the `source` field returned in the webhook response.
|
QueryResult.Builder |
clone() |
java.lang.String |
getAction()
The action name from the matched intent.
|
ByteString |
getActionBytes()
The action name from the matched intent.
|
boolean |
getAllRequiredParamsPresent()
This field is set to:
- `false` if the matched intent has required parameters and not all of
the required parameter values have been collected.
|
QueryResult |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Struct |
getDiagnosticInfo()
The free-form diagnostic info.
|
Struct.Builder |
getDiagnosticInfoBuilder()
The free-form diagnostic info.
|
StructOrBuilder |
getDiagnosticInfoOrBuilder()
The free-form diagnostic info.
|
Intent.Message |
getFulfillmentMessages(int index)
The collection of rich messages to present to the user.
|
Intent.Message.Builder |
getFulfillmentMessagesBuilder(int index)
The collection of rich messages to present to the user.
|
java.util.List<Intent.Message.Builder> |
getFulfillmentMessagesBuilderList()
The collection of rich messages to present to the user.
|
int |
getFulfillmentMessagesCount()
The collection of rich messages to present to the user.
|
java.util.List<Intent.Message> |
getFulfillmentMessagesList()
The collection of rich messages to present to the user.
|
Intent.MessageOrBuilder |
getFulfillmentMessagesOrBuilder(int index)
The collection of rich messages to present to the user.
|
java.util.List<? extends Intent.MessageOrBuilder> |
getFulfillmentMessagesOrBuilderList()
The collection of rich messages to present to the user.
|
java.lang.String |
getFulfillmentText()
The text to be pronounced to the user or shown on the screen.
|
ByteString |
getFulfillmentTextBytes()
The text to be pronounced to the user or shown on the screen.
|
Intent |
getIntent()
The intent that matched the conversational query.
|
Intent.Builder |
getIntentBuilder()
The intent that matched the conversational query.
|
float |
getIntentDetectionConfidence()
The intent detection confidence.
|
IntentOrBuilder |
getIntentOrBuilder()
The intent that matched the conversational query.
|
java.lang.String |
getLanguageCode()
The language that was triggered during intent detection.
|
ByteString |
getLanguageCodeBytes()
The language that was triggered during intent detection.
|
Context |
getOutputContexts(int index)
The collection of output contexts.
|
Context.Builder |
getOutputContextsBuilder(int index)
The collection of output contexts.
|
java.util.List<Context.Builder> |
getOutputContextsBuilderList()
The collection of output contexts.
|
int |
getOutputContextsCount()
The collection of output contexts.
|
java.util.List<Context> |
getOutputContextsList()
The collection of output contexts.
|
ContextOrBuilder |
getOutputContextsOrBuilder(int index)
The collection of output contexts.
|
java.util.List<? extends ContextOrBuilder> |
getOutputContextsOrBuilderList()
The collection of output contexts.
|
Struct |
getParameters()
The collection of extracted parameters.
|
Struct.Builder |
getParametersBuilder()
The collection of extracted parameters.
|
StructOrBuilder |
getParametersOrBuilder()
The collection of extracted parameters.
|
java.lang.String |
getQueryText()
The original conversational query text:
- If natural language text was provided as input, `query_text` contains
a copy of the input.
|
ByteString |
getQueryTextBytes()
The original conversational query text:
- If natural language text was provided as input, `query_text` contains
a copy of the input.
|
float |
getSpeechRecognitionConfidence()
The Speech recognition confidence between 0.0 and 1.0.
|
Struct |
getWebhookPayload()
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
Struct.Builder |
getWebhookPayloadBuilder()
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
StructOrBuilder |
getWebhookPayloadOrBuilder()
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
java.lang.String |
getWebhookSource()
If the query was fulfilled by a webhook call, this field is set to the
value of the `source` field returned in the webhook response.
|
ByteString |
getWebhookSourceBytes()
If the query was fulfilled by a webhook call, this field is set to the
value of the `source` field returned in the webhook response.
|
boolean |
hasDiagnosticInfo()
The free-form diagnostic info.
|
boolean |
hasIntent()
The intent that matched the conversational query.
|
boolean |
hasParameters()
The collection of extracted parameters.
|
boolean |
hasWebhookPayload()
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
QueryResult.Builder |
mergeDiagnosticInfo(Struct value)
The free-form diagnostic info.
|
QueryResult.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
QueryResult.Builder |
mergeFrom(Message other) |
QueryResult.Builder |
mergeFrom(QueryResult other) |
QueryResult.Builder |
mergeIntent(Intent value)
The intent that matched the conversational query.
|
QueryResult.Builder |
mergeParameters(Struct value)
The collection of extracted parameters.
|
QueryResult.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
QueryResult.Builder |
mergeWebhookPayload(Struct value)
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
QueryResult.Builder |
removeFulfillmentMessages(int index)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
removeOutputContexts(int index)
The collection of output contexts.
|
QueryResult.Builder |
setAction(java.lang.String value)
The action name from the matched intent.
|
QueryResult.Builder |
setActionBytes(ByteString value)
The action name from the matched intent.
|
QueryResult.Builder |
setAllRequiredParamsPresent(boolean value)
This field is set to:
- `false` if the matched intent has required parameters and not all of
the required parameter values have been collected.
|
QueryResult.Builder |
setDiagnosticInfo(Struct.Builder builderForValue)
The free-form diagnostic info.
|
QueryResult.Builder |
setDiagnosticInfo(Struct value)
The free-form diagnostic info.
|
QueryResult.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
QueryResult.Builder |
setFulfillmentMessages(int index,
Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
setFulfillmentMessages(int index,
Intent.Message value)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
setFulfillmentText(java.lang.String value)
The text to be pronounced to the user or shown on the screen.
|
QueryResult.Builder |
setFulfillmentTextBytes(ByteString value)
The text to be pronounced to the user or shown on the screen.
|
QueryResult.Builder |
setIntent(Intent.Builder builderForValue)
The intent that matched the conversational query.
|
QueryResult.Builder |
setIntent(Intent value)
The intent that matched the conversational query.
|
QueryResult.Builder |
setIntentDetectionConfidence(float value)
The intent detection confidence.
|
QueryResult.Builder |
setLanguageCode(java.lang.String value)
The language that was triggered during intent detection.
|
QueryResult.Builder |
setLanguageCodeBytes(ByteString value)
The language that was triggered during intent detection.
|
QueryResult.Builder |
setOutputContexts(int index,
Context.Builder builderForValue)
The collection of output contexts.
|
QueryResult.Builder |
setOutputContexts(int index,
Context value)
The collection of output contexts.
|
QueryResult.Builder |
setParameters(Struct.Builder builderForValue)
The collection of extracted parameters.
|
QueryResult.Builder |
setParameters(Struct value)
The collection of extracted parameters.
|
QueryResult.Builder |
setQueryText(java.lang.String value)
The original conversational query text:
- If natural language text was provided as input, `query_text` contains
a copy of the input.
|
QueryResult.Builder |
setQueryTextBytes(ByteString value)
The original conversational query text:
- If natural language text was provided as input, `query_text` contains
a copy of the input.
|
QueryResult.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
QueryResult.Builder |
setSpeechRecognitionConfidence(float value)
The Speech recognition confidence between 0.0 and 1.0.
|
QueryResult.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
QueryResult.Builder |
setWebhookPayload(Struct.Builder builderForValue)
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
QueryResult.Builder |
setWebhookPayload(Struct value)
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
QueryResult.Builder |
setWebhookSource(java.lang.String value)
If the query was fulfilled by a webhook call, this field is set to the
value of the `source` field returned in the webhook response.
|
QueryResult.Builder |
setWebhookSourceBytes(ByteString value)
If the query was fulfilled by a webhook call, this field is set to the
value of the `source` field returned in the webhook response.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<QueryResult.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic QueryResult build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic QueryResult buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic QueryResult.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<QueryResult.Builder>public QueryResult.Builder mergeFrom(QueryResult other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<QueryResult.Builder>java.io.IOExceptionpublic java.lang.String getQueryText()
The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input. - If natural language speech audio was provided as input, `query_text` contains the speech recognition result. If speech recognizer produced multiple alternatives, a particular one is picked. - If an event was provided as input, `query_text` is not set.
string query_text = 1;getQueryText in interface QueryResultOrBuilderpublic ByteString getQueryTextBytes()
The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input. - If natural language speech audio was provided as input, `query_text` contains the speech recognition result. If speech recognizer produced multiple alternatives, a particular one is picked. - If an event was provided as input, `query_text` is not set.
string query_text = 1;getQueryTextBytes in interface QueryResultOrBuilderpublic QueryResult.Builder setQueryText(java.lang.String value)
The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input. - If natural language speech audio was provided as input, `query_text` contains the speech recognition result. If speech recognizer produced multiple alternatives, a particular one is picked. - If an event was provided as input, `query_text` is not set.
string query_text = 1;public QueryResult.Builder clearQueryText()
The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input. - If natural language speech audio was provided as input, `query_text` contains the speech recognition result. If speech recognizer produced multiple alternatives, a particular one is picked. - If an event was provided as input, `query_text` is not set.
string query_text = 1;public QueryResult.Builder setQueryTextBytes(ByteString value)
The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input. - If natural language speech audio was provided as input, `query_text` contains the speech recognition result. If speech recognizer produced multiple alternatives, a particular one is picked. - If an event was provided as input, `query_text` is not set.
string query_text = 1;public java.lang.String getLanguageCode()
The language that was triggered during intent detection. See [Language Support](https://dialogflow.com/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;getLanguageCode in interface QueryResultOrBuilderpublic ByteString getLanguageCodeBytes()
The language that was triggered during intent detection. See [Language Support](https://dialogflow.com/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;getLanguageCodeBytes in interface QueryResultOrBuilderpublic QueryResult.Builder setLanguageCode(java.lang.String value)
The language that was triggered during intent detection. See [Language Support](https://dialogflow.com/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;public QueryResult.Builder clearLanguageCode()
The language that was triggered during intent detection. See [Language Support](https://dialogflow.com/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;public QueryResult.Builder setLanguageCodeBytes(ByteString value)
The language that was triggered during intent detection. See [Language Support](https://dialogflow.com/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;public float getSpeechRecognitionConfidence()
The Speech recognition confidence between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. The default of 0.0 is a sentinel value indicating that confidence was not set. You should not rely on this field as it isn't guaranteed to be accurate, or even set. In particular this field isn't set in Webhook calls and for StreamingDetectIntent since the streaming endpoint has separate confidence estimates per portion of the audio in StreamingRecognitionResult.
float speech_recognition_confidence = 2;getSpeechRecognitionConfidence in interface QueryResultOrBuilderpublic QueryResult.Builder setSpeechRecognitionConfidence(float value)
The Speech recognition confidence between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. The default of 0.0 is a sentinel value indicating that confidence was not set. You should not rely on this field as it isn't guaranteed to be accurate, or even set. In particular this field isn't set in Webhook calls and for StreamingDetectIntent since the streaming endpoint has separate confidence estimates per portion of the audio in StreamingRecognitionResult.
float speech_recognition_confidence = 2;public QueryResult.Builder clearSpeechRecognitionConfidence()
The Speech recognition confidence between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. The default of 0.0 is a sentinel value indicating that confidence was not set. You should not rely on this field as it isn't guaranteed to be accurate, or even set. In particular this field isn't set in Webhook calls and for StreamingDetectIntent since the streaming endpoint has separate confidence estimates per portion of the audio in StreamingRecognitionResult.
float speech_recognition_confidence = 2;public java.lang.String getAction()
The action name from the matched intent.
string action = 3;getAction in interface QueryResultOrBuilderpublic ByteString getActionBytes()
The action name from the matched intent.
string action = 3;getActionBytes in interface QueryResultOrBuilderpublic QueryResult.Builder setAction(java.lang.String value)
The action name from the matched intent.
string action = 3;public QueryResult.Builder clearAction()
The action name from the matched intent.
string action = 3;public QueryResult.Builder setActionBytes(ByteString value)
The action name from the matched intent.
string action = 3;public boolean hasParameters()
The collection of extracted parameters.
.google.protobuf.Struct parameters = 4;hasParameters in interface QueryResultOrBuilderpublic Struct getParameters()
The collection of extracted parameters.
.google.protobuf.Struct parameters = 4;getParameters in interface QueryResultOrBuilderpublic QueryResult.Builder setParameters(Struct value)
The collection of extracted parameters.
.google.protobuf.Struct parameters = 4;public QueryResult.Builder setParameters(Struct.Builder builderForValue)
The collection of extracted parameters.
.google.protobuf.Struct parameters = 4;public QueryResult.Builder mergeParameters(Struct value)
The collection of extracted parameters.
.google.protobuf.Struct parameters = 4;public QueryResult.Builder clearParameters()
The collection of extracted parameters.
.google.protobuf.Struct parameters = 4;public Struct.Builder getParametersBuilder()
The collection of extracted parameters.
.google.protobuf.Struct parameters = 4;public StructOrBuilder getParametersOrBuilder()
The collection of extracted parameters.
.google.protobuf.Struct parameters = 4;getParametersOrBuilder in interface QueryResultOrBuilderpublic boolean getAllRequiredParamsPresent()
This field is set to:
- `false` if the matched intent has required parameters and not all of
the required parameter values have been collected.
- `true` if all required parameter values have been collected, or if the
matched intent doesn't contain any required parameters.
bool all_required_params_present = 5;getAllRequiredParamsPresent in interface QueryResultOrBuilderpublic QueryResult.Builder setAllRequiredParamsPresent(boolean value)
This field is set to:
- `false` if the matched intent has required parameters and not all of
the required parameter values have been collected.
- `true` if all required parameter values have been collected, or if the
matched intent doesn't contain any required parameters.
bool all_required_params_present = 5;public QueryResult.Builder clearAllRequiredParamsPresent()
This field is set to:
- `false` if the matched intent has required parameters and not all of
the required parameter values have been collected.
- `true` if all required parameter values have been collected, or if the
matched intent doesn't contain any required parameters.
bool all_required_params_present = 5;public java.lang.String getFulfillmentText()
The text to be pronounced to the user or shown on the screen.
string fulfillment_text = 6;getFulfillmentText in interface QueryResultOrBuilderpublic ByteString getFulfillmentTextBytes()
The text to be pronounced to the user or shown on the screen.
string fulfillment_text = 6;getFulfillmentTextBytes in interface QueryResultOrBuilderpublic QueryResult.Builder setFulfillmentText(java.lang.String value)
The text to be pronounced to the user or shown on the screen.
string fulfillment_text = 6;public QueryResult.Builder clearFulfillmentText()
The text to be pronounced to the user or shown on the screen.
string fulfillment_text = 6;public QueryResult.Builder setFulfillmentTextBytes(ByteString value)
The text to be pronounced to the user or shown on the screen.
string fulfillment_text = 6;public java.util.List<Intent.Message> getFulfillmentMessagesList()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;getFulfillmentMessagesList in interface QueryResultOrBuilderpublic int getFulfillmentMessagesCount()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;getFulfillmentMessagesCount in interface QueryResultOrBuilderpublic Intent.Message getFulfillmentMessages(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;getFulfillmentMessages in interface QueryResultOrBuilderpublic QueryResult.Builder setFulfillmentMessages(int index, Intent.Message value)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;public QueryResult.Builder setFulfillmentMessages(int index, Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;public QueryResult.Builder addFulfillmentMessages(Intent.Message value)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;public QueryResult.Builder addFulfillmentMessages(int index, Intent.Message value)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;public QueryResult.Builder addFulfillmentMessages(Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;public QueryResult.Builder addFulfillmentMessages(int index, Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;public QueryResult.Builder addAllFulfillmentMessages(java.lang.Iterable<? extends Intent.Message> values)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;public QueryResult.Builder clearFulfillmentMessages()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;public QueryResult.Builder removeFulfillmentMessages(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;public Intent.Message.Builder getFulfillmentMessagesBuilder(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;public Intent.MessageOrBuilder getFulfillmentMessagesOrBuilder(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;getFulfillmentMessagesOrBuilder in interface QueryResultOrBuilderpublic java.util.List<? extends Intent.MessageOrBuilder> getFulfillmentMessagesOrBuilderList()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;getFulfillmentMessagesOrBuilderList in interface QueryResultOrBuilderpublic Intent.Message.Builder addFulfillmentMessagesBuilder()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;public Intent.Message.Builder addFulfillmentMessagesBuilder(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;public java.util.List<Intent.Message.Builder> getFulfillmentMessagesBuilderList()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;public java.lang.String getWebhookSource()
If the query was fulfilled by a webhook call, this field is set to the value of the `source` field returned in the webhook response.
string webhook_source = 8;getWebhookSource in interface QueryResultOrBuilderpublic ByteString getWebhookSourceBytes()
If the query was fulfilled by a webhook call, this field is set to the value of the `source` field returned in the webhook response.
string webhook_source = 8;getWebhookSourceBytes in interface QueryResultOrBuilderpublic QueryResult.Builder setWebhookSource(java.lang.String value)
If the query was fulfilled by a webhook call, this field is set to the value of the `source` field returned in the webhook response.
string webhook_source = 8;public QueryResult.Builder clearWebhookSource()
If the query was fulfilled by a webhook call, this field is set to the value of the `source` field returned in the webhook response.
string webhook_source = 8;public QueryResult.Builder setWebhookSourceBytes(ByteString value)
If the query was fulfilled by a webhook call, this field is set to the value of the `source` field returned in the webhook response.
string webhook_source = 8;public boolean hasWebhookPayload()
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;hasWebhookPayload in interface QueryResultOrBuilderpublic Struct getWebhookPayload()
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;getWebhookPayload in interface QueryResultOrBuilderpublic QueryResult.Builder setWebhookPayload(Struct value)
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;public QueryResult.Builder setWebhookPayload(Struct.Builder builderForValue)
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;public QueryResult.Builder mergeWebhookPayload(Struct value)
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;public QueryResult.Builder clearWebhookPayload()
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;public Struct.Builder getWebhookPayloadBuilder()
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;public StructOrBuilder getWebhookPayloadOrBuilder()
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;getWebhookPayloadOrBuilder in interface QueryResultOrBuilderpublic java.util.List<Context> getOutputContextsList()
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;getOutputContextsList in interface QueryResultOrBuilderpublic int getOutputContextsCount()
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;getOutputContextsCount in interface QueryResultOrBuilderpublic Context getOutputContexts(int index)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;getOutputContexts in interface QueryResultOrBuilderpublic QueryResult.Builder setOutputContexts(int index, Context value)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder setOutputContexts(int index, Context.Builder builderForValue)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder addOutputContexts(Context value)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder addOutputContexts(int index, Context value)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder addOutputContexts(Context.Builder builderForValue)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder addOutputContexts(int index, Context.Builder builderForValue)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder addAllOutputContexts(java.lang.Iterable<? extends Context> values)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder clearOutputContexts()
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder removeOutputContexts(int index)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public Context.Builder getOutputContextsBuilder(int index)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public ContextOrBuilder getOutputContextsOrBuilder(int index)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;getOutputContextsOrBuilder in interface QueryResultOrBuilderpublic java.util.List<? extends ContextOrBuilder> getOutputContextsOrBuilderList()
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;getOutputContextsOrBuilderList in interface QueryResultOrBuilderpublic Context.Builder addOutputContextsBuilder()
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public Context.Builder addOutputContextsBuilder(int index)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public java.util.List<Context.Builder> getOutputContextsBuilderList()
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public boolean hasIntent()
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name` and `webhook_state`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;hasIntent in interface QueryResultOrBuilderpublic Intent getIntent()
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name` and `webhook_state`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;getIntent in interface QueryResultOrBuilderpublic QueryResult.Builder setIntent(Intent value)
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name` and `webhook_state`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;public QueryResult.Builder setIntent(Intent.Builder builderForValue)
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name` and `webhook_state`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;public QueryResult.Builder mergeIntent(Intent value)
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name` and `webhook_state`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;public QueryResult.Builder clearIntent()
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name` and `webhook_state`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;public Intent.Builder getIntentBuilder()
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name` and `webhook_state`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;public IntentOrBuilder getIntentOrBuilder()
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name` and `webhook_state`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;getIntentOrBuilder in interface QueryResultOrBuilderpublic float getIntentDetectionConfidence()
The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
float intent_detection_confidence = 12;getIntentDetectionConfidence in interface QueryResultOrBuilderpublic QueryResult.Builder setIntentDetectionConfidence(float value)
The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
float intent_detection_confidence = 12;public QueryResult.Builder clearIntentDetectionConfidence()
The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
float intent_detection_confidence = 12;public boolean hasDiagnosticInfo()
The free-form diagnostic info. For example, this field could contain webhook call latency.
.google.protobuf.Struct diagnostic_info = 14;hasDiagnosticInfo in interface QueryResultOrBuilderpublic Struct getDiagnosticInfo()
The free-form diagnostic info. For example, this field could contain webhook call latency.
.google.protobuf.Struct diagnostic_info = 14;getDiagnosticInfo in interface QueryResultOrBuilderpublic QueryResult.Builder setDiagnosticInfo(Struct value)
The free-form diagnostic info. For example, this field could contain webhook call latency.
.google.protobuf.Struct diagnostic_info = 14;public QueryResult.Builder setDiagnosticInfo(Struct.Builder builderForValue)
The free-form diagnostic info. For example, this field could contain webhook call latency.
.google.protobuf.Struct diagnostic_info = 14;public QueryResult.Builder mergeDiagnosticInfo(Struct value)
The free-form diagnostic info. For example, this field could contain webhook call latency.
.google.protobuf.Struct diagnostic_info = 14;public QueryResult.Builder clearDiagnosticInfo()
The free-form diagnostic info. For example, this field could contain webhook call latency.
.google.protobuf.Struct diagnostic_info = 14;public Struct.Builder getDiagnosticInfoBuilder()
The free-form diagnostic info. For example, this field could contain webhook call latency.
.google.protobuf.Struct diagnostic_info = 14;public StructOrBuilder getDiagnosticInfoOrBuilder()
The free-form diagnostic info. For example, this field could contain webhook call latency.
.google.protobuf.Struct diagnostic_info = 14;getDiagnosticInfoOrBuilder in interface QueryResultOrBuilderpublic final QueryResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<QueryResult.Builder>public final QueryResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<QueryResult.Builder>