public static final class JsonStreamWriter.Builder
Methods
build()
public JsonStreamWriter build()
Builds JsonStreamWriter
Type | Description |
JsonStreamWriter | JsonStreamWriter |
Type | Description |
DescriptorValidationException | |
IllegalArgumentException | |
IOException | |
InterruptedException |
getStreamName()
public String getStreamName()
Stream name on the builder.
Type | Description |
String | Builder |
setChannelProvider(TransportChannelProvider channelProvider)
public JsonStreamWriter.Builder setChannelProvider(TransportChannelProvider channelProvider)
Setter for the underlying StreamWriter's TransportChannelProvider.
Name | Description |
channelProvider | TransportChannelProvider |
Type | Description |
JsonStreamWriter.Builder | Builder |
setCredentialsProvider(CredentialsProvider credentialsProvider)
public JsonStreamWriter.Builder setCredentialsProvider(CredentialsProvider credentialsProvider)
Setter for the underlying StreamWriter's CredentialsProvider.
Name | Description |
credentialsProvider | CredentialsProvider |
Type | Description |
JsonStreamWriter.Builder | Builder |
setEndpoint(String endpoint)
public JsonStreamWriter.Builder setEndpoint(String endpoint)
Setter for the underlying StreamWriter's Endpoint.
Name | Description |
endpoint | String |
Type | Description |
JsonStreamWriter.Builder | Builder |
setFlowControlSettings(FlowControlSettings flowControlSettings)
public JsonStreamWriter.Builder setFlowControlSettings(FlowControlSettings flowControlSettings)
Setter for the underlying StreamWriter's FlowControlSettings.
Name | Description |
flowControlSettings | FlowControlSettings |
Type | Description |
JsonStreamWriter.Builder | Builder |
setIgnoreUnknownFields(boolean ignoreUnknownFields)
public JsonStreamWriter.Builder setIgnoreUnknownFields(boolean ignoreUnknownFields)
Setter for a ignoreUnkownFields, if true, unknown Json fields to BigQuery will be ignored instead of error out.
Name | Description |
ignoreUnknownFields | boolean |
Type | Description |
JsonStreamWriter.Builder | Builder |
setTraceId(String traceId)
public JsonStreamWriter.Builder setTraceId(String traceId)
Setter for a traceId to help identify traffic origin.
Name | Description |
traceId | String |
Type | Description |
JsonStreamWriter.Builder | Builder |