Interface QueryResultOrBuilder (0.52.0)

public interface QueryResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAdvancedSettings()

public abstract AdvancedSettings getAdvancedSettings()

Returns the current advanced settings including IVR settings. Even though the operations configured by these settings are performed by Dialogflow, the client may need to perform special logic at the moment. For example, if Dialogflow exports audio to Google Cloud Storage, then the client may need to wait for the resulting object to appear in the bucket before proceeding.

.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 21;

Returns
TypeDescription
AdvancedSettings

The advancedSettings.

getAdvancedSettingsOrBuilder()

public abstract AdvancedSettingsOrBuilder getAdvancedSettingsOrBuilder()

Returns the current advanced settings including IVR settings. Even though the operations configured by these settings are performed by Dialogflow, the client may need to perform special logic at the moment. For example, if Dialogflow exports audio to Google Cloud Storage, then the client may need to wait for the resulting object to appear in the bucket before proceeding.

.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 21;

Returns
TypeDescription
AdvancedSettingsOrBuilder

getAllowAnswerFeedback()

public abstract boolean getAllowAnswerFeedback()

Indicates whether the Thumbs up/Thumbs down rating controls are need to be shown for the response in the Dialogflow Messenger widget.

bool allow_answer_feedback = 32;

Returns
TypeDescription
boolean

The allowAnswerFeedback.

getCurrentFlow()

public abstract Flow getCurrentFlow()

The current Flow. Some, not all fields are filled in this message, including but not limited to name and display_name.

.google.cloud.dialogflow.cx.v3beta1.Flow current_flow = 31;

Returns
TypeDescription
Flow

The currentFlow.

getCurrentFlowOrBuilder()

public abstract FlowOrBuilder getCurrentFlowOrBuilder()

The current Flow. Some, not all fields are filled in this message, including but not limited to name and display_name.

.google.cloud.dialogflow.cx.v3beta1.Flow current_flow = 31;

Returns
TypeDescription
FlowOrBuilder

getCurrentPage()

public abstract Page getCurrentPage()

The current Page. Some, not all fields are filled in this message, including but not limited to name and display_name.

.google.cloud.dialogflow.cx.v3beta1.Page current_page = 7;

Returns
TypeDescription
Page

The currentPage.

getCurrentPageOrBuilder()

public abstract PageOrBuilder getCurrentPageOrBuilder()

The current Page. Some, not all fields are filled in this message, including but not limited to name and display_name.

.google.cloud.dialogflow.cx.v3beta1.Page current_page = 7;

Returns
TypeDescription
PageOrBuilder

getDataStoreConnectionSignals()

public abstract DataStoreConnectionSignals getDataStoreConnectionSignals()

Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query and DetectIntentRequest.populate data_store_connection_quality_signals is set to true in the request.

.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataStoreConnectionSignals

The dataStoreConnectionSignals.

getDataStoreConnectionSignalsOrBuilder()

public abstract DataStoreConnectionSignalsOrBuilder getDataStoreConnectionSignalsOrBuilder()

Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query and DetectIntentRequest.populate data_store_connection_quality_signals is set to true in the request.

.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
DataStoreConnectionSignalsOrBuilder

getDiagnosticInfo()

public abstract Struct getDiagnosticInfo()

The free-form diagnostic info. For example, this field could contain webhook call latency. The fields of this data can change without notice, so you should not write code that depends on its structure.

One of the fields is called "Alternative Matched Intents", which may aid with debugging. The following describes these intent results:

  • The list is empty if no intent was matched to end-user input.
  • Only intents that are referenced in the currently active flow are included.
  • The matched intent is included.
  • Other intents that could have matched end-user input, but did not match because they are referenced by intent routes that are out of scope, are included.
  • Other intents referenced by intent routes in scope that matched end-user input, but had a lower confidence score.

.google.protobuf.Struct diagnostic_info = 10;

Returns
TypeDescription
Struct

The diagnosticInfo.

getDiagnosticInfoOrBuilder()

