Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/Generation/GapicClientV2Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ private function generateClass(): PhpClass
'Service Description: ' . ($this->serviceDetails->docLines->firstOrNull() ?? '')
)
),
!is_null($this->serviceDetails->apiVersion)
? PhpDoc::text(
'This client uses ' . $this->serviceDetails->shortName . ' version ' . $this->serviceDetails->apiVersion . '.'
)
: null,
PhpDoc::preFormattedText(
Vector::new([
'This class provides the ability to make remote calls to the backing service through method',
Expand Down
2 changes: 2 additions & 0 deletions tests/Unit/ProtoTests/Basic/out/src/Client/BasicClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
/**
* Service Description: This is a basic service.
*
* This client uses Basic version v1_20240418.
*
* This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods.
*
Expand Down