# Interface WebhookRequestOrBuilder (0.104.0)

0.104.0 (latest) 0.102.0 0.99.0 0.98.0 0.96.0 0.94.0 0.93.0 0.92.0 0.91.0 0.89.0 0.87.0 0.86.0 0.85.0 0.84.0 0.83.0 0.81.0 0.79.0 0.78.0 0.75.0 0.74.0 0.73.0 0.71.0 0.70.0 0.69.0 0.68.0 0.67.0 0.66.0 0.65.0 0.64.0 0.63.0 0.62.0 0.60.0 0.59.0 0.58.0 0.57.0 0.56.0 0.55.0 0.54.0 0.53.0 0.52.0 0.51.0 0.50.0 0.48.0 0.47.0 0.46.0 0.45.0 0.44.0 0.43.0 0.42.0 0.41.0 0.40.0 0.39.0 0.38.0 0.35.0 0.34.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.7 0.13.1 0.12.1 0.11.5

    public interface WebhookRequestOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDetectIntentResponseId()

    public abstract String getDetectIntentResponseId()

Always present. The unique identifier of the
DetectIntentResponse
that will be returned to the API caller.

`string detect_intent_response_id = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The detectIntentResponseId. |

### getDetectIntentResponseIdBytes()

    public abstract ByteString getDetectIntentResponseIdBytes()

Always present. The unique identifier of the
DetectIntentResponse
that will be returned to the API caller.

`string detect_intent_response_id = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for detectIntentResponseId. |

### getDtmfDigits()

    public abstract String getDtmfDigits()

If DTMF was provided as input,
this field will contain the DTMF digits.

`string dtmf_digits = 17;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The dtmfDigits. |

### getDtmfDigitsBytes()

    public abstract ByteString getDtmfDigitsBytes()

If DTMF was provided as input,
this field will contain the DTMF digits.

`string dtmf_digits = 17;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for dtmfDigits. |

### getFulfillmentInfo()

    public abstract WebhookRequest.FulfillmentInfo getFulfillmentInfo()

Always present. Information about the fulfillment that triggered this
webhook call.

`.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo` | The fulfillmentInfo. |

### getFulfillmentInfoOrBuilder()

    public abstract WebhookRequest.FulfillmentInfoOrBuilder getFulfillmentInfoOrBuilder()

Always present. Information about the fulfillment that triggered this
webhook call.

`.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfoOrBuilder` |   |

### getIntentInfo()

    public abstract WebhookRequest.IntentInfo getIntentInfo()

Information about the last matched intent.

`.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo` | The intentInfo. |

### getIntentInfoOrBuilder()

    public abstract WebhookRequest.IntentInfoOrBuilder getIntentInfoOrBuilder()

Information about the last matched intent.

`.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfoOrBuilder` |   |

### getLanguageCode()

    public abstract String getLanguageCode()

The language code specified in the original request.

`string language_code = 15;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The languageCode. |

### getLanguageCodeBytes()

    public abstract ByteString getLanguageCodeBytes()

The language code specified in the original request.

`string language_code = 15;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for languageCode. |

### getLanguageInfo()

    public abstract LanguageInfo getLanguageInfo()

Information about the language of the request.

`.google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.LanguageInfo` | The languageInfo. |

### getLanguageInfoOrBuilder()

    public abstract LanguageInfoOrBuilder getLanguageInfoOrBuilder()

Information about the language of the request.

`.google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.LanguageInfoOrBuilder` |   |

### getMessages(int index)

    public abstract ResponseMessage getMessages(int index)

The list of rich message responses to present to the user. Webhook can
choose to append or replace this list in
WebhookResponse.fulfillment_response;

`repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.ResponseMessage` |   |

### getMessagesCount()

    public abstract int getMessagesCount()

The list of rich message responses to present to the user. Webhook can
choose to append or replace this list in
WebhookResponse.fulfillment_response;

`repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getMessagesList()

    public abstract List<ResponseMessage> getMessagesList()

The list of rich message responses to present to the user. Webhook can
choose to append or replace this list in
WebhookResponse.fulfillment_response;

`repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.ResponseMessage>` |   |

### getMessagesOrBuilder(int index)

    public abstract ResponseMessageOrBuilder getMessagesOrBuilder(int index)

The list of rich message responses to present to the user. Webhook can
choose to append or replace this list in
WebhookResponse.fulfillment_response;

`repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder` |   |

### getMessagesOrBuilderList()

    public abstract List<? extends ResponseMessageOrBuilder> getMessagesOrBuilderList()

The list of rich message responses to present to the user. Webhook can
choose to append or replace this list in
WebhookResponse.fulfillment_response;

`repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder>` |   |

### getPageInfo()

    public abstract PageInfo getPageInfo()

Information about page status.

`.google.cloud.dialogflow.cx.v3.PageInfo page_info = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.PageInfo` | The pageInfo. |

### getPageInfoOrBuilder()

    public abstract PageInfoOrBuilder getPageInfoOrBuilder()

Information about page status.

`.google.cloud.dialogflow.cx.v3.PageInfo page_info = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder` |   |

### getPayload()

    public abstract Struct getPayload()

Custom data set in
QueryParameters.payload.

`.google.protobuf.Struct payload = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Struct.html` | The payload. |

### getPayloadOrBuilder()

    public abstract StructOrBuilder getPayloadOrBuilder()

Custom data set in
QueryParameters.payload.

`.google.protobuf.Struct payload = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.StructOrBuilder.html` |   |

### getQueryCase()

    public abstract WebhookRequest.QueryCase getQueryCase()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.WebhookRequest.QueryCase` |   |

### getSentimentAnalysisResult()

    public abstract WebhookRequest.SentimentAnalysisResult getSentimentAnalysisResult()

The sentiment analysis result of the current user request. The field is
filled when sentiment analysis is configured to be enabled for the request.

`
.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult` | The sentimentAnalysisResult. |

### getSentimentAnalysisResultOrBuilder()

    public abstract WebhookRequest.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder()

The sentiment analysis result of the current user request. The field is
filled when sentiment analysis is configured to be enabled for the request.

`
.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResultOrBuilder` |   |

### getSessionInfo()

    public abstract SessionInfo getSessionInfo()

Information about session status.

`.google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.SessionInfo` | The sessionInfo. |

### getSessionInfoOrBuilder()

    public abstract SessionInfoOrBuilder getSessionInfoOrBuilder()

Information about session status.

`.google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder` |   |

### getText()

    public abstract String getText()

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

`string text = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | 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 = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | 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** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | 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** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | 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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | 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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for triggerIntent. |

### hasDtmfDigits()

    public abstract boolean hasDtmfDigits()

If DTMF was provided as input,
this field will contain the DTMF digits.

`string dtmf_digits = 17;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the dtmfDigits field is set. |

### hasFulfillmentInfo()

    public abstract boolean hasFulfillmentInfo()

Always present. Information about the fulfillment that triggered this
webhook call.

`.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo fulfillment_info = 6;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the fulfillmentInfo field is set. |

### hasIntentInfo()

    public abstract boolean hasIntentInfo()

Information about the last matched intent.

`.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the intentInfo field is set. |

### hasLanguageInfo()

    public abstract boolean hasLanguageInfo()

Information about the language of the request.

`.google.cloud.dialogflow.cx.v3.LanguageInfo language_info = 18;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the languageInfo field is set. |

### hasPageInfo()

    public abstract boolean hasPageInfo()

Information about page status.

`.google.cloud.dialogflow.cx.v3.PageInfo page_info = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the pageInfo field is set. |

### hasPayload()

    public abstract boolean hasPayload()

Custom data set in
QueryParameters.payload.

`.google.protobuf.Struct payload = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the payload field is set. |

### hasSentimentAnalysisResult()

    public abstract boolean hasSentimentAnalysisResult()

The sentiment analysis result of the current user request. The field is
filled when sentiment analysis is configured to be enabled for the request.

`
.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the sentimentAnalysisResult field is set. |

### hasSessionInfo()

    public abstract boolean hasSessionInfo()

Information about session status.

`.google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the sessionInfo 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 = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the triggerIntent field is set. |