From 2d414558db3065d2070f6459febb164ba4dba476 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 7 Dec 2023 15:10:36 +0000 Subject: [PATCH] feat(translate): update the api #### translate:v3 The following keys were added: - resources.projects.resources.locations.methods.adaptiveMtTranslate (Total Keys: 12) - resources.projects.resources.locations.resources.adaptiveMtDatasets.methods.create (Total Keys: 12) - resources.projects.resources.locations.resources.adaptiveMtDatasets.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.adaptiveMtDatasets.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.adaptiveMtDatasets.methods.importAdaptiveMtFile (Total Keys: 12) - resources.projects.resources.locations.resources.adaptiveMtDatasets.methods.list (Total Keys: 18) - resources.projects.resources.locations.resources.adaptiveMtDatasets.resources.adaptiveMtFiles.methods.delete (Total Keys: 11) - resources.projects.resources.locations.resources.adaptiveMtDatasets.resources.adaptiveMtFiles.methods.get (Total Keys: 11) - resources.projects.resources.locations.resources.adaptiveMtDatasets.resources.adaptiveMtFiles.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.adaptiveMtDatasets.resources.adaptiveMtFiles.resources.adaptiveMtSentences.methods.list (Total Keys: 16) - resources.projects.resources.locations.resources.adaptiveMtDatasets.resources.adaptiveMtSentences.methods.list (Total Keys: 16) - schemas.AdaptiveMtDataset (Total Keys: 14) - schemas.AdaptiveMtFile (Total Keys: 12) - schemas.AdaptiveMtSentence (Total Keys: 11) - schemas.AdaptiveMtTranslateRequest (Total Keys: 5) - schemas.AdaptiveMtTranslateResponse (Total Keys: 7) - schemas.AdaptiveMtTranslation (Total Keys: 4) - schemas.FileInputSource (Total Keys: 6) - schemas.ImportAdaptiveMtFileRequest (Total Keys: 4) - schemas.ImportAdaptiveMtFileResponse (Total Keys: 4) - schemas.ListAdaptiveMtDatasetsResponse (Total Keys: 6) - schemas.ListAdaptiveMtFilesResponse (Total Keys: 6) - schemas.ListAdaptiveMtSentencesResponse (Total Keys: 6) The following keys were changed: - resources.projects.methods.detectLanguage.scopes (Total Keys: 1) - resources.projects.methods.getSupportedLanguages.scopes (Total Keys: 1) - resources.projects.methods.romanizeText.scopes (Total Keys: 1) - resources.projects.methods.translateText.scopes (Total Keys: 1) - resources.projects.resources.locations.methods.detectLanguage.scopes (Total Keys: 1) - resources.projects.resources.locations.methods.getSupportedLanguages.scopes (Total Keys: 1) - resources.projects.resources.locations.methods.romanizeText.scopes (Total Keys: 1) - resources.projects.resources.locations.methods.translateText.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.datasets.methods.create.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.datasets.methods.get.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.datasets.methods.list.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.glossaries.methods.delete.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.glossaries.methods.get.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.glossaries.methods.list.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.glossaries.resources.glossaryEntries.methods.get.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.glossaries.resources.glossaryEntries.methods.list.scopes (Total Keys: 1) - resources.projects.resources.locations.resources.models.methods.list.scopes (Total Keys: 1) --- ...s.adaptiveMtFiles.adaptiveMtSentences.html | 136 ++++ ...ns.adaptiveMtDatasets.adaptiveMtFiles.html | 188 +++++ ...daptiveMtDatasets.adaptiveMtSentences.html | 136 ++++ ...projects.locations.adaptiveMtDatasets.html | 281 ++++++++ docs/dyn/translate_v3.projects.locations.html | 42 ++ .../documents/translate.v3.json | 672 +++++++++++++++++- .../documents/translate.v3beta1.json | 2 +- 7 files changed, 1438 insertions(+), 19 deletions(-) create mode 100644 docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.adaptiveMtSentences.html create mode 100644 docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.html create mode 100644 docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtSentences.html create mode 100644 docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.html diff --git a/docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.adaptiveMtSentences.html b/docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.adaptiveMtSentences.html new file mode 100644 index 0000000000..19cdf676a4 --- /dev/null +++ b/docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.adaptiveMtSentences.html @@ -0,0 +1,136 @@ + + + +

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

+

Instance Methods

+

+ close()

+

Close httplib2 connections.

+

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

+

Lists all AdaptiveMtSentences under a given file/dataset.

+

+ list_next()

+

Retrieves the next page of results.

+

Method Details

+
+ close() +
Close httplib2 connections.
+
+ +
+ list(parent, pageSize=None, pageToken=None, x__xgafv=None) +
Lists all AdaptiveMtSentences under a given file/dataset.
+
+Args:
+  parent: string, Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` The following format lists all sentences within a dataset. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}` (required)
+  pageSize: integer, A parameter
+  pageToken: string, A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to `ListTranslationMemories` 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:
+
+    { # List AdaptiveMt sentences response.
+  "adaptiveMtSentences": [ # Output only. The list of AdaptiveMtSentences.
+    { # An AdaptiveMt sentence entry.
+      "createTime": "A String", # Output only. Timestamp when this sentence was created.
+      "name": "A String", # Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}/sentences/{sentence}`
+      "sourceSentence": "A String", # Required. The source sentence.
+      "targetSentence": "A String", # Required. The target sentence.
+      "updateTime": "A String", # Output only. Timestamp when this sentence was last updated.
+    },
+  ],
+  "nextPageToken": "A String", # Optional.
+}
+
+ +
+ 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.
+        
+
+ + \ No newline at end of file diff --git a/docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.html b/docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.html new file mode 100644 index 0000000000..969d70733d --- /dev/null +++ b/docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.html @@ -0,0 +1,188 @@ + + + +

