public enum DatabaseDialect extends Enum<DatabaseDialect> implements ProtocolMessageEnum
Indicates the dialect type of a database.Protobuf enum
google.spanner.admin.database.v1.DatabaseDialect
Enum Constant and Description |
---|
DATABASE_DIALECT_UNSPECIFIED
Default value.
|
GOOGLE_STANDARD_SQL
Google standard SQL.
|
POSTGRESQL
PostgreSQL supported SQL.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
DATABASE_DIALECT_UNSPECIFIED_VALUE
Default value.
|
static int |
GOOGLE_STANDARD_SQL_VALUE
Google standard SQL.
|
static int |
POSTGRESQL_VALUE
PostgreSQL supported SQL.
|
Modifier and Type | Method and Description |
---|---|
static DatabaseDialect |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<DatabaseDialect> |
internalGetValueMap() |
static DatabaseDialect |
valueOf(Descriptors.EnumValueDescriptor desc) |
static DatabaseDialect |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DatabaseDialect |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseDialect[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseDialect DATABASE_DIALECT_UNSPECIFIED
Default value. This value will create a database with the GOOGLE_STANDARD_SQL dialect.
DATABASE_DIALECT_UNSPECIFIED = 0;
public static final DatabaseDialect GOOGLE_STANDARD_SQL
Google standard SQL.
GOOGLE_STANDARD_SQL = 1;
public static final DatabaseDialect POSTGRESQL
PostgreSQL supported SQL.
POSTGRESQL = 2;
public static final DatabaseDialect UNRECOGNIZED
public static final int DATABASE_DIALECT_UNSPECIFIED_VALUE
Default value. This value will create a database with the GOOGLE_STANDARD_SQL dialect.
DATABASE_DIALECT_UNSPECIFIED = 0;
public static final int GOOGLE_STANDARD_SQL_VALUE
Google standard SQL.
GOOGLE_STANDARD_SQL = 1;
public static final int POSTGRESQL_VALUE
PostgreSQL supported SQL.
POSTGRESQL = 2;
public static DatabaseDialect[] values()
for (DatabaseDialect c : DatabaseDialect.values()) System.out.println(c);
public static DatabaseDialect 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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static DatabaseDialect valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static DatabaseDialect forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<DatabaseDialect> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static DatabaseDialect valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.