Class PullResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PullResponse.Builder>
com.google.pubsub.v1.PullResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, PullResponseOrBuilder, Cloneable
Enclosing class:
PullResponse

public static final class PullResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<PullResponse.Builder> implements PullResponseOrBuilder
 Response for the `Pull` method.
 
Protobuf type google.pubsub.v1.PullResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PullResponse.Builder>
    • clear

      public PullResponse.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PullResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PullResponse.Builder>
    • getDefaultInstanceForType

      public PullResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PullResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PullResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PullResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PullResponse.Builder>
    • mergeFrom

      public PullResponse.Builder mergeFrom(PullResponse other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PullResponse.Builder>
    • mergeFrom

      public PullResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PullResponse.Builder>
      Throws:
      IOException
    • getReceivedMessagesList

      public List<ReceivedMessage> getReceivedMessagesList()
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReceivedMessagesList in interface PullResponseOrBuilder
    • getReceivedMessagesCount

      public int getReceivedMessagesCount()
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReceivedMessagesCount in interface PullResponseOrBuilder
    • getReceivedMessages

      public ReceivedMessage getReceivedMessages(int index)
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReceivedMessages in interface PullResponseOrBuilder
    • setReceivedMessages

      public PullResponse.Builder setReceivedMessages(int index, ReceivedMessage value)
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setReceivedMessages

      public PullResponse.Builder setReceivedMessages(int index, ReceivedMessage.Builder builderForValue)
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addReceivedMessages

      public PullResponse.Builder addReceivedMessages(ReceivedMessage value)
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addReceivedMessages

      public PullResponse.Builder addReceivedMessages(int index, ReceivedMessage value)
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addReceivedMessages

      public PullResponse.Builder addReceivedMessages(ReceivedMessage.Builder builderForValue)
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addReceivedMessages

      public PullResponse.Builder addReceivedMessages(int index, ReceivedMessage.Builder builderForValue)
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllReceivedMessages

      public PullResponse.Builder addAllReceivedMessages(Iterable<? extends ReceivedMessage> values)
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearReceivedMessages

      public PullResponse.Builder clearReceivedMessages()
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeReceivedMessages

      public PullResponse.Builder removeReceivedMessages(int index)
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getReceivedMessagesBuilder

      public ReceivedMessage.Builder getReceivedMessagesBuilder(int index)
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getReceivedMessagesOrBuilder

      public ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index)
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReceivedMessagesOrBuilder in interface PullResponseOrBuilder
    • getReceivedMessagesOrBuilderList

      public List<? extends ReceivedMessageOrBuilder> getReceivedMessagesOrBuilderList()
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getReceivedMessagesOrBuilderList in interface PullResponseOrBuilder
    • addReceivedMessagesBuilder

      public ReceivedMessage.Builder addReceivedMessagesBuilder()
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addReceivedMessagesBuilder

      public ReceivedMessage.Builder addReceivedMessagesBuilder(int index)
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getReceivedMessagesBuilderList

      public List<ReceivedMessage.Builder> getReceivedMessagesBuilderList()
       Optional. Received Pub/Sub messages. The list will be empty if there are no
       more messages available in the backlog, or if no messages could be returned
       before the request timeout. For JSON, the response can be entirely
       empty. The Pub/Sub system may return fewer than the `maxMessages` requested
       even if there are more messages available in the backlog.
       
      repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];