@Test @SuppressWarnings("all") public void getChangeStatusExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockChangeStatusService.addException(exception); try { ChangeStatusName resourceName = ChangeStatusName.of("[CUSTOMER]", "[CHANGE_STATUS]"); client.getChangeStatus(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final ChangeStatus getChangeStatus(ChangeStatusName resourceName) { GetChangeStatusRequest request = GetChangeStatusRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getChangeStatus(request); }
ChangeStatusServiceClient implements BackgroundResource { public final ChangeStatus getChangeStatus(ChangeStatusName resourceName) { GetChangeStatusRequest request = GetChangeStatusRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getChangeStatus(request); } }
ChangeStatusServiceClient implements BackgroundResource { public final ChangeStatus getChangeStatus(ChangeStatusName resourceName) { GetChangeStatusRequest request = GetChangeStatusRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getChangeStatus(request); } protected  ChangeStatusServiceClient(ChangeStatusServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ChangeStatusServiceClient(ChangeStatusServiceStub stub); }
ChangeStatusServiceClient implements BackgroundResource { public final ChangeStatus getChangeStatus(ChangeStatusName resourceName) { GetChangeStatusRequest request = GetChangeStatusRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getChangeStatus(request); } protected  ChangeStatusServiceClient(ChangeStatusServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ChangeStatusServiceClient(ChangeStatusServiceStub stub); static final ChangeStatusServiceClient create(); static final ChangeStatusServiceClient create(ChangeStatusServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final ChangeStatusServiceClient create(ChangeStatusServiceStub stub); final ChangeStatusServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") ChangeStatusServiceStub getStub(); final ChangeStatus getChangeStatus(ChangeStatusName resourceName); final ChangeStatus getChangeStatus(String resourceName); final ChangeStatus getChangeStatus(GetChangeStatusRequest request); final UnaryCallable<GetChangeStatusRequest, ChangeStatus> getChangeStatusCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
ChangeStatusServiceClient implements BackgroundResource { public final ChangeStatus getChangeStatus(ChangeStatusName resourceName) { GetChangeStatusRequest request = GetChangeStatusRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getChangeStatus(request); } protected  ChangeStatusServiceClient(ChangeStatusServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  ChangeStatusServiceClient(ChangeStatusServiceStub stub); static final ChangeStatusServiceClient create(); static final ChangeStatusServiceClient create(ChangeStatusServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final ChangeStatusServiceClient create(ChangeStatusServiceStub stub); final ChangeStatusServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") ChangeStatusServiceStub getStub(); final ChangeStatus getChangeStatus(ChangeStatusName resourceName); final ChangeStatus getChangeStatus(String resourceName); final ChangeStatus getChangeStatus(GetChangeStatusRequest request); final UnaryCallable<GetChangeStatusRequest, ChangeStatus> getChangeStatusCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }