Class GrpcBigQueryStorageStub
java.lang.Object
com.google.cloud.bigquery.storage.v1beta1.stub.BigQueryStorageStub
com.google.cloud.bigquery.storage.v1beta1.stub.GrpcBigQueryStorageStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcBigQueryStorageStub
extends BigQueryStorageStub
gRPC stub implementation for the BigQueryStorage service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcBigQueryStorageStub(BigQueryStorageStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of GrpcBigQueryStorageStub, using the given settings.protectedGrpcBigQueryStorageStub(BigQueryStorageStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcBigQueryStorageStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) com.google.api.gax.rpc.UnaryCallable<Storage.BatchCreateReadSessionStreamsRequest,Storage.BatchCreateReadSessionStreamsResponse> final voidclose()static final GrpcBigQueryStorageStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcBigQueryStorageStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) static final GrpcBigQueryStorageStubcreate(BigQueryStorageStubSettings settings) com.google.api.gax.rpc.UnaryCallable<Storage.CreateReadSessionRequest,Storage.ReadSession> com.google.api.gax.rpc.UnaryCallable<Storage.FinalizeStreamRequest,com.google.protobuf.Empty> com.google.longrunning.stub.GrpcOperationsStubbooleanbooleancom.google.api.gax.rpc.ServerStreamingCallable<Storage.ReadRowsRequest,Storage.ReadRowsResponse> voidshutdown()voidcom.google.api.gax.rpc.UnaryCallable<Storage.SplitReadStreamRequest,Storage.SplitReadStreamResponse>
-
Constructor Details
-
GrpcBigQueryStorageStub
protected GrpcBigQueryStorageStub(BigQueryStorageStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException Constructs an instance of GrpcBigQueryStorageStub, 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
-
GrpcBigQueryStorageStub
protected GrpcBigQueryStorageStub(BigQueryStorageStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcBigQueryStorageStub, 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 GrpcBigQueryStorageStub create(BigQueryStorageStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcBigQueryStorageStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcBigQueryStorageStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub() -
createReadSessionCallable
public com.google.api.gax.rpc.UnaryCallable<Storage.CreateReadSessionRequest,Storage.ReadSession> createReadSessionCallable()- Overrides:
createReadSessionCallablein classBigQueryStorageStub
-
readRowsCallable
public com.google.api.gax.rpc.ServerStreamingCallable<Storage.ReadRowsRequest,Storage.ReadRowsResponse> readRowsCallable()- Overrides:
readRowsCallablein classBigQueryStorageStub
-
batchCreateReadSessionStreamsCallable
public com.google.api.gax.rpc.UnaryCallable<Storage.BatchCreateReadSessionStreamsRequest,Storage.BatchCreateReadSessionStreamsResponse> batchCreateReadSessionStreamsCallable()- Overrides:
batchCreateReadSessionStreamsCallablein classBigQueryStorageStub
-
finalizeStreamCallable
public com.google.api.gax.rpc.UnaryCallable<Storage.FinalizeStreamRequest,com.google.protobuf.Empty> finalizeStreamCallable()- Overrides:
finalizeStreamCallablein classBigQueryStorageStub
-
splitReadStreamCallable
public com.google.api.gax.rpc.UnaryCallable<Storage.SplitReadStreamRequest,Storage.SplitReadStreamResponse> splitReadStreamCallable()- Overrides:
splitReadStreamCallablein classBigQueryStorageStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classBigQueryStorageStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-