Members
(constant) gapicConfig
Client JSON configuration object, loaded from
src/v1/big_query_read_client_config.json
.
This file defines retry strategy and timeouts for all API methods in this library.
(constant) gapicConfig
Client JSON configuration object, loaded from
src/v1/big_query_write_client_config.json
.
This file defines retry strategy and timeouts for all API methods in this library.
(constant) gapicConfig
Client JSON configuration object, loaded from
src/v1beta1/big_query_storage_client_config.json
.
This file defines retry strategy and timeouts for all API methods in this library.
Methods
convertBigQuerySchemaToStorageTableSchema(schema)
Converts a bigquery Schema into the protobuf-based TableSchema used by the BigQuery Storage WriteClient.
Parameters:
Name | Type | Description |
---|---|---|
schema |
a BigQuery TableSchema |
Returns:
Type | Description |
---|---|
StorageTableSchema |
convertStorageSchemaToProto2Descriptor(schema, scope)
Builds a DescriptorProto for a given table schema using proto2 syntax.
Parameters:
Name | Type | Description |
---|---|---|
schema |
a BigQuery Storage TableSchema. |
|
scope |
scope to namespace protobuf structs. |
Returns:
Type | Description |
---|---|
DescriptorProto |
convertStorageSchemaToProto3Descriptor(schema, scope)
Builds a DescriptorProto for a given table schema using proto3 syntax.
Parameters:
Name | Type | Description |
---|---|---|
schema |
a Bigquery TableSchema. |
|
scope |
scope to namespace protobuf structs. |
Returns:
Type | Description |
---|---|
DescriptorProto |
normalizeDescriptor(dp)
Builds a self-contained DescriptorProto suitable for communicating schema information with the BigQuery Storage write API. It's primarily used for cases where users are interested in sending data using a predefined protocol buffer message.
Parameters:
Name | Type | Description |
---|---|---|
dp |
DescriptorProto to be bundled. |
Returns:
Type | Description |
---|---|
DescriptorProto |
parseStorageErrors(err) → {google.cloud.bigquery.storage.v1.StorageError}
The BigQuery Storage API service augments applicable errors with service-specific details in the form of a StorageError message.
Parameters:
Name | Type | Description |
---|---|---|
err |
gax.GoogleError |
Returns:
Type | Description |
---|---|
google.cloud.bigquery.storage.v1.StorageError |
setLogFunction(logger)
Sets or disables the log function for all active Firestore instances.
Parameters:
Name | Type | Description |
---|---|---|
logger |
A log function that takes a message (such as |