public interface CreateSnapshotRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
User labels.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
User labels.
|
Map<String,String> |
getLabelsMap()
User labels.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
User labels.
|
String |
getLabelsOrThrow(String key)
User labels.
|
String |
getName()
Optional user-provided name for this snapshot.
|
com.google.protobuf.ByteString |
getNameBytes()
Optional user-provided name for this snapshot.
|
String |
getSubscription()
The subscription whose backlog the snapshot retains.
|
com.google.protobuf.ByteString |
getSubscriptionBytes()
The subscription whose backlog the snapshot retains.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getName()
Optional user-provided name for this snapshot.
If the name is not provided in the request, the server will assign a random
name for this snapshot on the same project as the subscription.
Note that for REST API requests, you must specify a name.
Format is `projects/{project}/snapshots/{snap}`.
string name = 1;com.google.protobuf.ByteString getNameBytes()
Optional user-provided name for this snapshot.
If the name is not provided in the request, the server will assign a random
name for this snapshot on the same project as the subscription.
Note that for REST API requests, you must specify a name.
Format is `projects/{project}/snapshots/{snap}`.
string name = 1;String getSubscription()
The subscription whose backlog the snapshot retains.
Specifically, the created snapshot is guaranteed to retain:
(a) The existing backlog on the subscription. More precisely, this is
defined as the messages in the subscription's backlog that are
unacknowledged upon the successful completion of the
`CreateSnapshot` request; as well as:
(b) Any messages published to the subscription's topic following the
successful completion of the CreateSnapshot request.
Format is `projects/{project}/subscriptions/{sub}`.
string subscription = 2;com.google.protobuf.ByteString getSubscriptionBytes()
The subscription whose backlog the snapshot retains.
Specifically, the created snapshot is guaranteed to retain:
(a) The existing backlog on the subscription. More precisely, this is
defined as the messages in the subscription's backlog that are
unacknowledged upon the successful completion of the
`CreateSnapshot` request; as well as:
(b) Any messages published to the subscription's topic following the
successful completion of the CreateSnapshot request.
Format is `projects/{project}/subscriptions/{sub}`.
string subscription = 2;int getLabelsCount()
User labels.
map<string, string> labels = 3;boolean containsLabels(String key)
User labels.
map<string, string> labels = 3;@Deprecated Map<String,String> getLabels()
getLabelsMap() instead.String getLabelsOrDefault(String key, String defaultValue)
User labels.
map<string, string> labels = 3;Copyright © 2018 Google LLC. All rights reserved.