Class QueryResult.Builder (0.13.0)

public static final class QueryResult.Builder extends GeneratedMessageV3.Builder<QueryResult.Builder> implements QueryResultOrBuilder

Represents the result of a conversational query.

Protobuf type google.cloud.dialogflow.cx.v3.QueryResult

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllResponseMessages(Iterable<? extends ResponseMessage> values)

public QueryResult.Builder addAllResponseMessages(Iterable<? extends ResponseMessage> values)

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.v3.ResponseMessage response_messages = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3.ResponseMessage>
Returns
TypeDescription
QueryResult.Builder

addAllWebhookPayloads(Iterable<? extends Struct> values)

public QueryResult.Builder addAllWebhookPayloads(Iterable<? extends Struct> values)

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
valuesIterable<? extends com.google.protobuf.Struct>
Returns
TypeDescription
QueryResult.Builder

addAllWebhookStatuses(Iterable<? extends Status> values)

public QueryResult.Builder addAllWebhookStatuses(Iterable<? extends Status> values)

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

repeated .google.rpc.Status webhook_statuses = 13;

Parameter
NameDescription
valuesIterable<? extends com.google.rpc.Status>
Returns
TypeDescription
QueryResult.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public QueryResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QueryResult.Builder
Overrides

addResponseMessages(ResponseMessage value)

public QueryResult.Builder addResponseMessages(ResponseMessage value)

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.v3.ResponseMessage response_messages = 4;

Parameter
NameDescription
valueResponseMessage
Returns
TypeDescription
QueryResult.Builder

addResponseMessages(ResponseMessage.Builder builderForValue)

public QueryResult.Builder addResponseMessages(ResponseMessage.Builder builderForValue)

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.v3.ResponseMessage response_messages = 4;

Parameter
NameDescription
builderForValueResponseMessage.Builder
Returns
TypeDescription
QueryResult.Builder

addResponseMessages(int index, ResponseMessage value)

public QueryResult.Builder addResponseMessages(int index, ResponseMessage value)

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.v3.ResponseMessage response_messages = 4;

Parameters
NameDescription
indexint
valueResponseMessage
Returns
TypeDescription
QueryResult.Builder

addResponseMessages(int index, ResponseMessage.Builder builderForValue)

public QueryResult.Builder addResponseMessages(int index, ResponseMessage.Builder builderForValue)

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.v3.ResponseMessage response_messages = 4;

Parameters
NameDescription
indexint
builderForValueResponseMessage.Builder
Returns
TypeDescription
QueryResult.Builder

addResponseMessagesBuilder()

public ResponseMessage.Builder addResponseMessagesBuilder()

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.v3.ResponseMessage response_messages = 4;

Returns
TypeDescription
ResponseMessage.Builder

addResponseMessagesBuilder(int index)

public ResponseMessage.Builder addResponseMessagesBuilder(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.v3.ResponseMessage response_messages = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.Builder

addWebhookPayloads(Struct value)

public QueryResult.Builder addWebhookPayloads(Struct value)

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
valueStruct
Returns
TypeDescription
QueryResult.Builder

addWebhookPayloads(Struct.Builder builderForValue)

public QueryResult.Builder addWebhookPayloads(Struct.Builder builderForValue)

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
builderForValueBuilder
Returns
TypeDescription
QueryResult.Builder

addWebhookPayloads(int index, Struct value)

public QueryResult.Builder addWebhookPayloads(int index, Struct value)

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;

Parameters
NameDescription
indexint
valueStruct
Returns
TypeDescription
QueryResult.Builder

addWebhookPayloads(int index, Struct.Builder builderForValue)

public QueryResult.Builder addWebhookPayloads(int index, Struct.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
QueryResult.Builder

addWebhookPayloadsBuilder()

public Struct.Builder addWebhookPayloadsBuilder()

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
Builder

addWebhookPayloadsBuilder(int index)

public Struct.Builder addWebhookPayloadsBuilder(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
Builder

addWebhookStatuses(Status value)

public QueryResult.Builder addWebhookStatuses(Status value)

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

repeated .google.rpc.Status webhook_statuses = 13;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
QueryResult.Builder

addWebhookStatuses(Status.Builder builderForValue)

public QueryResult.Builder addWebhookStatuses(Status.Builder builderForValue)

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

repeated .google.rpc.Status webhook_statuses = 13;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
QueryResult.Builder

addWebhookStatuses(int index, Status value)

public QueryResult.Builder addWebhookStatuses(int index, Status value)

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

repeated .google.rpc.Status webhook_statuses = 13;

Parameters
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
QueryResult.Builder

addWebhookStatuses(int index, Status.Builder builderForValue)

public QueryResult.Builder addWebhookStatuses(int index, Status.Builder builderForValue)

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

repeated .google.rpc.Status webhook_statuses = 13;

Parameters
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
QueryResult.Builder

addWebhookStatusesBuilder()

public Status.Builder addWebhookStatusesBuilder()

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

repeated .google.rpc.Status webhook_statuses = 13;

Returns
TypeDescription
com.google.rpc.Status.Builder

addWebhookStatusesBuilder(int index)

public Status.Builder addWebhookStatusesBuilder(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.Builder

build()

public QueryResult build()
Returns
TypeDescription
QueryResult

buildPartial()

public QueryResult buildPartial()
Returns
TypeDescription
QueryResult

clear()

public QueryResult.Builder clear()
Returns
TypeDescription
QueryResult.Builder
Overrides

clearCurrentPage()

public QueryResult.Builder clearCurrentPage()

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.v3.Page current_page = 7;

Returns
TypeDescription
QueryResult.Builder

clearDiagnosticInfo()

public QueryResult.Builder clearDiagnosticInfo()

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

clearDtmf()

public QueryResult.Builder clearDtmf()

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

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

Returns
TypeDescription
QueryResult.Builder

clearField(Descriptors.FieldDescriptor field)

public QueryResult.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
QueryResult.Builder
Overrides

clearIntent()

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

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

Returns
TypeDescription
QueryResult.Builder

clearIntentDetectionConfidence() (deprecated)

public QueryResult.Builder clearIntentDetectionConfidence()

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

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

This builder for chaining.

clearLanguageCode()

public QueryResult.Builder clearLanguageCode()

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

This builder for chaining.

clearMatch()

public QueryResult.Builder clearMatch()

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

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

Returns
TypeDescription
QueryResult.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public QueryResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
QueryResult.Builder
Overrides

clearParameters()

public QueryResult.Builder clearParameters()

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

clearQuery()

public QueryResult.Builder clearQuery()
Returns
TypeDescription
QueryResult.Builder

clearResponseMessages()

public QueryResult.Builder clearResponseMessages()

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.v3.ResponseMessage response_messages = 4;

Returns
TypeDescription
QueryResult.Builder

clearSentimentAnalysisResult()

public QueryResult.Builder clearSentimentAnalysisResult()

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

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

Returns
TypeDescription
QueryResult.Builder

clearText()

public QueryResult.Builder clearText()

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

string text = 1;

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

clearTranscript()

public QueryResult.Builder clearTranscript()

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

string transcript = 12;

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

clearTriggerEvent()

public QueryResult.Builder clearTriggerEvent()

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

string trigger_event = 14;

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

clearTriggerIntent()

public QueryResult.Builder clearTriggerIntent()

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

This builder for chaining.

clearWebhookPayloads()

public QueryResult.Builder clearWebhookPayloads()

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

clearWebhookStatuses()

public QueryResult.Builder clearWebhookStatuses()

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

repeated .google.rpc.Status webhook_statuses = 13;

Returns
TypeDescription
QueryResult.Builder

clone()

public QueryResult.Builder clone()
Returns
TypeDescription
QueryResult.Builder
Overrides

getCurrentPage()

public 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.v3.Page current_page = 7;

Returns
TypeDescription
Page

The currentPage.

getCurrentPageBuilder()

public Page.Builder getCurrentPageBuilder()

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.v3.Page current_page = 7;

Returns
TypeDescription
Page.Builder

getCurrentPageOrBuilder()

public 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.v3.Page current_page = 7;

Returns
TypeDescription
PageOrBuilder

getDefaultInstanceForType()

public QueryResult getDefaultInstanceForType()
Returns
TypeDescription
QueryResult

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiagnosticInfo()

public 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.

getDiagnosticInfoBuilder()

public Struct.Builder getDiagnosticInfoBuilder()

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
Builder

getDiagnosticInfoOrBuilder()

public 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 DtmfInput getDtmf()

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

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

Returns
TypeDescription
DtmfInput

The dtmf.

getDtmfBuilder()

public DtmfInput.Builder getDtmfBuilder()

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

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

Returns
TypeDescription
DtmfInput.Builder

getDtmfOrBuilder()

public DtmfInputOrBuilder getDtmfOrBuilder()

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

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

Returns
TypeDescription
DtmfInputOrBuilder

getIntent() (deprecated)

public Intent getIntent()

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

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.v3.Intent intent = 8 [deprecated = true];

Returns
TypeDescription
Intent

The intent.

getIntentBuilder()

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

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

Returns
TypeDescription
Intent.Builder

getIntentDetectionConfidence() (deprecated)

public float getIntentDetectionConfidence()

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

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()

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

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

Returns
TypeDescription
IntentOrBuilder

getLanguageCode()

public 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 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 Match getMatch()

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

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

Returns
TypeDescription
Match

The match.

getMatchBuilder()

public Match.Builder getMatchBuilder()

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

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

Returns
TypeDescription
Match.Builder

getMatchOrBuilder()

public MatchOrBuilder getMatchOrBuilder()

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

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

Returns
TypeDescription
MatchOrBuilder

getParameters()

public 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.

getParametersBuilder()

public Struct.Builder getParametersBuilder()

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
Builder

getParametersOrBuilder()

public 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 QueryResult.QueryCase getQueryCase()
Returns
TypeDescription
QueryResult.QueryCase

getResponseMessages(int index)

public 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.v3.ResponseMessage response_messages = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage

getResponseMessagesBuilder(int index)

public ResponseMessage.Builder getResponseMessagesBuilder(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.v3.ResponseMessage response_messages = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.Builder

getResponseMessagesBuilderList()

public List<ResponseMessage.Builder> getResponseMessagesBuilderList()

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.v3.ResponseMessage response_messages = 4;

Returns
TypeDescription
List<Builder>

getResponseMessagesCount()

public 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.v3.ResponseMessage response_messages = 4;

Returns
TypeDescription
int

getResponseMessagesList()

public 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.v3.ResponseMessage response_messages = 4;

Returns
TypeDescription
List<ResponseMessage>

getResponseMessagesOrBuilder(int index)

public 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.v3.ResponseMessage response_messages = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessageOrBuilder

getResponseMessagesOrBuilderList()

public 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.v3.ResponseMessage response_messages = 4;

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

getSentimentAnalysisResult()

public SentimentAnalysisResult getSentimentAnalysisResult()

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

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

Returns
TypeDescription
SentimentAnalysisResult

The sentimentAnalysisResult.

getSentimentAnalysisResultBuilder()

public SentimentAnalysisResult.Builder getSentimentAnalysisResultBuilder()

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

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

Returns
TypeDescription
SentimentAnalysisResult.Builder

getSentimentAnalysisResultOrBuilder()

public SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder()

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

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

Returns
TypeDescription
SentimentAnalysisResultOrBuilder

getText()

public 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 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 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 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 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 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 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 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.

getWebhookPayloads(int index)

public 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

getWebhookPayloadsBuilder(int index)

public Struct.Builder getWebhookPayloadsBuilder(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
Builder

getWebhookPayloadsBuilderList()

public List<Struct.Builder> getWebhookPayloadsBuilderList()

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

getWebhookPayloadsCount()

public 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 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 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 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 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

getWebhookStatusesBuilder(int index)

public Status.Builder getWebhookStatusesBuilder(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.Builder

getWebhookStatusesBuilderList()

public List<Status.Builder> getWebhookStatusesBuilderList()

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

getWebhookStatusesCount()

public 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 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 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 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>

hasCurrentPage()

public 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.v3.Page current_page = 7;

Returns
TypeDescription
boolean

Whether the currentPage field is set.

hasDiagnosticInfo()

public 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 boolean hasDtmf()

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

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

Returns
TypeDescription
boolean

Whether the dtmf field is set.

hasIntent() (deprecated)

public boolean hasIntent()

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

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.v3.Intent intent = 8 [deprecated = true];

Returns
TypeDescription
boolean

Whether the intent field is set.

hasMatch()

public boolean hasMatch()

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

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

Returns
TypeDescription
boolean

Whether the match field is set.

hasParameters()

public 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 boolean hasSentimentAnalysisResult()

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

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

Returns
TypeDescription
boolean

Whether the sentimentAnalysisResult field is set.

hasText()

public 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 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 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCurrentPage(Page value)

public QueryResult.Builder mergeCurrentPage(Page value)

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.v3.Page current_page = 7;

Parameter
NameDescription
valuePage
Returns
TypeDescription
QueryResult.Builder

mergeDiagnosticInfo(Struct value)

public QueryResult.Builder mergeDiagnosticInfo(Struct value)

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;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
QueryResult.Builder

mergeDtmf(DtmfInput value)

public QueryResult.Builder mergeDtmf(DtmfInput value)

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

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

Parameter
NameDescription
valueDtmfInput
Returns
TypeDescription
QueryResult.Builder

mergeFrom(QueryResult other)

public QueryResult.Builder mergeFrom(QueryResult other)
Parameter
NameDescription
otherQueryResult
Returns
TypeDescription
QueryResult.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public QueryResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryResult.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public QueryResult.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
QueryResult.Builder
Overrides

mergeIntent(Intent value)

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

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

Parameter
NameDescription
valueIntent
Returns
TypeDescription
QueryResult.Builder

mergeMatch(Match value)

public QueryResult.Builder mergeMatch(Match value)

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

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

Parameter
NameDescription
valueMatch
Returns
TypeDescription
QueryResult.Builder

mergeParameters(Struct value)

public QueryResult.Builder mergeParameters(Struct value)

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;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
QueryResult.Builder

mergeSentimentAnalysisResult(SentimentAnalysisResult value)

public QueryResult.Builder mergeSentimentAnalysisResult(SentimentAnalysisResult value)

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

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

Parameter
NameDescription
valueSentimentAnalysisResult
Returns
TypeDescription
QueryResult.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QueryResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueryResult.Builder
Overrides

removeResponseMessages(int index)

public QueryResult.Builder removeResponseMessages(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.v3.ResponseMessage response_messages = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
QueryResult.Builder

removeWebhookPayloads(int index)

public QueryResult.Builder removeWebhookPayloads(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
QueryResult.Builder

removeWebhookStatuses(int index)

public QueryResult.Builder removeWebhookStatuses(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
QueryResult.Builder

setCurrentPage(Page value)

public QueryResult.Builder setCurrentPage(Page value)

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.v3.Page current_page = 7;

Parameter
NameDescription
valuePage
Returns
TypeDescription
QueryResult.Builder

setCurrentPage(Page.Builder builderForValue)

public QueryResult.Builder setCurrentPage(Page.Builder builderForValue)

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.v3.Page current_page = 7;

Parameter
NameDescription
builderForValuePage.Builder
Returns
TypeDescription
QueryResult.Builder

setDiagnosticInfo(Struct value)

public QueryResult.Builder setDiagnosticInfo(Struct value)

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;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
QueryResult.Builder

setDiagnosticInfo(Struct.Builder builderForValue)

public QueryResult.Builder setDiagnosticInfo(Struct.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
QueryResult.Builder

setDtmf(DtmfInput value)

public QueryResult.Builder setDtmf(DtmfInput value)

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

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

Parameter
NameDescription
valueDtmfInput
Returns
TypeDescription
QueryResult.Builder

setDtmf(DtmfInput.Builder builderForValue)

public QueryResult.Builder setDtmf(DtmfInput.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueDtmfInput.Builder
Returns
TypeDescription
QueryResult.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public QueryResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
QueryResult.Builder
Overrides

setIntent(Intent value)

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

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

Parameter
NameDescription
valueIntent
Returns
TypeDescription
QueryResult.Builder

setIntent(Intent.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueIntent.Builder
Returns
TypeDescription
QueryResult.Builder

setIntentDetectionConfidence(float value) (deprecated)

public QueryResult.Builder setIntentDetectionConfidence(float value)

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

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];

Parameter
NameDescription
valuefloat

The intentDetectionConfidence to set.

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

setLanguageCode(String value)

public QueryResult.Builder setLanguageCode(String value)

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

string language_code = 2;

Parameter
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public QueryResult.Builder setLanguageCodeBytes(ByteString value)

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

string language_code = 2;

Parameter
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

setMatch(Match value)

public QueryResult.Builder setMatch(Match value)

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

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

Parameter
NameDescription
valueMatch
Returns
TypeDescription
QueryResult.Builder

setMatch(Match.Builder builderForValue)

public QueryResult.Builder setMatch(Match.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueMatch.Builder
Returns
TypeDescription
QueryResult.Builder

setParameters(Struct value)

public QueryResult.Builder setParameters(Struct value)

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;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
QueryResult.Builder

setParameters(Struct.Builder builderForValue)

public QueryResult.Builder setParameters(Struct.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
QueryResult.Builder

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

public QueryResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
QueryResult.Builder
Overrides

setResponseMessages(int index, ResponseMessage value)

public QueryResult.Builder setResponseMessages(int index, ResponseMessage value)

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.v3.ResponseMessage response_messages = 4;

Parameters
NameDescription
indexint
valueResponseMessage
Returns
TypeDescription
QueryResult.Builder

setResponseMessages(int index, ResponseMessage.Builder builderForValue)

public QueryResult.Builder setResponseMessages(int index, ResponseMessage.Builder builderForValue)

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.v3.ResponseMessage response_messages = 4;

Parameters
NameDescription
indexint
builderForValueResponseMessage.Builder
Returns
TypeDescription
QueryResult.Builder

setSentimentAnalysisResult(SentimentAnalysisResult value)

public QueryResult.Builder setSentimentAnalysisResult(SentimentAnalysisResult value)

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

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

Parameter
NameDescription
valueSentimentAnalysisResult
Returns
TypeDescription
QueryResult.Builder

setSentimentAnalysisResult(SentimentAnalysisResult.Builder builderForValue)

public QueryResult.Builder setSentimentAnalysisResult(SentimentAnalysisResult.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueSentimentAnalysisResult.Builder
Returns
TypeDescription
QueryResult.Builder

setText(String value)

public QueryResult.Builder setText(String value)

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

string text = 1;

Parameter
NameDescription
valueString

The text to set.

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

setTextBytes(ByteString value)

public QueryResult.Builder setTextBytes(ByteString value)

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

string text = 1;

Parameter
NameDescription
valueByteString

The bytes for text to set.

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

setTranscript(String value)

public QueryResult.Builder setTranscript(String value)

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

string transcript = 12;

Parameter
NameDescription
valueString

The transcript to set.

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

setTranscriptBytes(ByteString value)

public QueryResult.Builder setTranscriptBytes(ByteString value)

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

string transcript = 12;

Parameter
NameDescription
valueByteString

The bytes for transcript to set.

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

setTriggerEvent(String value)

public QueryResult.Builder setTriggerEvent(String value)

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

string trigger_event = 14;

Parameter
NameDescription
valueString

The triggerEvent to set.

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

setTriggerEventBytes(ByteString value)

public QueryResult.Builder setTriggerEventBytes(ByteString value)

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

string trigger_event = 14;

Parameter
NameDescription
valueByteString

The bytes for triggerEvent to set.

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

setTriggerIntent(String value)

public QueryResult.Builder setTriggerIntent(String value)

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) = { ... }

Parameter
NameDescription
valueString

The triggerIntent to set.

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

setTriggerIntentBytes(ByteString value)

public QueryResult.Builder setTriggerIntentBytes(ByteString value)

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) = { ... }

Parameter
NameDescription
valueByteString

The bytes for triggerIntent to set.

Returns
TypeDescription
QueryResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final QueryResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
QueryResult.Builder
Overrides

setWebhookPayloads(int index, Struct value)

public QueryResult.Builder setWebhookPayloads(int index, Struct value)

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;

Parameters
NameDescription
indexint
valueStruct
Returns
TypeDescription
QueryResult.Builder

setWebhookPayloads(int index, Struct.Builder builderForValue)

public QueryResult.Builder setWebhookPayloads(int index, Struct.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueBuilder
Returns
TypeDescription
QueryResult.Builder

setWebhookStatuses(int index, Status value)

public QueryResult.Builder setWebhookStatuses(int index, Status value)

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

repeated .google.rpc.Status webhook_statuses = 13;

Parameters
NameDescription
indexint
valuecom.google.rpc.Status
Returns
TypeDescription
QueryResult.Builder

setWebhookStatuses(int index, Status.Builder builderForValue)

public QueryResult.Builder setWebhookStatuses(int index, Status.Builder builderForValue)

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

repeated .google.rpc.Status webhook_statuses = 13;

Parameters
NameDescription
indexint
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
QueryResult.Builder