Google Cloud Dms V1 Client - Class TriggerEntity (1.4.2)

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
NameDescription
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
TypeDescription
string

setName

The name of the trigger.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTriggeringEvents

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

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTriggeringEvents

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

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getTriggerType

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

Returns
TypeDescription
string

setTriggerType

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSqlCode

The SQL code which creates the trigger.

Returns
TypeDescription
string

setSqlCode

The SQL code which creates the trigger.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCustomFeatures

Custom engine specific features.

Returns
TypeDescription
Google\Protobuf\Struct|null

hasCustomFeatures

clearCustomFeatures

setCustomFeatures

Custom engine specific features.

Parameter
NameDescription
var Google\Protobuf\Struct
Returns
TypeDescription
$this