Class protos.google.cloud.bigquery.migration.v2.Dialect (1.0.0)

Represents a Dialect.

Package

@google-cloud/bigquery-migration

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.bigquery.migration.v2.IDialect);

Constructs a new Dialect.

Parameter
NameDescription
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
NameDescription
properties IDialect

Properties to set

Returns
TypeDescription
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
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
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
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
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
NameDescription
message IDialect

Dialect message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$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
NameDescription
message IDialect

Dialect message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$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
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
Dialect

Dialect

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for Dialect

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this Dialect to JSON.

Returns
TypeDescription
{ [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
NameDescription
message Dialect

Dialect

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a Dialect message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not