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

    Modifier and Type
    Method
    Description
    getAckIds(int index)
    Required.
    com.google.protobuf.ByteString
    getAckIdsBytes(int index)
    Required.
    int
    Required.
    Required.
    Required.
    com.google.protobuf.ByteString
    Required.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • 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.