Cloud PubSub V1 Client - Class GetSnapshotRequest (1.45.2)

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

Request for the GetSnapshot method.

Generated from protobuf message google.pubsub.v1.GetSnapshotRequest

Namespace

Google \ Cloud \ PubSub \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ snapshot string

Required. The name of the snapshot to get. Format is projects/{project}/snapshots/{snap}.

getSnapshot

Required. The name of the snapshot to get.

Format is projects/{project}/snapshots/{snap}.

Returns
TypeDescription
string

setSnapshot

Required. The name of the snapshot to get.

Format is projects/{project}/snapshots/{snap}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
snapshot string

Required. The name of the snapshot to get. Format is projects/{project}/snapshots/{snap}. Please see Google\Cloud\PubSub\V1\SubscriberClient::snapshotName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\PubSub\V1\GetSnapshotRequest