@@ -137,43 +137,6 @@ class LanguageTranslatorV2 extends BaseService {
137137 return this . createRequest ( parameters , _callback ) ;
138138 } ;
139139
140- /**
141- * Identify language. as plain
142- *
143- * Identifies the language of the input text.
144- *
145- * @param {Object } params - The parameters to send to the service.
146- * @param {string } params.text - Input text in UTF-8 format.
147- * @param {Object } [params.headers] - Custom request headers
148- * @param {Function } [callback] - The callback that handles the response.
149- * @returns {NodeJS.ReadableStream|void }
150- */
151- public identifyAsPlain ( params : LanguageTranslatorV2 . IdentifyAsPlainParams , callback ?: LanguageTranslatorV2 . Callback < LanguageTranslatorV2 . IdentifiedLanguages > ) : NodeJS . ReadableStream | void {
152- const _params = extend ( { } , params ) ;
153- const _callback = ( callback ) ? callback : ( ) => { /* noop */ } ;
154- const requiredParams = [ 'text' ] ;
155- const missingParams = getMissingParams ( _params , requiredParams ) ;
156- if ( missingParams ) {
157- return _callback ( missingParams ) ;
158- }
159- const body = _params . text ;
160- const parameters = {
161- options : {
162- url : '/v2/identify' ,
163- method : 'POST' ,
164- json : false ,
165- body,
166- } ,
167- defaultOptions : extend ( true , { } , this . _options , {
168- headers : extend ( true , {
169- 'Accept' : 'text/plain' ,
170- 'Content-Type' : 'text/plain' ,
171- } , _params . headers ) ,
172- } ) ,
173- } ;
174- return this . createRequest ( parameters , _callback ) ;
175- } ;
176-
177140 /**
178141 * List identifiable languages.
179142 *
@@ -423,13 +386,6 @@ namespace LanguageTranslatorV2 {
423386 headers ?: Object ;
424387 }
425388
426- /** Parameters for the `identifyAsPlain` operation. */
427- export interface IdentifyAsPlainParams {
428- /** Input text in UTF-8 format. */
429- text : string ;
430- headers ?: Object ;
431- }
432-
433389 /** Parameters for the `listIdentifiableLanguages` operation. */
434390 export interface ListIdentifiableLanguagesParams {
435391 headers ?: Object ;
0 commit comments