@Test @SuppressWarnings("all") public void getVideoExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockVideoService.addException(exception); try { VideoName resourceName = VideoName.of("[CUSTOMER]", "[VIDEO]"); client.getVideo(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final Video getVideo(VideoName resourceName) { GetVideoRequest request = GetVideoRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getVideo(request); }
VideoServiceClient implements BackgroundResource { public final Video getVideo(VideoName resourceName) { GetVideoRequest request = GetVideoRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getVideo(request); } }
VideoServiceClient implements BackgroundResource { public final Video getVideo(VideoName resourceName) { GetVideoRequest request = GetVideoRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getVideo(request); } protected  VideoServiceClient(VideoServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  VideoServiceClient(VideoServiceStub stub); }
VideoServiceClient implements BackgroundResource { public final Video getVideo(VideoName resourceName) { GetVideoRequest request = GetVideoRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getVideo(request); } protected  VideoServiceClient(VideoServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  VideoServiceClient(VideoServiceStub stub); static final VideoServiceClient create(); static final VideoServiceClient create(VideoServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final VideoServiceClient create(VideoServiceStub stub); final VideoServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") VideoServiceStub getStub(); final Video getVideo(VideoName resourceName); final Video getVideo(String resourceName); final Video getVideo(GetVideoRequest request); final UnaryCallable<GetVideoRequest, Video> getVideoCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
VideoServiceClient implements BackgroundResource { public final Video getVideo(VideoName resourceName) { GetVideoRequest request = GetVideoRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getVideo(request); } protected  VideoServiceClient(VideoServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  VideoServiceClient(VideoServiceStub stub); static final VideoServiceClient create(); static final VideoServiceClient create(VideoServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final VideoServiceClient create(VideoServiceStub stub); final VideoServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") VideoServiceStub getStub(); final Video getVideo(VideoName resourceName); final Video getVideo(String resourceName); final Video getVideo(GetVideoRequest request); final UnaryCallable<GetVideoRequest, Video> getVideoCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }