Class GrpcBigQueryWriteStub
java.lang.Object
com.google.cloud.bigquery.storage.v1.stub.BigQueryWriteStub
com.google.cloud.bigquery.storage.v1.stub.GrpcBigQueryWriteStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
gRPC stub implementation for the BigQueryWrite service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ModifierConstructorDescriptionprotected
GrpcBigQueryWriteStub
(BigQueryWriteStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of GrpcBigQueryWriteStub, using the given settings.protected
GrpcBigQueryWriteStub
(BigQueryWriteStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcBigQueryWriteStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.rpc.BidiStreamingCallable<AppendRowsRequest,
AppendRowsResponse> boolean
awaitTermination
(long duration, TimeUnit unit) com.google.api.gax.rpc.UnaryCallable<BatchCommitWriteStreamsRequest,
BatchCommitWriteStreamsResponse> final void
close()
static final GrpcBigQueryWriteStub
create
(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcBigQueryWriteStub
create
(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) static final GrpcBigQueryWriteStub
create
(BigQueryWriteStubSettings settings) com.google.api.gax.rpc.UnaryCallable<CreateWriteStreamRequest,
WriteStream> com.google.api.gax.rpc.UnaryCallable<FinalizeWriteStreamRequest,
FinalizeWriteStreamResponse> com.google.api.gax.rpc.UnaryCallable<FlushRowsRequest,
FlushRowsResponse> com.google.longrunning.stub.GrpcOperationsStub
com.google.api.gax.rpc.UnaryCallable<GetWriteStreamRequest,
WriteStream> boolean
boolean
void
shutdown()
void
-
Constructor Details
-
GrpcBigQueryWriteStub
protected GrpcBigQueryWriteStub(BigQueryWriteStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException Constructs an instance of GrpcBigQueryWriteStub, 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
-
GrpcBigQueryWriteStub
protected GrpcBigQueryWriteStub(BigQueryWriteStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcBigQueryWriteStub, 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 GrpcBigQueryWriteStub create(BigQueryWriteStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcBigQueryWriteStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcBigQueryWriteStub 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() -
createWriteStreamCallable
public com.google.api.gax.rpc.UnaryCallable<CreateWriteStreamRequest,WriteStream> createWriteStreamCallable()- Overrides:
createWriteStreamCallable
in classBigQueryWriteStub
-
appendRowsCallable
public com.google.api.gax.rpc.BidiStreamingCallable<AppendRowsRequest,AppendRowsResponse> appendRowsCallable()- Overrides:
appendRowsCallable
in classBigQueryWriteStub
-
getWriteStreamCallable
public com.google.api.gax.rpc.UnaryCallable<GetWriteStreamRequest,WriteStream> getWriteStreamCallable()- Overrides:
getWriteStreamCallable
in classBigQueryWriteStub
-
finalizeWriteStreamCallable
public com.google.api.gax.rpc.UnaryCallable<FinalizeWriteStreamRequest,FinalizeWriteStreamResponse> finalizeWriteStreamCallable()- Overrides:
finalizeWriteStreamCallable
in classBigQueryWriteStub
-
batchCommitWriteStreamsCallable
public com.google.api.gax.rpc.UnaryCallable<BatchCommitWriteStreamsRequest,BatchCommitWriteStreamsResponse> batchCommitWriteStreamsCallable()- Overrides:
batchCommitWriteStreamsCallable
in classBigQueryWriteStub
-
flushRowsCallable
- Overrides:
flushRowsCallable
in classBigQueryWriteStub
-
close
public final void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classBigQueryWriteStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-