# Cloud Translation API . projects . locations . adaptiveMtDatasets . adaptiveMtFiles

## Instance Methods

Returns the adaptiveMtSentences Resource.

Close httplib2 connections.

Deletes an AdaptiveMtFile along with its sentences.

Gets and AdaptiveMtFile

Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.

Retrieves the next page of results.

### Method Details

`close()`

    Close httplib2 connections.

`delete(name, x__xgafv=None)`

    Deletes an AdaptiveMtFile along with its sentences.

    Args:
      name: string, Required. The resource name of the file to delete, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
    }

`get(name, x__xgafv=None)`

    Gets and AdaptiveMtFile

    Args:
      name: string, Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # An AdaptiveMtFile.
      "createTime": "A String", # Output only. Timestamp when this file was created.
      "displayName": "A String", # The file's display name.
      "entryCount": 42, # The number of entries that the file contains.
      "name": "A String", # Identifier. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`
      "updateTime": "A String", # Output only. Timestamp when this file was last updated.
    }

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

    Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.

    Args:
      parent: string, Required. The resource name of the dataset from which to list the Adaptive MT files. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}` (required)
      pageSize: integer, Optional.
      pageToken: string, Optional. A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtFilesResponse.next_page_token returned from the previous call to `ListAdaptiveMtFiles` method. The first page is returned if `page_token`is empty or missing.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # The response for listing all AdaptiveMt files under a given dataset.
      "adaptiveMtFiles": [ # Output only. The Adaptive MT files.
        { # An AdaptiveMtFile.
          "createTime": "A String", # Output only. Timestamp when this file was created.
          "displayName": "A String", # The file's display name.
          "entryCount": 42, # The number of entries that the file contains.
          "name": "A String", # Identifier. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}`
          "updateTime": "A String", # Output only. Timestamp when this file was last updated.
        },
      ],
      "nextPageToken": "A String", # Optional. A token to retrieve a page of results. Pass this value in the ListAdaptiveMtFilesRequest.page_token field in the subsequent call to `ListAdaptiveMtFiles` method to retrieve the next page of results.
    }

`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.