@Test @SuppressWarnings("all") public void getParentalStatusViewExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockParentalStatusViewService.addException(exception); try { ParentalStatusViewName resourceName = ParentalStatusViewName.of("[CUSTOMER]", "[PARENTAL_STATUS_VIEW]"); client.getParentalStatusView(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final ParentalStatusView getParentalStatusView(ParentalStatusViewName resourceName) { GetParentalStatusViewRequest request = GetParentalStatusViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getParentalStatusView(request); }
ParentalStatusViewServiceClient implements BackgroundResource { public final ParentalStatusView getParentalStatusView(ParentalStatusViewName resourceName) { GetParentalStatusViewRequest request = GetParentalStatusViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getParentalStatusView(request); } }
ParentalStatusViewServiceClient implements BackgroundResource { public final ParentalStatusView getParentalStatusView(ParentalStatusViewName resourceName) { GetParentalStatusViewRequest request = GetParentalStatusViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getParentalStatusView(request); } protected  ParentalStatusViewServiceClient(ParentalStatusViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ParentalStatusViewServiceClient(ParentalStatusViewServiceStub stub); }
ParentalStatusViewServiceClient implements BackgroundResource { public final ParentalStatusView getParentalStatusView(ParentalStatusViewName resourceName) { GetParentalStatusViewRequest request = GetParentalStatusViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getParentalStatusView(request); } protected  ParentalStatusViewServiceClient(ParentalStatusViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ParentalStatusViewServiceClient(ParentalStatusViewServiceStub stub); static final ParentalStatusViewServiceClient create(); static final ParentalStatusViewServiceClient create(
      ParentalStatusViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final ParentalStatusViewServiceClient create(ParentalStatusViewServiceStub stub); final ParentalStatusViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") ParentalStatusViewServiceStub getStub(); final ParentalStatusView getParentalStatusView(ParentalStatusViewName resourceName); final ParentalStatusView getParentalStatusView(String resourceName); final ParentalStatusView getParentalStatusView(GetParentalStatusViewRequest request); final UnaryCallable<GetParentalStatusViewRequest, ParentalStatusView> getParentalStatusViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
ParentalStatusViewServiceClient implements BackgroundResource { public final ParentalStatusView getParentalStatusView(ParentalStatusViewName resourceName) { GetParentalStatusViewRequest request = GetParentalStatusViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getParentalStatusView(request); } protected  ParentalStatusViewServiceClient(ParentalStatusViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ParentalStatusViewServiceClient(ParentalStatusViewServiceStub stub); static final ParentalStatusViewServiceClient create(); static final ParentalStatusViewServiceClient create(
      ParentalStatusViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final ParentalStatusViewServiceClient create(ParentalStatusViewServiceStub stub); final ParentalStatusViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") ParentalStatusViewServiceStub getStub(); final ParentalStatusView getParentalStatusView(ParentalStatusViewName resourceName); final ParentalStatusView getParentalStatusView(String resourceName); final ParentalStatusView getParentalStatusView(GetParentalStatusViewRequest request); final UnaryCallable<GetParentalStatusViewRequest, ParentalStatusView> getParentalStatusViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }