Class PullResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
    • clone

      public PullResponse.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<PullResponse.Builder>
    • setField

      public PullResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<PullResponse.Builder>
    • clearField

      public PullResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PullResponse.Builder>
    • clearOneof

      public PullResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PullResponse.Builder>
    • setRepeatedField

      public PullResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PullResponse.Builder>
    • addRepeatedField

      public PullResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PullResponse.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.GeneratedMessageV3.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];
    • setUnknownFields

      public final PullResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PullResponse.Builder>
    • mergeUnknownFields

      public final PullResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PullResponse.Builder>