Package com.google.pubsub.v1
Interface AcknowledgeRequestOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AcknowledgeRequest,AcknowledgeRequest.Builder
public interface AcknowledgeRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAckIds(int index)Required.com.google.protobuf.ByteStringgetAckIdsBytes(int index)Required.intgetAckIdsCount()Required.List<String>getAckIdsList()Required.StringgetSubscription()Required.com.google.protobuf.ByteStringgetSubscriptionBytes()Required.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getSubscription
String getSubscription()
Required. The subscription whose message is being acknowledged. Format is `projects/{project}/subscriptions/{sub}`.string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The subscription.
-
getSubscriptionBytes
com.google.protobuf.ByteString getSubscriptionBytes()
Required. The subscription whose message is being acknowledged. Format is `projects/{project}/subscriptions/{sub}`.string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for subscription.
-
getAckIdsList
List<String> getAckIdsList()
Required. The acknowledgment ID for the messages being acknowledged that was returned by the Pub/Sub system in the `Pull` response. Must not be empty.
repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- A list containing the ackIds.
-
getAckIdsCount
int getAckIdsCount()
Required. The acknowledgment ID for the messages being acknowledged that was returned by the Pub/Sub system in the `Pull` response. Must not be empty.
repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The count of ackIds.
-
getAckIds
String getAckIds(int index)
Required. The acknowledgment ID for the messages being acknowledged that was returned by the Pub/Sub system in the `Pull` response. Must not be empty.
repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index of the element to return.- Returns:
- The ackIds at the given index.
-
getAckIdsBytes
com.google.protobuf.ByteString getAckIdsBytes(int index)
Required. The acknowledgment ID for the messages being acknowledged that was returned by the Pub/Sub system in the `Pull` response. Must not be empty.
repeated string ack_ids = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the ackIds at the given index.
-
-