@Test @SuppressWarnings("all") public void getIncomeRangeViewExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockIncomeRangeViewService.addException(exception); try { IncomeRangeViewName resourceName = IncomeRangeViewName.of("[CUSTOMER]", "[INCOME_RANGE_VIEW]"); client.getIncomeRangeView(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final IncomeRangeView getIncomeRangeView(IncomeRangeViewName resourceName) { GetIncomeRangeViewRequest request = GetIncomeRangeViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getIncomeRangeView(request); }
IncomeRangeViewServiceClient implements BackgroundResource { public final IncomeRangeView getIncomeRangeView(IncomeRangeViewName resourceName) { GetIncomeRangeViewRequest request = GetIncomeRangeViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getIncomeRangeView(request); } }
IncomeRangeViewServiceClient implements BackgroundResource { public final IncomeRangeView getIncomeRangeView(IncomeRangeViewName resourceName) { GetIncomeRangeViewRequest request = GetIncomeRangeViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getIncomeRangeView(request); } protected  IncomeRangeViewServiceClient(IncomeRangeViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  IncomeRangeViewServiceClient(IncomeRangeViewServiceStub stub); }
IncomeRangeViewServiceClient implements BackgroundResource { public final IncomeRangeView getIncomeRangeView(IncomeRangeViewName resourceName) { GetIncomeRangeViewRequest request = GetIncomeRangeViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getIncomeRangeView(request); } protected  IncomeRangeViewServiceClient(IncomeRangeViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  IncomeRangeViewServiceClient(IncomeRangeViewServiceStub stub); static final IncomeRangeViewServiceClient create(); static final IncomeRangeViewServiceClient create(IncomeRangeViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final IncomeRangeViewServiceClient create(IncomeRangeViewServiceStub stub); final IncomeRangeViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") IncomeRangeViewServiceStub getStub(); final IncomeRangeView getIncomeRangeView(IncomeRangeViewName resourceName); final IncomeRangeView getIncomeRangeView(String resourceName); final IncomeRangeView getIncomeRangeView(GetIncomeRangeViewRequest request); final UnaryCallable<GetIncomeRangeViewRequest, IncomeRangeView> getIncomeRangeViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
IncomeRangeViewServiceClient implements BackgroundResource { public final IncomeRangeView getIncomeRangeView(IncomeRangeViewName resourceName) { GetIncomeRangeViewRequest request = GetIncomeRangeViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getIncomeRangeView(request); } protected  IncomeRangeViewServiceClient(IncomeRangeViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  IncomeRangeViewServiceClient(IncomeRangeViewServiceStub stub); static final IncomeRangeViewServiceClient create(); static final IncomeRangeViewServiceClient create(IncomeRangeViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final IncomeRangeViewServiceClient create(IncomeRangeViewServiceStub stub); final IncomeRangeViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") IncomeRangeViewServiceStub getStub(); final IncomeRangeView getIncomeRangeView(IncomeRangeViewName resourceName); final IncomeRangeView getIncomeRangeView(String resourceName); final IncomeRangeView getIncomeRangeView(GetIncomeRangeViewRequest request); final UnaryCallable<GetIncomeRangeViewRequest, IncomeRangeView> getIncomeRangeViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }