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
Methods
__construct
Constructor.
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}
.
string
setSubscription
Output only. Name of the subscription. Format is projects/{project}/subscriptions/{subscription}
.
var
string
$this
getTopic
The name of the topic from which this subscription is receiving messages.
Format is projects/{project}/topics/{topic}
.
string
setTopic
The name of the topic from which this subscription is receiving messages.
Format is projects/{project}/topics/{topic}
.
var
string
$this
getServiceAccountEmail
Service account that will make the push request.
string
setServiceAccountEmail
Service account that will make the push request.
var
string
$this
getState
Potential issues with the underlying Pub/Sub subscription configuration.
Only populated on get requests.
int
setState
Potential issues with the underlying Pub/Sub subscription configuration.
Only populated on get requests.
var
int
$this