Class protos.google.privacy.dlp.v2.JobTrigger

Represents a JobTrigger.

Package

@google-cloud/dlp

Constructors

(constructor)(properties)

constructor(properties?: google.privacy.dlp.v2.IJobTrigger);

Constructs a new JobTrigger.

Parameter
NameDescription
properties IJobTrigger

Properties to set

Properties

createTime

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

JobTrigger createTime.

description

public description: string;

JobTrigger description.

displayName

public displayName: string;

JobTrigger displayName.

errors

public errors: google.privacy.dlp.v2.IError[];

JobTrigger errors.

inspectJob

public inspectJob?: (google.privacy.dlp.v2.IInspectJobConfig|null);

JobTrigger inspectJob.

job

public job?: "inspectJob";

JobTrigger job.

lastRunTime

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

JobTrigger lastRunTime.

name

public name: string;

JobTrigger name.

status

public status: (google.privacy.dlp.v2.JobTrigger.Status|keyof typeof google.privacy.dlp.v2.JobTrigger.Status);

JobTrigger status.

triggers

public triggers: google.privacy.dlp.v2.JobTrigger.ITrigger[];

JobTrigger triggers.

updateTime

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

JobTrigger updateTime.

Methods

create(properties)

public static create(properties?: google.privacy.dlp.v2.IJobTrigger): google.privacy.dlp.v2.JobTrigger;

Creates a new JobTrigger instance using the specified properties.

Parameter
NameDescription
properties IJobTrigger

Properties to set

Returns
TypeDescription
google.privacy.dlp.v2.JobTrigger

JobTrigger instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.privacy.dlp.v2.JobTrigger;

Decodes a JobTrigger 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.privacy.dlp.v2.JobTrigger

JobTrigger

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.privacy.dlp.v2.JobTrigger;

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

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.privacy.dlp.v2.JobTrigger

JobTrigger

encode(message, writer)

public static encode(message: google.privacy.dlp.v2.IJobTrigger, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified JobTrigger message. Does not implicitly messages.

Parameters
NameDescription
message IJobTrigger

JobTrigger 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.privacy.dlp.v2.IJobTrigger, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IJobTrigger

JobTrigger 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.privacy.dlp.v2.JobTrigger;

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

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

Plain object

Returns
TypeDescription
google.privacy.dlp.v2.JobTrigger

JobTrigger

toJSON()

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

Converts this JobTrigger to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.privacy.dlp.v2.JobTrigger, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
NameDescription
message google.privacy.dlp.v2.JobTrigger

JobTrigger

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