Class SnapshotBuilder (2.23.0)
Stay organized with collections
Save and categorize content based on your preferences.
Build a request to create a Cloud Pub/Sub snapshot.
Makes it easier to create the protobuf messages consumed by SubscriptionAdminClient
. The main advantages are:
- Use a fluent API to set multiple values when constructing complex objects.
- Automatically compute the set of paths for update requests.
Constructors
SnapshotBuilder()
Functions
add_label(std::string const &, std::string const &) &
Setters for each protocol buffer field.
Parameters |
Name |
Description |
key |
std::string const &
|
value |
std::string const &
|
Returns |
Type |
Description |
SnapshotBuilder & |
|
add_label(std::string const &, std::string const &) &&
Setters for each protocol buffer field.
Parameters |
Name |
Description |
key |
std::string const &
|
value |
std::string const &
|
Returns |
Type |
Description |
SnapshotBuilder && |
|
clear_labels() &
Setters for each protocol buffer field.
Returns |
Type |
Description |
SnapshotBuilder & |
|
clear_labels() &&
Setters for each protocol buffer field.
Returns |
Type |
Description |
SnapshotBuilder && |
|
BuildCreateRequest(Subscription const &) &&
Build a protocol buffer message to create snapshots with server-assigned ids.
Parameter |
Name |
Description |
subscription |
Subscription const &
|
Returns |
Type |
Description |
google::pubsub::v1::CreateSnapshotRequest |
|
BuildCreateRequest(Subscription const &, Snapshot const &) &&
Build a protocol buffer message to create snapshots with application-assigned ids.
Parameters |
Name |
Description |
subscription |
Subscription const &
|
snapshot |
Snapshot const &
|
Returns |
Type |
Description |
google::pubsub::v1::CreateSnapshotRequest |
|
BuildUpdateRequest(Snapshot const &) &&
Build a protocol buffer message to update an existing snapshot.
Parameter |
Name |
Description |
snapshot |
Snapshot const &
|
Returns |
Type |
Description |
google::pubsub::v1::UpdateSnapshotRequest |
|
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 2024-10-04 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-10-04 UTC."}
[[["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 2024-10-04 UTC."]]