# Enum BigQueryConfig.State (1.151.0)

1.151.0 (latest) 1.150.1 1.149.0 1.148.0 1.147.0 1.145.0 1.143.1 1.142.0 1.141.5 1.140.2 1.139.4 1.138.0 1.137.1 1.136.1 1.135.0 1.134.2 1.133.1 1.132.2 1.131.0 1.130.0 1.129.6 1.127.3 1.126.6 1.125.13 1.123.18 1.122.2 1.121.1 1.120.24 1.119.1 1.118.0 1.117.0 1.116.4 1.115.5

    public enum BigQueryConfig.State extends Enum<BigQueryConfig.State> implements ProtocolMessageEnum

Possible states for a BigQuery subscription.

Protobuf enum `google.pubsub.v1.BigQueryConfig.State`

## Implements

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

## Inherited Members

[Enum.\<T\>valueOf(Class\<T\>,String)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#valueOf-java.lang.Class-java.lang.String-) [Enum.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#clone--) [Enum.compareTo(E)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#compareTo-E-) [Enum.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#equals-java.lang.Object-) [Enum.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#finalize--) [Enum.getDeclaringClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#getDeclaringClass--) [Enum.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#hashCode--) [Enum.name()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#name--) [Enum.ordinal()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#ordinal--) [Enum.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#toString--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

| ## Static Fields ||
|---|---|
| **Name** | **Description** |
| `ACTIVE` | The subscription can actively send messages to BigQuery `ACTIVE = 1;` |
| `ACTIVE_VALUE` | The subscription can actively send messages to BigQuery `ACTIVE = 1;` |
| `IN_TRANSIT_LOCATION_RESTRICTION` | Cannot write to the destination because enforce_in_transit is set to true and the destination locations are not in the allowed regions. `IN_TRANSIT_LOCATION_RESTRICTION = 5;` |
| `IN_TRANSIT_LOCATION_RESTRICTION_VALUE` | Cannot write to the destination because enforce_in_transit is set to true and the destination locations are not in the allowed regions. `IN_TRANSIT_LOCATION_RESTRICTION = 5;` |
| `NOT_FOUND` | Cannot write to the BigQuery table because it does not exist. `NOT_FOUND = 3;` |
| `NOT_FOUND_VALUE` | Cannot write to the BigQuery table because it does not exist. `NOT_FOUND = 3;` |
| `PERMISSION_DENIED` | Cannot write to the BigQuery table because of permission denied errors. This can happen if - Pub/Sub SA has not been granted the [appropriate BigQuery IAM permissions](https://cloud.google.com/pubsub/docs/create-subscription#assign_bigquery_service_account) - bigquery.googleapis.com API is not enabled for the project ([instructions](https://cloud.google.com/service-usage/docs/enable-disable)) `PERMISSION_DENIED = 2;` |
| `PERMISSION_DENIED_VALUE` | Cannot write to the BigQuery table because of permission denied errors. This can happen if - Pub/Sub SA has not been granted the [appropriate BigQuery IAM permissions](https://cloud.google.com/pubsub/docs/create-subscription#assign_bigquery_service_account) - bigquery.googleapis.com API is not enabled for the project ([instructions](https://cloud.google.com/service-usage/docs/enable-disable)) `PERMISSION_DENIED = 2;` |
| `SCHEMA_MISMATCH` | Cannot write to the BigQuery table due to a schema mismatch. `SCHEMA_MISMATCH = 4;` |
| `SCHEMA_MISMATCH_VALUE` | Cannot write to the BigQuery table due to a schema mismatch. `SCHEMA_MISMATCH = 4;` |
| `STATE_UNSPECIFIED` | Default value. This value is unused. `STATE_UNSPECIFIED = 0;` |
| `STATE_UNSPECIFIED_VALUE` | Default value. This value is unused. `STATE_UNSPECIFIED = 0;` |
| `UNRECOGNIZED` |   |
| `VERTEX_AI_LOCATION_RESTRICTION` | Cannot write to the BigQuery table because the table is not in the same location as where Vertex AI models used in `message_transform`s are deployed. `VERTEX_AI_LOCATION_RESTRICTION = 6;` |
| `VERTEX_AI_LOCATION_RESTRICTION_VALUE` | Cannot write to the BigQuery table because the table is not in the same location as where Vertex AI models used in `message_transform`s are deployed. `VERTEX_AI_LOCATION_RESTRICTION = 6;` |

| ## Static Methods ||
|---|---|
| **Name** | **Description** |
| `forNumber(int value)` |   |
| `getDescriptor()` |   |
| `internalGetValueMap()` |   |
| `valueOf(Descriptors.EnumValueDescriptor desc)` |   |
| `valueOf(int value)` | **Deprecated.** *Use [#forNumber(int)](https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.BigQueryConfig.State#com_google_pubsub_v1_BigQueryConfig_State_forNumber_int_) instead.* |
| `valueOf(String name)` |   |
| `values()` |   |

| ## Methods ||
|---|---|
| **Name** | **Description** |
| `getDescriptorForType()` |   |
| `getNumber()` |   |
| `getValueDescriptor()` |   |