Cloud Translation API . projects . locations . adaptiveMtDatasets . adaptiveMtFiles

+

Instance Methods

+

+ adaptiveMtSentences() +

+

Returns the adaptiveMtSentences Resource.

+ +

+ close()

+

Close httplib2 connections.

+

+ delete(name, x__xgafv=None)

+

Deletes an AdaptiveMtFile along with its sentences.

+

+ get(name, x__xgafv=None)

+

Gets and AdaptiveMtFile

+

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

+

Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.

+

+ list_next()

+

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}/files/{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}/files/{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", # Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{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 project 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", # Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{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() +
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.
+        
+
+ + \ No newline at end of file diff --git a/docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtSentences.html b/docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtSentences.html new file mode 100644 index 0000000000..9348a54926 --- /dev/null +++ b/docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.adaptiveMtSentences.html @@ -0,0 +1,136 @@ + + + +

Cloud Translation API . projects . locations . adaptiveMtDatasets . adaptiveMtSentences

+

Instance Methods

+

+ close()

+

Close httplib2 connections.

+

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

+

Lists all AdaptiveMtSentences under a given file/dataset.

+

+ list_next()

+

Retrieves the next page of results.

+

Method Details

+
+ close() +
Close httplib2 connections.
+
+ +
+ list(parent, pageSize=None, pageToken=None, x__xgafv=None) +
Lists all AdaptiveMtSentences under a given file/dataset.
+
+Args:
+  parent: string, Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` The following format lists all sentences within a dataset. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}` (required)
+  pageSize: integer, A parameter
+  pageToken: string, A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to `ListTranslationMemories` 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:
+
+    { # List AdaptiveMt sentences response.
+  "adaptiveMtSentences": [ # Output only. The list of AdaptiveMtSentences.
+    { # An AdaptiveMt sentence entry.
+      "createTime": "A String", # Output only. Timestamp when this sentence was created.
+      "name": "A String", # Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}/sentences/{sentence}`
+      "sourceSentence": "A String", # Required. The source sentence.
+      "targetSentence": "A String", # Required. The target sentence.
+      "updateTime": "A String", # Output only. Timestamp when this sentence was last updated.
+    },
+  ],
+  "nextPageToken": "A String", # Optional.
+}
+
+ +
+ 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.
+        
+
+ + \ No newline at end of file diff --git a/docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.html b/docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.html new file mode 100644 index 0000000000..0789f94cfd --- /dev/null +++ b/docs/dyn/translate_v3.projects.locations.adaptiveMtDatasets.html @@ -0,0 +1,281 @@ + + + +

Cloud Translation API . projects . locations . adaptiveMtDatasets

+

Instance Methods

+

+ adaptiveMtFiles() +

+

Returns the adaptiveMtFiles Resource.

+ +

+ adaptiveMtSentences() +

+

Returns the adaptiveMtSentences Resource.

+ +

+ close()

+

Close httplib2 connections.

+

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

+

Creates an Adaptive MT dataset.

+

+ delete(name, x__xgafv=None)

+

Deletes an Adaptive MT dataset, including all its entries and associated metadata.

+

+ get(name, x__xgafv=None)

+

Gets the Adaptive MT dataset.

+

+ importAdaptiveMtFile(parent, body=None, x__xgafv=None)

+

Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.

+

+ list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)

+

Lists all Adaptive MT datasets for which the caller has read permission.

+

+ list_next()

+

Retrieves the next page of results.

+

Method Details

