/** * Constructs an instance of GrpcVideoIntelligenceServiceStub, 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. */ protected GrpcVideoIntelligenceServiceStub( VideoIntelligenceServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings<AnnotateVideoRequest, Operation> annotateVideoTransportSettings = GrpcCallSettings.<AnnotateVideoRequest, Operation>newBuilder() .setMethodDescriptor(annotateVideoMethodDescriptor) .build(); this.annotateVideoCallable = callableFactory.createUnaryCallable( annotateVideoTransportSettings, settings.annotateVideoSettings(), clientContext); this.annotateVideoOperationCallable = callableFactory.createOperationCallable( annotateVideoTransportSettings, settings.annotateVideoOperationSettings(), clientContext, this.operationsStub); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
public static final GrpcOperationsStub create(OperationsStubSettings settings) throws IOException { return new GrpcOperationsStub(settings, ClientContext.create(settings)); }
@Override public final void close() { shutdown(); }
public static final GrpcOperationsStub create(OperationsStubSettings settings) throws IOException { return new GrpcOperationsStub(settings, ClientContext.create(settings)); }
@Override public final void close() { shutdown(); }
/** * Constructs an instance of GrpcVideoIntelligenceServiceStub, 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. */ protected GrpcVideoIntelligenceServiceStub( VideoIntelligenceServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings<AnnotateVideoRequest, Operation> annotateVideoTransportSettings = GrpcCallSettings.<AnnotateVideoRequest, Operation>newBuilder() .setMethodDescriptor(annotateVideoMethodDescriptor) .build(); this.annotateVideoCallable = callableFactory.createUnaryCallable( annotateVideoTransportSettings, settings.annotateVideoSettings(), clientContext); this.annotateVideoOperationCallable = callableFactory.createOperationCallable( annotateVideoTransportSettings, settings.annotateVideoOperationSettings(), clientContext, this.operationsStub); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
public static final GrpcOperationsStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcOperationsStub( OperationsStubSettings.newBuilder().build(), clientContext, callableFactory); }
/** * Constructs an instance of GrpcVideoIntelligenceServiceStub, 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. */ protected GrpcVideoIntelligenceServiceStub( VideoIntelligenceServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings<AnnotateVideoRequest, Operation> annotateVideoTransportSettings = GrpcCallSettings.<AnnotateVideoRequest, Operation>newBuilder() .setMethodDescriptor(annotateVideoMethodDescriptor) .build(); this.annotateVideoCallable = callableFactory.createUnaryCallable( annotateVideoTransportSettings, settings.annotateVideoSettings(), clientContext); this.annotateVideoOperationCallable = callableFactory.createOperationCallable( annotateVideoTransportSettings, settings.annotateVideoOperationSettings(), clientContext, this.operationsStub); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
public static final GrpcOperationsStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcOperationsStub( OperationsStubSettings.newBuilder().build(), clientContext, callableFactory); }
/** * Constructs an instance of GrpcVideoIntelligenceServiceStub, 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. */ protected GrpcVideoIntelligenceServiceStub( VideoIntelligenceServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings<AnnotateVideoRequest, Operation> annotateVideoTransportSettings = GrpcCallSettings.<AnnotateVideoRequest, Operation>newBuilder() .setMethodDescriptor(annotateVideoMethodDescriptor) .build(); this.annotateVideoCallable = callableFactory.createUnaryCallable( annotateVideoTransportSettings, settings.annotateVideoSettings(), clientContext); this.annotateVideoOperationCallable = callableFactory.createOperationCallable( annotateVideoTransportSettings, settings.annotateVideoOperationSettings(), clientContext, this.operationsStub); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
public static final GrpcOperationsStub create(ClientContext clientContext) throws IOException { return new GrpcOperationsStub(OperationsStubSettings.newBuilder().build(), clientContext); }
/** * Constructs an instance of GrpcVideoIntelligenceServiceStub, 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. */ protected GrpcVideoIntelligenceServiceStub( VideoIntelligenceServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings<AnnotateVideoRequest, Operation> annotateVideoTransportSettings = GrpcCallSettings.<AnnotateVideoRequest, Operation>newBuilder() .setMethodDescriptor(annotateVideoMethodDescriptor) .build(); this.annotateVideoCallable = callableFactory.createUnaryCallable( annotateVideoTransportSettings, settings.annotateVideoSettings(), clientContext); this.annotateVideoOperationCallable = callableFactory.createOperationCallable( annotateVideoTransportSettings, settings.annotateVideoOperationSettings(), clientContext, this.operationsStub); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); }
public static final GrpcOperationsStub create(ClientContext clientContext) throws IOException { return new GrpcOperationsStub(OperationsStubSettings.newBuilder().build(), clientContext); }
throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);