Close httplib2 connections.
list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists sentence pairs in the dataset.
Retrieves the next page of results.
close()
Close httplib2 connections.
list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists sentence pairs in the dataset. Args: parent: string, Required. Name of the parent dataset. In form of `projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}` (required) filter: string, Optional. An expression for filtering the examples that will be returned. Example filter: * `usage=TRAIN` pageSize: integer, Optional. Requested page size. The server can return fewer results than requested. pageToken: string, Optional. A token identifying a page of results for the server to return. Typically obtained from next_page_token field in the response of a ListExamples call. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for ListExamples. "examples": [ # The sentence pairs. { # A sentence pair. "name": "A String", # Output only. The resource name of the example, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}` "sourceText": "A String", # Sentence in source language. "targetText": "A String", # Sentence in target language. "usage": "A String", # Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST. }, ], "nextPageToken": "A String", # A token to retrieve next page of results. Pass this token to the page_token field in the ListExamplesRequest to obtain the corresponding page. }
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.