Cloud PubSub V1 Client - Class GetSubscriptionRequest (2.5.2)

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

Namespace

Google \ Cloud \ PubSub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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}.

Returns
Type Description
string

setSubscription

Required. The name of the subscription to get.

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

Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameter
Name Description
subscription string

Required. The name of the subscription to get. Format is projects/{project}/subscriptions/{sub}. Please see Google\Cloud\PubSub\V1\SubscriberClient::subscriptionName() for help formatting this field.

Returns
Type Description
Google\Cloud\PubSub\V1\GetSubscriptionRequest

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.