+
+ close() +
Close httplib2 connections.
+
+ +
+ create(parent, body=None, x__xgafv=None) +
Creates an Adaptive MT dataset.
+
+Args:
+  parent: string, Required. Name of the parent project. In form of `projects/{project-number-or-id}/locations/{location-id}` (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # An Adaptive MT Dataset.
+  "createTime": "A String", # Output only. Timestamp when this dataset was created.
+  "displayName": "A String", # The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
+  "exampleCount": 42, # The number of examples in the dataset.
+  "name": "A String", # Required. The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
+  "sourceLanguageCode": "A String", # The BCP-47 language code of the source language.
+  "targetLanguageCode": "A String", # The BCP-47 language code of the target language.
+  "updateTime": "A String", # Output only. Timestamp when this dataset was last updated.
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # An Adaptive MT Dataset.
+  "createTime": "A String", # Output only. Timestamp when this dataset was created.
+  "displayName": "A String", # The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
+  "exampleCount": 42, # The number of examples in the dataset.
+  "name": "A String", # Required. The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
+  "sourceLanguageCode": "A String", # The BCP-47 language code of the source language.
+  "targetLanguageCode": "A String", # The BCP-47 language code of the target language.
+  "updateTime": "A String", # Output only. Timestamp when this dataset was last updated.
+}
+
+ +
+ delete(name, x__xgafv=None) +
Deletes an Adaptive MT dataset, including all its entries and associated metadata.
+
+Args:
+  name: string, Required. Name of the dataset. In the form of `projects/{project-number-or-id}/locations/{location-id}/adaptiveMtDatasets/{adaptive-mt-dataset-id}` (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 the Adaptive MT dataset.
+
+Args:
+  name: string, Required. Name of the dataset. In the form of `projects/{project-number-or-id}/locations/{location-id}/adaptiveMtDatasets/{adaptive-mt-dataset-id}` (required)
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # An Adaptive MT Dataset.
+  "createTime": "A String", # Output only. Timestamp when this dataset was created.
+  "displayName": "A String", # The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
+  "exampleCount": 42, # The number of examples in the dataset.
+  "name": "A String", # Required. The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
+  "sourceLanguageCode": "A String", # The BCP-47 language code of the source language.
+  "targetLanguageCode": "A String", # The BCP-47 language code of the target language.
+  "updateTime": "A String", # Output only. Timestamp when this dataset was last updated.
+}
+
+ +
+ importAdaptiveMtFile(parent, body=None, x__xgafv=None) +
Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.
+
+Args:
+  parent: string, Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}` (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # The request for importing an AdaptiveMt file along with its sentences.
+  "fileInputSource": { # An inlined file. # Inline file source.
+    "content": "A String", # Required. The file's byte contents.
+    "displayName": "A String", # Required. The file's display name.
+    "mimeType": "A String", # Required. The file's mime type.
+  },
+  "gcsInputSource": { # The Google Cloud Storage location for the input content. # Google Cloud Storage file source.
+    "inputUri": "A String", # Required. Source data URI. For example, `gs://my_bucket/my_object`.
+  },
+}
+
+  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 importing an AdaptiveMtFile
+  "adaptiveMtFile": { # An AdaptiveMtFile. # Output only. The Adaptive MT file that was imported.
+    "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", # Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}`
+    "updateTime": "A String", # Output only. Timestamp when this file was last updated.
+  },
+}
+
+ +
+ list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None) +
Lists all Adaptive MT datasets for which the caller has read permission.
+
+Args:
+  parent: string, Required. The resource name of the project from which to list the Adaptive MT datasets. `projects/{project-number-or-id}/locations/{location-id}` (required)
+  filter: string, Optional. An expression for filtering the results of the request. Filter is not supported yet.
+  pageSize: integer, Optional. Requested page size. The server may return fewer results than requested. If unspecified, the server picks an appropriate default.
+  pageToken: string, Optional. A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtDatasetsResponse.next_page_token returned from the previous call to `ListAdaptiveMtDatasets` 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:
+
+    { # A list of AdaptiveMtDatasets.
+  "adaptiveMtDatasets": [ # Output only. A list of Adaptive MT datasets.
+    { # An Adaptive MT Dataset.
+      "createTime": "A String", # Output only. Timestamp when this dataset was created.
+      "displayName": "A String", # The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.
+      "exampleCount": 42, # The number of examples in the dataset.
+      "name": "A String", # Required. The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
+      "sourceLanguageCode": "A String", # The BCP-47 language code of the source language.
+      "targetLanguageCode": "A String", # The BCP-47 language code of the target language.
+      "updateTime": "A String", # Output only. Timestamp when this dataset was last updated.
+    },
+  ],
+  "nextPageToken": "A String", # Optional. A token to retrieve a page of results. Pass this value in the [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to `ListAdaptiveMtDatasets` method to retrieve the next page of results.
+}
+
+ +
+ 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.
+        
+
+ + \ No newline at end of file diff --git a/docs/dyn/translate_v3.projects.locations.html b/docs/dyn/translate_v3.projects.locations.html index f3ae20dff9..4a96446f5a 100644 --- a/docs/dyn/translate_v3.projects.locations.html +++ b/docs/dyn/translate_v3.projects.locations.html @@ -74,6 +74,11 @@

Cloud Translation API . projects . locations

Instance Methods

+

+ adaptiveMtDatasets() +

+

Returns the adaptiveMtDatasets Resource.

+

datasets()

@@ -94,6 +99,9 @@

Instance Methods

Returns the operations Resource.

+

+ adaptiveMtTranslate(parent, body=None, x__xgafv=None)

+

Translate text using Adaptive MT.

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

Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.

@@ -128,6 +136,40 @@

Instance Methods

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

Translates input text and returns translated text.

Method Details

