Package ai.blip.deckard
Class AddMessage
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- ai.blip.deckard.AddMessage
-
- All Implemented Interfaces:
AddMessageOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class AddMessage extends com.google.protobuf.GeneratedMessageV3 implements AddMessageOrBuilder
Protobuf typeblipai.deckard.AddMessage- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddMessage.BuilderProtobuf typeblipai.deckard.AddMessage-
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 intDESCRIPTION_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic intPAYLOAD_FIELD_NUMBERstatic intQUEUE_FIELD_NUMBERstatic intSCORE_FIELD_NUMBERstatic intSTRING_PAYLOAD_FIELD_NUMBERstatic intTIMELESS_FIELD_NUMBERstatic intTTL_MINUTES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsMetadata(String key)Metadata is a map of string to be used as a key-value store.booleancontainsPayload(String key)A payload map with formatted data to be stored and used by clients.booleanequals(Object obj)static AddMessagegetDefaultInstance()AddMessagegetDefaultInstanceForType()StringgetDescription()Description of the message, this should be used as a human readable string to be used in diagnostics.com.google.protobuf.ByteStringgetDescriptionBytes()Description of the message, this should be used as a human readable string to be used in diagnostics.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetId()Unique id of this messagecom.google.protobuf.ByteStringgetIdBytes()Unique id of this messageMap<String,String>getMetadata()Deprecated.intgetMetadataCount()Metadata is a map of string to be used as a key-value store.Map<String,String>getMetadataMap()Metadata is a map of string to be used as a key-value store.StringgetMetadataOrDefault(String key, String defaultValue)Metadata is a map of string to be used as a key-value store.StringgetMetadataOrThrow(String key)Metadata is a map of string to be used as a key-value store.com.google.protobuf.Parser<AddMessage>getParserForType()Map<String,com.google.protobuf.Any>getPayload()Deprecated.intgetPayloadCount()A payload map with formatted data to be stored and used by clients.Map<String,com.google.protobuf.Any>getPayloadMap()A payload map with formatted data to be stored and used by clients.com.google.protobuf.AnygetPayloadOrDefault(String key, com.google.protobuf.Any defaultValue)A payload map with formatted data to be stored and used by clients.com.google.protobuf.AnygetPayloadOrThrow(String key)A payload map with formatted data to be stored and used by clients.StringgetQueue()Name of the queue to add this message Suggestion: to better observability, provide the name of the application using colon as the separator.com.google.protobuf.ByteStringgetQueueBytes()Name of the queue to add this message Suggestion: to better observability, provide the name of the application using colon as the separator.doublegetScore()Score represents the priority score the message currently have in the queue.intgetSerializedSize()StringgetStringPayload()Non-formatted string payload.com.google.protobuf.ByteStringgetStringPayloadBytes()Non-formatted string payload.booleangetTimeless()Indicate this message will never expire and will only be deleted from the queue if explicitly removed.longgetTtlMinutes()TTL is the amount of time in minutes this message will live in the queue.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static AddMessage.BuildernewBuilder()static AddMessage.BuildernewBuilder(AddMessage prototype)AddMessage.BuildernewBuilderForType()protected AddMessage.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static AddMessageparseDelimitedFrom(InputStream input)static AddMessageparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AddMessageparseFrom(byte[] data)static AddMessageparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AddMessageparseFrom(com.google.protobuf.ByteString data)static AddMessageparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AddMessageparseFrom(com.google.protobuf.CodedInputStream input)static AddMessageparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AddMessageparseFrom(InputStream input)static AddMessageparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static AddMessageparseFrom(ByteBuffer data)static AddMessageparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<AddMessage>parser()AddMessage.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, 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
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_PAYLOAD_FIELD_NUMBER
public static final int STRING_PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUEUE_FIELD_NUMBER
public static final int QUEUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMELESS_FIELD_NUMBER
public static final int TIMELESS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TTL_MINUTES_FIELD_NUMBER
public static final int TTL_MINUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCORE_FIELD_NUMBER
public static final int SCORE_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()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getId
public String getId()
Unique id of this message
string id = 1;- Specified by:
getIdin interfaceAddMessageOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
Unique id of this message
string id = 1;- Specified by:
getIdBytesin interfaceAddMessageOrBuilder- Returns:
- The bytes for id.
-
getPayloadCount
public int getPayloadCount()
Description copied from interface:AddMessageOrBuilderA payload map with formatted data to be stored and used by clients.
map<string, .google.protobuf.Any> payload = 10;- Specified by:
getPayloadCountin interfaceAddMessageOrBuilder
-
containsPayload
public boolean containsPayload(String key)
A payload map with formatted data to be stored and used by clients.
map<string, .google.protobuf.Any> payload = 10;- Specified by:
containsPayloadin interfaceAddMessageOrBuilder
-
getPayload
@Deprecated public Map<String,com.google.protobuf.Any> getPayload()
Deprecated.UsegetPayloadMap()instead.- Specified by:
getPayloadin interfaceAddMessageOrBuilder
-
getPayloadMap
public Map<String,com.google.protobuf.Any> getPayloadMap()
A payload map with formatted data to be stored and used by clients.
map<string, .google.protobuf.Any> payload = 10;- Specified by:
getPayloadMapin interfaceAddMessageOrBuilder
-
getPayloadOrDefault
public com.google.protobuf.Any getPayloadOrDefault(String key, com.google.protobuf.Any defaultValue)
A payload map with formatted data to be stored and used by clients.
map<string, .google.protobuf.Any> payload = 10;- Specified by:
getPayloadOrDefaultin interfaceAddMessageOrBuilder
-
getPayloadOrThrow
public com.google.protobuf.Any getPayloadOrThrow(String key)
A payload map with formatted data to be stored and used by clients.
map<string, .google.protobuf.Any> payload = 10;- Specified by:
getPayloadOrThrowin interfaceAddMessageOrBuilder
-
getStringPayload
public String getStringPayload()
Non-formatted string payload. This field can be used to store simple string data instead of using the payload field.
string string_payload = 3;- Specified by:
getStringPayloadin interfaceAddMessageOrBuilder- Returns:
- The stringPayload.
-
getStringPayloadBytes
public com.google.protobuf.ByteString getStringPayloadBytes()
Non-formatted string payload. This field can be used to store simple string data instead of using the payload field.
string string_payload = 3;- Specified by:
getStringPayloadBytesin interfaceAddMessageOrBuilder- Returns:
- The bytes for stringPayload.
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:AddMessageOrBuilderMetadata is a map of string to be used as a key-value store. It is a simple way to store data that is not part of the message payload.
map<string, string> metadata = 11;- Specified by:
getMetadataCountin interfaceAddMessageOrBuilder
-
containsMetadata
public boolean containsMetadata(String key)
Metadata is a map of string to be used as a key-value store. It is a simple way to store data that is not part of the message payload.
map<string, string> metadata = 11;- Specified by:
containsMetadatain interfaceAddMessageOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceAddMessageOrBuilder
-
getMetadataMap
public Map<String,String> getMetadataMap()
Metadata is a map of string to be used as a key-value store. It is a simple way to store data that is not part of the message payload.
map<string, string> metadata = 11;- Specified by:
getMetadataMapin interfaceAddMessageOrBuilder
-
getMetadataOrDefault
public String getMetadataOrDefault(String key, String defaultValue)
Metadata is a map of string to be used as a key-value store. It is a simple way to store data that is not part of the message payload.
map<string, string> metadata = 11;- Specified by:
getMetadataOrDefaultin interfaceAddMessageOrBuilder
-
getMetadataOrThrow
public String getMetadataOrThrow(String key)
Metadata is a map of string to be used as a key-value store. It is a simple way to store data that is not part of the message payload.
map<string, string> metadata = 11;- Specified by:
getMetadataOrThrowin interfaceAddMessageOrBuilder
-
getQueue
public String getQueue()
Name of the queue to add this message Suggestion: to better observability, provide the name of the application using colon as the separator. Example: <application_name>:<queue_name> You may also add a queue prefix to the queue name using two colons as the separator. Example: <application_name>:<queue_prefix>::<queue_name>
string queue = 4;- Specified by:
getQueuein interfaceAddMessageOrBuilder- Returns:
- The queue.
-
getQueueBytes
public com.google.protobuf.ByteString getQueueBytes()
Name of the queue to add this message Suggestion: to better observability, provide the name of the application using colon as the separator. Example: <application_name>:<queue_name> You may also add a queue prefix to the queue name using two colons as the separator. Example: <application_name>:<queue_prefix>::<queue_name>
string queue = 4;- Specified by:
getQueueBytesin interfaceAddMessageOrBuilder- Returns:
- The bytes for queue.
-
getTimeless
public boolean getTimeless()
Indicate this message will never expire and will only be deleted from the queue if explicitly removed.
bool timeless = 6;- Specified by:
getTimelessin interfaceAddMessageOrBuilder- Returns:
- The timeless.
-
getTtlMinutes
public long getTtlMinutes()
TTL is the amount of time in minutes this message will live in the queue. TTL is not a exact time, the message may live a little longer than the specified TTL.
int64 ttl_minutes = 7;- Specified by:
getTtlMinutesin interfaceAddMessageOrBuilder- Returns:
- The ttlMinutes.
-
getDescription
public String getDescription()
Description of the message, this should be used as a human readable string to be used in diagnostics.
string description = 8;- Specified by:
getDescriptionin interfaceAddMessageOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Description of the message, this should be used as a human readable string to be used in diagnostics.
string description = 8;- Specified by:
getDescriptionBytesin interfaceAddMessageOrBuilder- Returns:
- The bytes for description.
-
getScore
public double getScore()
Score represents the priority score the message currently have in the queue. The score is used to determine the order of the messages returned in a pull request. The lower the score, the higher the priority. If the score is not set (or set to 0), the score will be set with the current timestamp in milliseconds at the moment of the message creation. The maximum score accepted by Deckard is 9007199254740992 and the minimum is 0 Negative scores will be converted to 0, adding the message with the lowest score (and highest priority)
double score = 12;- Specified by:
getScorein interfaceAddMessageOrBuilder- Returns:
- The score.
-
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 AddMessage parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AddMessage parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AddMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AddMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AddMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AddMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AddMessage parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AddMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AddMessage parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static AddMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static AddMessage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static AddMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public AddMessage.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static AddMessage.Builder newBuilder()
-
newBuilder
public static AddMessage.Builder newBuilder(AddMessage prototype)
-
toBuilder
public AddMessage.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AddMessage.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static AddMessage getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<AddMessage> parser()
-
getParserForType
public com.google.protobuf.Parser<AddMessage> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public AddMessage getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-