@Test @SuppressWarnings("all") public void getAccountLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockAccountLinkService.addException(exception); try { AccountLinkName resourceName = AccountLinkName.of("[CUSTOMER]", "[ACCOUNT_LINK]"); client.getAccountLink(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final AccountLink getAccountLink(AccountLinkName resourceName) { GetAccountLinkRequest request = GetAccountLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAccountLink(request); }
AccountLinkServiceClient implements BackgroundResource { public final AccountLink getAccountLink(AccountLinkName resourceName) { GetAccountLinkRequest request = GetAccountLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAccountLink(request); } }
AccountLinkServiceClient implements BackgroundResource { public final AccountLink getAccountLink(AccountLinkName resourceName) { GetAccountLinkRequest request = GetAccountLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAccountLink(request); } protected  AccountLinkServiceClient(AccountLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AccountLinkServiceClient(AccountLinkServiceStub stub); }
AccountLinkServiceClient implements BackgroundResource { public final AccountLink getAccountLink(AccountLinkName resourceName) { GetAccountLinkRequest request = GetAccountLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAccountLink(request); } protected  AccountLinkServiceClient(AccountLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AccountLinkServiceClient(AccountLinkServiceStub stub); static final AccountLinkServiceClient create(); static final AccountLinkServiceClient create(AccountLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final AccountLinkServiceClient create(AccountLinkServiceStub stub); final AccountLinkServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") AccountLinkServiceStub getStub(); final AccountLink getAccountLink(AccountLinkName resourceName); final AccountLink getAccountLink(String resourceName); final AccountLink getAccountLink(GetAccountLinkRequest request); final UnaryCallable<GetAccountLinkRequest, AccountLink> getAccountLinkCallable(); final CreateAccountLinkResponse createAccountLink(
      String customerId, AccountLink accountLink); final CreateAccountLinkResponse createAccountLink(CreateAccountLinkRequest request); final UnaryCallable<CreateAccountLinkRequest, CreateAccountLinkResponse> createAccountLinkCallable(); final MutateAccountLinkResponse mutateAccountLink(
      String customerId, AccountLinkOperation operation); final MutateAccountLinkResponse mutateAccountLink(MutateAccountLinkRequest request); final UnaryCallable<MutateAccountLinkRequest, MutateAccountLinkResponse> mutateAccountLinkCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
AccountLinkServiceClient implements BackgroundResource { public final AccountLink getAccountLink(AccountLinkName resourceName) { GetAccountLinkRequest request = GetAccountLinkRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getAccountLink(request); } protected  AccountLinkServiceClient(AccountLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  AccountLinkServiceClient(AccountLinkServiceStub stub); static final AccountLinkServiceClient create(); static final AccountLinkServiceClient create(AccountLinkServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final AccountLinkServiceClient create(AccountLinkServiceStub stub); final AccountLinkServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") AccountLinkServiceStub getStub(); final AccountLink getAccountLink(AccountLinkName resourceName); final AccountLink getAccountLink(String resourceName); final AccountLink getAccountLink(GetAccountLinkRequest request); final UnaryCallable<GetAccountLinkRequest, AccountLink> getAccountLinkCallable(); final CreateAccountLinkResponse createAccountLink(
      String customerId, AccountLink accountLink); final CreateAccountLinkResponse createAccountLink(CreateAccountLinkRequest request); final UnaryCallable<CreateAccountLinkRequest, CreateAccountLinkResponse> createAccountLinkCallable(); final MutateAccountLinkResponse mutateAccountLink(
      String customerId, AccountLinkOperation operation); final MutateAccountLinkResponse mutateAccountLink(MutateAccountLinkRequest request); final UnaryCallable<MutateAccountLinkRequest, MutateAccountLinkResponse> mutateAccountLinkCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }