Google Cloud Dms V1 Client - Class TriggerEntity (2.0.1)

Reference documentation and code samples for the Google Cloud Dms V1 Client class TriggerEntity.

Trigger is not used as an independent entity, it is retrieved as part of a Table entity.

Generated from protobuf message google.cloud.clouddms.v1.TriggerEntity

Namespace

Google \ Cloud \ CloudDms \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

The name of the trigger.

↳ triggering_events array

The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.

↳ trigger_type string

Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH ROW.

↳ sql_code string

The SQL code which creates the trigger.

↳ custom_features Google\Protobuf\Struct

Custom engine specific features.

getName

The name of the trigger.

Returns
Type Description
string

setName

The name of the trigger.

Parameter
Name Description
var string
Returns
Type Description
$this

getTriggeringEvents

The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setTriggeringEvents

The DML, DDL, or database events that fire the trigger, for example INSERT, UPDATE.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getTriggerType

Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH ROW.

Returns
Type Description
string

setTriggerType

Indicates when the trigger fires, for example BEFORE STATEMENT, AFTER EACH ROW.

Parameter
Name Description
var string
Returns
Type Description
$this

getSqlCode

The SQL code which creates the trigger.

Returns
Type Description
string

setSqlCode

The SQL code which creates the trigger.

Parameter
Name Description
var string
Returns
Type Description
$this

getCustomFeatures

Custom engine specific features.

Returns
Type Description
Google\Protobuf\Struct|null

hasCustomFeatures

clearCustomFeatures

setCustomFeatures

Custom engine specific features.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this