Class GrpcStreamingServiceStub
java.lang.Object
com.google.cloud.visionai.v1.stub.StreamingServiceStub
com.google.cloud.visionai.v1.stub.GrpcStreamingServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcStreamingServiceStub
extends StreamingServiceStub
gRPC stub implementation for the StreamingService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcStreamingServiceStub(StreamingServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcStreamingServiceStub, using the given settings.protectedGrpcStreamingServiceStub(StreamingServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcStreamingServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcStreamingServiceStubcreate(ClientContext clientContext) static final GrpcStreamingServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcStreamingServiceStubcreate(StreamingServiceStubSettings settings) booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcStreamingServiceStub
protected GrpcStreamingServiceStub(StreamingServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcStreamingServiceStub, 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.- Throws:
IOException
-
GrpcStreamingServiceStub
protected GrpcStreamingServiceStub(StreamingServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcStreamingServiceStub, 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.- Throws:
IOException
-
-
Method Details
-
create
public static final GrpcStreamingServiceStub create(StreamingServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcStreamingServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
sendPacketsCallable
- Overrides:
sendPacketsCallablein classStreamingServiceStub
-
receivePacketsCallable
- Overrides:
receivePacketsCallablein classStreamingServiceStub
-
receiveEventsCallable
- Overrides:
receiveEventsCallablein classStreamingServiceStub
-
acquireLeaseCallable
- Overrides:
acquireLeaseCallablein classStreamingServiceStub
-
renewLeaseCallable
- Overrides:
renewLeaseCallablein classStreamingServiceStub
-
releaseLeaseCallable
- Overrides:
releaseLeaseCallablein classStreamingServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classStreamingServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,StreamingServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classStreamingServiceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classStreamingServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classStreamingServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-