public abstract StructOrBuilder getDiagnosticInfoOrBuilder()

The free-form diagnostic info. For example, this field could contain webhook call latency. The fields of this data can change without notice, so you should not write code that depends on its structure.

One of the fields is called "Alternative Matched Intents", which may aid with debugging. The following describes these intent results:

  • The list is empty if no intent was matched to end-user input.
  • Only intents that are referenced in the currently active flow are included.
  • The matched intent is included.
  • Other intents that could have matched end-user input, but did not match because they are referenced by intent routes that are out of scope, are included.
  • Other intents referenced by intent routes in scope that matched end-user input, but had a lower confidence score.

.google.protobuf.Struct diagnostic_info = 10;

Returns
TypeDescription
StructOrBuilder

getDtmf()

public abstract DtmfInput getDtmf()

If a DTMF was provided as input, this field will contain a copy of the DtmfInput.

.google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23;

Returns
TypeDescription
DtmfInput

The dtmf.

getDtmfOrBuilder()

public abstract DtmfInputOrBuilder getDtmfOrBuilder()

If a DTMF was provided as input, this field will contain a copy of the DtmfInput.

.google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23;

Returns
TypeDescription
DtmfInputOrBuilder

getGenerativeInfo()

public abstract GenerativeInfo getGenerativeInfo()

The information of a query if handled by generative agent resources.

.google.cloud.dialogflow.cx.v3beta1.GenerativeInfo generative_info = 33;

Returns
TypeDescription
GenerativeInfo

The generativeInfo.

getGenerativeInfoOrBuilder()

public abstract GenerativeInfoOrBuilder getGenerativeInfoOrBuilder()

The information of a query if handled by generative agent resources.

.google.cloud.dialogflow.cx.v3beta1.GenerativeInfo generative_info = 33;

Returns
TypeDescription
GenerativeInfoOrBuilder

getIntent() (deprecated)

public abstract Intent getIntent()

Deprecated. google.cloud.dialogflow.cx.v3beta1.QueryResult.intent is deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=1003

The Intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: name and display_name. This field is deprecated, please use QueryResult.match instead.

.google.cloud.dialogflow.cx.v3beta1.Intent intent = 8 [deprecated = true];

Returns
TypeDescription
Intent

The intent.

getIntentDetectionConfidence() (deprecated)

public abstract float getIntentDetectionConfidence()

Deprecated. google.cloud.dialogflow.cx.v3beta1.QueryResult.intent_detection_confidence is deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=1014

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. This field is deprecated, please use QueryResult.match instead.

float intent_detection_confidence = 9 [deprecated = true];

Returns
TypeDescription
float

The intentDetectionConfidence.

getIntentOrBuilder() (deprecated)

public abstract IntentOrBuilder getIntentOrBuilder()

The Intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: name and display_name. This field is deprecated, please use QueryResult.match instead.

.google.cloud.dialogflow.cx.v3beta1.Intent intent = 8 [deprecated = true];

Returns
TypeDescription
IntentOrBuilder

getLanguageCode()

public abstract String getLanguageCode()

The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes.

string language_code = 2;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public abstract ByteString getLanguageCodeBytes()

The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes.

string language_code = 2;

Returns
TypeDescription
ByteString

The bytes for languageCode.

getMatch()

public abstract Match getMatch()

Intent match result, could be an intent or an event.

.google.cloud.dialogflow.cx.v3beta1.Match match = 15;

Returns
TypeDescription
Match

The match.

getMatchOrBuilder()

public abstract MatchOrBuilder getMatchOrBuilder()

Intent match result, could be an intent or an event.

.google.cloud.dialogflow.cx.v3beta1.Match match = 15;

Returns
TypeDescription
MatchOrBuilder

getParameters()

public abstract Struct getParameters()

The collected session 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 then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map.
  • MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.

.google.protobuf.Struct parameters = 3;

Returns
TypeDescription
Struct

The parameters.

getParametersOrBuilder()

public abstract StructOrBuilder getParametersOrBuilder()

The collected session 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 then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map.
  • MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.

