Dialogflow API . projects . locations . agents . intents

Instance Methods

close()

Close httplib2 connections.

create(parent, body=None, languageCode=None, x__xgafv=None)

delete(name, x__xgafv=None)

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

get(name, languageCode=None, x__xgafv=None)

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

list(parent, intentView=None, languageCode=None, pageSize=None, pageToken=None, x__xgafv=None)

list_next()

Retrieves the next page of results.

patch(name, body=None, languageCode=None, updateMask=None, x__xgafv=None)

Method Details

close()
Close httplib2 connections.
create(parent, body=None, languageCode=None, x__xgafv=None)

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

{
  "description": "A String",
  "displayName": "A String",
  "isFallback": True or False,
  "labels": {
    "a_key": "A String",
  },
  "name": "A String",
  "parameters": [
    {
      "entityType": "A String",
      "id": "A String",
      "isList": True or False,
      "redact": True or False,
    },
  ],
  "priority": 42,
  "trainingPhrases": [
    {
      "id": "A String",
      "parts": [
        {
          "parameterId": "A String",
          "text": "A String",
        },
      ],
      "repeatCount": 42,
    },
  ],
}

  languageCode: 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:

    {
  "description": "A String",
  "displayName": "A String",
  "isFallback": True or False,
  "labels": {
    "a_key": "A String",
  },
  "name": "A String",
  "parameters": [
    {
      "entityType": "A String",
      "id": "A String",
      "isList": True or False,
      "redact": True or False,
    },
  ],
  "priority": 42,
  "trainingPhrases": [
    {
      "id": "A String",
      "parts": [
        {
          "parameterId": "A String",
          "text": "A String",
        },
      ],
      "repeatCount": 42,
    },
  ],
}
delete(name, x__xgafv=None)

Args:
  name: string, A parameter (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    {
}
export(parent, body=None, x__xgafv=None)

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

{
  "dataFormat": "A String",
  "intents": [
    "A String",
  ],
  "intentsContentInline": True or False,
  "intentsUri": "A String",
}

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

Returns:
  An object of the form:

    {
  "done": True or False,
  "error": {
    "code": 42,
    "details": [
      {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
    ],
    "message": "A String",
  },
  "metadata": {
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
  "name": "A String",
  "response": {
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
}
get(name, languageCode=None, x__xgafv=None)

Args:
  name: string, A parameter (required)
  languageCode: 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:

    {
  "description": "A String",
  "displayName": "A String",
  "isFallback": True or False,
  "labels": {
    "a_key": "A String",
  },
  "name": "A String",
  "parameters": [
    {
      "entityType": "A String",
      "id": "A String",
      "isList": True or False,
      "redact": True or False,
    },
  ],
  "priority": 42,
  "trainingPhrases": [
    {
      "id": "A String",
      "parts": [
        {
          "parameterId": "A String",
          "text": "A String",
        },
      ],
      "repeatCount": 42,
    },
  ],
}
import_(parent, body=None, x__xgafv=None)

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

{
  "intentsContent": {
    "content": "A String",
  },
  "intentsUri": "A String",
  "mergeOption": "A String",
}

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

Returns:
  An object of the form:

    {
  "done": True or False,
  "error": {
    "code": 42,
    "details": [
      {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
    ],
    "message": "A String",
  },
  "metadata": {
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
  "name": "A String",
  "response": {
    "a_key": "", # Properties of the object. Contains field @type with type URL.
  },
}
list(parent, intentView=None, languageCode=None, pageSize=None, pageToken=None, x__xgafv=None)

Args:
  parent: string, A parameter (required)
  intentView: string, A parameter
    Allowed values
      INTENT_VIEW_UNSPECIFIED - 
      INTENT_VIEW_PARTIAL - 
      INTENT_VIEW_FULL - 
  languageCode: 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:

    {
  "intents": [
    {
      "description": "A String",
      "displayName": "A String",
      "isFallback": True or False,
      "labels": {
        "a_key": "A String",
      },
      "name": "A String",
      "parameters": [
        {
          "entityType": "A String",
          "id": "A String",
          "isList": True or False,
          "redact": True or False,
        },
      ],
      "priority": 42,
      "trainingPhrases": [
        {
          "id": "A String",
          "parts": [
            {
              "parameterId": "A String",
              "text": "A String",
            },
          ],
          "repeatCount": 42,
        },
      ],
    },
  ],
  "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.
        
patch(name, body=None, languageCode=None, updateMask=None, x__xgafv=None)

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

{
  "description": "A String",
  "displayName": "A String",
  "isFallback": True or False,
  "labels": {
    "a_key": "A String",
  },
  "name": "A String",
  "parameters": [
    {
      "entityType": "A String",
      "id": "A String",
      "isList": True or False,
      "redact": True or False,
    },
  ],
  "priority": 42,
  "trainingPhrases": [
    {
      "id": "A String",
      "parts": [
        {
          "parameterId": "A String",
          "text": "A String",
        },
      ],
      "repeatCount": 42,
    },
  ],
}

  languageCode: string, A parameter
  updateMask: 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:

    {
  "description": "A String",
  "displayName": "A String",
  "isFallback": True or False,
  "labels": {
    "a_key": "A String",
  },
  "name": "A String",
  "parameters": [
    {
      "entityType": "A String",
      "id": "A String",
      "isList": True or False,
      "redact": True or False,
    },
  ],
  "priority": 42,
  "trainingPhrases": [
    {
      "id": "A String",
      "parts": [
        {
          "parameterId": "A String",
          "text": "A String",
        },
      ],
      "repeatCount": 42,
    },
  ],
}