+
+ adaptiveMtTranslate(parent, body=None, x__xgafv=None) +
Translate text using Adaptive MT.
+
+Args:
+  parent: string, Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # The request for sending an AdaptiveMt translation query.
+  "content": [ # Required. The content of the input in string format. For now only one sentence per request is supported.
+    "A String",
+  ],
+  "dataset": "A String", # Required. The resource name for the dataset to use for adaptive MT. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # An AdaptiveMtTranslate response.
+  "languageCode": "A String", # Output only. The translation's language code.
+  "translations": [ # Output only. The translation.
+    { # An AdaptiveMt translation.
+      "translatedText": "A String", # Output only. The translated text.
+    },
+  ],
+}
+
+
batchTranslateDocument(parent, body=None, x__xgafv=None)
Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.
diff --git a/googleapiclient/discovery_cache/documents/translate.v3.json b/googleapiclient/discovery_cache/documents/translate.v3.json
index 580cb09bb7..6ee12daad7 100644
--- a/googleapiclient/discovery_cache/documents/translate.v3.json
+++ b/googleapiclient/discovery_cache/documents/translate.v3.json
@@ -135,7 +135,8 @@
             "$ref": "DetectLanguageResponse"
           },
           "scopes": [
-            "https://www.googleapis.com/auth/cloud-platform"
+            "https://www.googleapis.com/auth/cloud-platform",
+            "https://www.googleapis.com/auth/cloud-translation"
           ]
         },
         "getSupportedLanguages": {
@@ -170,7 +171,8 @@
             "$ref": "SupportedLanguages"
           },
           "scopes": [
-            "https://www.googleapis.com/auth/cloud-platform"
+            "https://www.googleapis.com/auth/cloud-platform",
+            "https://www.googleapis.com/auth/cloud-translation"
           ]
         },
         "romanizeText": {
@@ -198,7 +200,8 @@
             "$ref": "RomanizeTextResponse"
           },
           "scopes": [
-            "https://www.googleapis.com/auth/cloud-platform"
+            "https://www.googleapis.com/auth/cloud-platform",
+            "https://www.googleapis.com/auth/cloud-translation"
           ]
         },
         "translateText": {
@@ -226,13 +229,43 @@
             "$ref": "TranslateTextResponse"
           },
           "scopes": [
-            "https://www.googleapis.com/auth/cloud-platform"
+            "https://www.googleapis.com/auth/cloud-platform",
+            "https://www.googleapis.com/auth/cloud-translation"
           ]
         }
       },
       "resources": {
         "locations": {
           "methods": {
+            "adaptiveMtTranslate": {
+              "description": "Translate text using Adaptive MT.",
+              "flatPath": "v3/projects/{projectsId}/locations/{locationsId}:adaptiveMtTranslate",
+              "httpMethod": "POST",
+              "id": "translate.projects.locations.adaptiveMtTranslate",
+              "parameterOrder": [
+                "parent"
+              ],
+              "parameters": {
+                "parent": {
+                  "description": "Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`.",
+                  "location": "path",
+                  "pattern": "^projects/[^/]+/locations/[^/]+$",
+                  "required": true,
+                  "type": "string"
+                }
+              },
+              "path": "v3/{+parent}:adaptiveMtTranslate",
+              "request": {
+                "$ref": "AdaptiveMtTranslateRequest"
+              },
+              "response": {
+                "$ref": "AdaptiveMtTranslateResponse"
+              },
+              "scopes": [
+                "https://www.googleapis.com/auth/cloud-platform",
+                "https://www.googleapis.com/auth/cloud-translation"
+              ]
+            },
             "batchTranslateDocument": {
               "description": "Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.",
               "flatPath": "v3/projects/{projectsId}/locations/{locationsId}:batchTranslateDocument",
@@ -314,7 +347,8 @@
                 "$ref": "DetectLanguageResponse"
               },
               "scopes": [
-                "https://www.googleapis.com/auth/cloud-platform"
+                "https://www.googleapis.com/auth/cloud-platform",
+                "https://www.googleapis.com/auth/cloud-translation"
               ]
             },
             "get": {
@@ -375,7 +409,8 @@
                 "$ref": "SupportedLanguages"
               },
               "scopes": [
-                "https://www.googleapis.com/auth/cloud-platform"
+                "https://www.googleapis.com/auth/cloud-platform",
+                "https://www.googleapis.com/auth/cloud-translation"
               ]
             },
             "list": {
@@ -445,7 +480,8 @@
                 "$ref": "RomanizeTextResponse"
               },
               "scopes": [
-                "https://www.googleapis.com/auth/cloud-platform"
+                "https://www.googleapis.com/auth/cloud-platform",
+                "https://www.googleapis.com/auth/cloud-translation"
               ]
             },
             "translateDocument": {
@@ -502,11 +538,345 @@
                 "$ref": "TranslateTextResponse"
               },
               "scopes": [
-                "https://www.googleapis.com/auth/cloud-platform"
+                "https://www.googleapis.com/auth/cloud-platform",
+                "https://www.googleapis.com/auth/cloud-translation"
               ]
             }
           },
           "resources": {
+            "adaptiveMtDatasets": {
+              "methods": {
+                "create": {
+                  "description": "Creates an Adaptive MT dataset.",
+                  "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/adaptiveMtDatasets",
+                  "httpMethod": "POST",
+                  "id": "translate.projects.locations.adaptiveMtDatasets.create",
+                  "parameterOrder": [
+                    "parent"
+                  ],
+                  "parameters": {
+                    "parent": {
+                      "description": "Required. Name of the parent project. In form of `projects/{project-number-or-id}/locations/{location-id}`",
+                      "location": "path",
+                      "pattern": "^projects/[^/]+/locations/[^/]+$",
+                      "required": true,
+                      "type": "string"
+                    }
+                  },
+                  "path": "v3/{+parent}/adaptiveMtDatasets",
+                  "request": {
+                    "$ref": "AdaptiveMtDataset"
+                  },
+                  "response": {
+                    "$ref": "AdaptiveMtDataset"
+                  },
+                  "scopes": [
+                    "https://www.googleapis.com/auth/cloud-platform",
+                    "https://www.googleapis.com/auth/cloud-translation"
+                  ]
+                },
+                "delete": {
+                  "description": "Deletes an Adaptive MT dataset, including all its entries and associated metadata.",
+                  "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/adaptiveMtDatasets/{adaptiveMtDatasetsId}",
+                  "httpMethod": "DELETE",
+                  "id": "translate.projects.locations.adaptiveMtDatasets.delete",
+                  "parameterOrder": [
+                    "name"
+                  ],
+                  "parameters": {
+                    "name": {
+                      "description": "Required. Name of the dataset. In the form of `projects/{project-number-or-id}/locations/{location-id}/adaptiveMtDatasets/{adaptive-mt-dataset-id}`",
+                      "location": "path",
+                      "pattern": "^projects/[^/]+/locations/[^/]+/adaptiveMtDatasets/[^/]+$",
+                      "required": true,
+                      "type": "string"
+                    }
+                  },
+                  "path": "v3/{+name}",
+                  "response": {
+                    "$ref": "Empty"
+                  },
+                  "scopes": [
+                    "https://www.googleapis.com/auth/cloud-platform",
+                    "https://www.googleapis.com/auth/cloud-translation"
+                  ]
+                },
+                "get": {
+                  "description": "Gets the Adaptive MT dataset.",
+                  "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/adaptiveMtDatasets/{adaptiveMtDatasetsId}",
+                  "httpMethod": "GET",
+                  "id": "translate.projects.locations.adaptiveMtDatasets.get",
+                  "parameterOrder": [
+                    "name"
+                  ],
+                  "parameters": {
+                    "name": {
+                      "description": "Required. Name of the dataset. In the form of `projects/{project-number-or-id}/locations/{location-id}/adaptiveMtDatasets/{adaptive-mt-dataset-id}`",
+                      "location": "path",
+                      "pattern": "^projects/[^/]+/locations/[^/]+/adaptiveMtDatasets/[^/]+$",
+                      "required": true,
+                      "type": "string"
+                    }
+                  },
+                  "path": "v3/{+name}",
+                  "response": {
+                    "$ref": "AdaptiveMtDataset"
+                  },
+                  "scopes": [
+                    "https://www.googleapis.com/auth/cloud-platform",
+                    "https://www.googleapis.com/auth/cloud-translation"
+                  ]
+                },
+                "importAdaptiveMtFile": {
+                  "description": "Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.",
+                  "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/adaptiveMtDatasets/{adaptiveMtDatasetsId}:importAdaptiveMtFile",
+                  "httpMethod": "POST",
+                  "id": "translate.projects.locations.adaptiveMtDatasets.importAdaptiveMtFile",
+                  "parameterOrder": [
+                    "parent"
+                  ],
+                  "parameters": {
+                    "parent": {
+                      "description": "Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}`",
+                      "location": "path",
+                      "pattern": "^projects/[^/]+/locations/[^/]+/adaptiveMtDatasets/[^/]+$",
+                      "required": true,
+                      "type": "string"
+                    }
+                  },
+                  "path": "v3/{+parent}:importAdaptiveMtFile",
+                  "request": {
+                    "$ref": "ImportAdaptiveMtFileRequest"
+                  },
+                  "response": {
+                    "$ref": "ImportAdaptiveMtFileResponse"
+                  },
+                  "scopes": [
+                    "https://www.googleapis.com/auth/cloud-platform",
+                    "https://www.googleapis.com/auth/cloud-translation"
+                  ]
+                },
+                "list": {
+                  "description": "Lists all Adaptive MT datasets for which the caller has read permission.",
+                  "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/adaptiveMtDatasets",
+                  "httpMethod": "GET",
+                  "id": "translate.projects.locations.adaptiveMtDatasets.list",
+                  "parameterOrder": [
+                    "parent"
+                  ],
+                  "parameters": {
+                    "filter": {
+                      "description": "Optional. An expression for filtering the results of the request. Filter is not supported yet.",
+                      "location": "query",
+                      "type": "string"
+                    },
+                    "pageSize": {
+                      "description": "Optional. Requested page size. The server may return fewer results than requested. If unspecified, the server picks an appropriate default.",
+                      "format": "int32",
+                      "location": "query",
+                      "type": "integer"
+                    },
+                    "pageToken": {
+                      "description": "Optional. A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtDatasetsResponse.next_page_token returned from the previous call to `ListAdaptiveMtDatasets` method. The first page is returned if `page_token`is empty or missing.",
+                      "location": "query",
+                      "type": "string"
+                    },
+                    "parent": {
+                      "description": "Required. The resource name of the project from which to list the Adaptive MT datasets. `projects/{project-number-or-id}/locations/{location-id}`",
+                      "location": "path",
+                      "pattern": "^projects/[^/]+/locations/[^/]+$",
+                      "required": true,
+                      "type": "string"
+                    }
+                  },
+                  "path": "v3/{+parent}/adaptiveMtDatasets",
+                  "response": {
+                    "$ref": "ListAdaptiveMtDatasetsResponse"
+                  },
+                  "scopes": [
+                    "https://www.googleapis.com/auth/cloud-platform",
+                    "https://www.googleapis.com/auth/cloud-translation"
+                  ]
+                }
+              },
+              "resources": {
+                "adaptiveMtFiles": {
+                  "methods": {
+                    "delete": {
+                      "description": "Deletes an AdaptiveMtFile along with its sentences.",
+                      "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/adaptiveMtDatasets/{adaptiveMtDatasetsId}/adaptiveMtFiles/{adaptiveMtFilesId}",
+                      "httpMethod": "DELETE",
+                      "id": "translate.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.delete",
+                      "parameterOrder": [
+                        "name"
+                      ],
+                      "parameters": {
+                        "name": {
+                          "description": "Required. The resource name of the file to delete, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}`",
+                          "location": "path",
+                          "pattern": "^projects/[^/]+/locations/[^/]+/adaptiveMtDatasets/[^/]+/adaptiveMtFiles/[^/]+$",
+                          "required": true,
+                          "type": "string"
+                        }
+                      },
+                      "path": "v3/{+name}",
+                      "response": {
+                        "$ref": "Empty"
+                      },
+                      "scopes": [
+                        "https://www.googleapis.com/auth/cloud-platform",
+                        "https://www.googleapis.com/auth/cloud-translation"
+                      ]
+                    },
+                    "get": {
+                      "description": "Gets and AdaptiveMtFile",
+                      "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/adaptiveMtDatasets/{adaptiveMtDatasetsId}/adaptiveMtFiles/{adaptiveMtFilesId}",
+                      "httpMethod": "GET",
+                      "id": "translate.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.get",
+                      "parameterOrder": [
+                        "name"
+                      ],
+                      "parameters": {
+                        "name": {
+                          "description": "Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}`",
+                          "location": "path",
+                          "pattern": "^projects/[^/]+/locations/[^/]+/adaptiveMtDatasets/[^/]+/adaptiveMtFiles/[^/]+$",
+                          "required": true,
+                          "type": "string"
+                        }
+                      },
+                      "path": "v3/{+name}",
+                      "response": {
+                        "$ref": "AdaptiveMtFile"
+                      },
+                      "scopes": [
+                        "https://www.googleapis.com/auth/cloud-platform",
+                        "https://www.googleapis.com/auth/cloud-translation"
+                      ]
+                    },
+                    "list": {
+                      "description": "Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.",
+                      "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/adaptiveMtDatasets/{adaptiveMtDatasetsId}/adaptiveMtFiles",
+                      "httpMethod": "GET",
+                      "id": "translate.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.list",
+                      "parameterOrder": [
+                        "parent"
+                      ],
+                      "parameters": {
+                        "pageSize": {
+                          "description": "Optional. ",
+                          "format": "int32",
+                          "location": "query",
+                          "type": "integer"
+                        },
+                        "pageToken": {
+                          "description": "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.",
+                          "location": "query",
+                          "type": "string"
+                        },
+                        "parent": {
+                          "description": "Required. The resource name of the project from which to list the Adaptive MT files. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`",
+                          "location": "path",
+                          "pattern": "^projects/[^/]+/locations/[^/]+/adaptiveMtDatasets/[^/]+$",
+                          "required": true,
+                          "type": "string"
+                        }
+                      },
+                      "path": "v3/{+parent}/adaptiveMtFiles",
+                      "response": {
+                        "$ref": "ListAdaptiveMtFilesResponse"
+                      },
+                      "scopes": [
+                        "https://www.googleapis.com/auth/cloud-platform",
+                        "https://www.googleapis.com/auth/cloud-translation"
+                      ]
+                    }
+                  },
+                  "resources": {
+                    "adaptiveMtSentences": {
+                      "methods": {
+                        "list": {
+                          "description": "Lists all AdaptiveMtSentences under a given file/dataset.",
+                          "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/adaptiveMtDatasets/{adaptiveMtDatasetsId}/adaptiveMtFiles/{adaptiveMtFilesId}/adaptiveMtSentences",
+                          "httpMethod": "GET",
+                          "id": "translate.projects.locations.adaptiveMtDatasets.adaptiveMtFiles.adaptiveMtSentences.list",
+                          "parameterOrder": [
+                            "parent"
+                          ],
+                          "parameters": {
+                            "pageSize": {
+                              "format": "int32",
+                              "location": "query",
+                              "type": "integer"
+                            },
+                            "pageToken": {
+                              "description": "A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to `ListTranslationMemories` method. The first page is returned if `page_token` is empty or missing.",
+                              "location": "query",
+                              "type": "string"
+                            },
+                            "parent": {
+                              "description": "Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` The following format lists all sentences within a dataset. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`",
+                              "location": "path",
+                              "pattern": "^projects/[^/]+/locations/[^/]+/adaptiveMtDatasets/[^/]+/adaptiveMtFiles/[^/]+$",
+                              "required": true,
+                              "type": "string"
+                            }
+                          },
+                          "path": "v3/{+parent}/adaptiveMtSentences",
+                          "response": {
+                            "$ref": "ListAdaptiveMtSentencesResponse"
+                          },
+                          "scopes": [
+                            "https://www.googleapis.com/auth/cloud-platform",
+                            "https://www.googleapis.com/auth/cloud-translation"
+                          ]
+                        }
+                      }
+                    }
+                  }
+                },
+                "adaptiveMtSentences": {
+                  "methods": {
+                    "list": {
+                      "description": "Lists all AdaptiveMtSentences under a given file/dataset.",
+                      "flatPath": "v3/projects/{projectsId}/locations/{locationsId}/adaptiveMtDatasets/{adaptiveMtDatasetsId}/adaptiveMtSentences",
+                      "httpMethod": "GET",
+                      "id": "translate.projects.locations.adaptiveMtDatasets.adaptiveMtSentences.list",
+                      "parameterOrder": [
+                        "parent"
+                      ],
+                      "parameters": {
+                        "pageSize": {
+                          "format": "int32",
+                          "location": "query",
+                          "type": "integer"
+                        },
+                        "pageToken": {
+                          "description": "A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to `ListTranslationMemories` method. The first page is returned if `page_token` is empty or missing.",
+                          "location": "query",
+                          "type": "string"
+                        },
+                        "parent": {
+                          "description": "Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}` The following format lists all sentences within a dataset. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}`",
+                          "location": "path",
+                          "pattern": "^projects/[^/]+/locations/[^/]+/adaptiveMtDatasets/[^/]+$",
+                          "required": true,
+                          "type": "string"
+                        }
+                      },
+                      "path": "v3/{+parent}/adaptiveMtSentences",
+                      "response": {
+                        "$ref": "ListAdaptiveMtSentencesResponse"
+                      },
+                      "scopes": [
+                        "https://www.googleapis.com/auth/cloud-platform",
+                        "https://www.googleapis.com/auth/cloud-translation"
+                      ]
+                    }
+                  }
+                }
+              }
+            },
             "datasets": {
               "methods": {
                 "create": {
@@ -534,7 +904,8 @@
                     "$ref": "Operation"
                   },
                   "scopes": [
-                    "https://www.googleapis.com/auth/cloud-platform"
+                    "https://www.googleapis.com/auth/cloud-platform",
+                    "https://www.googleapis.com/auth/cloud-translation"
                   ]
                 },
                 "delete": {
@@ -614,7 +985,8 @@
                     "$ref": "Dataset"
                   },
                   "scopes": [
-                    "https://www.googleapis.com/auth/cloud-platform"
+                    "https://www.googleapis.com/auth/cloud-platform",
+                    "https://www.googleapis.com/auth/cloud-translation"
                   ]
                 },
                 "importData": {
@@ -679,7 +1051,8 @@
                     "$ref": "ListDatasetsResponse"
                   },
                   "scopes": [
-                    "https://www.googleapis.com/auth/cloud-platform"
+                    "https://www.googleapis.com/auth/cloud-platform",
+                    "https://www.googleapis.com/auth/cloud-translation"
                   ]
                 }
               },
