public static final class StreamWriterV2.Builder extends Object
StreamWriterV2s.| Modifier and Type | Method and Description |
|---|---|
StreamWriterV2 |
build()
Builds the
StreamWriterV2. |
StreamWriterV2.Builder |
setChannelProvider(com.google.api.gax.rpc.TransportChannelProvider channelProvider)
ChannelProvider to use to create Channels, which must point at Cloud BigQuery Storage
API endpoint. |
StreamWriterV2.Builder |
setCredentialsProvider(com.google.api.gax.core.CredentialsProvider credentialsProvider)
CredentialsProvider to use to create Credentials to authenticate calls. |
StreamWriterV2.Builder |
setEndpoint(String endpoint)
Gives the ability to override the gRPC endpoint.
|
StreamWriterV2.Builder |
setMaxInflightBytes(long value) |
StreamWriterV2.Builder |
setMaxInflightRequests(long value) |
StreamWriterV2.Builder |
setTraceId(String traceId)
Sets traceId for debuging purpose.
|
StreamWriterV2.Builder |
setWriterSchema(ProtoSchema writerSchema)
Sets the proto schema of the rows.
|
public StreamWriterV2.Builder setWriterSchema(ProtoSchema writerSchema)
public StreamWriterV2.Builder setMaxInflightRequests(long value)
public StreamWriterV2.Builder setMaxInflightBytes(long value)
public StreamWriterV2.Builder setEndpoint(String endpoint)
public StreamWriterV2.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 StreamWriterV2.Builder setCredentialsProvider(com.google.api.gax.core.CredentialsProvider credentialsProvider)
CredentialsProvider to use to create Credentials to authenticate calls.public StreamWriterV2.Builder setTraceId(String traceId)
public StreamWriterV2 build() throws IOException
StreamWriterV2.IOExceptionCopyright © 2023 Google LLC. All rights reserved.