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(Iterable<? extends Intent.Message> values)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
addAllOutputContexts(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,
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 |
clearCancelsSlotFilling()
Indicates whether the conversational query triggers a cancellation for slot
filling.
|
QueryResult.Builder |
clearDiagnosticInfo()
Free-form diagnostic information for the associated detect intent request.
|
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 |
clearKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_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 |
clearSentimentAnalysisResult()
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
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() |
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.
|
boolean |
getCancelsSlotFilling()
Indicates whether the conversational query triggers a cancellation for slot
filling.
|
QueryResult |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
Struct |
getDiagnosticInfo()
Free-form diagnostic information for the associated detect intent request.
|
Struct.Builder |
getDiagnosticInfoBuilder()
Free-form diagnostic information for the associated detect intent request.
|
StructOrBuilder |
getDiagnosticInfoOrBuilder()
Free-form diagnostic information for the associated detect intent request.
|
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.
|
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.
|
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.
|
List<? extends Intent.MessageOrBuilder> |
getFulfillmentMessagesOrBuilderList()
The collection of rich messages to present to the user.
|
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.
|
KnowledgeAnswers |
getKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
KnowledgeAnswers.Builder |
getKnowledgeAnswersBuilder()
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
KnowledgeAnswersOrBuilder |
getKnowledgeAnswersOrBuilder()
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
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.
|
List<Context.Builder> |
getOutputContextsBuilderList()
The collection of output contexts.
|
int |
getOutputContextsCount()
The collection of output contexts.
|
List<Context> |
getOutputContextsList()
The collection of output contexts.
|
ContextOrBuilder |
getOutputContextsOrBuilder(int index)
The collection of output contexts.
|
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.
|
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.
|
SentimentAnalysisResult |
getSentimentAnalysisResult()
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
SentimentAnalysisResult.Builder |
getSentimentAnalysisResultBuilder()
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
SentimentAnalysisResultOrBuilder |
getSentimentAnalysisResultOrBuilder()
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
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.
|
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()
Free-form diagnostic information for the associated detect intent request.
|
boolean |
hasIntent()
The intent that matched the conversational query.
|
boolean |
hasKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
boolean |
hasParameters()
The collection of extracted parameters.
|
boolean |
hasSentimentAnalysisResult()
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
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)
Free-form diagnostic information for the associated detect intent request.
|
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 |
mergeKnowledgeAnswers(KnowledgeAnswers value)
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
QueryResult.Builder |
mergeParameters(Struct value)
The collection of extracted parameters.
|
QueryResult.Builder |
mergeSentimentAnalysisResult(SentimentAnalysisResult value)
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
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(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 |
setCancelsSlotFilling(boolean value)
Indicates whether the conversational query triggers a cancellation for slot
filling.
|
QueryResult.Builder |
setDiagnosticInfo(Struct.Builder builderForValue)
Free-form diagnostic information for the associated detect intent request.
|
QueryResult.Builder |
setDiagnosticInfo(Struct value)
Free-form diagnostic information for the associated detect intent request.
|
QueryResult.Builder |
setField(Descriptors.FieldDescriptor field,
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(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 |
setKnowledgeAnswers(KnowledgeAnswers.Builder builderForValue)
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
QueryResult.Builder |
setKnowledgeAnswers(KnowledgeAnswers value)
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
QueryResult.Builder |
setLanguageCode(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(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,
Object value) |
QueryResult.Builder |
setSentimentAnalysisResult(SentimentAnalysisResult.Builder builderForValue)
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
QueryResult.Builder |
setSentimentAnalysisResult(SentimentAnalysisResult value)
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
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(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, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public QueryResult build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public QueryResult buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public QueryResult.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<QueryResult.Builder>
public QueryResult.Builder mergeFrom(QueryResult other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public QueryResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<QueryResult.Builder>
IOException
public 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 automatic spell correction is enabled, `query_text` will contain the corrected user input.
string query_text = 1;
getQueryText
in interface QueryResultOrBuilder
public 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 automatic spell correction is enabled, `query_text` will contain the corrected user input.
string query_text = 1;
getQueryTextBytes
in interface QueryResultOrBuilder
public QueryResult.Builder setQueryText(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 automatic spell correction is enabled, `query_text` will contain the corrected user input.
string query_text = 1;
value
- The queryText to set.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 automatic spell correction is enabled, `query_text` will contain the corrected user input.
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 automatic spell correction is enabled, `query_text` will contain the corrected user input.
string query_text = 1;
value
- The bytes for queryText to set.public String getLanguageCode()
The language that was triggered during intent detection. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;
getLanguageCode
in interface QueryResultOrBuilder
public ByteString getLanguageCodeBytes()
The language that was triggered during intent detection. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;
getLanguageCodeBytes
in interface QueryResultOrBuilder
public QueryResult.Builder setLanguageCode(String value)
The language that was triggered during intent detection. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;
value
- The languageCode to set.public QueryResult.Builder clearLanguageCode()
The language that was triggered during intent detection. See [Language Support](https://cloud.google.com/dialogflow/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://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;
value
- The bytes for languageCode to set.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. This field is not guaranteed to be accurate or set. In particular this field isn't set 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 QueryResultOrBuilder
public 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. This field is not guaranteed to be accurate or set. In particular this field isn't set for StreamingDetectIntent since the streaming endpoint has separate confidence estimates per portion of the audio in StreamingRecognitionResult.
float speech_recognition_confidence = 2;
value
- The speechRecognitionConfidence to set.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. This field is not guaranteed to be accurate or set. In particular this field isn't set for StreamingDetectIntent since the streaming endpoint has separate confidence estimates per portion of the audio in StreamingRecognitionResult.
float speech_recognition_confidence = 2;
public String getAction()
The action name from the matched intent.
string action = 3;
getAction
in interface QueryResultOrBuilder
public ByteString getActionBytes()
The action name from the matched intent.
string action = 3;
getActionBytes
in interface QueryResultOrBuilder
public QueryResult.Builder setAction(String value)
The action name from the matched intent.
string action = 3;
value
- The action to set.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;
value
- The bytes for action to set.public boolean hasParameters()
The collection of extracted parameters. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
.google.protobuf.Struct parameters = 4;
hasParameters
in interface QueryResultOrBuilder
public Struct getParameters()
The collection of extracted parameters. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
.google.protobuf.Struct parameters = 4;
getParameters
in interface QueryResultOrBuilder
public QueryResult.Builder setParameters(Struct value)
The collection of extracted parameters. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
.google.protobuf.Struct parameters = 4;
public QueryResult.Builder setParameters(Struct.Builder builderForValue)
The collection of extracted parameters. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
.google.protobuf.Struct parameters = 4;
public QueryResult.Builder mergeParameters(Struct value)
The collection of extracted parameters. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
.google.protobuf.Struct parameters = 4;
public QueryResult.Builder clearParameters()
The collection of extracted parameters. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
.google.protobuf.Struct parameters = 4;
public Struct.Builder getParametersBuilder()
The collection of extracted parameters. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
.google.protobuf.Struct parameters = 4;
public StructOrBuilder getParametersOrBuilder()
The collection of extracted parameters. Depending on your protocol or client library language, this is a map, associative array, symbol table, dictionary, or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: - If parameter's entity type is a composite entity: map - Else: depending on parameter value type, could be one of string, number, boolean, null, list or map - MapValue value: - If parameter's entity type is a composite entity: map from composite entity property names to property values - Else: parameter value
.google.protobuf.Struct parameters = 4;
getParametersOrBuilder
in interface QueryResultOrBuilder
public 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 QueryResultOrBuilder
public 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;
value
- The allRequiredParamsPresent to set.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 boolean getCancelsSlotFilling()
Indicates whether the conversational query triggers a cancellation for slot filling. For more information, see the [cancel slot filling documentation](https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
bool cancels_slot_filling = 21;
getCancelsSlotFilling
in interface QueryResultOrBuilder
public QueryResult.Builder setCancelsSlotFilling(boolean value)
Indicates whether the conversational query triggers a cancellation for slot filling. For more information, see the [cancel slot filling documentation](https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
bool cancels_slot_filling = 21;
value
- The cancelsSlotFilling to set.public QueryResult.Builder clearCancelsSlotFilling()
Indicates whether the conversational query triggers a cancellation for slot filling. For more information, see the [cancel slot filling documentation](https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
bool cancels_slot_filling = 21;
public String getFulfillmentText()
The text to be pronounced to the user or shown on the screen. Note: This is a legacy field, `fulfillment_messages` should be preferred.
string fulfillment_text = 6;
getFulfillmentText
in interface QueryResultOrBuilder
public ByteString getFulfillmentTextBytes()
The text to be pronounced to the user or shown on the screen. Note: This is a legacy field, `fulfillment_messages` should be preferred.
string fulfillment_text = 6;
getFulfillmentTextBytes
in interface QueryResultOrBuilder
public QueryResult.Builder setFulfillmentText(String value)
The text to be pronounced to the user or shown on the screen. Note: This is a legacy field, `fulfillment_messages` should be preferred.
string fulfillment_text = 6;
value
- The fulfillmentText to set.public QueryResult.Builder clearFulfillmentText()
The text to be pronounced to the user or shown on the screen. Note: This is a legacy field, `fulfillment_messages` should be preferred.
string fulfillment_text = 6;
public QueryResult.Builder setFulfillmentTextBytes(ByteString value)
The text to be pronounced to the user or shown on the screen. Note: This is a legacy field, `fulfillment_messages` should be preferred.
string fulfillment_text = 6;
value
- The bytes for fulfillmentText to set.public 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 QueryResultOrBuilder
public 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 QueryResultOrBuilder
public 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 QueryResultOrBuilder
public 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(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 QueryResultOrBuilder
public 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 QueryResultOrBuilder
public 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 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 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 QueryResultOrBuilder
public 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 QueryResultOrBuilder
public QueryResult.Builder setWebhookSource(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;
value
- The webhookSource to set.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;
value
- The bytes for webhookSource to set.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 QueryResultOrBuilder
public 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 QueryResultOrBuilder
public 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 QueryResultOrBuilder
public 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 QueryResultOrBuilder
public 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 QueryResultOrBuilder
public 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 QueryResultOrBuilder
public 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(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 QueryResultOrBuilder
public 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 QueryResultOrBuilder
public 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 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`, `end_interaction` and `is_fallback`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;
hasIntent
in interface QueryResultOrBuilder
public 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`, `end_interaction` and `is_fallback`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;
getIntent
in interface QueryResultOrBuilder
public 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`, `end_interaction` and `is_fallback`.
.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`, `end_interaction` and `is_fallback`.
.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`, `end_interaction` and `is_fallback`.
.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`, `end_interaction` and `is_fallback`.
.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`, `end_interaction` and `is_fallback`.
.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`, `end_interaction` and `is_fallback`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;
getIntentOrBuilder
in interface QueryResultOrBuilder
public float getIntentDetectionConfidence()
The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. If there are `multiple knowledge_answers` messages, this value is set to the greatest `knowledgeAnswers.match_confidence` value in the list.
float intent_detection_confidence = 12;
getIntentDetectionConfidence
in interface QueryResultOrBuilder
public QueryResult.Builder setIntentDetectionConfidence(float value)
The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. If there are `multiple knowledge_answers` messages, this value is set to the greatest `knowledgeAnswers.match_confidence` value in the list.
float intent_detection_confidence = 12;
value
- The intentDetectionConfidence to set.public QueryResult.Builder clearIntentDetectionConfidence()
The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. If there are `multiple knowledge_answers` messages, this value is set to the greatest `knowledgeAnswers.match_confidence` value in the list.
float intent_detection_confidence = 12;
public boolean hasDiagnosticInfo()
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;
hasDiagnosticInfo
in interface QueryResultOrBuilder
public Struct getDiagnosticInfo()
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;
getDiagnosticInfo
in interface QueryResultOrBuilder
public QueryResult.Builder setDiagnosticInfo(Struct value)
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;
public QueryResult.Builder setDiagnosticInfo(Struct.Builder builderForValue)
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;
public QueryResult.Builder mergeDiagnosticInfo(Struct value)
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;
public QueryResult.Builder clearDiagnosticInfo()
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;
public Struct.Builder getDiagnosticInfoBuilder()
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;
public StructOrBuilder getDiagnosticInfoOrBuilder()
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;
getDiagnosticInfoOrBuilder
in interface QueryResultOrBuilder
public boolean hasSentimentAnalysisResult()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
hasSentimentAnalysisResult
in interface QueryResultOrBuilder
public SentimentAnalysisResult getSentimentAnalysisResult()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
getSentimentAnalysisResult
in interface QueryResultOrBuilder
public QueryResult.Builder setSentimentAnalysisResult(SentimentAnalysisResult value)
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
public QueryResult.Builder setSentimentAnalysisResult(SentimentAnalysisResult.Builder builderForValue)
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
public QueryResult.Builder mergeSentimentAnalysisResult(SentimentAnalysisResult value)
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
public QueryResult.Builder clearSentimentAnalysisResult()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
public SentimentAnalysisResult.Builder getSentimentAnalysisResultBuilder()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
public SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
getSentimentAnalysisResultOrBuilder
in interface QueryResultOrBuilder
public boolean hasKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
hasKnowledgeAnswers
in interface QueryResultOrBuilder
public KnowledgeAnswers getKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
getKnowledgeAnswers
in interface QueryResultOrBuilder
public QueryResult.Builder setKnowledgeAnswers(KnowledgeAnswers value)
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
public QueryResult.Builder setKnowledgeAnswers(KnowledgeAnswers.Builder builderForValue)
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
public QueryResult.Builder mergeKnowledgeAnswers(KnowledgeAnswers value)
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
public QueryResult.Builder clearKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
public KnowledgeAnswers.Builder getKnowledgeAnswersBuilder()
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
public KnowledgeAnswersOrBuilder getKnowledgeAnswersOrBuilder()
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
getKnowledgeAnswersOrBuilder
in interface QueryResultOrBuilder
public final QueryResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<QueryResult.Builder>
public final QueryResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<QueryResult.Builder>
Copyright © 2022 Google LLC. All rights reserved.