Skip to content

Commit 69f41f1

Browse files
chore: [Many APIs] update styles (#8841)
1 parent 9873f6b commit 69f41f1

6 files changed

Lines changed: 236 additions & 120 deletions

File tree

Vision/src/V1/Client/ImageAnnotatorClient.php

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,10 @@ public function __call($method, $args)
322322
*
323323
* @throws ApiException Thrown if the API call fails.
324324
*/
325-
public function asyncBatchAnnotateFiles(AsyncBatchAnnotateFilesRequest $request, array $callOptions = []): OperationResponse
326-
{
325+
public function asyncBatchAnnotateFiles(
326+
AsyncBatchAnnotateFilesRequest $request,
327+
array $callOptions = []
328+
): OperationResponse {
327329
return $this->startApiCall('AsyncBatchAnnotateFiles', $request, $callOptions)->wait();
328330
}
329331

@@ -357,8 +359,10 @@ public function asyncBatchAnnotateFiles(AsyncBatchAnnotateFilesRequest $request,
357359
*
358360
* @throws ApiException Thrown if the API call fails.
359361
*/
360-
public function asyncBatchAnnotateImages(AsyncBatchAnnotateImagesRequest $request, array $callOptions = []): OperationResponse
361-
{
362+
public function asyncBatchAnnotateImages(
363+
AsyncBatchAnnotateImagesRequest $request,
364+
array $callOptions = []
365+
): OperationResponse {
362366
return $this->startApiCall('AsyncBatchAnnotateImages', $request, $callOptions)->wait();
363367
}
364368

@@ -389,8 +393,10 @@ public function asyncBatchAnnotateImages(AsyncBatchAnnotateImagesRequest $reques
389393
*
390394
* @throws ApiException Thrown if the API call fails.
391395
*/
392-
public function batchAnnotateFiles(BatchAnnotateFilesRequest $request, array $callOptions = []): BatchAnnotateFilesResponse
393-
{
396+
public function batchAnnotateFiles(
397+
BatchAnnotateFilesRequest $request,
398+
array $callOptions = []
399+
): BatchAnnotateFilesResponse {
394400
return $this->startApiCall('BatchAnnotateFiles', $request, $callOptions)->wait();
395401
}
396402

@@ -415,8 +421,10 @@ public function batchAnnotateFiles(BatchAnnotateFilesRequest $request, array $ca
415421
*
416422
* @throws ApiException Thrown if the API call fails.
417423
*/
418-
public function batchAnnotateImages(BatchAnnotateImagesRequest $request, array $callOptions = []): BatchAnnotateImagesResponse
419-
{
424+
public function batchAnnotateImages(
425+
BatchAnnotateImagesRequest $request,
426+
array $callOptions = []
427+
): BatchAnnotateImagesResponse {
420428
return $this->startApiCall('BatchAnnotateImages', $request, $callOptions)->wait();
421429
}
422430
}

Vision/src/V1/Client/ProductSearchClient.php

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,12 @@ public static function productSetName(string $project, string $location, string
275275
*
276276
* @return string The formatted reference_image resource.
277277
*/
278-
public static function referenceImageName(string $project, string $location, string $product, string $referenceImage): string
279-
{
278+
public static function referenceImageName(
279+
string $project,
280+
string $location,
281+
string $product,
282+
string $referenceImage
283+
): string {
280284
return self::getPathTemplate('referenceImage')->render([
281285
'project' => $project,
282286
'location' => $location,
@@ -837,8 +841,10 @@ public function listProducts(ListProductsRequest $request, array $callOptions =
837841
*
838842
* @throws ApiException Thrown if the API call fails.
839843
*/
840-
public function listProductsInProductSet(ListProductsInProductSetRequest $request, array $callOptions = []): PagedListResponse
841-
{
844+
public function listProductsInProductSet(
845+
ListProductsInProductSetRequest $request,
846+
array $callOptions = []
847+
): PagedListResponse {
842848
return $this->startApiCall('ListProductsInProductSet', $request, $callOptions);
843849
}
844850

@@ -943,8 +949,10 @@ public function purgeProducts(PurgeProductsRequest $request, array $callOptions
943949
*
944950
* @throws ApiException Thrown if the API call fails.
945951
*/
946-
public function removeProductFromProductSet(RemoveProductFromProductSetRequest $request, array $callOptions = []): void
947-
{
952+
public function removeProductFromProductSet(
953+
RemoveProductFromProductSetRequest $request,
954+
array $callOptions = []
955+
): void {
948956
$this->startApiCall('RemoveProductFromProductSet', $request, $callOptions)->wait();
949957
}
950958

0 commit comments

Comments
 (0)