Reference documentation and code samples for the Google Cloud Asset V1 Client class PubsubDestination.
A Pub/Sub destination.
Generated from protobuf message google.cloud.asset.v1.PubsubDestination
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ topic |
string
The name of the Pub/Sub topic to publish to. Example: |
getTopic
The name of the Pub/Sub topic to publish to.
Example: projects/PROJECT_ID/topics/TOPIC_ID
.
Generated from protobuf field string topic = 1;
Returns | |
---|---|
Type | Description |
string |
setTopic
The name of the Pub/Sub topic to publish to.
Example: projects/PROJECT_ID/topics/TOPIC_ID
.
Generated from protobuf field string topic = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |