Package ai.blip.deckard
Class PullRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PullRequest.Builder>
-
- ai.blip.deckard.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 typeblipai.deckard.PullRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PullRequest.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PullRequestbuild()PullRequestbuildPartial()PullRequest.Builderclear()PullRequest.BuilderclearAmount()Number of messages to fetch.PullRequest.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PullRequest.BuilderclearMaxScore()Sets the upper threshold for the priority score of a message to be returned in the pull request.PullRequest.BuilderclearMinScore()Sets the lower threshold for the priority score required for a message to be returned.PullRequest.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PullRequest.BuilderclearQueue()Full name of the queue to pull messages (including any prefixes)PullRequest.BuilderclearScoreFilter()Deprecated.PullRequest.Builderclone()intgetAmount()Number of messages to fetch.PullRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()doublegetMaxScore()Sets the upper threshold for the priority score of a message to be returned in the pull request.doublegetMinScore()Sets the lower threshold for the priority score required for a message to be returned.StringgetQueue()Full name of the queue to pull messages (including any prefixes)com.google.protobuf.ByteStringgetQueueBytes()Full name of the queue to pull messages (including any prefixes)longgetScoreFilter()Deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PullRequest.BuildermergeFrom(PullRequest other)PullRequest.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PullRequest.BuildermergeFrom(com.google.protobuf.Message other)PullRequest.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PullRequest.BuildersetAmount(int value)Number of messages to fetch.PullRequest.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PullRequest.BuildersetMaxScore(double value)Sets the upper threshold for the priority score of a message to be returned in the pull request.PullRequest.BuildersetMinScore(double value)Sets the lower threshold for the priority score required for a message to be returned.PullRequest.BuildersetQueue(String value)Full name of the queue to pull messages (including any prefixes)PullRequest.BuildersetQueueBytes(com.google.protobuf.ByteString value)Full name of the queue to pull messages (including any prefixes)PullRequest.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PullRequest.BuildersetScoreFilter(long value)Deprecated.PullRequest.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PullRequest.Builder>
-
clear
public PullRequest.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<PullRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<PullRequest.Builder>
-
getDefaultInstanceForType
public PullRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PullRequest build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PullRequest buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PullRequest.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PullRequest.Builder>
-
setField
public PullRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PullRequest.Builder>
-
clearField
public PullRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PullRequest.Builder>
-
clearOneof
public PullRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PullRequest.Builder>
-
setRepeatedField
public PullRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PullRequest.Builder>
-
addRepeatedField
public PullRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PullRequest.Builder>
-
mergeFrom
public PullRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PullRequest.Builder>
-
mergeFrom
public PullRequest.Builder mergeFrom(PullRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getQueuein interfacePullRequestOrBuilder- 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:
getQueueBytesin interfacePullRequestOrBuilder- 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:
getAmountin interfacePullRequestOrBuilder- 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.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:
getScoreFilterin interfacePullRequestOrBuilder- Returns:
- The scoreFilter.
-
setScoreFilter
@Deprecated public PullRequest.Builder setScoreFilter(long value)
Deprecated.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.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:
getMaxScorein interfacePullRequestOrBuilder- 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:
getMinScorein interfacePullRequestOrBuilder- 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.
-
setUnknownFields
public final PullRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PullRequest.Builder>
-
mergeUnknownFields
public final PullRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PullRequest.Builder>
-
-