Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- the generated code will now export a function, which returns grpc and API class upon specified authentication context. - v1beta1 also exports as a function, which builds API classes. (currently it's same as LanguageServiceApi itself, because language API is a single-service API). The new usage would be: ``` var language = require('@google-cloud/language'); var v1beta1 = language.v1beta1({keyFile: ...}); var api = v1beta1.LanguageServiceApi(); api.annotateText({type: v1beta1.grpc.Document.Type.PLAIN_TEXT, ...}); ```
- Loading branch information