Class StreamWriterV2.Builder
- java.lang.Object
-
- com.google.cloud.bigquery.storage.v1beta2.StreamWriterV2.Builder
-
- Enclosing class:
- StreamWriterV2
public static final class StreamWriterV2.Builder extends Object
A builder ofStreamWriterV2s.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamWriterV2build()Builds theStreamWriterV2.StreamWriterV2.BuildersetChannelProvider(com.google.api.gax.rpc.TransportChannelProvider channelProvider)ChannelProviderto use to create Channels, which must point at Cloud BigQuery Storage API endpoint.StreamWriterV2.BuildersetCredentialsProvider(com.google.api.gax.core.CredentialsProvider credentialsProvider)CredentialsProviderto use to create Credentials to authenticate calls.StreamWriterV2.BuildersetEndpoint(String endpoint)Gives the ability to override the gRPC endpoint.StreamWriterV2.BuildersetMaxInflightBytes(long value)StreamWriterV2.BuildersetMaxInflightRequests(long value)StreamWriterV2.BuildersetTraceId(String traceId)Sets traceId for debuging purpose.StreamWriterV2.BuildersetWriterSchema(ProtoSchema writerSchema)Sets the proto schema of the rows.
-
-
-
Method Detail
-
setWriterSchema
public StreamWriterV2.Builder setWriterSchema(ProtoSchema writerSchema)
Sets the proto schema of the rows.
-
setMaxInflightRequests
public StreamWriterV2.Builder setMaxInflightRequests(long value)
-
setMaxInflightBytes
public StreamWriterV2.Builder setMaxInflightBytes(long value)
-
setEndpoint
public StreamWriterV2.Builder setEndpoint(String endpoint)
Gives the ability to override the gRPC endpoint.
-
setChannelProvider
public StreamWriterV2.Builder setChannelProvider(com.google.api.gax.rpc.TransportChannelProvider channelProvider)
ChannelProviderto 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)
CredentialsProviderto use to create Credentials to authenticate calls.
-
setTraceId
public StreamWriterV2.Builder setTraceId(String traceId)
Sets traceId for debuging purpose. TraceId must follow the format of CustomerDomain:DebugString, e.g. DATAFLOW:job_id_x.
-
build
public StreamWriterV2 build() throws IOException
Builds theStreamWriterV2.- Throws:
IOException
-
-