@Test @SuppressWarnings("all") public void getOperatingSystemVersionConstantExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT); mockOperatingSystemVersionConstantService.addException(exception); try { OperatingSystemVersionConstantName resourceName = OperatingSystemVersionConstantName.of("[OPERATING_SYSTEM_VERSION_CONSTANT]"); client.getOperatingSystemVersionConstant(resourceName); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { } }
public final OperatingSystemVersionConstant getOperatingSystemVersionConstant( OperatingSystemVersionConstantName resourceName) { GetOperatingSystemVersionConstantRequest request = GetOperatingSystemVersionConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getOperatingSystemVersionConstant(request); }
OperatingSystemVersionConstantServiceClient implements BackgroundResource { public final OperatingSystemVersionConstant getOperatingSystemVersionConstant( OperatingSystemVersionConstantName resourceName) { GetOperatingSystemVersionConstantRequest request = GetOperatingSystemVersionConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getOperatingSystemVersionConstant(request); } }
OperatingSystemVersionConstantServiceClient implements BackgroundResource { public final OperatingSystemVersionConstant getOperatingSystemVersionConstant( OperatingSystemVersionConstantName resourceName) { GetOperatingSystemVersionConstantRequest request = GetOperatingSystemVersionConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getOperatingSystemVersionConstant(request); } protected  OperatingSystemVersionConstantServiceClient(
      OperatingSystemVersionConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  OperatingSystemVersionConstantServiceClient(
      OperatingSystemVersionConstantServiceStub stub); }
OperatingSystemVersionConstantServiceClient implements BackgroundResource { public final OperatingSystemVersionConstant getOperatingSystemVersionConstant( OperatingSystemVersionConstantName resourceName) { GetOperatingSystemVersionConstantRequest request = GetOperatingSystemVersionConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getOperatingSystemVersionConstant(request); } protected  OperatingSystemVersionConstantServiceClient(
      OperatingSystemVersionConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  OperatingSystemVersionConstantServiceClient(
      OperatingSystemVersionConstantServiceStub stub); static final OperatingSystemVersionConstantServiceClient create(); static final OperatingSystemVersionConstantServiceClient create(
      OperatingSystemVersionConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final OperatingSystemVersionConstantServiceClient create(
      OperatingSystemVersionConstantServiceStub stub); final OperatingSystemVersionConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") OperatingSystemVersionConstantServiceStub getStub(); final OperatingSystemVersionConstant getOperatingSystemVersionConstant(
      OperatingSystemVersionConstantName resourceName); final OperatingSystemVersionConstant getOperatingSystemVersionConstant(
      String resourceName); final OperatingSystemVersionConstant getOperatingSystemVersionConstant(
      GetOperatingSystemVersionConstantRequest request); final UnaryCallable<
          GetOperatingSystemVersionConstantRequest, OperatingSystemVersionConstant> getOperatingSystemVersionConstantCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit); }
OperatingSystemVersionConstantServiceClient implements BackgroundResource { public final OperatingSystemVersionConstant getOperatingSystemVersionConstant( OperatingSystemVersionConstantName resourceName) { GetOperatingSystemVersionConstantRequest request = GetOperatingSystemVersionConstantRequest.newBuilder() .setResourceName(resourceName == null ? null : resourceName.toString()) .build(); return getOperatingSystemVersionConstant(request); } protected  OperatingSystemVersionConstantServiceClient(
      OperatingSystemVersionConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected  OperatingSystemVersionConstantServiceClient(
      OperatingSystemVersionConstantServiceStub stub); static final OperatingSystemVersionConstantServiceClient create(); static final OperatingSystemVersionConstantServiceClient create(
      OperatingSystemVersionConstantServiceSettings settings); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") static final OperatingSystemVersionConstantServiceClient create(
      OperatingSystemVersionConstantServiceStub stub); final OperatingSystemVersionConstantServiceSettings getSettings(); @BetaApi("A restructuring of stub classes is planned, so this may break in the future") OperatingSystemVersionConstantServiceStub getStub(); final OperatingSystemVersionConstant getOperatingSystemVersionConstant(
      OperatingSystemVersionConstantName resourceName); final OperatingSystemVersionConstant getOperatingSystemVersionConstant(
      String resourceName); final OperatingSystemVersionConstant getOperatingSystemVersionConstant(
      GetOperatingSystemVersionConstantRequest request); final UnaryCallable<
          GetOperatingSystemVersionConstantRequest, OperatingSystemVersionConstant> getOperatingSystemVersionConstantCallable(); @Override final void close(); @Override void shutdown(); @Override boolean isShutdown(); @Override boolean isTerminated(); @Override void shutdownNow(); @Override boolean awaitTermination(long duration, TimeUnit unit);  }