@Test @SuppressWarnings("all") public void getMobileDeviceConstantExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockMobileDeviceConstantService.addException(exception); try { MobileDeviceConstantName resourceName = MobileDeviceConstantName.of("[MOBILE_DEVICE_CONSTANT]"); client.getMobileDeviceConstant(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final MobileDeviceConstant getMobileDeviceConstant(MobileDeviceConstantName resourceName) { GetMobileDeviceConstantRequest request = GetMobileDeviceConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMobileDeviceConstant(request); }
MobileDeviceConstantServiceClient implements BackgroundResource { public final MobileDeviceConstant getMobileDeviceConstant(MobileDeviceConstantName resourceName) { GetMobileDeviceConstantRequest request = GetMobileDeviceConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMobileDeviceConstant(request); } }
MobileDeviceConstantServiceClient implements BackgroundResource { public final MobileDeviceConstant getMobileDeviceConstant(MobileDeviceConstantName resourceName) { GetMobileDeviceConstantRequest request = GetMobileDeviceConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMobileDeviceConstant(request); } protected  MobileDeviceConstantServiceClient(MobileDeviceConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  MobileDeviceConstantServiceClient(MobileDeviceConstantServiceStub stub); }
MobileDeviceConstantServiceClient implements BackgroundResource { public final MobileDeviceConstant getMobileDeviceConstant(MobileDeviceConstantName resourceName) { GetMobileDeviceConstantRequest request = GetMobileDeviceConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMobileDeviceConstant(request); } protected  MobileDeviceConstantServiceClient(MobileDeviceConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  MobileDeviceConstantServiceClient(MobileDeviceConstantServiceStub stub); static final MobileDeviceConstantServiceClient create(); static final MobileDeviceConstantServiceClient create(
      MobileDeviceConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final MobileDeviceConstantServiceClient create(
      MobileDeviceConstantServiceStub stub); final MobileDeviceConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") MobileDeviceConstantServiceStub getStub(); final MobileDeviceConstant getMobileDeviceConstant(MobileDeviceConstantName resourceName); final MobileDeviceConstant getMobileDeviceConstant(String resourceName); final MobileDeviceConstant getMobileDeviceConstant(
      GetMobileDeviceConstantRequest request); final UnaryCallable<GetMobileDeviceConstantRequest, MobileDeviceConstant> getMobileDeviceConstantCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
MobileDeviceConstantServiceClient implements BackgroundResource { public final MobileDeviceConstant getMobileDeviceConstant(MobileDeviceConstantName resourceName) { GetMobileDeviceConstantRequest request = GetMobileDeviceConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getMobileDeviceConstant(request); } protected  MobileDeviceConstantServiceClient(MobileDeviceConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  MobileDeviceConstantServiceClient(MobileDeviceConstantServiceStub stub); static final MobileDeviceConstantServiceClient create(); static final MobileDeviceConstantServiceClient create(
      MobileDeviceConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final MobileDeviceConstantServiceClient create(
      MobileDeviceConstantServiceStub stub); final MobileDeviceConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") MobileDeviceConstantServiceStub getStub(); final MobileDeviceConstant getMobileDeviceConstant(MobileDeviceConstantName resourceName); final MobileDeviceConstant getMobileDeviceConstant(String resourceName); final MobileDeviceConstant getMobileDeviceConstant(
      GetMobileDeviceConstantRequest request); final UnaryCallable<GetMobileDeviceConstantRequest, MobileDeviceConstant> getMobileDeviceConstantCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }