# Dialogflow API . projects . locations

## Instance Methods

Returns the agent Resource.

Returns the answerRecords Resource.

Returns the conversationProfiles Resource.

Returns the conversations Resource.

Returns the encryptionSpec Resource.

Returns the generators Resource.

Returns the knowledgeBases Resource.

Returns the operations Resource.

Returns the phoneNumbers Resource.

Returns the sipTrunks Resource.

Returns the statelessSuggestion Resource.

Returns the suggestions Resource.

Returns the tools Resource.

Close httplib2 connections.

Retrieves the next page of results.

### Method Details

`close()`

    Close httplib2 connections.

`deleteAgent(parent, x__xgafv=None)`

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

        {
    }

`get(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",
      "labels": {
        "a_key": "A String",
      },
      "locationId": "A String",
      "metadata": {
        "a_key": "", # Properties of the object. Contains field @type with type URL.
      },
      "name": "A String",
    }

`getAgent(parent, x__xgafv=None)`

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

        {
      "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",
    }

`getEncryptionSpec(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:

        {
      "kmsKey": "A String",
      "name": "A String",
    }

`list(name, extraLocationTypes=None, filter=None, pageSize=None, pageToken=None, x__xgafv=None)`

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

        {
      "locations": [
        {
          "displayName": "A String",
          "labels": {
            "a_key": "A String",
          },
          "locationId": "A String",
          "metadata": {
            "a_key": "", # Properties of the object. Contains field @type with type URL.
          },
          "name": "A String",
        },
      ],
      "nextPageToken": "A String",
    }

`list_next(previous_request, previous_response)`

    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.

`setAgent(parent, body=None, updateMask=None, x__xgafv=None)`

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

    {
      "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",
    }

      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:

        {
      "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",
    }