Class protos.google.cloud.datastream.v1.MysqlSslConfig (3.1.0)

Represents a MysqlSslConfig.

Package

@google-cloud/datastream

Constructors

(constructor)(properties)

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

Constructs a new MysqlSslConfig.

Parameter
Name Description
properties IMysqlSslConfig

Properties to set

Properties

caCertificate

public caCertificate: string;

MysqlSslConfig caCertificate.

caCertificateSet

public caCertificateSet: boolean;

MysqlSslConfig caCertificateSet.

clientCertificate

public clientCertificate: string;

MysqlSslConfig clientCertificate.

clientCertificateSet

public clientCertificateSet: boolean;

MysqlSslConfig clientCertificateSet.

clientKey

public clientKey: string;

MysqlSslConfig clientKey.

clientKeySet

public clientKeySet: boolean;

MysqlSslConfig clientKeySet.

Methods

create(properties)

public static create(properties?: google.cloud.datastream.v1.IMysqlSslConfig): google.cloud.datastream.v1.MysqlSslConfig;

Creates a new MysqlSslConfig instance using the specified properties.

Parameter
Name Description
properties IMysqlSslConfig

Properties to set

Returns
Type Description
MysqlSslConfig

MysqlSslConfig instance

decode(reader, length)

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

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

MysqlSslConfig

decodeDelimited(reader)

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

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
MysqlSslConfig

MysqlSslConfig

encode(message, writer)

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

Encodes the specified MysqlSslConfig message. Does not implicitly messages.

Parameters
Name Description
message IMysqlSslConfig

MysqlSslConfig 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.IMysqlSslConfig, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IMysqlSslConfig

MysqlSslConfig 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.MysqlSslConfig;

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

MysqlSslConfig

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for MysqlSslConfig

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

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

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message MysqlSslConfig

MysqlSslConfig

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