diff --git a/Google.Api.Generator.Tests/ProtoTests/PublishingSettings/Testing.PublishingSettings/ServiceWithApiVersionClient.g.cs b/Google.Api.Generator.Tests/ProtoTests/PublishingSettings/Testing.PublishingSettings/ServiceWithApiVersionClient.g.cs index 6a690794..1316e417 100644 --- a/Google.Api.Generator.Tests/ProtoTests/PublishingSettings/Testing.PublishingSettings/ServiceWithApiVersionClient.g.cs +++ b/Google.Api.Generator.Tests/ProtoTests/PublishingSettings/Testing.PublishingSettings/ServiceWithApiVersionClient.g.cs @@ -121,7 +121,9 @@ private ServiceWithApiVersionClient BuildImpl() protected override gaxgrpc::ChannelPool GetChannelPool() => ServiceWithApiVersionClient.ChannelPool; } - /// ServiceWithApiVersion client wrapper, for convenient use. + /// + /// ServiceWithApiVersion client wrapper, for convenient use. This client implements API version v1_20240313. + /// /// /// This is a service using the api_version extension. /// diff --git a/Google.Api.Generator/Generation/ServiceAbstractClientClassCodeGenerator.cs b/Google.Api.Generator/Generation/ServiceAbstractClientClassCodeGenerator.cs index ed1a6ca9..8ab9748b 100644 --- a/Google.Api.Generator/Generation/ServiceAbstractClientClassCodeGenerator.cs +++ b/Google.Api.Generator/Generation/ServiceAbstractClientClassCodeGenerator.cs @@ -46,10 +46,14 @@ private ServiceAbstractClientClassCodeGenerator(SourceFileContext ctx, ServiceDe private ClassDeclarationSyntax Generate() { + string summaryPrefix = $"{_svc.DocumentationName} client wrapper, for convenient use."; + string summaryDoc = _svc.ApiVersion is null + ? summaryPrefix + : $"{summaryPrefix} This client implements API version {_svc.ApiVersion}."; var cls = Class(Public | Abstract | Partial, _svc.ClientAbstractTyp) .MaybeWithAttribute(_svc.IsDeprecated, () => _ctx.Type())() .WithXmlDoc( - XmlDoc.Summary($"{_svc.DocumentationName} client wrapper, for convenient use."), + XmlDoc.Summary(summaryDoc), XmlDoc.RemarksPreFormatted(_svc.DocLines)); using (_ctx.InClass(cls)) {