@@ -784,7 +1157,8 @@
                     "$ref": "Operation"
                   },
                   "scopes": [
-                    "https://www.googleapis.com/auth/cloud-platform"
+                    "https://www.googleapis.com/auth/cloud-platform",
+                    "https://www.googleapis.com/auth/cloud-translation"
                   ]
                 },
                 "get": {
@@ -809,7 +1183,8 @@
                     "$ref": "Glossary"
                   },
                   "scopes": [
-                    "https://www.googleapis.com/auth/cloud-platform"
+                    "https://www.googleapis.com/auth/cloud-platform",
+                    "https://www.googleapis.com/auth/cloud-translation"
                   ]
                 },
                 "list": {
@@ -850,7 +1225,8 @@
                     "$ref": "ListGlossariesResponse"
                   },
                   "scopes": [
-                    "https://www.googleapis.com/auth/cloud-platform"
+                    "https://www.googleapis.com/auth/cloud-platform",
+                    "https://www.googleapis.com/auth/cloud-translation"
                   ]
                 },
                 "patch": {
@@ -968,7 +1344,8 @@
                         "$ref": "GlossaryEntry"
                       },
                       "scopes": [
-                        "https://www.googleapis.com/auth/cloud-platform"
+                        "https://www.googleapis.com/auth/cloud-platform",
+                        "https://www.googleapis.com/auth/cloud-translation"
                       ]
                     },
                     "list": {
@@ -1004,7 +1381,8 @@
                         "$ref": "ListGlossaryEntriesResponse"
                       },
                       "scopes": [
-                        "https://www.googleapis.com/auth/cloud-platform"
+                        "https://www.googleapis.com/auth/cloud-platform",
+                        "https://www.googleapis.com/auth/cloud-translation"
                       ]
                     },
                     "patch": {
@@ -1161,7 +1539,8 @@
                     "$ref": "ListModelsResponse"
                   },
                   "scopes": [
-                    "https://www.googleapis.com/auth/cloud-platform"
+                    "https://www.googleapis.com/auth/cloud-platform",
+                    "https://www.googleapis.com/auth/cloud-translation"
                   ]
                 }
               }
