@Test @SuppressWarnings("all") public void getGroupPlacementViewExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockGroupPlacementViewService.addException(exception); try { GroupPlacementViewName resourceName = GroupPlacementViewName.of("[CUSTOMER]", "[GROUP_PLACEMENT_VIEW]"); client.getGroupPlacementView(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final GroupPlacementView getGroupPlacementView(GroupPlacementViewName resourceName) { GetGroupPlacementViewRequest request = GetGroupPlacementViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getGroupPlacementView(request); }
GroupPlacementViewServiceClient implements BackgroundResource { public final GroupPlacementView getGroupPlacementView(GroupPlacementViewName resourceName) { GetGroupPlacementViewRequest request = GetGroupPlacementViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getGroupPlacementView(request); } }
GroupPlacementViewServiceClient implements BackgroundResource { public final GroupPlacementView getGroupPlacementView(GroupPlacementViewName resourceName) { GetGroupPlacementViewRequest request = GetGroupPlacementViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getGroupPlacementView(request); } protected  GroupPlacementViewServiceClient(GroupPlacementViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  GroupPlacementViewServiceClient(GroupPlacementViewServiceStub stub); }
GroupPlacementViewServiceClient implements BackgroundResource { public final GroupPlacementView getGroupPlacementView(GroupPlacementViewName resourceName) { GetGroupPlacementViewRequest request = GetGroupPlacementViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getGroupPlacementView(request); } protected  GroupPlacementViewServiceClient(GroupPlacementViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  GroupPlacementViewServiceClient(GroupPlacementViewServiceStub stub); static final GroupPlacementViewServiceClient create(); static final GroupPlacementViewServiceClient create(
      GroupPlacementViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final GroupPlacementViewServiceClient create(GroupPlacementViewServiceStub stub); final GroupPlacementViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") GroupPlacementViewServiceStub getStub(); final GroupPlacementView getGroupPlacementView(GroupPlacementViewName resourceName); final GroupPlacementView getGroupPlacementView(String resourceName); final GroupPlacementView getGroupPlacementView(GetGroupPlacementViewRequest request); final UnaryCallable<GetGroupPlacementViewRequest, GroupPlacementView> getGroupPlacementViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
GroupPlacementViewServiceClient implements BackgroundResource { public final GroupPlacementView getGroupPlacementView(GroupPlacementViewName resourceName) { GetGroupPlacementViewRequest request = GetGroupPlacementViewRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getGroupPlacementView(request); } protected  GroupPlacementViewServiceClient(GroupPlacementViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  GroupPlacementViewServiceClient(GroupPlacementViewServiceStub stub); static final GroupPlacementViewServiceClient create(); static final GroupPlacementViewServiceClient create(
      GroupPlacementViewServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final GroupPlacementViewServiceClient create(GroupPlacementViewServiceStub stub); final GroupPlacementViewServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") GroupPlacementViewServiceStub getStub(); final GroupPlacementView getGroupPlacementView(GroupPlacementViewName resourceName); final GroupPlacementView getGroupPlacementView(String resourceName); final GroupPlacementView getGroupPlacementView(GetGroupPlacementViewRequest request); final UnaryCallable<GetGroupPlacementViewRequest, GroupPlacementView> getGroupPlacementViewCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }