# Interface BigQueryConfigOrBuilder (0.50.0)

0.50.0 (latest) 0.48.0 0.45.0 0.44.0 0.42.0 0.40.0 0.39.0 0.37.0 0.35.0 0.33.0 0.32.0 0.31.0 0.30.0 0.29.0 0.27.0 0.25.0 0.24.0 0.21.0 0.20.0 0.19.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface BigQueryConfigOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsCloudFunctionMapping(String key)

    public abstract boolean containsCloudFunctionMapping(String key)

Data Schema
By default, Vision AI Application will try to write annotations to the
target BigQuery table using the following schema:

ingestion_time: TIMESTAMP, the ingestion time of the original data.

application: STRING, name of the application which produces the annotation.

instance: STRING, Id of the instance which produces the annotation.

node: STRING, name of the application graph node which produces the
annotation.

annotation: STRING or JSON, the actual annotation protobuf will be
converted to json string with bytes field as 64 encoded string. It can be
written to both String or Json type column.

To forward annotation data to an existing BigQuery table, customer needs to
make sure the compatibility of the schema.
The map maps application node name to its corresponding cloud function
endpoint to transform the annotations directly to the
google.cloud.bigquery.storage.v1.AppendRowsRequest (only avro_rows or
proto_rows should be set). If configured, annotations produced by
corresponding application node will sent to the Cloud Function at first
before be forwarded to BigQuery.

If the default table schema doesn't fit, customer is able to transform the
annotation output from Vision AI Application to arbitrary BigQuery table
schema with CloudFunction.

- The cloud function will receive AppPlatformCloudFunctionRequest where the annotations field will be the json format of Vision AI annotation.
- The cloud function should return AppPlatformCloudFunctionResponse with AppendRowsRequest stored in the annotations field.
- To drop the annotation, simply clear the annotations field in the returned AppPlatformCloudFunctionResponse.

`map<string, string> cloud_function_mapping = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getCloudFunctionMapping() (deprecated)

    public abstract Map<String,String> getCloudFunctionMapping()

Use [#getCloudFunctionMappingMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-visionai/latest/com.google.cloud.visionai.v1.BigQueryConfigOrBuilder#com_google_cloud_visionai_v1_BigQueryConfigOrBuilder_getCloudFunctionMappingMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getCloudFunctionMappingCount()

    public abstract int getCloudFunctionMappingCount()

Data Schema
By default, Vision AI Application will try to write annotations to the
target BigQuery table using the following schema:

ingestion_time: TIMESTAMP, the ingestion time of the original data.

application: STRING, name of the application which produces the annotation.

instance: STRING, Id of the instance which produces the annotation.

node: STRING, name of the application graph node which produces the
annotation.

annotation: STRING or JSON, the actual annotation protobuf will be
converted to json string with bytes field as 64 encoded string. It can be
written to both String or Json type column.

To forward annotation data to an existing BigQuery table, customer needs to
make sure the compatibility of the schema.
The map maps application node name to its corresponding cloud function
endpoint to transform the annotations directly to the
google.cloud.bigquery.storage.v1.AppendRowsRequest (only avro_rows or
proto_rows should be set). If configured, annotations produced by
corresponding application node will sent to the Cloud Function at first
before be forwarded to BigQuery.

If the default table schema doesn't fit, customer is able to transform the
annotation output from Vision AI Application to arbitrary BigQuery table
schema with CloudFunction.

- The cloud function will receive AppPlatformCloudFunctionRequest where the annotations field will be the json format of Vision AI annotation.
- The cloud function should return AppPlatformCloudFunctionResponse with AppendRowsRequest stored in the annotations field.
- To drop the annotation, simply clear the annotations field in the returned AppPlatformCloudFunctionResponse.

`map<string, string> cloud_function_mapping = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getCloudFunctionMappingMap()

    public abstract Map<String,String> getCloudFunctionMappingMap()

Data Schema
By default, Vision AI Application will try to write annotations to the
target BigQuery table using the following schema:

ingestion_time: TIMESTAMP, the ingestion time of the original data.

application: STRING, name of the application which produces the annotation.

instance: STRING, Id of the instance which produces the annotation.

node: STRING, name of the application graph node which produces the
annotation.

annotation: STRING or JSON, the actual annotation protobuf will be
converted to json string with bytes field as 64 encoded string. It can be
written to both String or Json type column.

To forward annotation data to an existing BigQuery table, customer needs to
make sure the compatibility of the schema.
The map maps application node name to its corresponding cloud function
endpoint to transform the annotations directly to the
google.cloud.bigquery.storage.v1.AppendRowsRequest (only avro_rows or
proto_rows should be set). If configured, annotations produced by
corresponding application node will sent to the Cloud Function at first
before be forwarded to BigQuery.

If the default table schema doesn't fit, customer is able to transform the
annotation output from Vision AI Application to arbitrary BigQuery table
schema with CloudFunction.

- The cloud function will receive AppPlatformCloudFunctionRequest where the annotations field will be the json format of Vision AI annotation.
- The cloud function should return AppPlatformCloudFunctionResponse with AppendRowsRequest stored in the annotations field.
- To drop the annotation, simply clear the annotations field in the returned AppPlatformCloudFunctionResponse.

`map<string, string> cloud_function_mapping = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getCloudFunctionMappingOrDefault(String key, String defaultValue)

    public abstract String getCloudFunctionMappingOrDefault(String key, String defaultValue)

Data Schema
By default, Vision AI Application will try to write annotations to the
target BigQuery table using the following schema:

ingestion_time: TIMESTAMP, the ingestion time of the original data.

application: STRING, name of the application which produces the annotation.

instance: STRING, Id of the instance which produces the annotation.

node: STRING, name of the application graph node which produces the
annotation.

annotation: STRING or JSON, the actual annotation protobuf will be
converted to json string with bytes field as 64 encoded string. It can be
written to both String or Json type column.

To forward annotation data to an existing BigQuery table, customer needs to
make sure the compatibility of the schema.
The map maps application node name to its corresponding cloud function
endpoint to transform the annotations directly to the
google.cloud.bigquery.storage.v1.AppendRowsRequest (only avro_rows or
proto_rows should be set). If configured, annotations produced by
corresponding application node will sent to the Cloud Function at first
before be forwarded to BigQuery.

If the default table schema doesn't fit, customer is able to transform the
annotation output from Vision AI Application to arbitrary BigQuery table
schema with CloudFunction.

- The cloud function will receive AppPlatformCloudFunctionRequest where the annotations field will be the json format of Vision AI annotation.
- The cloud function should return AppPlatformCloudFunctionResponse with AppendRowsRequest stored in the annotations field.
- To drop the annotation, simply clear the annotations field in the returned AppPlatformCloudFunctionResponse.

`map<string, string> cloud_function_mapping = 2;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getCloudFunctionMappingOrThrow(String key)

    public abstract String getCloudFunctionMappingOrThrow(String key)

Data Schema
By default, Vision AI Application will try to write annotations to the
target BigQuery table using the following schema:

ingestion_time: TIMESTAMP, the ingestion time of the original data.

application: STRING, name of the application which produces the annotation.

instance: STRING, Id of the instance which produces the annotation.

node: STRING, name of the application graph node which produces the
annotation.

annotation: STRING or JSON, the actual annotation protobuf will be
converted to json string with bytes field as 64 encoded string. It can be
written to both String or Json type column.

To forward annotation data to an existing BigQuery table, customer needs to
make sure the compatibility of the schema.
The map maps application node name to its corresponding cloud function
endpoint to transform the annotations directly to the
google.cloud.bigquery.storage.v1.AppendRowsRequest (only avro_rows or
proto_rows should be set). If configured, annotations produced by
corresponding application node will sent to the Cloud Function at first
before be forwarded to BigQuery.

If the default table schema doesn't fit, customer is able to transform the
annotation output from Vision AI Application to arbitrary BigQuery table
schema with CloudFunction.

- The cloud function will receive AppPlatformCloudFunctionRequest where the annotations field will be the json format of Vision AI annotation.
- The cloud function should return AppPlatformCloudFunctionResponse with AppendRowsRequest stored in the annotations field.
- To drop the annotation, simply clear the annotations field in the returned AppPlatformCloudFunctionResponse.

`map<string, string> cloud_function_mapping = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getCreateDefaultTableIfNotExists()

    public abstract boolean getCreateDefaultTableIfNotExists()

If true, App Platform will create the BigQuery DataSet and the
BigQuery Table with default schema if the specified table doesn't exist.
This doesn't work if any cloud function customized schema is specified
since the system doesn't know your desired schema.
JSON column will be used in the default table created by App Platform.

`bool create_default_table_if_not_exists = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The createDefaultTableIfNotExists. |

### getTable()

    public abstract String getTable()

BigQuery table resource for Vision AI Platform to ingest annotations to.

`string table = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The table. |

### getTableBytes()

    public abstract ByteString getTableBytes()

BigQuery table resource for Vision AI Platform to ingest annotations to.

`string table = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for table. |