Google Cloud Eventarc V1 Client - Class UpdateTriggerRequest (1.1.1)

Reference documentation and code samples for the Google Cloud Eventarc V1 Client class UpdateTriggerRequest.

The request message for the UpdateTrigger method.

Generated from protobuf message google.cloud.eventarc.v1.UpdateTriggerRequest

Namespace

Google \ Cloud \ Eventarc \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ trigger Google\Cloud\Eventarc\V1\Trigger

The trigger to be updated.

↳ update_mask Google\Protobuf\FieldMask

The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

↳ allow_missing bool

If set to true, and the trigger is not found, a new trigger will be created. In this situation, update_mask is ignored.

↳ validate_only bool

Required. If set, validate the request and preview the review, but do not post it.

getTrigger

The trigger to be updated.

Returns
TypeDescription
Google\Cloud\Eventarc\V1\Trigger|null

hasTrigger

clearTrigger

setTrigger

The trigger to be updated.

Parameter
NameDescription
var Google\Cloud\Eventarc\V1\Trigger
Returns
TypeDescription
$this

getUpdateMask

The fields to be updated; only fields explicitly provided are updated.

If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

The fields to be updated; only fields explicitly provided are updated.

If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

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

getAllowMissing

If set to true, and the trigger is not found, a new trigger will be created. In this situation, update_mask is ignored.

Returns
TypeDescription
bool

setAllowMissing

If set to true, and the trigger is not found, a new trigger will be created. In this situation, update_mask is ignored.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getValidateOnly

Required. If set, validate the request and preview the review, but do not post it.

Returns
TypeDescription
bool

setValidateOnly

Required. If set, validate the request and preview the review, but do not post it.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
trigger Google\Cloud\Eventarc\V1\Trigger

The trigger to be updated.

updateMask Google\Protobuf\FieldMask

The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of "*".

allowMissing bool

If set to true, and the trigger is not found, a new trigger will be created. In this situation, update_mask is ignored.

Returns
TypeDescription
Google\Cloud\Eventarc\V1\UpdateTriggerRequest