@Test @SuppressWarnings("all") public void getClickViewExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockClickViewService.addException(exception); try { ClickViewName resourceName = ClickViewName.of("[CUSTOMER]", "[CLICK_VIEW]"); client.getClickView(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final ClickView getClickView(ClickViewName resourceName) { GetClickViewRequest request = GetClickViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getClickView(request); }
ClickViewServiceClient implements BackgroundResource { public final ClickView getClickView(ClickViewName resourceName) { GetClickViewRequest request = GetClickViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getClickView(request); } }
ClickViewServiceClient implements BackgroundResource { public final ClickView getClickView(ClickViewName resourceName) { GetClickViewRequest request = GetClickViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getClickView(request); } protected  ClickViewServiceClient(ClickViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ClickViewServiceClient(ClickViewServiceStub stub); }
ClickViewServiceClient implements BackgroundResource { public final ClickView getClickView(ClickViewName resourceName) { GetClickViewRequest request = GetClickViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getClickView(request); } protected  ClickViewServiceClient(ClickViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ClickViewServiceClient(ClickViewServiceStub stub); static final ClickViewServiceClient create(); static final ClickViewServiceClient create(ClickViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final ClickViewServiceClient create(ClickViewServiceStub stub); final ClickViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") ClickViewServiceStub getStub(); final ClickView getClickView(ClickViewName resourceName); final ClickView getClickView(String resourceName); final ClickView getClickView(GetClickViewRequest request); final UnaryCallable<GetClickViewRequest, ClickView> getClickViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
ClickViewServiceClient implements BackgroundResource { public final ClickView getClickView(ClickViewName resourceName) { GetClickViewRequest request = GetClickViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getClickView(request); } protected  ClickViewServiceClient(ClickViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ClickViewServiceClient(ClickViewServiceStub stub); static final ClickViewServiceClient create(); static final ClickViewServiceClient create(ClickViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final ClickViewServiceClient create(ClickViewServiceStub stub); final ClickViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") ClickViewServiceStub getStub(); final ClickView getClickView(ClickViewName resourceName); final ClickView getClickView(String resourceName); final ClickView getClickView(GetClickViewRequest request); final UnaryCallable<GetClickViewRequest, ClickView> getClickViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }