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
Constructors Modifier Constructor Description protectedGrpcBigQueryWriteStub(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.BidiStreamingCallable<AppendRowsRequest,AppendRowsResponse>appendRowsCallable()booleanawaitTermination(long duration, TimeUnit unit)com.google.api.gax.rpc.UnaryCallable<BatchCommitWriteStreamsRequest,BatchCommitWriteStreamsResponse>batchCommitWriteStreamsCallable()voidclose()static GrpcBigQueryWriteStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcBigQueryWriteStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcBigQueryWriteStubcreate(BigQueryWriteStubSettings settings)com.google.api.gax.rpc.UnaryCallable<CreateWriteStreamRequest,WriteStream>createWriteStreamCallable()com.google.api.gax.rpc.UnaryCallable<FinalizeWriteStreamRequest,FinalizeWriteStreamResponse>finalizeWriteStreamCallable()com.google.api.gax.rpc.UnaryCallable<FlushRowsRequest,FlushRowsResponse>flushRowsCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetWriteStreamRequest,WriteStream>getWriteStreamCallable()booleanisShutdown()booleanisTerminated()voidshutdown()voidshutdownNow()
-
-
-
Constructor Detail
-
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 Detail
-
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
public com.google.api.gax.rpc.UnaryCallable<FlushRowsRequest,FlushRowsResponse> 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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-