Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::OriginalDetectIntentRequest (v0.29.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::OriginalDetectIntentRequest.

Represents the contents of the original request that was passed to the [Streaming]DetectIntent call.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#payload

def payload() -> ::Google::Protobuf::Struct
Returns
  • (::Google::Protobuf::Struct) — Optional. This field is set to the value of the QueryParameters.payload field passed in the request. Some integrations that query a Dialogflow agent may provide additional information in the payload.

    In particular, for the Dialogflow Phone Gateway integration, this field has the form:

    {
     "telephony": {
       "caller_id": "+18558363987"
     }
    }

    Note: The caller ID field (caller_id) will be redacted for Trial Edition agents and populated with the caller ID in E.164 format for Essentials Edition agents.

#payload=

def payload=(value) -> ::Google::Protobuf::Struct
Parameter
  • value (::Google::Protobuf::Struct) — Optional. This field is set to the value of the QueryParameters.payload field passed in the request. Some integrations that query a Dialogflow agent may provide additional information in the payload.

    In particular, for the Dialogflow Phone Gateway integration, this field has the form:

    {
     "telephony": {
       "caller_id": "+18558363987"
     }
    }

    Note: The caller ID field (caller_id) will be redacted for Trial Edition agents and populated with the caller ID in E.164 format for Essentials Edition agents.

Returns
  • (::Google::Protobuf::Struct) — Optional. This field is set to the value of the QueryParameters.payload field passed in the request. Some integrations that query a Dialogflow agent may provide additional information in the payload.

    In particular, for the Dialogflow Phone Gateway integration, this field has the form:

    {
     "telephony": {
       "caller_id": "+18558363987"
     }
    }

    Note: The caller ID field (caller_id) will be redacted for Trial Edition agents and populated with the caller ID in E.164 format for Essentials Edition agents.

#source

def source() -> ::String
Returns
  • (::String) — The source of this request, e.g., google, facebook, slack. It is set by Dialogflow-owned servers.

#source=

def source=(value) -> ::String
Parameter
  • value (::String) — The source of this request, e.g., google, facebook, slack. It is set by Dialogflow-owned servers.
Returns
  • (::String) — The source of this request, e.g., google, facebook, slack. It is set by Dialogflow-owned servers.

#version

def version() -> ::String
Returns
  • (::String) — Optional. The version of the protocol used for this request. This field is AoG-specific.

#version=

def version=(value) -> ::String
Parameter
  • value (::String) — Optional. The version of the protocol used for this request. This field is AoG-specific.
Returns
  • (::String) — Optional. The version of the protocol used for this request. This field is AoG-specific.