@Override
  public final void close() {
    try {
      backgroundResources.close();
    } catch (RuntimeException e) {
      throw e;
    } catch (Exception e) {
      throw new IllegalStateException("Failed to close resource", e);
    }
  }
Constructs an instance of GrpcLiveVideoAnalyticsStub, using the given settings. This is
protected so that it is easy to make a subclass, but otherwise, the static factory methods
should be preferred.
java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/GrpcLiveVideoAnalyticsStub.java