@Test @SuppressWarnings("all") public void getCurrencyConstantExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockCurrencyConstantService.addException(exception); try { CurrencyConstantName resourceName = CurrencyConstantName.of("[CURRENCY_CONSTANT]"); client.getCurrencyConstant(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final CurrencyConstant getCurrencyConstant(CurrencyConstantName resourceName) { GetCurrencyConstantRequest request = GetCurrencyConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCurrencyConstant(request); }
CurrencyConstantServiceClient implements BackgroundResource { public final CurrencyConstant getCurrencyConstant(CurrencyConstantName resourceName) { GetCurrencyConstantRequest request = GetCurrencyConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCurrencyConstant(request); } }
CurrencyConstantServiceClient implements BackgroundResource { public final CurrencyConstant getCurrencyConstant(CurrencyConstantName resourceName) { GetCurrencyConstantRequest request = GetCurrencyConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCurrencyConstant(request); } protected  CurrencyConstantServiceClient(CurrencyConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CurrencyConstantServiceClient(CurrencyConstantServiceStub stub); }
CurrencyConstantServiceClient implements BackgroundResource { public final CurrencyConstant getCurrencyConstant(CurrencyConstantName resourceName) { GetCurrencyConstantRequest request = GetCurrencyConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCurrencyConstant(request); } protected  CurrencyConstantServiceClient(CurrencyConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CurrencyConstantServiceClient(CurrencyConstantServiceStub stub); static final CurrencyConstantServiceClient create(); static final CurrencyConstantServiceClient create(CurrencyConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CurrencyConstantServiceClient create(CurrencyConstantServiceStub stub); final CurrencyConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CurrencyConstantServiceStub getStub(); final CurrencyConstant getCurrencyConstant(CurrencyConstantName resourceName); final CurrencyConstant getCurrencyConstant(String resourceName); final CurrencyConstant getCurrencyConstant(GetCurrencyConstantRequest request); final UnaryCallable<GetCurrencyConstantRequest, CurrencyConstant> getCurrencyConstantCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
CurrencyConstantServiceClient implements BackgroundResource { public final CurrencyConstant getCurrencyConstant(CurrencyConstantName resourceName) { GetCurrencyConstantRequest request = GetCurrencyConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getCurrencyConstant(request); } protected  CurrencyConstantServiceClient(CurrencyConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  CurrencyConstantServiceClient(CurrencyConstantServiceStub stub); static final CurrencyConstantServiceClient create(); static final CurrencyConstantServiceClient create(CurrencyConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final CurrencyConstantServiceClient create(CurrencyConstantServiceStub stub); final CurrencyConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") CurrencyConstantServiceStub getStub(); final CurrencyConstant getCurrencyConstant(CurrencyConstantName resourceName); final CurrencyConstant getCurrencyConstant(String resourceName); final CurrencyConstant getCurrencyConstant(GetCurrencyConstantRequest request); final UnaryCallable<GetCurrencyConstantRequest, CurrencyConstant> getCurrencyConstantCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }