Cloud PubSub V1 Client - Class GetSubscriptionRequest (1.39.3)

Reference documentation and code samples for the Cloud PubSub V1 Client class GetSubscriptionRequest.

Request for the GetSubscription method.

Generated from protobuf message google.pubsub.v1.GetSubscriptionRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ subscription string

Required. The name of the subscription to get. Format is projects/{project}/subscriptions/{sub}.

getSubscription

Required. The name of the subscription to get.

Format is projects/{project}/subscriptions/{sub}.

Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Returns
TypeDescription
string

setSubscription

Required. The name of the subscription to get.

Format is projects/{project}/subscriptions/{sub}.

Generated from protobuf field string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {

Parameter
NameDescription
var string
Returns
TypeDescription
$this