Class 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 Detail

      • 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>
      • 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()
         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;
        Specified by:
        getReceivedMessagesList in interface PullResponseOrBuilder
      • getReceivedMessagesCount

        public int getReceivedMessagesCount()
         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;
        Specified by:
        getReceivedMessagesCount in interface PullResponseOrBuilder
      • getReceivedMessages

        public ReceivedMessage getReceivedMessages​(int index)
         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;
        Specified by:
        getReceivedMessages in interface PullResponseOrBuilder
      • setReceivedMessages

        public PullResponse.Builder setReceivedMessages​(int index,
                                                        ReceivedMessage value)
         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;
      • setReceivedMessages

        public PullResponse.Builder setReceivedMessages​(int index,
                                                        ReceivedMessage.Builder builderForValue)
         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;
      • addReceivedMessages

        public PullResponse.Builder addReceivedMessages​(ReceivedMessage value)
         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;
      • addReceivedMessages

        public PullResponse.Builder addReceivedMessages​(int index,
                                                        ReceivedMessage value)
         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;
      • addReceivedMessages

        public PullResponse.Builder addReceivedMessages​(ReceivedMessage.Builder builderForValue)
         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;
      • addReceivedMessages

        public PullResponse.Builder addReceivedMessages​(int index,
                                                        ReceivedMessage.Builder builderForValue)
         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;
      • addAllReceivedMessages

        public PullResponse.Builder addAllReceivedMessages​(Iterable<? extends ReceivedMessage> values)
         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;
      • clearReceivedMessages

        public PullResponse.Builder clearReceivedMessages()
         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;
      • removeReceivedMessages

        public PullResponse.Builder removeReceivedMessages​(int index)
         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;
      • getReceivedMessagesBuilder

        public ReceivedMessage.Builder getReceivedMessagesBuilder​(int index)
         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;
      • getReceivedMessagesOrBuilder

        public ReceivedMessageOrBuilder getReceivedMessagesOrBuilder​(int index)
         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;
        Specified by:
        getReceivedMessagesOrBuilder in interface PullResponseOrBuilder
      • getReceivedMessagesOrBuilderList

        public List<? extends ReceivedMessageOrBuilder> getReceivedMessagesOrBuilderList()
         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;
        Specified by:
        getReceivedMessagesOrBuilderList in interface PullResponseOrBuilder
      • addReceivedMessagesBuilder

        public ReceivedMessage.Builder addReceivedMessagesBuilder()
         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;
      • addReceivedMessagesBuilder

        public ReceivedMessage.Builder addReceivedMessagesBuilder​(int index)
         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;
      • getReceivedMessagesBuilderList

        public List<ReceivedMessage.Builder> getReceivedMessagesBuilderList()
         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;
      • 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>