public static final class StreamWriter.Builder extends Object
StreamWriterV2s.| Modifier and Type | Method and Description |
|---|---|
StreamWriter |
build()
Builds the
StreamWriterV2. |
StreamWriter.Builder |
setChannelProvider(com.google.api.gax.rpc.TransportChannelProvider channelProvider)
ChannelProvider to use to create Channels, which must point at Cloud BigQuery Storage
API endpoint. |
StreamWriter.Builder |
setCredentialsProvider(com.google.api.gax.core.CredentialsProvider credentialsProvider)
CredentialsProvider to use to create Credentials to authenticate calls. |
StreamWriter.Builder |
setEndpoint(String endpoint)
Gives the ability to override the gRPC endpoint.
|
StreamWriter.Builder |
setMaxInflightBytes(long value) |
StreamWriter.Builder |
setMaxInflightRequests(long value) |
StreamWriter.Builder |
setTraceId(String traceId)
Sets traceId for debuging purpose.
|
StreamWriter.Builder |
setWriterSchema(ProtoSchema writerSchema)
Sets the proto schema of the rows.
|
public StreamWriter.Builder setWriterSchema(ProtoSchema writerSchema)
public StreamWriter.Builder setMaxInflightRequests(long value)
public StreamWriter.Builder setMaxInflightBytes(long value)
public StreamWriter.Builder setEndpoint(String endpoint)
public StreamWriter.Builder setChannelProvider(com.google.api.gax.rpc.TransportChannelProvider channelProvider)
ChannelProvider to use to create Channels, which must point at Cloud BigQuery Storage
API endpoint.
For performance, this client benefits from having multiple underlying connections. See
InstantiatingGrpcChannelProvider.Builder.setPoolSize(int).
public StreamWriter.Builder setCredentialsProvider(com.google.api.gax.core.CredentialsProvider credentialsProvider)
CredentialsProvider to use to create Credentials to authenticate calls.public StreamWriter.Builder setTraceId(String traceId)
public StreamWriter build() throws IOException
StreamWriterV2.IOExceptionCopyright © 2021 Google LLC. All rights reserved.