Dialogflow API . projects . conversations . messages

Instance Methods

batchCreate(parent, body=None, x__xgafv=None)

close()

Close httplib2 connections.

list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)

list_next()

Retrieves the next page of results.

Method Details

batchCreate(parent, body=None, x__xgafv=None)

Args:
  parent: string, A parameter (required)
  body: object, The request body.
    The object takes the form of:

{
  "requests": [
    {
      "message": {
        "content": "A String",
        "createTime": "A String",
        "languageCode": "A String",
        "messageAnnotation": {
          "containEntities": True or False,
          "parts": [
            {
              "entityType": "A String",
              "formattedValue": "",
              "text": "A String",
            },
          ],
        },
        "name": "A String",
        "participant": "A String",
        "participantRole": "A String",
        "responseMessages": [
          {
            "endInteraction": {
            },
            "liveAgentHandoff": {
              "metadata": {
                "a_key": "", # Properties of the object.
              },
            },
            "mixedAudio": {
              "segments": [
                {
                  "allowPlaybackInterruption": True or False,
                  "audio": "A String",
                  "uri": "A String",
                },
              ],
            },
            "payload": {
              "a_key": "", # Properties of the object.
            },
            "telephonyTransferCall": {
              "phoneNumber": "A String",
              "sipUri": "A String",
            },
            "text": {
              "text": [
                "A String",
              ],
            },
          },
        ],
        "sendTime": "A String",
        "sentimentAnalysis": {
          "queryTextSentiment": {
            "magnitude": 3.14,
            "score": 3.14,
          },
        },
      },
      "parent": "A String",
    },
  ],
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  "messages": [
    {
      "content": "A String",
      "createTime": "A String",
      "languageCode": "A String",
      "messageAnnotation": {
        "containEntities": True or False,
        "parts": [
          {
            "entityType": "A String",
            "formattedValue": "",
            "text": "A String",
          },
        ],
      },
      "name": "A String",
      "participant": "A String",
      "participantRole": "A String",
      "responseMessages": [
        {
          "endInteraction": {
          },
          "liveAgentHandoff": {
            "metadata": {
              "a_key": "", # Properties of the object.
            },
          },
          "mixedAudio": {
            "segments": [
              {
                "allowPlaybackInterruption": True or False,
                "audio": "A String",
                "uri": "A String",
              },
            ],
          },
          "payload": {
            "a_key": "", # Properties of the object.
          },
          "telephonyTransferCall": {
            "phoneNumber": "A String",
            "sipUri": "A String",
          },
          "text": {
            "text": [
              "A String",
            ],
          },
        },
      ],
      "sendTime": "A String",
      "sentimentAnalysis": {
        "queryTextSentiment": {
          "magnitude": 3.14,
          "score": 3.14,
        },
      },
    },
  ],
}
close()
Close httplib2 connections.
list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)

Args:
  parent: string, A parameter (required)
  filter: string, A parameter
  pageSize: integer, A parameter
  pageToken: string, A parameter
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
  "messages": [
    {
      "content": "A String",
      "createTime": "A String",
      "languageCode": "A String",
      "messageAnnotation": {
        "containEntities": True or False,
        "parts": [
          {
            "entityType": "A String",
            "formattedValue": "",
            "text": "A String",
          },
        ],
      },
      "name": "A String",
      "participant": "A String",
      "participantRole": "A String",
      "responseMessages": [
        {
          "endInteraction": {
          },
          "liveAgentHandoff": {
            "metadata": {
              "a_key": "", # Properties of the object.
            },
          },
          "mixedAudio": {
            "segments": [
              {
                "allowPlaybackInterruption": True or False,
                "audio": "A String",
                "uri": "A String",
              },
            ],
          },
          "payload": {
            "a_key": "", # Properties of the object.
          },
          "telephonyTransferCall": {
            "phoneNumber": "A String",
            "sipUri": "A String",
          },
          "text": {
            "text": [
              "A String",
            ],
          },
        },
      ],
      "sendTime": "A String",
      "sentimentAnalysis": {
        "queryTextSentiment": {
          "magnitude": 3.14,
          "score": 3.14,
        },
      },
    },
  ],
  "nextPageToken": "A String",
}
list_next()
Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call 'execute()' on to request the next
          page. Returns None if there are no more items in the collection.