Class protos.google.cloud.dataplex.v1.AssetStatus (1.0.0)

Represents an AssetStatus.

Package

@google-cloud/dataplex

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.dataplex.v1.IAssetStatus);

Constructs a new AssetStatus.

Parameter
NameDescription
properties IAssetStatus

Properties to set

Properties

activeAssets

public activeAssets: number;

AssetStatus activeAssets.

securityPolicyApplyingAssets

public securityPolicyApplyingAssets: number;

AssetStatus securityPolicyApplyingAssets.

updateTime

public updateTime?: (google.protobuf.ITimestamp|null);

AssetStatus updateTime.

Methods

create(properties)

public static create(properties?: google.cloud.dataplex.v1.IAssetStatus): google.cloud.dataplex.v1.AssetStatus;

Creates a new AssetStatus instance using the specified properties.

Parameter
NameDescription
properties IAssetStatus

Properties to set

Returns
TypeDescription
google.cloud.dataplex.v1.AssetStatus

AssetStatus instance

decode(reader, length)

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

Decodes an AssetStatus 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.dataplex.v1.AssetStatus

AssetStatus

decodeDelimited(reader)

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

Decodes an AssetStatus 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.dataplex.v1.AssetStatus

AssetStatus

encode(message, writer)

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

Encodes the specified AssetStatus message. Does not implicitly messages.

Parameters
NameDescription
message IAssetStatus

AssetStatus 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.dataplex.v1.IAssetStatus, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IAssetStatus

AssetStatus 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.dataplex.v1.AssetStatus;

Creates an AssetStatus 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.dataplex.v1.AssetStatus

AssetStatus

toJSON()

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

Converts this AssetStatus to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.cloud.dataplex.v1.AssetStatus

AssetStatus

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

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

Verifies an AssetStatus 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