Represents a Dialect.
Package
@google-cloud/bigquery-migrationConstructors
(constructor)(properties)
constructor(properties?: google.cloud.bigquery.migration.v2.IDialect);
Constructs a new Dialect.
Parameter | |
---|---|
Name | Description |
properties |
IDialect
Properties to set |
Properties
azureSynapseDialect
public azureSynapseDialect?: (google.cloud.bigquery.migration.v2.IAzureSynapseDialect|null);
Dialect azureSynapseDialect.
bigqueryDialect
public bigqueryDialect?: (google.cloud.bigquery.migration.v2.IBigQueryDialect|null);
Dialect bigqueryDialect.
dialectValue
public dialectValue?: ("bigqueryDialect"|"hiveqlDialect"|"redshiftDialect"|"teradataDialect"|"oracleDialect"|"sparksqlDialect"|"snowflakeDialect"|"netezzaDialect"|"azureSynapseDialect"|"verticaDialect"|"sqlServerDialect"|"postgresqlDialect"|"prestoDialect"|"mysqlDialect");
Dialect dialectValue.
hiveqlDialect
public hiveqlDialect?: (google.cloud.bigquery.migration.v2.IHiveQLDialect|null);
Dialect hiveqlDialect.
mysqlDialect
public mysqlDialect?: (google.cloud.bigquery.migration.v2.IMySQLDialect|null);
Dialect mysqlDialect.
netezzaDialect
public netezzaDialect?: (google.cloud.bigquery.migration.v2.INetezzaDialect|null);
Dialect netezzaDialect.
oracleDialect
public oracleDialect?: (google.cloud.bigquery.migration.v2.IOracleDialect|null);
Dialect oracleDialect.
postgresqlDialect
public postgresqlDialect?: (google.cloud.bigquery.migration.v2.IPostgresqlDialect|null);
Dialect postgresqlDialect.
prestoDialect
public prestoDialect?: (google.cloud.bigquery.migration.v2.IPrestoDialect|null);
Dialect prestoDialect.
redshiftDialect
public redshiftDialect?: (google.cloud.bigquery.migration.v2.IRedshiftDialect|null);
Dialect redshiftDialect.
snowflakeDialect
public snowflakeDialect?: (google.cloud.bigquery.migration.v2.ISnowflakeDialect|null);
Dialect snowflakeDialect.
sparksqlDialect
public sparksqlDialect?: (google.cloud.bigquery.migration.v2.ISparkSQLDialect|null);
Dialect sparksqlDialect.
sqlServerDialect
public sqlServerDialect?: (google.cloud.bigquery.migration.v2.ISQLServerDialect|null);
Dialect sqlServerDialect.
teradataDialect
public teradataDialect?: (google.cloud.bigquery.migration.v2.ITeradataDialect|null);
Dialect teradataDialect.
verticaDialect
public verticaDialect?: (google.cloud.bigquery.migration.v2.IVerticaDialect|null);
Dialect verticaDialect.
Methods
create(properties)
public static create(properties?: google.cloud.bigquery.migration.v2.IDialect): google.cloud.bigquery.migration.v2.Dialect;
Creates a new Dialect instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IDialect
Properties to set |
Returns | |
---|---|
Type | Description |
Dialect | Dialect instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.bigquery.migration.v2.Dialect;
Decodes a Dialect message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
Dialect | Dialect |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.migration.v2.Dialect;
Decodes a Dialect message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
Dialect | Dialect |
encode(message, writer)
public static encode(message: google.cloud.bigquery.migration.v2.IDialect, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified Dialect message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IDialect
Dialect message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer | Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.bigquery.migration.v2.IDialect, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified Dialect message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IDialect
Dialect message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer | Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.bigquery.migration.v2.Dialect;
Creates a Dialect message from a plain object. Also converts values to their respective internal types.
Parameter | |
---|---|
Name | Description |
object |
{ [k: string]: any }
Plain object |
Returns | |
---|---|
Type | Description |
Dialect | Dialect |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for Dialect
Parameter | |
---|---|
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns | |
---|---|
Type | Description |
string | The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this Dialect to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.bigquery.migration.v2.Dialect, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a Dialect message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
Dialect
Dialect |
options |
$protobuf.IConversionOptions
Conversion options |
Returns | |
---|---|
Type | Description |
{ [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a Dialect message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|