Google Cloud Build V1 Client - Class PubsubConfig (0.9.0)

Reference documentation and code samples for the Google Cloud Build V1 Client class PubsubConfig.

PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.

Generated from protobuf message google.devtools.cloudbuild.v1.PubsubConfig

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ subscription string

Output only. Name of the subscription. Format is projects/{project}/subscriptions/{subscription}.

↳ topic string

The name of the topic from which this subscription is receiving messages. Format is projects/{project}/topics/{topic}.

↳ service_account_email string

Service account that will make the push request.

↳ state int

Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.

getSubscription

Output only. Name of the subscription. Format is projects/{project}/subscriptions/{subscription}.

Returns
TypeDescription
string

setSubscription

Output only. Name of the subscription. Format is projects/{project}/subscriptions/{subscription}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTopic

The name of the topic from which this subscription is receiving messages.

Format is projects/{project}/topics/{topic}.

Returns
TypeDescription
string

setTopic

The name of the topic from which this subscription is receiving messages.

Format is projects/{project}/topics/{topic}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getServiceAccountEmail

Service account that will make the push request.

Returns
TypeDescription
string

setServiceAccountEmail

Service account that will make the push request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Potential issues with the underlying Pub/Sub subscription configuration.

Only populated on get requests.

Returns
TypeDescription
int

setState

Potential issues with the underlying Pub/Sub subscription configuration.

Only populated on get requests.

Parameter
NameDescription
var int
Returns
TypeDescription
$this