Cloud PubSub V1 Client - Class GetSnapshotRequest (2.19.1)
Stay organized with collections
Save and categorize content based on your preferences.
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
Name
Description
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
Type
Description
string
setSnapshot
Required. The name of the snapshot to get.
Format is projects/{project}/snapshots/{snap}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
snapshot
string
Required. The name of the snapshot to get.
Format is projects/{project}/snapshots/{snap}. Please see
SubscriberClient::snapshotName() for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-18 UTC."],[],[]]