public static enum BigQueryConfig.State extends Enum<BigQueryConfig.State> implements com.google.protobuf.ProtocolMessageEnum
Possible states for a BigQuery subscription.Protobuf enum
google.pubsub.v1.BigQueryConfig.State
Enum Constant and Description |
---|
ACTIVE
The subscription can actively send messages to BigQuery
|
NOT_FOUND
Cannot write to the BigQuery table because it does not exist.
|
PERMISSION_DENIED
Cannot write to the BigQuery table because of permission denied errors.
|
SCHEMA_MISMATCH
Cannot write to the BigQuery table due to a schema mismatch.
|
STATE_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVE_VALUE
The subscription can actively send messages to BigQuery
|
static int |
NOT_FOUND_VALUE
Cannot write to the BigQuery table because it does not exist.
|
static int |
PERMISSION_DENIED_VALUE
Cannot write to the BigQuery table because of permission denied errors.
|
static int |
SCHEMA_MISMATCH_VALUE
Cannot write to the BigQuery table due to a schema mismatch.
|
static int |
STATE_UNSPECIFIED_VALUE
Default value.
|
Modifier and Type | Method and Description |
---|---|
static BigQueryConfig.State |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<BigQueryConfig.State> |
internalGetValueMap() |
static BigQueryConfig.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static BigQueryConfig.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static BigQueryConfig.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BigQueryConfig.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BigQueryConfig.State STATE_UNSPECIFIED
Default value. This value is unused.
STATE_UNSPECIFIED = 0;
public static final BigQueryConfig.State ACTIVE
The subscription can actively send messages to BigQuery
ACTIVE = 1;
public static final BigQueryConfig.State 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;
public static final BigQueryConfig.State NOT_FOUND
Cannot write to the BigQuery table because it does not exist.
NOT_FOUND = 3;
public static final BigQueryConfig.State SCHEMA_MISMATCH
Cannot write to the BigQuery table due to a schema mismatch.
SCHEMA_MISMATCH = 4;
public static final BigQueryConfig.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Default value. This value is unused.
STATE_UNSPECIFIED = 0;
public static final int ACTIVE_VALUE
The subscription can actively send messages to BigQuery
ACTIVE = 1;
public static final int 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;
public static final int NOT_FOUND_VALUE
Cannot write to the BigQuery table because it does not exist.
NOT_FOUND = 3;
public static final int SCHEMA_MISMATCH_VALUE
Cannot write to the BigQuery table due to a schema mismatch.
SCHEMA_MISMATCH = 4;
public static BigQueryConfig.State[] values()
for (BigQueryConfig.State c : BigQueryConfig.State.values()) System.out.println(c);
public static BigQueryConfig.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static BigQueryConfig.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static BigQueryConfig.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<BigQueryConfig.State> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static BigQueryConfig.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.