@googleapis/translate 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/translate-v2.0.0...translate-v2.1.0) (2024-01-03)
4
+
5
+
6
+ ### Features
7
+
8
+ * **translate:** update the API ([77a0522](https://github.com/googleapis/google-api-nodejs-client/commit/77a05229d287e07fcad75c7d509cda29d5c41856))
9
+
3
10
  ## [2.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/translate-v1.1.1...translate-v2.0.0) (2023-10-11)
4
11
 
5
12
 
package/build/v3.d.ts CHANGED
@@ -71,6 +71,124 @@ export declare namespace translate_v3 {
71
71
  projects: Resource$Projects;
72
72
  constructor(options: GlobalOptions, google?: GoogleConfigurable);
73
73
  }
74
+ /**
75
+ * An Adaptive MT Dataset.
76
+ */
77
+ export interface Schema$AdaptiveMtDataset {
78
+ /**
79
+ * Output only. Timestamp when this dataset was created.
80
+ */
81
+ createTime?: string | null;
82
+ /**
83
+ * 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.
84
+ */
85
+ displayName?: string | null;
86
+ /**
87
+ * The number of examples in the dataset.
88
+ */
89
+ exampleCount?: number | null;
90
+ /**
91
+ * Required. The resource name of the dataset, in form of `projects/{project-number-or-id\}/locations/{location_id\}/adaptiveMtDatasets/{dataset_id\}`
92
+ */
93
+ name?: string | null;
94
+ /**
95
+ * The BCP-47 language code of the source language.
96
+ */
97
+ sourceLanguageCode?: string | null;
98
+ /**
99
+ * The BCP-47 language code of the target language.
100
+ */
101
+ targetLanguageCode?: string | null;
102
+ /**
103
+ * Output only. Timestamp when this dataset was last updated.
104
+ */
105
+ updateTime?: string | null;
106
+ }
107
+ /**
108
+ * An AdaptiveMtFile.
109
+ */
110
+ export interface Schema$AdaptiveMtFile {
111
+ /**
112
+ * Output only. Timestamp when this file was created.
113
+ */
114
+ createTime?: string | null;
115
+ /**
116
+ * The file's display name.
117
+ */
118
+ displayName?: string | null;
119
+ /**
120
+ * The number of entries that the file contains.
121
+ */
122
+ entryCount?: number | null;
123
+ /**
124
+ * Required. The resource name of the file, in form of `projects/{project-number-or-id\}/locations/{location_id\}/adaptiveMtDatasets/{dataset\}/files/{file\}`
125
+ */
126
+ name?: string | null;
127
+ /**
128
+ * Output only. Timestamp when this file was last updated.
129
+ */
130
+ updateTime?: string | null;
131
+ }
132
+ /**
133
+ * An AdaptiveMt sentence entry.
134
+ */
135
+ export interface Schema$AdaptiveMtSentence {
136
+ /**
137
+ * Output only. Timestamp when this sentence was created.
138
+ */
139
+ createTime?: string | null;
140
+ /**
141
+ * Required. The resource name of the file, in form of `projects/{project-number-or-id\}/locations/{location_id\}/adaptiveMtDatasets/{dataset\}/files/{file\}/sentences/{sentence\}`
142
+ */
143
+ name?: string | null;
144
+ /**
145
+ * Required. The source sentence.
146
+ */
147
+ sourceSentence?: string | null;
148
+ /**
149
+ * Required. The target sentence.
150
+ */
151
+ targetSentence?: string | null;
152
+ /**
153
+ * Output only. Timestamp when this sentence was last updated.
154
+ */
155
+ updateTime?: string | null;
156
+ }
157
+ /**
158
+ * The request for sending an AdaptiveMt translation query.
159
+ */
160
+ export interface Schema$AdaptiveMtTranslateRequest {
161
+ /**
162
+ * Required. The content of the input in string format. For now only one sentence per request is supported.
163
+ */
164
+ content?: string[] | null;
165
+ /**
166
+ * Required. The resource name for the dataset to use for adaptive MT. `projects/{project\}/locations/{location-id\}/adaptiveMtDatasets/{dataset\}`
167
+ */
168
+ dataset?: string | null;
169
+ }
170
+ /**
171
+ * An AdaptiveMtTranslate response.
172
+ */
173
+ export interface Schema$AdaptiveMtTranslateResponse {
174
+ /**
175
+ * Output only. The translation's language code.
176
+ */
177
+ languageCode?: string | null;
178
+ /**
179
+ * Output only. The translation.
180
+ */
181
+ translations?: Schema$AdaptiveMtTranslation[];
182
+ }
183
+ /**
184
+ * An AdaptiveMt translation.
185
+ */
186
+ export interface Schema$AdaptiveMtTranslation {
187
+ /**
188
+ * Output only. The translated text.
189
+ */
190
+ translatedText?: string | null;
191
+ }
74
192
  /**
75
193
  * Input configuration for BatchTranslateDocument request.
76
194
  */
@@ -374,6 +492,23 @@ export declare namespace translate_v3 {
374
492
  */
375
493
  outputConfig?: Schema$DatasetOutputConfig;
376
494
  }
495
+ /**
496
+ * An inlined file.
497
+ */
498
+ export interface Schema$FileInputSource {
499
+ /**
500
+ * Required. The file's byte contents.
501
+ */
502
+ content?: string | null;
503
+ /**
504
+ * Required. The file's display name.
505
+ */
506
+ displayName?: string | null;
507
+ /**
508
+ * Required. The file's mime type.
509
+ */
510
+ mimeType?: string | null;
511
+ }
377
512
  /**
378
513
  * The Google Cloud Storage location for the output content.
379
514
  */
@@ -512,6 +647,28 @@ export declare namespace translate_v3 {
512
647
  */
513
648
  terms?: Schema$GlossaryTerm[];
514
649
  }
650
+ /**
651
+ * The request for importing an AdaptiveMt file along with its sentences.
652
+ */
653
+ export interface Schema$ImportAdaptiveMtFileRequest {
654
+ /**
655
+ * Inline file source.
656
+ */
657
+ fileInputSource?: Schema$FileInputSource;
658
+ /**
659
+ * Google Cloud Storage file source.
660
+ */
661
+ gcsInputSource?: Schema$GcsInputSource;
662
+ }
663
+ /**
664
+ * The response for importing an AdaptiveMtFile
665
+ */
666
+ export interface Schema$ImportAdaptiveMtFileResponse {
667
+ /**
668
+ * Output only. The Adaptive MT file that was imported.
669
+ */
670
+ adaptiveMtFile?: Schema$AdaptiveMtFile;
671
+ }
515
672
  /**
516
673
  * Request message for ImportData.
517
674
  */
@@ -569,6 +726,45 @@ export declare namespace translate_v3 {
569
726
  */
570
727
  languageCodes?: string[] | null;
571
728
  }
729
+ /**
730
+ * A list of AdaptiveMtDatasets.
731
+ */
732
+ export interface Schema$ListAdaptiveMtDatasetsResponse {
733
+ /**
734
+ * Output only. A list of Adaptive MT datasets.
735
+ */
736
+ adaptiveMtDatasets?: Schema$AdaptiveMtDataset[];
737
+ /**
738
+ * 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.
739
+ */
740
+ nextPageToken?: string | null;
741
+ }
742
+ /**
743
+ * The response for listing all AdaptiveMt files under a given dataset.
744
+ */
745
+ export interface Schema$ListAdaptiveMtFilesResponse {
746
+ /**
747
+ * Output only. The Adaptive MT files.
748
+ */
749
+ adaptiveMtFiles?: Schema$AdaptiveMtFile[];
750
+ /**
751
+ * 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.
752
+ */
753
+ nextPageToken?: string | null;
754
+ }
755
+ /**
756
+ * List AdaptiveMt sentences response.
757
+ */
758
+ export interface Schema$ListAdaptiveMtSentencesResponse {
759
+ /**
760
+ * Output only. The list of AdaptiveMtSentences.
761
+ */
762
+ adaptiveMtSentences?: Schema$AdaptiveMtSentence[];
763
+ /**
764
+ * Optional.
765
+ */
766
+ nextPageToken?: string | null;
767
+ }
572
768
  /**
573
769
  * Response message for ListDatasets.
574
770
  */
@@ -1136,11 +1332,26 @@ export declare namespace translate_v3 {
1136
1332
  }
1137
1333
  export class Resource$Projects$Locations {
1138
1334
  context: APIRequestContext;
1335
+ adaptiveMtDatasets: Resource$Projects$Locations$Adaptivemtdatasets;
1139
1336
  datasets: Resource$Projects$Locations$Datasets;
1140
1337
  glossaries: Resource$Projects$Locations$Glossaries;
1141
1338
  models: Resource$Projects$Locations$Models;
1142
1339
  operations: Resource$Projects$Locations$Operations;
1143
1340
  constructor(context: APIRequestContext);
1341
+ /**
1342
+ * Translate text using Adaptive MT.
1343
+ *
1344
+ * @param params - Parameters for request
1345
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1346
+ * @param callback - Optional callback that handles the response.
1347
+ * @returns A promise if used with async/await, or void if used with a callback.
1348
+ */
1349
+ adaptiveMtTranslate(params: Params$Resource$Projects$Locations$Adaptivemttranslate, options: StreamMethodOptions): GaxiosPromise<Readable>;
1350
+ adaptiveMtTranslate(params?: Params$Resource$Projects$Locations$Adaptivemttranslate, options?: MethodOptions): GaxiosPromise<Schema$AdaptiveMtTranslateResponse>;
1351
+ adaptiveMtTranslate(params: Params$Resource$Projects$Locations$Adaptivemttranslate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1352
+ adaptiveMtTranslate(params: Params$Resource$Projects$Locations$Adaptivemttranslate, options: MethodOptions | BodyResponseCallback<Schema$AdaptiveMtTranslateResponse>, callback: BodyResponseCallback<Schema$AdaptiveMtTranslateResponse>): void;
1353
+ adaptiveMtTranslate(params: Params$Resource$Projects$Locations$Adaptivemttranslate, callback: BodyResponseCallback<Schema$AdaptiveMtTranslateResponse>): void;
1354
+ adaptiveMtTranslate(callback: BodyResponseCallback<Schema$AdaptiveMtTranslateResponse>): void;
1144
1355
  /**
1145
1356
  * 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.
1146
1357
  *
@@ -1268,6 +1479,16 @@ export declare namespace translate_v3 {
1268
1479
  translateText(params: Params$Resource$Projects$Locations$Translatetext, callback: BodyResponseCallback<Schema$TranslateTextResponse>): void;
1269
1480
  translateText(callback: BodyResponseCallback<Schema$TranslateTextResponse>): void;
1270
1481
  }
1482
+ export interface Params$Resource$Projects$Locations$Adaptivemttranslate extends StandardParameters {
1483
+ /**
1484
+ * Required. Location to make a regional call. Format: `projects/{project-number-or-id\}/locations/{location-id\}`.
1485
+ */
1486
+ parent?: string;
1487
+ /**
1488
+ * Request body metadata
1489
+ */
1490
+ requestBody?: Schema$AdaptiveMtTranslateRequest;
1491
+ }
1271
1492
  export interface Params$Resource$Projects$Locations$Batchtranslatedocument extends StandardParameters {
1272
1493
  /**
1273
1494
  * Required. Location to make a regional call. Format: `projects/{project-number-or-id\}/locations/{location-id\}`. The `global` location is not supported for batch translation. Only AutoML Translation models or glossaries within the same region (have the same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
@@ -1366,6 +1587,269 @@ export declare namespace translate_v3 {
1366
1587
  */
1367
1588
  requestBody?: Schema$TranslateTextRequest;
1368
1589
  }
1590
+ export class Resource$Projects$Locations$Adaptivemtdatasets {
1591
+ context: APIRequestContext;
1592
+ adaptiveMtFiles: Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles;
1593
+ adaptiveMtSentences: Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtsentences;
1594
+ constructor(context: APIRequestContext);
1595
+ /**
1596
+ * Creates an Adaptive MT dataset.
1597
+ *
1598
+ * @param params - Parameters for request
1599
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1600
+ * @param callback - Optional callback that handles the response.
1601
+ * @returns A promise if used with async/await, or void if used with a callback.
1602
+ */
1603
+ create(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Create, options: StreamMethodOptions): GaxiosPromise<Readable>;
1604
+ create(params?: Params$Resource$Projects$Locations$Adaptivemtdatasets$Create, options?: MethodOptions): GaxiosPromise<Schema$AdaptiveMtDataset>;
1605
+ create(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1606
+ create(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Create, options: MethodOptions | BodyResponseCallback<Schema$AdaptiveMtDataset>, callback: BodyResponseCallback<Schema$AdaptiveMtDataset>): void;
1607
+ create(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Create, callback: BodyResponseCallback<Schema$AdaptiveMtDataset>): void;
1608
+ create(callback: BodyResponseCallback<Schema$AdaptiveMtDataset>): void;
1609
+ /**
1610
+ * Deletes an Adaptive MT dataset, including all its entries and associated metadata.
1611
+ *
1612
+ * @param params - Parameters for request
1613
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1614
+ * @param callback - Optional callback that handles the response.
1615
+ * @returns A promise if used with async/await, or void if used with a callback.
1616
+ */
1617
+ delete(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
1618
+ delete(params?: Params$Resource$Projects$Locations$Adaptivemtdatasets$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
1619
+ delete(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1620
+ delete(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
1621
+ delete(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
1622
+ delete(callback: BodyResponseCallback<Schema$Empty>): void;
1623
+ /**
1624
+ * Gets the Adaptive MT dataset.
1625
+ *
1626
+ * @param params - Parameters for request
1627
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1628
+ * @param callback - Optional callback that handles the response.
1629
+ * @returns A promise if used with async/await, or void if used with a callback.
1630
+ */
1631
+ get(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
1632
+ get(params?: Params$Resource$Projects$Locations$Adaptivemtdatasets$Get, options?: MethodOptions): GaxiosPromise<Schema$AdaptiveMtDataset>;
1633
+ get(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1634
+ get(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Get, options: MethodOptions | BodyResponseCallback<Schema$AdaptiveMtDataset>, callback: BodyResponseCallback<Schema$AdaptiveMtDataset>): void;
1635
+ get(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Get, callback: BodyResponseCallback<Schema$AdaptiveMtDataset>): void;
1636
+ get(callback: BodyResponseCallback<Schema$AdaptiveMtDataset>): void;
1637
+ /**
1638
+ * Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.
1639
+ *
1640
+ * @param params - Parameters for request
1641
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1642
+ * @param callback - Optional callback that handles the response.
1643
+ * @returns A promise if used with async/await, or void if used with a callback.
1644
+ */
1645
+ importAdaptiveMtFile(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Importadaptivemtfile, options: StreamMethodOptions): GaxiosPromise<Readable>;
1646
+ importAdaptiveMtFile(params?: Params$Resource$Projects$Locations$Adaptivemtdatasets$Importadaptivemtfile, options?: MethodOptions): GaxiosPromise<Schema$ImportAdaptiveMtFileResponse>;
1647
+ importAdaptiveMtFile(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Importadaptivemtfile, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1648
+ importAdaptiveMtFile(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Importadaptivemtfile, options: MethodOptions | BodyResponseCallback<Schema$ImportAdaptiveMtFileResponse>, callback: BodyResponseCallback<Schema$ImportAdaptiveMtFileResponse>): void;
1649
+ importAdaptiveMtFile(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Importadaptivemtfile, callback: BodyResponseCallback<Schema$ImportAdaptiveMtFileResponse>): void;
1650
+ importAdaptiveMtFile(callback: BodyResponseCallback<Schema$ImportAdaptiveMtFileResponse>): void;
1651
+ /**
1652
+ * Lists all Adaptive MT datasets for which the caller has read permission.
1653
+ *
1654
+ * @param params - Parameters for request
1655
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1656
+ * @param callback - Optional callback that handles the response.
1657
+ * @returns A promise if used with async/await, or void if used with a callback.
1658
+ */
1659
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
1660
+ list(params?: Params$Resource$Projects$Locations$Adaptivemtdatasets$List, options?: MethodOptions): GaxiosPromise<Schema$ListAdaptiveMtDatasetsResponse>;
1661
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1662
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$List, options: MethodOptions | BodyResponseCallback<Schema$ListAdaptiveMtDatasetsResponse>, callback: BodyResponseCallback<Schema$ListAdaptiveMtDatasetsResponse>): void;
1663
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$List, callback: BodyResponseCallback<Schema$ListAdaptiveMtDatasetsResponse>): void;
1664
+ list(callback: BodyResponseCallback<Schema$ListAdaptiveMtDatasetsResponse>): void;
1665
+ }
1666
+ export interface Params$Resource$Projects$Locations$Adaptivemtdatasets$Create extends StandardParameters {
1667
+ /**
1668
+ * Required. Name of the parent project. In form of `projects/{project-number-or-id\}/locations/{location-id\}`
1669
+ */
1670
+ parent?: string;
1671
+ /**
1672
+ * Request body metadata
1673
+ */
1674
+ requestBody?: Schema$AdaptiveMtDataset;
1675
+ }
1676
+ export interface Params$Resource$Projects$Locations$Adaptivemtdatasets$Delete extends StandardParameters {
1677
+ /**
1678
+ * Required. Name of the dataset. In the form of `projects/{project-number-or-id\}/locations/{location-id\}/adaptiveMtDatasets/{adaptive-mt-dataset-id\}`
1679
+ */
1680
+ name?: string;
1681
+ }
1682
+ export interface Params$Resource$Projects$Locations$Adaptivemtdatasets$Get extends StandardParameters {
1683
+ /**
1684
+ * Required. Name of the dataset. In the form of `projects/{project-number-or-id\}/locations/{location-id\}/adaptiveMtDatasets/{adaptive-mt-dataset-id\}`
1685
+ */
1686
+ name?: string;
1687
+ }
1688
+ export interface Params$Resource$Projects$Locations$Adaptivemtdatasets$Importadaptivemtfile extends StandardParameters {
1689
+ /**
1690
+ * Required. The resource name of the file, in form of `projects/{project-number-or-id\}/locations/{location_id\}/adaptiveMtDatasets/{dataset\}`
1691
+ */
1692
+ parent?: string;
1693
+ /**
1694
+ * Request body metadata
1695
+ */
1696
+ requestBody?: Schema$ImportAdaptiveMtFileRequest;
1697
+ }
1698
+ export interface Params$Resource$Projects$Locations$Adaptivemtdatasets$List extends StandardParameters {
1699
+ /**
1700
+ * Optional. An expression for filtering the results of the request. Filter is not supported yet.
1701
+ */
1702
+ filter?: string;
1703
+ /**
1704
+ * Optional. Requested page size. The server may return fewer results than requested. If unspecified, the server picks an appropriate default.
1705
+ */
1706
+ pageSize?: number;
1707
+ /**
1708
+ * 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.
1709
+ */
1710
+ pageToken?: string;
1711
+ /**
1712
+ * Required. The resource name of the project from which to list the Adaptive MT datasets. `projects/{project-number-or-id\}/locations/{location-id\}`
1713
+ */
1714
+ parent?: string;
1715
+ }
1716
+ export class Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles {
1717
+ context: APIRequestContext;
1718
+ adaptiveMtSentences: Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Adaptivemtsentences;
1719
+ constructor(context: APIRequestContext);
1720
+ /**
1721
+ * Deletes an AdaptiveMtFile along with its sentences.
1722
+ *
1723
+ * @param params - Parameters for request
1724
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1725
+ * @param callback - Optional callback that handles the response.
1726
+ * @returns A promise if used with async/await, or void if used with a callback.
1727
+ */
1728
+ delete(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Delete, options: StreamMethodOptions): GaxiosPromise<Readable>;
1729
+ delete(params?: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Delete, options?: MethodOptions): GaxiosPromise<Schema$Empty>;
1730
+ delete(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Delete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1731
+ delete(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Delete, options: MethodOptions | BodyResponseCallback<Schema$Empty>, callback: BodyResponseCallback<Schema$Empty>): void;
1732
+ delete(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Delete, callback: BodyResponseCallback<Schema$Empty>): void;
1733
+ delete(callback: BodyResponseCallback<Schema$Empty>): void;
1734
+ /**
1735
+ * Gets and AdaptiveMtFile
1736
+ *
1737
+ * @param params - Parameters for request
1738
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1739
+ * @param callback - Optional callback that handles the response.
1740
+ * @returns A promise if used with async/await, or void if used with a callback.
1741
+ */
1742
+ get(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Get, options: StreamMethodOptions): GaxiosPromise<Readable>;
1743
+ get(params?: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Get, options?: MethodOptions): GaxiosPromise<Schema$AdaptiveMtFile>;
1744
+ get(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1745
+ get(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Get, options: MethodOptions | BodyResponseCallback<Schema$AdaptiveMtFile>, callback: BodyResponseCallback<Schema$AdaptiveMtFile>): void;
1746
+ get(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Get, callback: BodyResponseCallback<Schema$AdaptiveMtFile>): void;
1747
+ get(callback: BodyResponseCallback<Schema$AdaptiveMtFile>): void;
1748
+ /**
1749
+ * Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.
1750
+ *
1751
+ * @param params - Parameters for request
1752
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1753
+ * @param callback - Optional callback that handles the response.
1754
+ * @returns A promise if used with async/await, or void if used with a callback.
1755
+ */
1756
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
1757
+ list(params?: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$List, options?: MethodOptions): GaxiosPromise<Schema$ListAdaptiveMtFilesResponse>;
1758
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1759
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$List, options: MethodOptions | BodyResponseCallback<Schema$ListAdaptiveMtFilesResponse>, callback: BodyResponseCallback<Schema$ListAdaptiveMtFilesResponse>): void;
1760
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$List, callback: BodyResponseCallback<Schema$ListAdaptiveMtFilesResponse>): void;
1761
+ list(callback: BodyResponseCallback<Schema$ListAdaptiveMtFilesResponse>): void;
1762
+ }
1763
+ export interface Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Delete extends StandardParameters {
1764
+ /**
1765
+ * Required. The resource name of the file to delete, in form of `projects/{project-number-or-id\}/locations/{location_id\}/adaptiveMtDatasets/{dataset\}/files/{file\}`
1766
+ */
1767
+ name?: string;
1768
+ }
1769
+ export interface Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Get extends StandardParameters {
1770
+ /**
1771
+ * Required. The resource name of the file, in form of `projects/{project-number-or-id\}/locations/{location_id\}/adaptiveMtDatasets/{dataset\}/files/{file\}`
1772
+ */
1773
+ name?: string;
1774
+ }
1775
+ export interface Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$List extends StandardParameters {
1776
+ /**
1777
+ * Optional.
1778
+ */
1779
+ pageSize?: number;
1780
+ /**
1781
+ * 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.
1782
+ */
1783
+ pageToken?: string;
1784
+ /**
1785
+ * Required. The resource name of the project from which to list the Adaptive MT files. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
1786
+ */
1787
+ parent?: string;
1788
+ }
1789
+ export class Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Adaptivemtsentences {
1790
+ context: APIRequestContext;
1791
+ constructor(context: APIRequestContext);
1792
+ /**
1793
+ * Lists all AdaptiveMtSentences under a given file/dataset.
1794
+ *
1795
+ * @param params - Parameters for request
1796
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1797
+ * @param callback - Optional callback that handles the response.
1798
+ * @returns A promise if used with async/await, or void if used with a callback.
1799
+ */
1800
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Adaptivemtsentences$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
1801
+ list(params?: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Adaptivemtsentences$List, options?: MethodOptions): GaxiosPromise<Schema$ListAdaptiveMtSentencesResponse>;
1802
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Adaptivemtsentences$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1803
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Adaptivemtsentences$List, options: MethodOptions | BodyResponseCallback<Schema$ListAdaptiveMtSentencesResponse>, callback: BodyResponseCallback<Schema$ListAdaptiveMtSentencesResponse>): void;
1804
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Adaptivemtsentences$List, callback: BodyResponseCallback<Schema$ListAdaptiveMtSentencesResponse>): void;
1805
+ list(callback: BodyResponseCallback<Schema$ListAdaptiveMtSentencesResponse>): void;
1806
+ }
1807
+ export interface Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtfiles$Adaptivemtsentences$List extends StandardParameters {
1808
+ /**
1809
+ *
1810
+ */
1811
+ pageSize?: number;
1812
+ /**
1813
+ * 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.
1814
+ */
1815
+ pageToken?: string;
1816
+ /**
1817
+ * 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\}`
1818
+ */
1819
+ parent?: string;
1820
+ }
1821
+ export class Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtsentences {
1822
+ context: APIRequestContext;
1823
+ constructor(context: APIRequestContext);
1824
+ /**
1825
+ * Lists all AdaptiveMtSentences under a given file/dataset.
1826
+ *
1827
+ * @param params - Parameters for request
1828
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
1829
+ * @param callback - Optional callback that handles the response.
1830
+ * @returns A promise if used with async/await, or void if used with a callback.
1831
+ */
1832
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtsentences$List, options: StreamMethodOptions): GaxiosPromise<Readable>;
1833
+ list(params?: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtsentences$List, options?: MethodOptions): GaxiosPromise<Schema$ListAdaptiveMtSentencesResponse>;
1834
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtsentences$List, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
1835
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtsentences$List, options: MethodOptions | BodyResponseCallback<Schema$ListAdaptiveMtSentencesResponse>, callback: BodyResponseCallback<Schema$ListAdaptiveMtSentencesResponse>): void;
1836
+ list(params: Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtsentences$List, callback: BodyResponseCallback<Schema$ListAdaptiveMtSentencesResponse>): void;
1837
+ list(callback: BodyResponseCallback<Schema$ListAdaptiveMtSentencesResponse>): void;
1838
+ }
1839
+ export interface Params$Resource$Projects$Locations$Adaptivemtdatasets$Adaptivemtsentences$List extends StandardParameters {
1840
+ /**
1841
+ *
1842
+ */
1843
+ pageSize?: number;
1844
+ /**
1845
+ * 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.
1846
+ */
1847
+ pageToken?: string;
1848
+ /**
1849
+ * 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\}`
1850
+ */
1851
+ parent?: string;
1852
+ }
1369
1853
  export class Resource$Projects$Locations$Datasets {
1370
1854
  context: APIRequestContext;
1371
1855
  examples: Resource$Projects$Locations$Datasets$Examples;