Class WebhookRequest.Builder (0.52.0)

public static final class WebhookRequest.Builder extends GeneratedMessageV3.Builder<WebhookRequest.Builder> implements WebhookRequestOrBuilder

The request message for a webhook call. The request is sent as a JSON object and the field names will be presented in camel cases.

You may see undocumented fields in an actual request. These fields are used internally by Dialogflow and should be ignored.

Protobuf type google.cloud.dialogflow.cx.v3beta1.WebhookRequest

Static Methods

getDescriptor()

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

Methods

addAllMessages(Iterable<? extends ResponseMessage> values)

public WebhookRequest.Builder addAllMessages(Iterable<? extends ResponseMessage> values)

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.v3beta1.ResponseMessage messages = 7;

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

addMessages(ResponseMessage value)

public WebhookRequest.Builder addMessages(ResponseMessage value)

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.v3beta1.ResponseMessage messages = 7;

Parameter
NameDescription
valueResponseMessage
Returns
TypeDescription
WebhookRequest.Builder

addMessages(ResponseMessage.Builder builderForValue)

public WebhookRequest.Builder addMessages(ResponseMessage.Builder builderForValue)

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.v3beta1.ResponseMessage messages = 7;

Parameter
NameDescription
builderForValueResponseMessage.Builder
Returns
TypeDescription
WebhookRequest.Builder

addMessages(int index, ResponseMessage value)

public WebhookRequest.Builder addMessages(int index, ResponseMessage value)

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.v3beta1.ResponseMessage messages = 7;

Parameters
NameDescription
indexint
valueResponseMessage
Returns
TypeDescription
WebhookRequest.Builder

addMessages(int index, ResponseMessage.Builder builderForValue)

public WebhookRequest.Builder addMessages(int index, ResponseMessage.Builder builderForValue)

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.v3beta1.ResponseMessage messages = 7;

Parameters
NameDescription
indexint
builderForValueResponseMessage.Builder
Returns
TypeDescription
WebhookRequest.Builder

addMessagesBuilder()

public ResponseMessage.Builder addMessagesBuilder()

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.v3beta1.ResponseMessage messages = 7;

Returns
TypeDescription
ResponseMessage.Builder

addMessagesBuilder(int index)

public ResponseMessage.Builder addMessagesBuilder(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.v3beta1.ResponseMessage messages = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WebhookRequest build()
Returns
TypeDescription
WebhookRequest

buildPartial()

public WebhookRequest buildPartial()
Returns
TypeDescription
WebhookRequest

clear()

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

clearDetectIntentResponseId()

public WebhookRequest.Builder clearDetectIntentResponseId()

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

string detect_intent_response_id = 1;

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

clearDtmfDigits()

public WebhookRequest.Builder clearDtmfDigits()

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

string dtmf_digits = 17;

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFulfillmentInfo()

public WebhookRequest.Builder clearFulfillmentInfo()

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

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6;

Returns
TypeDescription
WebhookRequest.Builder

clearIntentInfo()

public WebhookRequest.Builder clearIntentInfo()

Information about the last matched intent.

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3;

Returns
TypeDescription
WebhookRequest.Builder

clearLanguageCode()

public WebhookRequest.Builder clearLanguageCode()

The language code specified in the original request.

string language_code = 15;

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

clearMessages()

public WebhookRequest.Builder clearMessages()

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.v3beta1.ResponseMessage messages = 7;

Returns
TypeDescription
WebhookRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageInfo()

public WebhookRequest.Builder clearPageInfo()

Information about page status.

.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4;

Returns
TypeDescription
WebhookRequest.Builder

clearPayload()

public WebhookRequest.Builder clearPayload()

Custom data set in QueryParameters.payload.

.google.protobuf.Struct payload = 8;

Returns
TypeDescription
WebhookRequest.Builder

clearQuery()

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

clearSentimentAnalysisResult()

public WebhookRequest.Builder clearSentimentAnalysisResult()

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.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;

Returns
TypeDescription
WebhookRequest.Builder

clearSessionInfo()

public WebhookRequest.Builder clearSessionInfo()

Information about session status.

.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5;

Returns
TypeDescription
WebhookRequest.Builder

clearText()

public WebhookRequest.Builder clearText()

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

string text = 10;

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

clearTranscript()

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

This builder for chaining.

clearTriggerEvent()

public WebhookRequest.Builder clearTriggerEvent()

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

string trigger_event = 14;

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

clearTriggerIntent()

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public WebhookRequest getDefaultInstanceForType()
Returns
TypeDescription
WebhookRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetectIntentResponseId()

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

The detectIntentResponseId.

getDetectIntentResponseIdBytes()

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

The bytes for detectIntentResponseId.

getDtmfDigits()

public String getDtmfDigits()

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

string dtmf_digits = 17;

Returns
TypeDescription
String

The dtmfDigits.

getDtmfDigitsBytes()

public ByteString getDtmfDigitsBytes()

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

string dtmf_digits = 17;

Returns
TypeDescription
ByteString

The bytes for dtmfDigits.

getFulfillmentInfo()

public WebhookRequest.FulfillmentInfo getFulfillmentInfo()

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

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6;

Returns
TypeDescription
WebhookRequest.FulfillmentInfo

The fulfillmentInfo.

getFulfillmentInfoBuilder()

public WebhookRequest.FulfillmentInfo.Builder getFulfillmentInfoBuilder()

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

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6;

Returns
TypeDescription
WebhookRequest.FulfillmentInfo.Builder

getFulfillmentInfoOrBuilder()

public WebhookRequest.FulfillmentInfoOrBuilder getFulfillmentInfoOrBuilder()

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

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6;

Returns
TypeDescription
WebhookRequest.FulfillmentInfoOrBuilder

getIntentInfo()

public WebhookRequest.IntentInfo getIntentInfo()

Information about the last matched intent.

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3;

Returns
TypeDescription
WebhookRequest.IntentInfo

The intentInfo.

getIntentInfoBuilder()

public WebhookRequest.IntentInfo.Builder getIntentInfoBuilder()

Information about the last matched intent.

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3;

Returns
TypeDescription
WebhookRequest.IntentInfo.Builder

getIntentInfoOrBuilder()

public WebhookRequest.IntentInfoOrBuilder getIntentInfoOrBuilder()

Information about the last matched intent.

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3;

Returns
TypeDescription
WebhookRequest.IntentInfoOrBuilder

getLanguageCode()

public String getLanguageCode()

The language code specified in the original request.

string language_code = 15;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

The language code specified in the original request.

string language_code = 15;

Returns
TypeDescription
ByteString

The bytes for languageCode.

getMessages(int index)

public 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.v3beta1.ResponseMessage messages = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage

getMessagesBuilder(int index)

public ResponseMessage.Builder getMessagesBuilder(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.v3beta1.ResponseMessage messages = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.Builder

getMessagesBuilderList()

public List<ResponseMessage.Builder> getMessagesBuilderList()

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.v3beta1.ResponseMessage messages = 7;

Returns
TypeDescription
List<Builder>

getMessagesCount()

public 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.v3beta1.ResponseMessage messages = 7;

Returns
TypeDescription
int

getMessagesList()

public 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.v3beta1.ResponseMessage messages = 7;

Returns
TypeDescription
List<ResponseMessage>

getMessagesOrBuilder(int index)

public 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.v3beta1.ResponseMessage messages = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessageOrBuilder

getMessagesOrBuilderList()

public 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.v3beta1.ResponseMessage messages = 7;

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

getPageInfo()

public PageInfo getPageInfo()

Information about page status.

.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4;

Returns
TypeDescription
PageInfo

The pageInfo.

getPageInfoBuilder()

public PageInfo.Builder getPageInfoBuilder()

Information about page status.

.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4;

Returns
TypeDescription
PageInfo.Builder

getPageInfoOrBuilder()

public PageInfoOrBuilder getPageInfoOrBuilder()

Information about page status.

.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4;

Returns
TypeDescription
PageInfoOrBuilder

getPayload()

public Struct getPayload()

Custom data set in QueryParameters.payload.

.google.protobuf.Struct payload = 8;

Returns
TypeDescription
Struct

The payload.

getPayloadBuilder()

public Struct.Builder getPayloadBuilder()

Custom data set in QueryParameters.payload.

.google.protobuf.Struct payload = 8;

Returns
TypeDescription
Builder

getPayloadOrBuilder()

public StructOrBuilder getPayloadOrBuilder()

Custom data set in QueryParameters.payload.

.google.protobuf.Struct payload = 8;

Returns
TypeDescription
StructOrBuilder

getQueryCase()

public WebhookRequest.QueryCase getQueryCase()
Returns
TypeDescription
WebhookRequest.QueryCase

getSentimentAnalysisResult()

public 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.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;

Returns
TypeDescription
WebhookRequest.SentimentAnalysisResult

The sentimentAnalysisResult.

getSentimentAnalysisResultBuilder()

public WebhookRequest.SentimentAnalysisResult.Builder getSentimentAnalysisResultBuilder()

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.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;

Returns
TypeDescription
WebhookRequest.SentimentAnalysisResult.Builder

getSentimentAnalysisResultOrBuilder()

public 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.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;

Returns
TypeDescription
WebhookRequest.SentimentAnalysisResultOrBuilder

getSessionInfo()

public SessionInfo getSessionInfo()

Information about session status.

.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5;

Returns
TypeDescription
SessionInfo

The sessionInfo.

getSessionInfoBuilder()

public SessionInfo.Builder getSessionInfoBuilder()

Information about session status.

.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5;

Returns
TypeDescription
SessionInfo.Builder

getSessionInfoOrBuilder()

public SessionInfoOrBuilder getSessionInfoOrBuilder()

Information about session status.

.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5;

Returns
TypeDescription
SessionInfoOrBuilder

getText()

public String getText()

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

string text = 10;

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 = 10;

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.

hasDtmfDigits()

public boolean hasDtmfDigits()

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

string dtmf_digits = 17;

Returns
TypeDescription
boolean

Whether the dtmfDigits field is set.

hasFulfillmentInfo()

public boolean hasFulfillmentInfo()

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

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6;

Returns
TypeDescription
boolean

Whether the fulfillmentInfo field is set.

hasIntentInfo()

public boolean hasIntentInfo()

Information about the last matched intent.

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3;

Returns
TypeDescription
boolean

Whether the intentInfo field is set.

hasPageInfo()

public boolean hasPageInfo()

Information about page status.

.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4;

Returns
TypeDescription
boolean

Whether the pageInfo field is set.

hasPayload()

public boolean hasPayload()

Custom data set in QueryParameters.payload.

.google.protobuf.Struct payload = 8;

Returns
TypeDescription
boolean

Whether the payload field is set.

hasSentimentAnalysisResult()

public 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.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;

Returns
TypeDescription
boolean

Whether the sentimentAnalysisResult field is set.

hasSessionInfo()

public boolean hasSessionInfo()

Information about session status.

.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5;

Returns
TypeDescription
boolean

Whether the sessionInfo 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 = 10;

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

mergeFrom(WebhookRequest other)

public WebhookRequest.Builder mergeFrom(WebhookRequest other)
Parameter
NameDescription
otherWebhookRequest
Returns
TypeDescription
WebhookRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFulfillmentInfo(WebhookRequest.FulfillmentInfo value)

public WebhookRequest.Builder mergeFulfillmentInfo(WebhookRequest.FulfillmentInfo value)

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

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6;

Parameter
NameDescription
valueWebhookRequest.FulfillmentInfo
Returns
TypeDescription
WebhookRequest.Builder

mergeIntentInfo(WebhookRequest.IntentInfo value)

public WebhookRequest.Builder mergeIntentInfo(WebhookRequest.IntentInfo value)

Information about the last matched intent.

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3;

Parameter
NameDescription
valueWebhookRequest.IntentInfo
Returns
TypeDescription
WebhookRequest.Builder

mergePageInfo(PageInfo value)

public WebhookRequest.Builder mergePageInfo(PageInfo value)

Information about page status.

.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4;

Parameter
NameDescription
valuePageInfo
Returns
TypeDescription
WebhookRequest.Builder

mergePayload(Struct value)

public WebhookRequest.Builder mergePayload(Struct value)

Custom data set in QueryParameters.payload.

.google.protobuf.Struct payload = 8;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
WebhookRequest.Builder

mergeSentimentAnalysisResult(WebhookRequest.SentimentAnalysisResult value)

public WebhookRequest.Builder mergeSentimentAnalysisResult(WebhookRequest.SentimentAnalysisResult value)

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.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;

Parameter
NameDescription
valueWebhookRequest.SentimentAnalysisResult
Returns
TypeDescription
WebhookRequest.Builder

mergeSessionInfo(SessionInfo value)

public WebhookRequest.Builder mergeSessionInfo(SessionInfo value)

Information about session status.

.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5;

Parameter
NameDescription
valueSessionInfo
Returns
TypeDescription
WebhookRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMessages(int index)

public WebhookRequest.Builder removeMessages(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.v3beta1.ResponseMessage messages = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
WebhookRequest.Builder

setDetectIntentResponseId(String value)

public WebhookRequest.Builder setDetectIntentResponseId(String value)

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

string detect_intent_response_id = 1;

Parameter
NameDescription
valueString

The detectIntentResponseId to set.

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

setDetectIntentResponseIdBytes(ByteString value)

public WebhookRequest.Builder setDetectIntentResponseIdBytes(ByteString value)

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

string detect_intent_response_id = 1;

Parameter
NameDescription
valueByteString

The bytes for detectIntentResponseId to set.

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

setDtmfDigits(String value)

public WebhookRequest.Builder setDtmfDigits(String value)

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

string dtmf_digits = 17;

Parameter
NameDescription
valueString

The dtmfDigits to set.

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

setDtmfDigitsBytes(ByteString value)

public WebhookRequest.Builder setDtmfDigitsBytes(ByteString value)

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

string dtmf_digits = 17;

Parameter
NameDescription
valueByteString

The bytes for dtmfDigits to set.

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFulfillmentInfo(WebhookRequest.FulfillmentInfo value)

public WebhookRequest.Builder setFulfillmentInfo(WebhookRequest.FulfillmentInfo value)

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

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6;

Parameter
NameDescription
valueWebhookRequest.FulfillmentInfo
Returns
TypeDescription
WebhookRequest.Builder

setFulfillmentInfo(WebhookRequest.FulfillmentInfo.Builder builderForValue)

public WebhookRequest.Builder setFulfillmentInfo(WebhookRequest.FulfillmentInfo.Builder builderForValue)

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

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo fulfillment_info = 6;

Parameter
NameDescription
builderForValueWebhookRequest.FulfillmentInfo.Builder
Returns
TypeDescription
WebhookRequest.Builder

setIntentInfo(WebhookRequest.IntentInfo value)

public WebhookRequest.Builder setIntentInfo(WebhookRequest.IntentInfo value)

Information about the last matched intent.

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3;

Parameter
NameDescription
valueWebhookRequest.IntentInfo
Returns
TypeDescription
WebhookRequest.Builder

setIntentInfo(WebhookRequest.IntentInfo.Builder builderForValue)

public WebhookRequest.Builder setIntentInfo(WebhookRequest.IntentInfo.Builder builderForValue)

Information about the last matched intent.

.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3;

Parameter
NameDescription
builderForValueWebhookRequest.IntentInfo.Builder
Returns
TypeDescription
WebhookRequest.Builder

setLanguageCode(String value)

public WebhookRequest.Builder setLanguageCode(String value)

The language code specified in the original request.

string language_code = 15;

Parameter
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public WebhookRequest.Builder setLanguageCodeBytes(ByteString value)

The language code specified in the original request.

string language_code = 15;

Parameter
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

setMessages(int index, ResponseMessage value)

public WebhookRequest.Builder setMessages(int index, ResponseMessage value)

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.v3beta1.ResponseMessage messages = 7;

Parameters
NameDescription
indexint
valueResponseMessage
Returns
TypeDescription
WebhookRequest.Builder

setMessages(int index, ResponseMessage.Builder builderForValue)

public WebhookRequest.Builder setMessages(int index, ResponseMessage.Builder builderForValue)

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.v3beta1.ResponseMessage messages = 7;

Parameters
NameDescription
indexint
builderForValueResponseMessage.Builder
Returns
TypeDescription
WebhookRequest.Builder

setPageInfo(PageInfo value)

public WebhookRequest.Builder setPageInfo(PageInfo value)

Information about page status.

.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4;

Parameter
NameDescription
valuePageInfo
Returns
TypeDescription
WebhookRequest.Builder

setPageInfo(PageInfo.Builder builderForValue)

public WebhookRequest.Builder setPageInfo(PageInfo.Builder builderForValue)

Information about page status.

.google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4;

Parameter
NameDescription
builderForValuePageInfo.Builder
Returns
TypeDescription
WebhookRequest.Builder

setPayload(Struct value)

public WebhookRequest.Builder setPayload(Struct value)

Custom data set in QueryParameters.payload.

.google.protobuf.Struct payload = 8;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
WebhookRequest.Builder

setPayload(Struct.Builder builderForValue)

public WebhookRequest.Builder setPayload(Struct.Builder builderForValue)

Custom data set in QueryParameters.payload.

.google.protobuf.Struct payload = 8;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
WebhookRequest.Builder

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

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

setSentimentAnalysisResult(WebhookRequest.SentimentAnalysisResult value)

public WebhookRequest.Builder setSentimentAnalysisResult(WebhookRequest.SentimentAnalysisResult value)

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.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;

Parameter
NameDescription
valueWebhookRequest.SentimentAnalysisResult
Returns
TypeDescription
WebhookRequest.Builder

setSentimentAnalysisResult(WebhookRequest.SentimentAnalysisResult.Builder builderForValue)

public WebhookRequest.Builder setSentimentAnalysisResult(WebhookRequest.SentimentAnalysisResult.Builder builderForValue)

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.v3beta1.WebhookRequest.SentimentAnalysisResult sentiment_analysis_result = 9;

Parameter
NameDescription
builderForValueWebhookRequest.SentimentAnalysisResult.Builder
Returns
TypeDescription
WebhookRequest.Builder

setSessionInfo(SessionInfo value)

public WebhookRequest.Builder setSessionInfo(SessionInfo value)

Information about session status.

.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5;

Parameter
NameDescription
valueSessionInfo
Returns
TypeDescription
WebhookRequest.Builder

setSessionInfo(SessionInfo.Builder builderForValue)

public WebhookRequest.Builder setSessionInfo(SessionInfo.Builder builderForValue)

Information about session status.

.google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5;

Parameter
NameDescription
builderForValueSessionInfo.Builder
Returns
TypeDescription
WebhookRequest.Builder

setText(String value)

public WebhookRequest.Builder setText(String value)

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

string text = 10;

Parameter
NameDescription
valueString

The text to set.

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

setTextBytes(ByteString value)

public WebhookRequest.Builder setTextBytes(ByteString value)

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

string text = 10;

Parameter
NameDescription
valueByteString

The bytes for text to set.

Returns
TypeDescription
WebhookRequest.Builder

This builder for chaining.

setTranscript(String value)

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

This builder for chaining.

setTranscriptBytes(ByteString value)

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

This builder for chaining.

setTriggerEvent(String value)

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

This builder for chaining.

setTriggerEventBytes(ByteString value)

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

This builder for chaining.

setTriggerIntent(String value)

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

This builder for chaining.

setTriggerIntentBytes(ByteString value)

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

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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