public interface CreateSnapshotRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
managing labels</a>.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
managing labels</a>.
|
Map<String,String> |
getLabelsMap()
See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
managing labels</a>.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
managing labels</a>.
|
String |
getLabelsOrThrow(String key)
See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
managing labels</a>.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
String |
getSubscription()
Required.
|
com.google.protobuf.ByteString |
getSubscriptionBytes()
Required.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getName()
Required. 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. See the <a
href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
com.google.protobuf.ByteString getNameBytes()
Required. 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. See the <a
href="https://cloud.google.com/pubsub/docs/admin#resource_names"> resource
name rules</a>. Format is `projects/{project}/snapshots/{snap}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
String getSubscription()
Required. 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
com.google.protobuf.ByteString getSubscriptionBytes()
Required. 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 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
int getLabelsCount()
See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 3;boolean containsLabels(String key)
See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 3;@Deprecated Map<String,String> getLabels()
getLabelsMap() instead.Map<String,String> getLabelsMap()
See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 3;String getLabelsOrDefault(String key, String defaultValue)
See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and managing labels</a>.
map<string, string> labels = 3;Copyright © 2023 Google LLC. All rights reserved.