Class PullRequest.Builder

  • All Implemented Interfaces:
    PullRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    PullRequest

    public static final class PullRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<PullRequest.Builder>
    implements PullRequestOrBuilder
    Protobuf type blipai.deckard.PullRequest
    • 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<PullRequest.Builder>
      • clear

        public PullRequest.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<PullRequest.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<PullRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public PullRequest.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<PullRequest.Builder>
      • setField

        public PullRequest.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<PullRequest.Builder>
      • clearField

        public PullRequest.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<PullRequest.Builder>
      • clearOneof

        public PullRequest.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<PullRequest.Builder>
      • setRepeatedField

        public PullRequest.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<PullRequest.Builder>
      • addRepeatedField

        public PullRequest.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<PullRequest.Builder>
      • mergeFrom

        public PullRequest.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<PullRequest.Builder>
      • isInitialized

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

        public PullRequest.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<PullRequest.Builder>
        Throws:
        IOException
      • getQueue

        public String getQueue()
         Full name of the queue to pull messages (including any prefixes)
         
        string queue = 1;
        Specified by:
        getQueue in interface PullRequestOrBuilder
        Returns:
        The queue.
      • getQueueBytes

        public com.google.protobuf.ByteString getQueueBytes()
         Full name of the queue to pull messages (including any prefixes)
         
        string queue = 1;
        Specified by:
        getQueueBytes in interface PullRequestOrBuilder
        Returns:
        The bytes for queue.
      • setQueue

        public PullRequest.Builder setQueue​(String value)
         Full name of the queue to pull messages (including any prefixes)
         
        string queue = 1;
        Parameters:
        value - The queue to set.
        Returns:
        This builder for chaining.
      • clearQueue

        public PullRequest.Builder clearQueue()
         Full name of the queue to pull messages (including any prefixes)
         
        string queue = 1;
        Returns:
        This builder for chaining.
      • setQueueBytes

        public PullRequest.Builder setQueueBytes​(com.google.protobuf.ByteString value)
         Full name of the queue to pull messages (including any prefixes)
         
        string queue = 1;
        Parameters:
        value - The bytes for queue to set.
        Returns:
        This builder for chaining.
      • getAmount

        public int getAmount()
         Number of messages to fetch.
         Caution: as greater the amount, as more time it will take to process the request.
         Max value is 1000 and the default value is 1
         
        int32 amount = 2;
        Specified by:
        getAmount in interface PullRequestOrBuilder
        Returns:
        The amount.
      • setAmount

        public PullRequest.Builder setAmount​(int value)
         Number of messages to fetch.
         Caution: as greater the amount, as more time it will take to process the request.
         Max value is 1000 and the default value is 1
         
        int32 amount = 2;
        Parameters:
        value - The amount to set.
        Returns:
        This builder for chaining.
      • clearAmount

        public PullRequest.Builder clearAmount()
         Number of messages to fetch.
         Caution: as greater the amount, as more time it will take to process the request.
         Max value is 1000 and the default value is 1
         
        int32 amount = 2;
        Returns:
        This builder for chaining.
      • getScoreFilter

        @Deprecated
        public long getScoreFilter()
        Deprecated.
        blipai.deckard.PullRequest.score_filter is deprecated. See proto/deckard_service.proto;l=114
         Prefer using the max_score field instead of this one.
         This field is deprecated and will be removed in the future.
          
         The `score_filter` behaves differently than `max_score` field.
         The `max_score` field is the upper threshold itself, but the `score_filter` will result in an upper score threshold of the current timestamp minus the score_filter value.
        
         Useful only when your queue's score is only based on the current timestamp to not return a message just moments after it was last used.
         It will only return messages with score lower than the current timestamp minus the score_filter value.
        
         For example if your queue's score is only based on the current timestamp, this parameter will be the number of milliseconds a message must be in the queue before being returned.
         
        int64 score_filter = 3 [deprecated = true];
        Specified by:
        getScoreFilter in interface PullRequestOrBuilder
        Returns:
        The scoreFilter.
      • setScoreFilter

        @Deprecated
        public PullRequest.Builder setScoreFilter​(long value)
        Deprecated.
        blipai.deckard.PullRequest.score_filter is deprecated. See proto/deckard_service.proto;l=114
         Prefer using the max_score field instead of this one.
         This field is deprecated and will be removed in the future.
          
         The `score_filter` behaves differently than `max_score` field.
         The `max_score` field is the upper threshold itself, but the `score_filter` will result in an upper score threshold of the current timestamp minus the score_filter value.
        
         Useful only when your queue's score is only based on the current timestamp to not return a message just moments after it was last used.
         It will only return messages with score lower than the current timestamp minus the score_filter value.
        
         For example if your queue's score is only based on the current timestamp, this parameter will be the number of milliseconds a message must be in the queue before being returned.
         
        int64 score_filter = 3 [deprecated = true];
        Parameters:
        value - The scoreFilter to set.
        Returns:
        This builder for chaining.
      • clearScoreFilter

        @Deprecated
        public PullRequest.Builder clearScoreFilter()
        Deprecated.
        blipai.deckard.PullRequest.score_filter is deprecated. See proto/deckard_service.proto;l=114
         Prefer using the max_score field instead of this one.
         This field is deprecated and will be removed in the future.
          
         The `score_filter` behaves differently than `max_score` field.
         The `max_score` field is the upper threshold itself, but the `score_filter` will result in an upper score threshold of the current timestamp minus the score_filter value.
        
         Useful only when your queue's score is only based on the current timestamp to not return a message just moments after it was last used.
         It will only return messages with score lower than the current timestamp minus the score_filter value.
        
         For example if your queue's score is only based on the current timestamp, this parameter will be the number of milliseconds a message must be in the queue before being returned.
         
        int64 score_filter = 3 [deprecated = true];
        Returns:
        This builder for chaining.
      • getMaxScore

        public double getMaxScore()
         Sets the upper threshold for the priority score of a message to be returned in the pull request.
        
         Only messages with a priority score equal to or lower than the max_score value will be returned.
        
         The maximum score accepted by Deckard is 9007199254740992, any value higher than this will be capped to the maximum score.
         To set this value to the minimum score accepted by Deckard, use any negative number.
         This parameter will be ignored if set to 0 (default value).
         
        double max_score = 4;
        Specified by:
        getMaxScore in interface PullRequestOrBuilder
        Returns:
        The maxScore.
      • setMaxScore

        public PullRequest.Builder setMaxScore​(double value)
         Sets the upper threshold for the priority score of a message to be returned in the pull request.
        
         Only messages with a priority score equal to or lower than the max_score value will be returned.
        
         The maximum score accepted by Deckard is 9007199254740992, any value higher than this will be capped to the maximum score.
         To set this value to the minimum score accepted by Deckard, use any negative number.
         This parameter will be ignored if set to 0 (default value).
         
        double max_score = 4;
        Parameters:
        value - The maxScore to set.
        Returns:
        This builder for chaining.
      • clearMaxScore

        public PullRequest.Builder clearMaxScore()
         Sets the upper threshold for the priority score of a message to be returned in the pull request.
        
         Only messages with a priority score equal to or lower than the max_score value will be returned.
        
         The maximum score accepted by Deckard is 9007199254740992, any value higher than this will be capped to the maximum score.
         To set this value to the minimum score accepted by Deckard, use any negative number.
         This parameter will be ignored if set to 0 (default value).
         
        double max_score = 4;
        Returns:
        This builder for chaining.
      • getMinScore

        public double getMinScore()
         Sets the lower threshold for the priority score required for a message to be returned.
         Only messages with a priority score equal to or higher than the min_score value will be returned.
         The minimum score accepted by Deckard is 0 which is also the default value
         
        double min_score = 5;
        Specified by:
        getMinScore in interface PullRequestOrBuilder
        Returns:
        The minScore.
      • setMinScore

        public PullRequest.Builder setMinScore​(double value)
         Sets the lower threshold for the priority score required for a message to be returned.
         Only messages with a priority score equal to or higher than the min_score value will be returned.
         The minimum score accepted by Deckard is 0 which is also the default value
         
        double min_score = 5;
        Parameters:
        value - The minScore to set.
        Returns:
        This builder for chaining.
      • clearMinScore

        public PullRequest.Builder clearMinScore()
         Sets the lower threshold for the priority score required for a message to be returned.
         Only messages with a priority score equal to or higher than the min_score value will be returned.
         The minimum score accepted by Deckard is 0 which is also the default value
         
        double min_score = 5;
        Returns:
        This builder for chaining.
      • getAckDeadlineMs

        public long getAckDeadlineMs()
         Sets the amount of time in milliseconds a message will wait be available for processing before being returned to the queue if not ACKed.
         The default value is 300000 (5 minutes).
         
        int64 ack_deadline_ms = 6;
        Specified by:
        getAckDeadlineMs in interface PullRequestOrBuilder
        Returns:
        The ackDeadlineMs.
      • setAckDeadlineMs

        public PullRequest.Builder setAckDeadlineMs​(long value)
         Sets the amount of time in milliseconds a message will wait be available for processing before being returned to the queue if not ACKed.
         The default value is 300000 (5 minutes).
         
        int64 ack_deadline_ms = 6;
        Parameters:
        value - The ackDeadlineMs to set.
        Returns:
        This builder for chaining.
      • clearAckDeadlineMs

        public PullRequest.Builder clearAckDeadlineMs()
         Sets the amount of time in milliseconds a message will wait be available for processing before being returned to the queue if not ACKed.
         The default value is 300000 (5 minutes).
         
        int64 ack_deadline_ms = 6;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final PullRequest.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<PullRequest.Builder>
      • mergeUnknownFields

        public final PullRequest.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<PullRequest.Builder>