Class protos.google.cloud.bigquery.connection.v1.CloudSqlProperties (1.3.5)

Represents a CloudSqlProperties.

Package

@google-cloud/bigquery-connection!

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.bigquery.connection.v1.ICloudSqlProperties);

Constructs a new CloudSqlProperties.

Parameter
NameDescription
properties ICloudSqlProperties

Properties to set

Properties

credential

public credential?: (google.cloud.bigquery.connection.v1.ICloudSqlCredential|null);

CloudSqlProperties credential.

Property Value
TypeDescription
(google.cloud.bigquery.connection.v1.ICloudSqlCredential|null)

database

public database: string;

CloudSqlProperties database.

Property Value
TypeDescription
string

instanceId

public instanceId: string;

CloudSqlProperties instanceId.

Property Value
TypeDescription
string

type

public type: (google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType|keyof typeof google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType);

CloudSqlProperties type.

Property Value
TypeDescription
(google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType|keyof typeof google.cloud.bigquery.connection.v1.CloudSqlProperties.DatabaseType)

Methods

create(properties)

public static create(properties?: google.cloud.bigquery.connection.v1.ICloudSqlProperties): google.cloud.bigquery.connection.v1.CloudSqlProperties;

Creates a new CloudSqlProperties instance using the specified properties.

Parameter
NameDescription
properties ICloudSqlProperties

Properties to set

Returns
TypeDescription
google.cloud.bigquery.connection.v1.CloudSqlProperties

CloudSqlProperties instance

decode(reader, length)

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

Decodes a CloudSqlProperties message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.bigquery.connection.v1.CloudSqlProperties

CloudSqlProperties

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.bigquery.connection.v1.CloudSqlProperties;

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

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.bigquery.connection.v1.CloudSqlProperties

CloudSqlProperties

encode(message, writer)

public static encode(message: google.cloud.bigquery.connection.v1.ICloudSqlProperties, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified CloudSqlProperties message. Does not implicitly messages.

Parameters
NameDescription
message ICloudSqlProperties

CloudSqlProperties 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.connection.v1.ICloudSqlProperties, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message ICloudSqlProperties

CloudSqlProperties 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.connection.v1.CloudSqlProperties;

Creates a CloudSqlProperties message from a plain object. Also converts values to their respective internal types.

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

Plain object

Returns
TypeDescription
google.cloud.bigquery.connection.v1.CloudSqlProperties

CloudSqlProperties

toJSON()

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

Converts this CloudSqlProperties to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.cloud.bigquery.connection.v1.CloudSqlProperties

CloudSqlProperties

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 CloudSqlProperties 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