.google.protobuf.Struct parameters = 3;

Returns
TypeDescription
StructOrBuilder

getQueryCase()

public abstract QueryResult.QueryCase getQueryCase()
Returns
TypeDescription
QueryResult.QueryCase

getResponseMessages(int index)

public abstract ResponseMessage getResponseMessages(int index)

The list of rich messages returned to the client. Responses vary from simple text messages to more sophisticated, structured payloads used to drive complex logic.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage response_messages = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage

getResponseMessagesCount()

public abstract int getResponseMessagesCount()

The list of rich messages returned to the client. Responses vary from simple text messages to more sophisticated, structured payloads used to drive complex logic.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage response_messages = 4;

Returns
TypeDescription
int

getResponseMessagesList()

public abstract List<ResponseMessage> getResponseMessagesList()

The list of rich messages returned to the client. Responses vary from simple text messages to more sophisticated, structured payloads used to drive complex logic.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage response_messages = 4;

Returns
TypeDescription
List<ResponseMessage>

getResponseMessagesOrBuilder(int index)

public abstract ResponseMessageOrBuilder getResponseMessagesOrBuilder(int index)

The list of rich messages returned to the client. Responses vary from simple text messages to more sophisticated, structured payloads used to drive complex logic.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage response_messages = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessageOrBuilder

getResponseMessagesOrBuilderList()

public abstract List<? extends ResponseMessageOrBuilder> getResponseMessagesOrBuilderList()

The list of rich messages returned to the client. Responses vary from simple text messages to more sophisticated, structured payloads used to drive complex logic.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage response_messages = 4;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder>

getSentimentAnalysisResult()

public abstract SentimentAnalysisResult getSentimentAnalysisResult()

The sentiment analyss result, which depends on [analyze_query_text_sentiment] [google.cloud.dialogflow.cx.v3beta1.QueryParameters.analyze_query_text_sentiment], specified in the request.

.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult sentiment_analysis_result = 17;

Returns
TypeDescription
SentimentAnalysisResult

The sentimentAnalysisResult.

getSentimentAnalysisResultOrBuilder()

public abstract SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder()

The sentiment analyss result, which depends on [analyze_query_text_sentiment] [google.cloud.dialogflow.cx.v3beta1.QueryParameters.analyze_query_text_sentiment], specified in the request.

.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult sentiment_analysis_result = 17;

Returns
TypeDescription
SentimentAnalysisResultOrBuilder

getText()

public abstract String getText()

If natural language text was provided as input, this field will contain a copy of the text.

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

If natural language text was provided as input, this field will contain a copy of the text.

string text = 1;

Returns
TypeDescription
ByteString

The bytes for text.

getTranscript()

public abstract String getTranscript()

If natural language speech audio was provided as input, this field will contain the transcript for the audio.

string transcript = 12;

Returns
TypeDescription
String

The transcript.

getTranscriptBytes()

public abstract ByteString getTranscriptBytes()

If natural language speech audio was provided as input, this field will contain the transcript for the audio.

string transcript = 12;

Returns
TypeDescription
ByteString

The bytes for transcript.

getTriggerEvent()

public abstract String getTriggerEvent()

If an event was provided as input, this field will contain the name of the event.

string trigger_event = 14;

Returns
TypeDescription
String

The triggerEvent.

getTriggerEventBytes()

public abstract ByteString getTriggerEventBytes()

If an event was provided as input, this field will contain the name of the event.

string trigger_event = 14;

Returns
TypeDescription
ByteString

The bytes for triggerEvent.

getTriggerIntent()

public abstract String getTriggerIntent()

If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string trigger_intent = 11 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The triggerIntent.

getTriggerIntentBytes()

public abstract ByteString getTriggerIntentBytes()

If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string trigger_intent = 11 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for triggerIntent.

getWebhookDisplayNames(int index)

public abstract String getWebhookDisplayNames(int index)

The list of webhook display names in the order of call sequence.

repeated string webhook_display_names = 26;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The webhookDisplayNames at the given index.

getWebhookDisplayNamesBytes(int index)

public abstract ByteString getWebhookDisplayNamesBytes(int index)

The list of webhook display names in the order of call sequence.

repeated string webhook_display_names = 26;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the webhookDisplayNames at the given index.

getWebhookDisplayNamesCount()

public abstract int getWebhookDisplayNamesCount()

The list of webhook display names in the order of call sequence.

repeated string webhook_display_names = 26;

Returns
TypeDescription
int

The count of webhookDisplayNames.

getWebhookDisplayNamesList()

public abstract List<String> getWebhookDisplayNamesList()

The list of webhook display names in the order of call sequence.

repeated string webhook_display_names = 26;

Returns
TypeDescription
List<String>

A list containing the webhookDisplayNames.

getWebhookIds(int index)

public abstract String getWebhookIds(int index)

The list of webhook ids in the order of call sequence.

repeated string webhook_ids = 25;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The webhookIds at the given index.

getWebhookIdsBytes(int index)

public abstract ByteString getWebhookIdsBytes(int index)

The list of webhook ids in the order of call sequence.

repeated string webhook_ids = 25;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the webhookIds at the given index.

getWebhookIdsCount()

public abstract int getWebhookIdsCount()

The list of webhook ids in the order of call sequence.

repeated string webhook_ids = 25;

Returns
TypeDescription
int

The count of webhookIds.

getWebhookIdsList()

public abstract List<String> getWebhookIdsList()

The list of webhook ids in the order of call sequence.

repeated string webhook_ids = 25;

Returns
TypeDescription
List<String>

A list containing the webhookIds.

getWebhookLatencies(int index)

public abstract Duration getWebhookLatencies(int index)

The list of webhook latencies in the order of call sequence.

repeated .google.protobuf.Duration webhook_latencies = 27;

Parameter
NameDescription
indexint
Returns
TypeDescription
Duration

getWebhookLatenciesCount()

public abstract int getWebhookLatenciesCount()

The list of webhook latencies in the order of call sequence.

repeated .google.protobuf.Duration webhook_latencies = 27;

Returns
TypeDescription
int

getWebhookLatenciesList()

public abstract List<Duration> getWebhookLatenciesList()

The list of webhook latencies in the order of call sequence.

repeated .google.protobuf.Duration webhook_latencies = 27;

Returns
TypeDescription
List<Duration>

getWebhookLatenciesOrBuilder(int index)

public abstract DurationOrBuilder getWebhookLatenciesOrBuilder(int index)

The list of webhook latencies in the order of call sequence.

repeated .google.protobuf.Duration webhook_latencies = 27;

Parameter
NameDescription
indexint
Returns
TypeDescription
DurationOrBuilder

getWebhookLatenciesOrBuilderList()

public abstract List<? extends DurationOrBuilder> getWebhookLatenciesOrBuilderList()

The list of webhook latencies in the order of call sequence.

repeated .google.protobuf.Duration webhook_latencies = 27;

Returns
TypeDescription
List<? extends com.google.protobuf.DurationOrBuilder>

getWebhookPayloads(int index)

public abstract Struct getWebhookPayloads(int index)

The list of webhook payload in WebhookResponse.payload, in the order of call sequence. If some webhook call fails or doesn't return any payload, an empty Struct would be used instead.

repeated .google.protobuf.Struct webhook_payloads = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
Struct

getWebhookPayloadsCount()

public abstract int getWebhookPayloadsCount()

The list of webhook payload in WebhookResponse.payload, in the order of call sequence. If some webhook call fails or doesn't return any payload, an empty Struct would be used instead.

repeated .google.protobuf.Struct webhook_payloads = 6;

Returns
TypeDescription
int

getWebhookPayloadsList()

public abstract List<Struct> getWebhookPayloadsList()

The list of webhook payload in WebhookResponse.payload, in the order of call sequence. If some webhook call fails or doesn't return any payload, an empty Struct would be used instead.

repeated .google.protobuf.Struct webhook_payloads = 6;

Returns
TypeDescription
List<Struct>

getWebhookPayloadsOrBuilder(int index)

public abstract StructOrBuilder getWebhookPayloadsOrBuilder(int index)

The list of webhook payload in WebhookResponse.payload, in the order of call sequence. If some webhook call fails or doesn't return any payload, an empty Struct would be used instead.

repeated .google.protobuf.Struct webhook_payloads = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
StructOrBuilder

getWebhookPayloadsOrBuilderList()

public abstract List<? extends StructOrBuilder> getWebhookPayloadsOrBuilderList()

The list of webhook payload in WebhookResponse.payload, in the order of call sequence. If some webhook call fails or doesn't return any payload, an empty Struct would be used instead.

repeated .google.protobuf.Struct webhook_payloads = 6;

Returns
TypeDescription
List<? extends com.google.protobuf.StructOrBuilder>

getWebhookStatuses(int index)

public abstract Status getWebhookStatuses(int index)

The list of webhook call status in the order of call sequence.

repeated .google.rpc.Status webhook_statuses = 13;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.Status

getWebhookStatusesCount()

public abstract int getWebhookStatusesCount()

The list of webhook call status in the order of call sequence.

repeated .google.rpc.Status webhook_statuses = 13;

Returns
TypeDescription
int

getWebhookStatusesList()

public abstract List<Status> getWebhookStatusesList()

The list of webhook call status in the order of call sequence.

repeated .google.rpc.Status webhook_statuses = 13;

Returns
TypeDescription
List<com.google.rpc.Status>

getWebhookStatusesOrBuilder(int index)

public abstract StatusOrBuilder getWebhookStatusesOrBuilder(int index)

The list of webhook call status in the order of call sequence.

repeated .google.rpc.Status webhook_statuses = 13;

Parameter
NameDescription
indexint
Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getWebhookStatusesOrBuilderList()

public abstract List<? extends StatusOrBuilder> getWebhookStatusesOrBuilderList()

The list of webhook call status in the order of call sequence.

repeated .google.rpc.Status webhook_statuses = 13;

Returns
TypeDescription
List<? extends com.google.rpc.StatusOrBuilder>

getWebhookTags(int index)

public abstract String getWebhookTags(int index)

The list of webhook tags in the order of call sequence.

repeated string webhook_tags = 29;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The webhookTags at the given index.

getWebhookTagsBytes(int index)

public abstract ByteString getWebhookTagsBytes(int index)

The list of webhook tags in the order of call sequence.

repeated string webhook_tags = 29;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the webhookTags at the given index.

getWebhookTagsCount()

public abstract int getWebhookTagsCount()

The list of webhook tags in the order of call sequence.

repeated string webhook_tags = 29;

Returns
TypeDescription
int

The count of webhookTags.

getWebhookTagsList()

public abstract List<String> getWebhookTagsList()

The list of webhook tags in the order of call sequence.

repeated string webhook_tags = 29;

Returns
TypeDescription
List<String>

A list containing the webhookTags.

hasAdvancedSettings()

public abstract boolean hasAdvancedSettings()

Returns the current advanced settings including IVR settings. Even though the operations configured by these settings are performed by Dialogflow, the client may need to perform special logic at the moment. For example, if Dialogflow exports audio to Google Cloud Storage, then the client may need to wait for the resulting object to appear in the bucket before proceeding.

.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 21;

Returns
TypeDescription
boolean

Whether the advancedSettings field is set.

hasCurrentFlow()

public abstract boolean hasCurrentFlow()

The current Flow. Some, not all fields are filled in this message, including but not limited to name and display_name.

.google.cloud.dialogflow.cx.v3beta1.Flow current_flow = 31;

Returns
TypeDescription
boolean

Whether the currentFlow field is set.

hasCurrentPage()

public abstract boolean hasCurrentPage()

The current Page. Some, not all fields are filled in this message, including but not limited to name and display_name.

.google.cloud.dialogflow.cx.v3beta1.Page current_page = 7;

Returns
TypeDescription
boolean

