Class protos.google.cloud.datastream.v1.SqlServerColumn (3.3.0)

Represents a SqlServerColumn.

Package

@google-cloud/datastream

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.datastream.v1.ISqlServerColumn);

Constructs a new SqlServerColumn.

Parameter
Name Description
properties ISqlServerColumn

Properties to set

Properties

column

public column: string;

SqlServerColumn column.

dataType

public dataType: string;

SqlServerColumn dataType.

length

public length: number;

SqlServerColumn length.

nullable

public nullable: boolean;

SqlServerColumn nullable.

ordinalPosition

public ordinalPosition: number;

SqlServerColumn ordinalPosition.

precision

public precision: number;

SqlServerColumn precision.

primaryKey

public primaryKey: boolean;

SqlServerColumn primaryKey.

scale

public scale: number;

SqlServerColumn scale.

Methods

create(properties)

public static create(properties?: google.cloud.datastream.v1.ISqlServerColumn): google.cloud.datastream.v1.SqlServerColumn;

Creates a new SqlServerColumn instance using the specified properties.

Parameter
Name Description
properties ISqlServerColumn

Properties to set

Returns
Type Description
SqlServerColumn

SqlServerColumn instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.datastream.v1.SqlServerColumn;

Decodes a SqlServerColumn 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
SqlServerColumn

SqlServerColumn

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.datastream.v1.SqlServerColumn;

Decodes a SqlServerColumn message from the specified reader or buffer, length delimited.

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
SqlServerColumn

SqlServerColumn

encode(message, writer)

public static encode(message: google.cloud.datastream.v1.ISqlServerColumn, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified SqlServerColumn message. Does not implicitly messages.

Parameters
Name Description
message ISqlServerColumn

SqlServerColumn 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.datastream.v1.ISqlServerColumn, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified SqlServerColumn message, length delimited. Does not implicitly messages.

Parameters
Name Description
message ISqlServerColumn

SqlServerColumn 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.datastream.v1.SqlServerColumn;

Creates a SqlServerColumn 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
SqlServerColumn

SqlServerColumn

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for SqlServerColumn

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 SqlServerColumn to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.datastream.v1.SqlServerColumn, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a SqlServerColumn message. Also converts values to other types if specified.

Parameters
Name Description
message SqlServerColumn

SqlServerColumn

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 SqlServerColumn message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not