Class GrpcBigQueryWriteStub
java.lang.Object
com.google.cloud.bigquery.storage.v1beta2.stub.BigQueryWriteStub
com.google.cloud.bigquery.storage.v1beta2.stub.GrpcBigQueryWriteStub
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcBigQueryWriteStub
extends BigQueryWriteStub
gRPC stub implementation for the BigQueryWrite service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcBigQueryWriteStub(BigQueryWriteStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) Constructs an instance of GrpcBigQueryWriteStub, using the given settings.protectedGrpcBigQueryWriteStub(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> booleanawaitTermination(long duration, TimeUnit unit) com.google.api.gax.rpc.UnaryCallable<BatchCommitWriteStreamsRequest,BatchCommitWriteStreamsResponse> final voidclose()static final GrpcBigQueryWriteStubcreate(com.google.api.gax.rpc.ClientContext clientContext) static final GrpcBigQueryWriteStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) static final GrpcBigQueryWriteStubcreate(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.GrpcOperationsStubcom.google.api.gax.rpc.UnaryCallable<GetWriteStreamRequest,WriteStream> booleanbooleanvoidshutdown()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:
createWriteStreamCallablein classBigQueryWriteStub
-
appendRowsCallable
public com.google.api.gax.rpc.BidiStreamingCallable<AppendRowsRequest,AppendRowsResponse> appendRowsCallable()- Overrides:
appendRowsCallablein classBigQueryWriteStub
-
getWriteStreamCallable
public com.google.api.gax.rpc.UnaryCallable<GetWriteStreamRequest,WriteStream> getWriteStreamCallable()- Overrides:
getWriteStreamCallablein classBigQueryWriteStub
-
finalizeWriteStreamCallable
public com.google.api.gax.rpc.UnaryCallable<FinalizeWriteStreamRequest,FinalizeWriteStreamResponse> finalizeWriteStreamCallable()- Overrides:
finalizeWriteStreamCallablein classBigQueryWriteStub
-
batchCommitWriteStreamsCallable
public com.google.api.gax.rpc.UnaryCallable<BatchCommitWriteStreamsRequest,BatchCommitWriteStreamsResponse> batchCommitWriteStreamsCallable()- Overrides:
batchCommitWriteStreamsCallablein classBigQueryWriteStub
-
flushRowsCallable
- Overrides:
flushRowsCallablein classBigQueryWriteStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classBigQueryWriteStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-