@Test @SuppressWarnings("all") public void getLanguageConstantExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockLanguageConstantService.addException(exception); try { LanguageConstantName resourceName = LanguageConstantName.of("[LANGUAGE_CONSTANT]"); client.getLanguageConstant(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final LanguageConstant getLanguageConstant(LanguageConstantName resourceName) { GetLanguageConstantRequest request = GetLanguageConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getLanguageConstant(request); }
LanguageConstantServiceClient implements BackgroundResource { public final LanguageConstant getLanguageConstant(LanguageConstantName resourceName) { GetLanguageConstantRequest request = GetLanguageConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getLanguageConstant(request); } }
LanguageConstantServiceClient implements BackgroundResource { public final LanguageConstant getLanguageConstant(LanguageConstantName resourceName) { GetLanguageConstantRequest request = GetLanguageConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getLanguageConstant(request); } protected  LanguageConstantServiceClient(LanguageConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  LanguageConstantServiceClient(LanguageConstantServiceStub stub); }
LanguageConstantServiceClient implements BackgroundResource { public final LanguageConstant getLanguageConstant(LanguageConstantName resourceName) { GetLanguageConstantRequest request = GetLanguageConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getLanguageConstant(request); } protected  LanguageConstantServiceClient(LanguageConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  LanguageConstantServiceClient(LanguageConstantServiceStub stub); static final LanguageConstantServiceClient create(); static final LanguageConstantServiceClient create(LanguageConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final LanguageConstantServiceClient create(LanguageConstantServiceStub stub); final LanguageConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") LanguageConstantServiceStub getStub(); final LanguageConstant getLanguageConstant(LanguageConstantName resourceName); final LanguageConstant getLanguageConstant(String resourceName); final LanguageConstant getLanguageConstant(GetLanguageConstantRequest request); final UnaryCallable<GetLanguageConstantRequest, LanguageConstant> getLanguageConstantCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
LanguageConstantServiceClient implements BackgroundResource { public final LanguageConstant getLanguageConstant(LanguageConstantName resourceName) { GetLanguageConstantRequest request = GetLanguageConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getLanguageConstant(request); } protected  LanguageConstantServiceClient(LanguageConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  LanguageConstantServiceClient(LanguageConstantServiceStub stub); static final LanguageConstantServiceClient create(); static final LanguageConstantServiceClient create(LanguageConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final LanguageConstantServiceClient create(LanguageConstantServiceStub stub); final LanguageConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") LanguageConstantServiceStub getStub(); final LanguageConstant getLanguageConstant(LanguageConstantName resourceName); final LanguageConstant getLanguageConstant(String resourceName); final LanguageConstant getLanguageConstant(GetLanguageConstantRequest request); final UnaryCallable<GetLanguageConstantRequest, LanguageConstant> getLanguageConstantCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }