Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::WebhookRequest.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#detect_intent_response_id
def detect_intent_response_id() -> ::String
- (::String) — Always present. The unique identifier of the DetectIntentResponse that will be returned to the API caller.
#detect_intent_response_id=
def detect_intent_response_id=(value) -> ::String
- value (::String) — Always present. The unique identifier of the DetectIntentResponse that will be returned to the API caller.
- (::String) — Always present. The unique identifier of the DetectIntentResponse that will be returned to the API caller.
#dtmf_digits
def dtmf_digits() -> ::String
-
(::String) — If DTMF was provided as input,
this field will contain the DTMF digits.
Note: The following fields are mutually exclusive:
dtmf_digits
,text
,trigger_intent
,transcript
,trigger_event
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#dtmf_digits=
def dtmf_digits=(value) -> ::String
-
value (::String) — If DTMF was provided as input,
this field will contain the DTMF digits.
Note: The following fields are mutually exclusive:
dtmf_digits
,text
,trigger_intent
,transcript
,trigger_event
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — If DTMF was provided as input,
this field will contain the DTMF digits.
Note: The following fields are mutually exclusive:
dtmf_digits
,text
,trigger_intent
,transcript
,trigger_event
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#fulfillment_info
def fulfillment_info() -> ::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::FulfillmentInfo
- (::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::FulfillmentInfo) — Always present. Information about the fulfillment that triggered this webhook call.
#fulfillment_info=
def fulfillment_info=(value) -> ::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::FulfillmentInfo
- value (::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::FulfillmentInfo) — Always present. Information about the fulfillment that triggered this webhook call.
- (::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::FulfillmentInfo) — Always present. Information about the fulfillment that triggered this webhook call.
#intent_info
def intent_info() -> ::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::IntentInfo
- (::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::IntentInfo) — Information about the last matched intent.
#intent_info=
def intent_info=(value) -> ::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::IntentInfo
- value (::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::IntentInfo) — Information about the last matched intent.
- (::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::IntentInfo) — Information about the last matched intent.
#language_code
def language_code() -> ::String
- (::String) — The language code specified in the [original request][QueryInput.language_code].
#language_code=
def language_code=(value) -> ::String
- value (::String) — The language code specified in the [original request][QueryInput.language_code].
- (::String) — The language code specified in the [original request][QueryInput.language_code].
#language_info
def language_info() -> ::Google::Cloud::Dialogflow::CX::V3::LanguageInfo
- (::Google::Cloud::Dialogflow::CX::V3::LanguageInfo) — Information about the language of the request.
#language_info=
def language_info=(value) -> ::Google::Cloud::Dialogflow::CX::V3::LanguageInfo
- value (::Google::Cloud::Dialogflow::CX::V3::LanguageInfo) — Information about the language of the request.
- (::Google::Cloud::Dialogflow::CX::V3::LanguageInfo) — Information about the language of the request.
#messages
def messages() -> ::Array<::Google::Cloud::Dialogflow::CX::V3::ResponseMessage>
- (::Array<::Google::Cloud::Dialogflow::CX::V3::ResponseMessage>) — The list of rich message responses to present to the user. Webhook can choose to append or replace this list in WebhookResponse.fulfillment_response;
#messages=
def messages=(value) -> ::Array<::Google::Cloud::Dialogflow::CX::V3::ResponseMessage>
- value (::Array<::Google::Cloud::Dialogflow::CX::V3::ResponseMessage>) — The list of rich message responses to present to the user. Webhook can choose to append or replace this list in WebhookResponse.fulfillment_response;
- (::Array<::Google::Cloud::Dialogflow::CX::V3::ResponseMessage>) — The list of rich message responses to present to the user. Webhook can choose to append or replace this list in WebhookResponse.fulfillment_response;
#page_info
def page_info() -> ::Google::Cloud::Dialogflow::CX::V3::PageInfo
- (::Google::Cloud::Dialogflow::CX::V3::PageInfo) — Information about page status.
#page_info=
def page_info=(value) -> ::Google::Cloud::Dialogflow::CX::V3::PageInfo
- value (::Google::Cloud::Dialogflow::CX::V3::PageInfo) — Information about page status.
- (::Google::Cloud::Dialogflow::CX::V3::PageInfo) — Information about page status.
#payload
def payload() -> ::Google::Protobuf::Struct
- (::Google::Protobuf::Struct) — Custom data set in QueryParameters.payload.
#payload=
def payload=(value) -> ::Google::Protobuf::Struct
- value (::Google::Protobuf::Struct) — Custom data set in QueryParameters.payload.
- (::Google::Protobuf::Struct) — Custom data set in QueryParameters.payload.
#sentiment_analysis_result
def sentiment_analysis_result() -> ::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::SentimentAnalysisResult
- (::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::SentimentAnalysisResult) — The sentiment analysis result of the current user request. The field is filled when sentiment analysis is configured to be enabled for the request.
#sentiment_analysis_result=
def sentiment_analysis_result=(value) -> ::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::SentimentAnalysisResult
- value (::Google::Cloud::Dialogflow::CX::V3::WebhookRequest::SentimentAnalysisResult) — 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) — The sentiment analysis result of the current user request. The field is filled when sentiment analysis is configured to be enabled for the request.
#session_info
def session_info() -> ::Google::Cloud::Dialogflow::CX::V3::SessionInfo
- (::Google::Cloud::Dialogflow::CX::V3::SessionInfo) — Information about session status.
#session_info=
def session_info=(value) -> ::Google::Cloud::Dialogflow::CX::V3::SessionInfo
- value (::Google::Cloud::Dialogflow::CX::V3::SessionInfo) — Information about session status.
- (::Google::Cloud::Dialogflow::CX::V3::SessionInfo) — Information about session status.
#text
def text() -> ::String
-
(::String) — If natural language text was
provided as input, this field will contain a copy of the text.
Note: The following fields are mutually exclusive:
text
,trigger_intent
,transcript
,trigger_event
,dtmf_digits
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#text=
def text=(value) -> ::String
-
value (::String) — If natural language text was
provided as input, this field will contain a copy of the text.
Note: The following fields are mutually exclusive:
text
,trigger_intent
,transcript
,trigger_event
,dtmf_digits
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — If natural language text was
provided as input, this field will contain a copy of the text.
Note: The following fields are mutually exclusive:
text
,trigger_intent
,transcript
,trigger_event
,dtmf_digits
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#transcript
def transcript() -> ::String
-
(::String) — If [natural language speech
audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
this field will contain the transcript for the audio.
Note: The following fields are mutually exclusive:
transcript
,text
,trigger_intent
,trigger_event
,dtmf_digits
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#transcript=
def transcript=(value) -> ::String
-
value (::String) — If [natural language speech
audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
this field will contain the transcript for the audio.
Note: The following fields are mutually exclusive:
transcript
,text
,trigger_intent
,trigger_event
,dtmf_digits
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — If [natural language speech
audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
this field will contain the transcript for the audio.
Note: The following fields are mutually exclusive:
transcript
,text
,trigger_intent
,trigger_event
,dtmf_digits
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#trigger_event
def trigger_event() -> ::String
-
(::String) — If an event was provided as
input, this field will contain the name of the event.
Note: The following fields are mutually exclusive:
trigger_event
,text
,trigger_intent
,transcript
,dtmf_digits
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#trigger_event=
def trigger_event=(value) -> ::String
-
value (::String) — If an event was provided as
input, this field will contain the name of the event.
Note: The following fields are mutually exclusive:
trigger_event
,text
,trigger_intent
,transcript
,dtmf_digits
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — If an event was provided as
input, this field will contain the name of the event.
Note: The following fields are mutually exclusive:
trigger_event
,text
,trigger_intent
,transcript
,dtmf_digits
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#trigger_intent
def trigger_intent() -> ::String
-
(::String) — 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>
.Note: The following fields are mutually exclusive:
trigger_intent
,text
,transcript
,trigger_event
,dtmf_digits
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#trigger_intent=
def trigger_intent=(value) -> ::String
-
value (::String) — 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>
.Note: The following fields are mutually exclusive:
trigger_intent
,text
,transcript
,trigger_event
,dtmf_digits
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — 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>
.Note: The following fields are mutually exclusive:
trigger_intent
,text
,transcript
,trigger_event
,dtmf_digits
. If a field in that set is populated, all other fields in the set will automatically be cleared.