Package ai.blip.deckard
Class PullRequest
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- ai.blip.deckard.PullRequest
-
- All Implemented Interfaces:
PullRequestOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class PullRequest extends com.google.protobuf.GeneratedMessageV3 implements PullRequestOrBuilder
Protobuf typeblipai.deckard.PullRequest- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPullRequest.BuilderProtobuf typeblipai.deckard.PullRequest-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intACK_DEADLINE_MS_FIELD_NUMBERstatic intAMOUNT_FIELD_NUMBERstatic intMAX_SCORE_FIELD_NUMBERstatic intMIN_SCORE_FIELD_NUMBERstatic intQUEUE_FIELD_NUMBERstatic intSCORE_FILTER_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)longgetAckDeadlineMs()Sets the amount of time in milliseconds a message will wait be available for processing before being returned to the queue if not ACKed.intgetAmount()Number of messages to fetch.static PullRequestgetDefaultInstance()PullRequestgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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.com.google.protobuf.Parser<PullRequest>getParserForType()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.blipai.deckard.PullRequest.score_filter is deprecated.intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static PullRequest.BuildernewBuilder()static PullRequest.BuildernewBuilder(PullRequest prototype)PullRequest.BuildernewBuilderForType()protected PullRequest.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static PullRequestparseDelimitedFrom(InputStream input)static PullRequestparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PullRequestparseFrom(byte[] data)static PullRequestparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PullRequestparseFrom(com.google.protobuf.ByteString data)static PullRequestparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PullRequestparseFrom(com.google.protobuf.CodedInputStream input)static PullRequestparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PullRequestparseFrom(InputStream input)static PullRequestparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PullRequestparseFrom(ByteBuffer data)static PullRequestparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<PullRequest>parser()PullRequest.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
QUEUE_FIELD_NUMBER
public static final int QUEUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AMOUNT_FIELD_NUMBER
public static final int AMOUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCORE_FILTER_FIELD_NUMBER
public static final int SCORE_FILTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_SCORE_FIELD_NUMBER
public static final int MAX_SCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MIN_SCORE_FIELD_NUMBER
public static final int MIN_SCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ACK_DEADLINE_MS_FIELD_NUMBER
public static final int ACK_DEADLINE_MS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
getScoreFilter
@Deprecated public long getScoreFilter()
Deprecated.blipai.deckard.PullRequest.score_filter is deprecated. See proto/deckard_service.proto;l=114Prefer 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.
-
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.
-
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.
-
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:
getAckDeadlineMsin interfacePullRequestOrBuilder- Returns:
- The ackDeadlineMs.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PullRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PullRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PullRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PullRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PullRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PullRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PullRequest parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PullRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PullRequest parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PullRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static PullRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PullRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public PullRequest.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PullRequest.Builder newBuilder()
-
newBuilder
public static PullRequest.Builder newBuilder(PullRequest prototype)
-
toBuilder
public PullRequest.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PullRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static PullRequest getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PullRequest> parser()
-
getParserForType
public com.google.protobuf.Parser<PullRequest> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PullRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-