Google Cloud Eventarc V1 Client - Class CreateChannelRequest (1.1.1)

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

The request message for the CreateChannel method.

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

Namespace

Google \ Cloud \ Eventarc \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent collection in which to add this channel.

↳ channel Google\Cloud\Eventarc\V1\Channel

Required. The channel to create.

↳ channel_id string

Required. The user-provided ID to be assigned to the channel.

↳ validate_only bool

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

getParent

Required. The parent collection in which to add this channel.

Returns
TypeDescription
string

setParent

Required. The parent collection in which to add this channel.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getChannel

Required. The channel to create.

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

hasChannel

clearChannel

setChannel

Required. The channel to create.

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

getChannelId

Required. The user-provided ID to be assigned to the channel.

Returns
TypeDescription
string

setChannelId

Required. The user-provided ID to be assigned to the channel.

Parameter
NameDescription
var string
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
parent string

Required. The parent collection in which to add this channel. Please see Google\Cloud\Eventarc\V1\EventarcClient::locationName() for help formatting this field.

channel Google\Cloud\Eventarc\V1\Channel

Required. The channel to create.

channelId string

Required. The user-provided ID to be assigned to the channel.

Returns
TypeDescription
Google\Cloud\Eventarc\V1\CreateChannelRequest