@@ -1327,9 +1706,162 @@
       }
     }
   },
-  "revision": "20231013",
+  "revision": "20231201",
   "rootUrl": "https://translation.googleapis.com/",
   "schemas": {
+    "AdaptiveMtDataset": {
+      "description": "An Adaptive MT Dataset.",
+      "id": "AdaptiveMtDataset",
+      "properties": {
+        "createTime": {
+          "description": "Output only. Timestamp when this dataset was created.",
+          "format": "google-datetime",
+          "readOnly": true,
+          "type": "string"
+        },
+        "displayName": {
+          "description": "The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9.",
+          "type": "string"
+        },
+        "exampleCount": {
+          "description": "The number of examples in the dataset.",
+          "format": "int32",
+          "type": "integer"
+        },
+        "name": {
+          "description": "Required. The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`",
+          "type": "string"
+        },
+        "sourceLanguageCode": {
+          "description": "The BCP-47 language code of the source language.",
+          "type": "string"
+        },
+        "targetLanguageCode": {
+          "description": "The BCP-47 language code of the target language.",
+          "type": "string"
+        },
+        "updateTime": {
+          "description": "Output only. Timestamp when this dataset was last updated.",
+          "format": "google-datetime",
+          "readOnly": true,
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
+    "AdaptiveMtFile": {
+      "description": "An AdaptiveMtFile.",
+      "id": "AdaptiveMtFile",
+      "properties": {
+        "createTime": {
+          "description": "Output only. Timestamp when this file was created.",
+          "format": "google-datetime",
+          "readOnly": true,
+          "type": "string"
+        },
+        "displayName": {
+          "description": "The file's display name.",
+          "type": "string"
+        },
+        "entryCount": {
+          "description": "The number of entries that the file contains.",
+          "format": "int32",
+          "type": "integer"
+        },
+        "name": {
+          "description": "Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}`",
+          "type": "string"
+        },
+        "updateTime": {
+          "description": "Output only. Timestamp when this file was last updated.",
+          "format": "google-datetime",
+          "readOnly": true,
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
+    "AdaptiveMtSentence": {
+      "description": "An AdaptiveMt sentence entry.",
+      "id": "AdaptiveMtSentence",
+      "properties": {
+        "createTime": {
+          "description": "Output only. Timestamp when this sentence was created.",
+          "format": "google-datetime",
+          "readOnly": true,
+          "type": "string"
+        },
+        "name": {
+          "description": "Required. The resource name of the file, in form of `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/files/{file}/sentences/{sentence}`",
+          "type": "string"
+        },
+        "sourceSentence": {
+          "description": "Required. The source sentence.",
+          "type": "string"
+        },
+        "targetSentence": {
+          "description": "Required. The target sentence.",
+          "type": "string"
+        },
+        "updateTime": {
+          "description": "Output only. Timestamp when this sentence was last updated.",
+          "format": "google-datetime",
+          "readOnly": true,
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
+    "AdaptiveMtTranslateRequest": {
+      "description": "The request for sending an AdaptiveMt translation query.",
+      "id": "AdaptiveMtTranslateRequest",
+      "properties": {
+        "content": {
+          "description": "Required. The content of the input in string format. For now only one sentence per request is supported.",
+          "items": {
+            "type": "string"
+          },
+          "type": "array"
+        },
+        "dataset": {
+          "description": "Required. The resource name for the dataset to use for adaptive MT. `projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}`",
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
+    "AdaptiveMtTranslateResponse": {
+      "description": "An AdaptiveMtTranslate response.",
+      "id": "AdaptiveMtTranslateResponse",
+      "properties": {
+        "languageCode": {
+          "description": "Output only. The translation's language code.",
+          "readOnly": true,
+          "type": "string"
+        },
+        "translations": {
+          "description": "Output only. The translation.",
+          "items": {
+            "$ref": "AdaptiveMtTranslation"
+          },
+          "readOnly": true,
+          "type": "array"
+        }
+      },
+      "type": "object"
+    },
+    "AdaptiveMtTranslation": {
+      "description": "An AdaptiveMt translation.",
+      "id": "AdaptiveMtTranslation",
+      "properties": {
+        "translatedText": {
+          "description": "Output only. The translated text.",
+          "readOnly": true,
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
     "BatchDocumentInputConfig": {
       "description": "Input configuration for BatchTranslateDocument request.",
       "id": "BatchDocumentInputConfig",
@@ -1710,6 +2242,26 @@
       },
       "type": "object"
     },
+    "FileInputSource": {
+      "description": "An inlined file.",
+      "id": "FileInputSource",
+      "properties": {
+        "content": {
+          "description": "Required. The file's byte contents.",
+          "format": "byte",
+          "type": "string"
+        },
+        "displayName": {
+          "description": "Required. The file's display name.",
+          "type": "string"
+        },
+        "mimeType": {
+          "description": "Required. The file's mime type.",
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
     "GcsDestination": {
       "description": "The Google Cloud Storage location for the output content.",
       "id": "GcsDestination",
@@ -1877,6 +2429,33 @@
       },
       "type": "object"
     },
+    "ImportAdaptiveMtFileRequest": {
+      "description": "The request for importing an AdaptiveMt file along with its sentences.",
+      "id": "ImportAdaptiveMtFileRequest",
+      "properties": {
+        "fileInputSource": {
+          "$ref": "FileInputSource",
+          "description": "Inline file source."
+        },
+        "gcsInputSource": {
+          "$ref": "GcsInputSource",
+          "description": "Google Cloud Storage file source."
+        }
+      },
+      "type": "object"
+    },
+    "ImportAdaptiveMtFileResponse": {
+      "description": "The response for importing an AdaptiveMtFile",
+      "id": "ImportAdaptiveMtFileResponse",
+      "properties": {
+        "adaptiveMtFile": {
+          "$ref": "AdaptiveMtFile",
+          "description": "Output only. The Adaptive MT file that was imported.",
+          "readOnly": true
+        }
+      },
+      "type": "object"
+    },
     "ImportDataRequest": {
       "description": "Request message for ImportData.",
       "id": "ImportDataRequest",
@@ -1947,6 +2526,63 @@
       },
       "type": "object"
     },
+    "ListAdaptiveMtDatasetsResponse": {
+      "description": "A list of AdaptiveMtDatasets.",
+      "id": "ListAdaptiveMtDatasetsResponse",
+      "properties": {
+        "adaptiveMtDatasets": {
+          "description": "Output only. A list of Adaptive MT datasets.",
+          "items": {
+            "$ref": "AdaptiveMtDataset"
+          },
+          "readOnly": true,
+          "type": "array"
+        },
+        "nextPageToken": {
+          "description": "Optional. A token to retrieve a page of results. Pass this value in the [ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to `ListAdaptiveMtDatasets` method to retrieve the next page of results.",
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
+    "ListAdaptiveMtFilesResponse": {
+      "description": "The response for listing all AdaptiveMt files under a given dataset.",
+      "id": "ListAdaptiveMtFilesResponse",
+      "properties": {
+        "adaptiveMtFiles": {
+          "description": "Output only. The Adaptive MT files.",
+          "items": {
+            "$ref": "AdaptiveMtFile"
+          },
+          "readOnly": true,
+          "type": "array"
+        },
+        "nextPageToken": {
+          "description": "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.",
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
+    "ListAdaptiveMtSentencesResponse": {
+      "description": "List AdaptiveMt sentences response.",
+      "id": "ListAdaptiveMtSentencesResponse",
+      "properties": {
+        "adaptiveMtSentences": {
+          "description": "Output only. The list of AdaptiveMtSentences.",
+          "items": {
+            "$ref": "AdaptiveMtSentence"
+          },
+          "readOnly": true,
+          "type": "array"
+        },
+        "nextPageToken": {
+          "description": "Optional. ",
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
     "ListDatasetsResponse": {
       "description": "Response message for ListDatasets.",
       "id": "ListDatasetsResponse",
diff --git a/googleapiclient/discovery_cache/documents/translate.v3beta1.json b/googleapiclient/discovery_cache/documents/translate.v3beta1.json
index 621a6eb73e..2ce9ffe2bb 100644
--- a/googleapiclient/discovery_cache/documents/translate.v3beta1.json
+++ b/googleapiclient/discovery_cache/documents/translate.v3beta1.json
@@ -744,7 +744,7 @@
       }
     }
   },
-  "revision": "20231013",
+  "revision": "20231201",
   "rootUrl": "https://translation.googleapis.com/",
   "schemas": {
     "BatchDocumentInputConfig": {