Dialogflow API . projects . agent

Instance Methods

entityTypes()

Returns the entityTypes Resource.

environments()

Returns the environments Resource.

intents()

Returns the intents Resource.

knowledgeBases()

Returns the knowledgeBases Resource.

sessions()

Returns the sessions Resource.

versions()

Returns the versions Resource.

close()

Close httplib2 connections.

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

getFulfillment(name, x__xgafv=None)

getValidationResult(parent, languageCode=None, x__xgafv=None)

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

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

search(parent, pageSize=None, pageToken=None, x__xgafv=None)

search_next()

Retrieves the next page of results.

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

updateFulfillment(name, body=None, updateMask=None, x__xgafv=None)

Method Details

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

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

{
  "agentUri": "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.
  },
}
getFulfillment(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:

    {
  "displayName": "A String",
  "enabled": True or False,
  "features": [
    {
      "type": "A String",
    },
  ],
  "genericWebService": {
    "isCloudFunction": True or False,
    "password": "A String",
    "requestHeaders": {
      "a_key": "A String",
    },
    "uri": "A String",
    "username": "A String",
  },
  "name": "A String",
}
getValidationResult(parent, languageCode=None, x__xgafv=None)

Args:
  parent: 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:

    {
  "validationErrors": [
    {
      "entries": [
        "A String",
      ],
      "errorMessage": "A String",
      "severity": "A String",
    },
  ],
}
import_(parent, body=None, x__xgafv=None)

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

{
  "agentContent": "A String",
  "agentUri": "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.
  },
}
restore(parent, body=None, x__xgafv=None)

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

{
  "agentContent": "A String",
  "agentUri": "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.
  },
}
search(parent, pageSize=None, pageToken=None, x__xgafv=None)

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

    {
  "agents": [
    {
      "apiVersion": "A String",
      "avatarUri": "A String",
      "classificationThreshold": 3.14,
      "defaultLanguageCode": "A String",
      "description": "A String",
      "displayName": "A String",
      "enableLogging": True or False,
      "matchMode": "A String",
      "parent": "A String",
      "supportedLanguageCodes": [
        "A String",
      ],
      "tier": "A String",
      "timeZone": "A String",
    },
  ],
  "nextPageToken": "A String",
}
search_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.
        
train(parent, body=None, x__xgafv=None)

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

{
}

  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.
  },
}
updateFulfillment(name, body=None, updateMask=None, x__xgafv=None)

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

{
  "displayName": "A String",
  "enabled": True or False,
  "features": [
    {
      "type": "A String",
    },
  ],
  "genericWebService": {
    "isCloudFunction": True or False,
    "password": "A String",
    "requestHeaders": {
      "a_key": "A String",
    },
    "uri": "A String",
    "username": "A String",
  },
  "name": "A String",
}

  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:

    {
  "displayName": "A String",
  "enabled": True or False,
  "features": [
    {
      "type": "A String",
    },
  ],
  "genericWebService": {
    "isCloudFunction": True or False,
    "password": "A String",
    "requestHeaders": {
      "a_key": "A String",
    },
    "uri": "A String",
    "username": "A String",
  },
  "name": "A String",
}