From 263d1682dd89c9b1aaad5f3cb2e135544b67e5bd Mon Sep 17 00:00:00 2001 From: Xiaozhen Liu Date: Tue, 12 Nov 2019 09:54:30 -0800 Subject: [PATCH] fix: separate jsdoc with api version (#127) --- templates/typescript_gapic/src/$version/$service_client.ts.njk | 2 ++ .../keymanager/src/v1/key_management_service_client.ts.baseline | 2 ++ .../test/testdata/showcase/src/v1beta1/echo_client.ts.baseline | 2 ++ .../texttospeech/src/v1/text_to_speech_client.ts.baseline | 2 ++ .../src/v3beta1/translation_service_client.ts.baseline | 2 ++ 5 files changed, 10 insertions(+) diff --git a/templates/typescript_gapic/src/$version/$service_client.ts.njk b/templates/typescript_gapic/src/$version/$service_client.ts.njk index 97909de26..9baac44a6 100644 --- a/templates/typescript_gapic/src/$version/$service_client.ts.njk +++ b/templates/typescript_gapic/src/$version/$service_client.ts.njk @@ -51,6 +51,8 @@ export interface PaginationResponse< /** {{- util.printCommentsForService(service) }} + * @class + * @memberof {{ api.naming.version }} */ export class {{ service.name }}Client { private _descriptors: Descriptors = {page: {}, stream: {}, longrunning: {}}; diff --git a/typescript/test/testdata/keymanager/src/v1/key_management_service_client.ts.baseline b/typescript/test/testdata/keymanager/src/v1/key_management_service_client.ts.baseline index a53eb19be..539313daa 100644 --- a/typescript/test/testdata/keymanager/src/v1/key_management_service_client.ts.baseline +++ b/typescript/test/testdata/keymanager/src/v1/key_management_service_client.ts.baseline @@ -53,6 +53,8 @@ export interface PaginationResponse< * * If you are using manual gRPC libraries, see * [Using gRPC with Cloud KMS](https://cloud.google.com/kms/docs/grpc). + * @class + * @memberof v1 */ export class KeyManagementServiceClient { private _descriptors: Descriptors = {page: {}, stream: {}, longrunning: {}}; diff --git a/typescript/test/testdata/showcase/src/v1beta1/echo_client.ts.baseline b/typescript/test/testdata/showcase/src/v1beta1/echo_client.ts.baseline index dcba87364..433aa2c1b 100644 --- a/typescript/test/testdata/showcase/src/v1beta1/echo_client.ts.baseline +++ b/typescript/test/testdata/showcase/src/v1beta1/echo_client.ts.baseline @@ -46,6 +46,8 @@ export interface PaginationResponse< * side streaming, client side streaming, and bidirectional streaming. This * service also exposes methods that explicitly implement server delay, and * paginated calls. + * @class + * @memberof v1beta1 */ export class EchoClient { private _descriptors: Descriptors = {page: {}, stream: {}, longrunning: {}}; diff --git a/typescript/test/testdata/texttospeech/src/v1/text_to_speech_client.ts.baseline b/typescript/test/testdata/texttospeech/src/v1/text_to_speech_client.ts.baseline index a206c8b6e..c6e40e355 100644 --- a/typescript/test/testdata/texttospeech/src/v1/text_to_speech_client.ts.baseline +++ b/typescript/test/testdata/texttospeech/src/v1/text_to_speech_client.ts.baseline @@ -29,6 +29,8 @@ const version = require('../../../package.json').version; /** * Service that implements Google Cloud Text-to-Speech API. + * @class + * @memberof v1 */ export class TextToSpeechClient { private _descriptors: Descriptors = {page: {}, stream: {}, longrunning: {}}; diff --git a/typescript/test/testdata/translate/src/v3beta1/translation_service_client.ts.baseline b/typescript/test/testdata/translate/src/v3beta1/translation_service_client.ts.baseline index d0a06fd1a..6d156b552 100644 --- a/typescript/test/testdata/translate/src/v3beta1/translation_service_client.ts.baseline +++ b/typescript/test/testdata/translate/src/v3beta1/translation_service_client.ts.baseline @@ -43,6 +43,8 @@ export interface PaginationResponse< /** * Provides natural language translation operations. + * @class + * @memberof v3beta1 */ export class TranslationServiceClient { private _descriptors: Descriptors = {page: {}, stream: {}, longrunning: {}};