Skip to content

Commit fbb19ea

Browse files
committed
Revert service client throw comment
1 parent 734efa9 commit fbb19ea

File tree

10 files changed

+96
-96
lines changed

10 files changed

+96
-96
lines changed

gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/comment/ServiceClientCommentComposer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class ServiceClientCommentComposer {
3838
// Tokens.
3939
private static final String EMPTY_STRING = "";
4040
private static final String API_EXCEPTION_TYPE_NAME = "com.google.api.gax.rpc.ApiException";
41-
private static final String EXCEPTION_CONDITION = "if the remote call fails.";
41+
private static final String EXCEPTION_CONDITION = "if the remote call fails";
4242

4343
// Constants.
4444
private static final String SERVICE_DESCRIPTION_INTRO_STRING =

gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/goldens/GrpcServiceClientWithNestedClassImport.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public class NestedMessageServiceClient implements BackgroundResource {
163163
* }</pre>
164164
*
165165
* @param request The request object containing all of the parameters for the API call.
166-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
166+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
167167
*/
168168
public final Outer.Middle.Inner nestedMessageMethod(Outer.Middle request) {
169169
return nestedMessageMethodCallable().call(request);

gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public class BookshopClient implements BackgroundResource {
166166
*
167167
* @param booksCount
168168
* @param books
169-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
169+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
170170
*/
171171
public final Book getBook(int booksCount, List<Book> books) {
172172
GetBookRequest request =
@@ -193,7 +193,7 @@ public class BookshopClient implements BackgroundResource {
193193
*
194194
* @param booksList
195195
* @param books
196-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
196+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
197197
*/
198198
public final Book getBook(String booksList, List<Book> books) {
199199
GetBookRequest request =
@@ -223,7 +223,7 @@ public class BookshopClient implements BackgroundResource {
223223
* }</pre>
224224
*
225225
* @param request The request object containing all of the parameters for the API call.
226-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
226+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
227227
*/
228228
public final Book getBook(GetBookRequest request) {
229229
return getBookCallable().call(request);

gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public class DeprecatedServiceClient implements BackgroundResource {
178178
* }</pre>
179179
*
180180
* @param request The request object containing all of the parameters for the API call.
181-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
181+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
182182
*/
183183
public final void fastFibonacci(FibonacciRequest request) {
184184
fastFibonacciCallable().call(request);
@@ -223,7 +223,7 @@ public class DeprecatedServiceClient implements BackgroundResource {
223223
* }</pre>
224224
*
225225
* @param request The request object containing all of the parameters for the API call.
226-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
226+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
227227
* @deprecated This method is deprecated and will be removed in the next major version update.
228228
*/
229229
@Deprecated

gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ public class EchoClient implements BackgroundResource {
322322
* }</pre>
323323
*
324324
* @param request The request object containing all of the parameters for the API call.
325-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
325+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
326326
*/
327327
public final EchoResponse echo() {
328328
EchoRequest request = EchoRequest.newBuilder().build();
@@ -346,7 +346,7 @@ public class EchoClient implements BackgroundResource {
346346
* }</pre>
347347
*
348348
* @param parent
349-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
349+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
350350
*/
351351
public final EchoResponse echo(ResourceName parent) {
352352
EchoRequest request =
@@ -371,7 +371,7 @@ public class EchoClient implements BackgroundResource {
371371
* }</pre>
372372
*
373373
* @param error
374-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
374+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
375375
*/
376376
public final EchoResponse echo(Status error) {
377377
EchoRequest request = EchoRequest.newBuilder().setError(error).build();
@@ -395,7 +395,7 @@ public class EchoClient implements BackgroundResource {
395395
* }</pre>
396396
*
397397
* @param name
398-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
398+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
399399
*/
400400
public final EchoResponse echo(FoobarName name) {
401401
EchoRequest request =
@@ -420,7 +420,7 @@ public class EchoClient implements BackgroundResource {
420420
* }</pre>
421421
*
422422
* @param content
423-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
423+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
424424
*/
425425
public final EchoResponse echo(String content) {
426426
EchoRequest request = EchoRequest.newBuilder().setContent(content).build();
@@ -444,7 +444,7 @@ public class EchoClient implements BackgroundResource {
444444
* }</pre>
445445
*
446446
* @param name
447-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
447+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
448448
*/
449449
public final EchoResponse echo(String name) {
450450
EchoRequest request = EchoRequest.newBuilder().setName(name).build();
@@ -468,7 +468,7 @@ public class EchoClient implements BackgroundResource {
468468
* }</pre>
469469
*
470470
* @param parent
471-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
471+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
472472
*/
473473
public final EchoResponse echo(String parent) {
474474
EchoRequest request = EchoRequest.newBuilder().setParent(parent).build();
@@ -494,7 +494,7 @@ public class EchoClient implements BackgroundResource {
494494
*
495495
* @param content
496496
* @param severity
497-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
497+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
498498
*/
499499
public final EchoResponse echo(String content, Severity severity) {
500500
EchoRequest request =
@@ -525,7 +525,7 @@ public class EchoClient implements BackgroundResource {
525525
* }</pre>
526526
*
527527
* @param request The request object containing all of the parameters for the API call.
528-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
528+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
529529
*/
530530
public final EchoResponse echo(EchoRequest request) {
531531
return echoCallable().call(request);
@@ -712,7 +712,7 @@ public class EchoClient implements BackgroundResource {
712712
* }</pre>
713713
*
714714
* @param request The request object containing all of the parameters for the API call.
715-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
715+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
716716
*/
717717
public final PagedExpandPagedResponse pagedExpand(PagedExpandRequest request) {
718718
return pagedExpandPagedCallable().call(request);
@@ -802,7 +802,7 @@ public class EchoClient implements BackgroundResource {
802802
* }</pre>
803803
*
804804
* @param request The request object containing all of the parameters for the API call.
805-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
805+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
806806
*/
807807
public final SimplePagedExpandPagedResponse simplePagedExpand() {
808808
PagedExpandRequest request = PagedExpandRequest.newBuilder().build();
@@ -833,7 +833,7 @@ public class EchoClient implements BackgroundResource {
833833
* }</pre>
834834
*
835835
* @param request The request object containing all of the parameters for the API call.
836-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
836+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
837837
*/
838838
public final SimplePagedExpandPagedResponse simplePagedExpand(PagedExpandRequest request) {
839839
return simplePagedExpandPagedCallable().call(request);
@@ -923,7 +923,7 @@ public class EchoClient implements BackgroundResource {
923923
* }</pre>
924924
*
925925
* @param ttl
926-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
926+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
927927
*/
928928
public final OperationFuture<WaitResponse, WaitMetadata> waitAsync(Duration ttl) {
929929
WaitRequest request = WaitRequest.newBuilder().setTtl(ttl).build();
@@ -947,7 +947,7 @@ public class EchoClient implements BackgroundResource {
947947
* }</pre>
948948
*
949949
* @param endTime
950-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
950+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
951951
*/
952952
public final OperationFuture<WaitResponse, WaitMetadata> waitAsync(Timestamp endTime) {
953953
WaitRequest request = WaitRequest.newBuilder().setEndTime(endTime).build();
@@ -971,7 +971,7 @@ public class EchoClient implements BackgroundResource {
971971
* }</pre>
972972
*
973973
* @param request The request object containing all of the parameters for the API call.
974-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
974+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
975975
*/
976976
public final OperationFuture<WaitResponse, WaitMetadata> waitAsync(WaitRequest request) {
977977
return waitOperationCallable().futureCall(request);
@@ -1039,7 +1039,7 @@ public class EchoClient implements BackgroundResource {
10391039
* }</pre>
10401040
*
10411041
* @param request The request object containing all of the parameters for the API call.
1042-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
1042+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
10431043
*/
10441044
public final BlockResponse block(BlockRequest request) {
10451045
return blockCallable().call(request);
@@ -1090,7 +1090,7 @@ public class EchoClient implements BackgroundResource {
10901090
* }</pre>
10911091
*
10921092
* @param request The request object containing all of the parameters for the API call.
1093-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
1093+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
10941094
*/
10951095
public final Object collideName(EchoRequest request) {
10961096
return collideNameCallable().call(request);

gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicClient.golden

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public class EchoServiceShouldGeneratePartialPublicClient implements BackgroundR
233233
* }</pre>
234234
*
235235
* @param request The request object containing all of the parameters for the API call.
236-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
236+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
237237
*/
238238
public final EchoResponse echoShouldGenerateAsPublic() {
239239
EchoRequest request = EchoRequest.newBuilder().build();
@@ -259,7 +259,7 @@ public class EchoServiceShouldGeneratePartialPublicClient implements BackgroundR
259259
* }</pre>
260260
*
261261
* @param name
262-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
262+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
263263
*/
264264
public final EchoResponse echoShouldGenerateAsPublic(FoobarName name) {
265265
EchoRequest request =
@@ -286,7 +286,7 @@ public class EchoServiceShouldGeneratePartialPublicClient implements BackgroundR
286286
* }</pre>
287287
*
288288
* @param name
289-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
289+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
290290
*/
291291
public final EchoResponse echoShouldGenerateAsPublic(String name) {
292292
EchoRequest request = EchoRequest.newBuilder().setName(name).build();
@@ -317,7 +317,7 @@ public class EchoServiceShouldGeneratePartialPublicClient implements BackgroundR
317317
* }</pre>
318318
*
319319
* @param request The request object containing all of the parameters for the API call.
320-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
320+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
321321
*/
322322
public final EchoResponse echoShouldGenerateAsPublic(EchoRequest request) {
323323
return echoShouldGenerateAsPublicCallable().call(request);
@@ -438,7 +438,7 @@ public class EchoServiceShouldGeneratePartialPublicClient implements BackgroundR
438438
* }</pre>
439439
*
440440
* @param request The request object containing all of the parameters for the API call.
441-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails. @InternalApi This method
441+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails @InternalApi This method
442442
* is internal used only. Please do not use directly.
443443
*/
444444
@InternalApi("Internal API. This API is not intended for public consumption.")
@@ -466,7 +466,7 @@ public class EchoServiceShouldGeneratePartialPublicClient implements BackgroundR
466466
* }</pre>
467467
*
468468
* @param name
469-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails. @InternalApi This method
469+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails @InternalApi This method
470470
* is internal used only. Please do not use directly.
471471
*/
472472
@InternalApi("Internal API. This API is not intended for public consumption.")
@@ -495,7 +495,7 @@ public class EchoServiceShouldGeneratePartialPublicClient implements BackgroundR
495495
* }</pre>
496496
*
497497
* @param name
498-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails. @InternalApi This method
498+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails @InternalApi This method
499499
* is internal used only. Please do not use directly.
500500
*/
501501
@InternalApi("Internal API. This API is not intended for public consumption.")
@@ -528,7 +528,7 @@ public class EchoServiceShouldGeneratePartialPublicClient implements BackgroundR
528528
* }</pre>
529529
*
530530
* @param request The request object containing all of the parameters for the API call.
531-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails. @InternalApi This method
531+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails @InternalApi This method
532532
* is internal used only. Please do not use directly.
533533
*/
534534
@InternalApi("Internal API. This API is not intended for public consumption.")

gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public class IdentityClient implements BackgroundResource {
245245
* @param parent
246246
* @param displayName
247247
* @param email
248-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
248+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
249249
*/
250250
public final User createUser(String parent, String displayName, String email) {
251251
CreateUserRequest request =
@@ -287,7 +287,7 @@ public class IdentityClient implements BackgroundResource {
287287
* @param nickname
288288
* @param enableNotifications
289289
* @param heightFeet
290-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
290+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
291291
*/
292292
public final User createUser(
293293
String parent,
@@ -359,7 +359,7 @@ public class IdentityClient implements BackgroundResource {
359359
* @param title
360360
* @param subject
361361
* @param artistName
362-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
362+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
363363
*/
364364
public final User createUser(
365365
String parent,
@@ -424,7 +424,7 @@ public class IdentityClient implements BackgroundResource {
424424
* }</pre>
425425
*
426426
* @param request The request object containing all of the parameters for the API call.
427-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
427+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
428428
*/
429429
public final User createUser(CreateUserRequest request) {
430430
return createUserCallable().call(request);
@@ -473,7 +473,7 @@ public class IdentityClient implements BackgroundResource {
473473
* }</pre>
474474
*
475475
* @param name
476-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
476+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
477477
*/
478478
public final User getUser(UserName name) {
479479
GetUserRequest request =
@@ -498,7 +498,7 @@ public class IdentityClient implements BackgroundResource {
498498
* }</pre>
499499
*
500500
* @param name
501-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
501+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
502502
*/
503503
public final User getUser(String name) {
504504
GetUserRequest request = GetUserRequest.newBuilder().setName(name).build();
@@ -523,7 +523,7 @@ public class IdentityClient implements BackgroundResource {
523523
* }</pre>
524524
*
525525
* @param request The request object containing all of the parameters for the API call.
526-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
526+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
527527
*/
528528
public final User getUser(GetUserRequest request) {
529529
return getUserCallable().call(request);
@@ -570,7 +570,7 @@ public class IdentityClient implements BackgroundResource {
570570
* }</pre>
571571
*
572572
* @param request The request object containing all of the parameters for the API call.
573-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
573+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
574574
*/
575575
public final User updateUser(UpdateUserRequest request) {
576576
return updateUserCallable().call(request);
@@ -616,7 +616,7 @@ public class IdentityClient implements BackgroundResource {
616616
* }</pre>
617617
*
618618
* @param name
619-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
619+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
620620
*/
621621
public final void deleteUser(UserName name) {
622622
DeleteUserRequest request =
@@ -641,7 +641,7 @@ public class IdentityClient implements BackgroundResource {
641641
* }</pre>
642642
*
643643
* @param name
644-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
644+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
645645
*/
646646
public final void deleteUser(String name) {
647647
DeleteUserRequest request = DeleteUserRequest.newBuilder().setName(name).build();
@@ -666,7 +666,7 @@ public class IdentityClient implements BackgroundResource {
666666
* }</pre>
667667
*
668668
* @param request The request object containing all of the parameters for the API call.
669-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
669+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
670670
*/
671671
public final void deleteUser(DeleteUserRequest request) {
672672
deleteUserCallable().call(request);
@@ -718,7 +718,7 @@ public class IdentityClient implements BackgroundResource {
718718
* }</pre>
719719
*
720720
* @param request The request object containing all of the parameters for the API call.
721-
* @throws com.google.api.gax.rpc.ApiException if the remote call fails.
721+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
722722
*/
723723
public final ListUsersPagedResponse listUsers(ListUsersRequest request) {
724724
return listUsersPagedCallable().call(request);

0 commit comments

Comments
 (0)