Whether the currentPage field is set.

hasDataStoreConnectionSignals()

public abstract boolean hasDataStoreConnectionSignals()

Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query and DetectIntentRequest.populate data_store_connection_quality_signals is set to true in the request.

.google.cloud.dialogflow.cx.v3beta1.DataStoreConnectionSignals data_store_connection_signals = 35 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the dataStoreConnectionSignals field is set.

hasDiagnosticInfo()

public abstract boolean hasDiagnosticInfo()

The free-form diagnostic info. For example, this field could contain webhook call latency. The fields of this data can change without notice, so you should not write code that depends on its structure.

One of the fields is called "Alternative Matched Intents", which may aid with debugging. The following describes these intent results:

  • The list is empty if no intent was matched to end-user input.
  • Only intents that are referenced in the currently active flow are included.
  • The matched intent is included.
  • Other intents that could have matched end-user input, but did not match because they are referenced by intent routes that are out of scope, are included.
  • Other intents referenced by intent routes in scope that matched end-user input, but had a lower confidence score.

.google.protobuf.Struct diagnostic_info = 10;

Returns
TypeDescription
boolean

Whether the diagnosticInfo field is set.

hasDtmf()

public abstract boolean hasDtmf()

If a DTMF was provided as input, this field will contain a copy of the DtmfInput.

.google.cloud.dialogflow.cx.v3beta1.DtmfInput dtmf = 23;

Returns
TypeDescription
boolean

Whether the dtmf field is set.

hasGenerativeInfo()

public abstract boolean hasGenerativeInfo()

The information of a query if handled by generative agent resources.

.google.cloud.dialogflow.cx.v3beta1.GenerativeInfo generative_info = 33;

Returns
TypeDescription
boolean

Whether the generativeInfo field is set.

hasIntent() (deprecated)

public abstract boolean hasIntent()

Deprecated. google.cloud.dialogflow.cx.v3beta1.QueryResult.intent is deprecated. See google/cloud/dialogflow/cx/v3beta1/session.proto;l=1003

The Intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: name and display_name. This field is deprecated, please use QueryResult.match instead.

.google.cloud.dialogflow.cx.v3beta1.Intent intent = 8 [deprecated = true];

Returns
TypeDescription
boolean

Whether the intent field is set.

hasMatch()

public abstract boolean hasMatch()

Intent match result, could be an intent or an event.

.google.cloud.dialogflow.cx.v3beta1.Match match = 15;

Returns
TypeDescription
boolean

Whether the match field is set.

hasParameters()

public abstract boolean hasParameters()

The collected session 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 then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map.
  • MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.

.google.protobuf.Struct parameters = 3;

Returns
TypeDescription
boolean

Whether the parameters field is set.

hasSentimentAnalysisResult()

public abstract boolean hasSentimentAnalysisResult()

The sentiment analyss result, which depends on [analyze_query_text_sentiment] [google.cloud.dialogflow.cx.v3beta1.QueryParameters.analyze_query_text_sentiment], specified in the request.

.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult sentiment_analysis_result = 17;

Returns
TypeDescription
boolean

Whether the sentimentAnalysisResult field is set.

hasText()

public abstract boolean hasText()

If natural language text was provided as input, this field will contain a copy of the text.

string text = 1;

Returns
TypeDescription
boolean

Whether the text field is set.

hasTranscript()

public abstract boolean hasTranscript()

If natural language speech audio was provided as input, this field will contain the transcript for the audio.

string transcript = 12;

Returns
TypeDescription
boolean

Whether the transcript field is set.

hasTriggerEvent()

public abstract boolean hasTriggerEvent()

If an event was provided as input, this field will contain the name of the event.

string trigger_event = 14;

Returns
TypeDescription
boolean

Whether the triggerEvent field is set.

hasTriggerIntent()

public abstract boolean hasTriggerIntent()

If an intent was provided as input, this field will contain a copy of the intent identifier. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>.

string trigger_intent = 11 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
boolean

Whether the triggerIntent field is set.