Class StreamWriterV2.Builder
java.lang.Object
com.google.cloud.bigquery.storage.v1beta2.StreamWriterV2.Builder
- Enclosing class:
- StreamWriterV2
A builder of
StreamWriterV2
s.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theStreamWriterV2
.setChannelProvider
(com.google.api.gax.rpc.TransportChannelProvider channelProvider) ChannelProvider
to use to create Channels, which must point at Cloud BigQuery Storage API endpoint.setCredentialsProvider
(com.google.api.gax.core.CredentialsProvider credentialsProvider) CredentialsProvider
to use to create Credentials to authenticate calls.setEndpoint
(String endpoint) Gives the ability to override the gRPC endpoint.setMaxInflightBytes
(long value) setMaxInflightRequests
(long value) setTraceId
(String traceId) Sets traceId for debuging purpose.setWriterSchema
(ProtoSchema writerSchema) Sets the proto schema of the rows.
-
Method Details
-
setWriterSchema
Sets the proto schema of the rows. -
setMaxInflightRequests
-
setMaxInflightBytes
-
setEndpoint
Gives the ability to override the gRPC endpoint. -
setChannelProvider
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)
. -
setCredentialsProvider
public StreamWriterV2.Builder setCredentialsProvider(com.google.api.gax.core.CredentialsProvider credentialsProvider) CredentialsProvider
to use to create Credentials to authenticate calls. -
setTraceId
Sets traceId for debuging purpose. TraceId must follow the format of CustomerDomain:DebugString, e.g. DATAFLOW:job_id_x. -
build
Builds theStreamWriterV2
.- Throws:
IOException
-