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
Constructors Modifier Constructor Description protected
GrpcBigQueryStorageStub(BigQueryStorageStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcBigQueryStorageStub, using the given settings.protected
GrpcBigQueryStorageStub(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
-
-
-
Constructor Detail
-
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 Detail
-
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:
createReadSessionCallable
in classBigQueryStorageStub
-
readRowsCallable
public com.google.api.gax.rpc.ServerStreamingCallable<Storage.ReadRowsRequest,Storage.ReadRowsResponse> readRowsCallable()
- Overrides:
readRowsCallable
in classBigQueryStorageStub
-
batchCreateReadSessionStreamsCallable
public com.google.api.gax.rpc.UnaryCallable<Storage.BatchCreateReadSessionStreamsRequest,Storage.BatchCreateReadSessionStreamsResponse> batchCreateReadSessionStreamsCallable()
- Overrides:
batchCreateReadSessionStreamsCallable
in classBigQueryStorageStub
-
finalizeStreamCallable
public com.google.api.gax.rpc.UnaryCallable<Storage.FinalizeStreamRequest,com.google.protobuf.Empty> finalizeStreamCallable()
- Overrides:
finalizeStreamCallable
in classBigQueryStorageStub
-
splitReadStreamCallable
public com.google.api.gax.rpc.UnaryCallable<Storage.SplitReadStreamRequest,Storage.SplitReadStreamResponse> splitReadStreamCallable()
- Overrides:
splitReadStreamCallable
in classBigQueryStorageStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classBigQueryStorageStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-