Package ai.blip.deckard
Class Message
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- ai.blip.deckard.Message
-
- All Implemented Interfaces:
MessageOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Message extends com.google.protobuf.GeneratedMessageV3 implements MessageOrBuilder
Protobuf typeblipai.deckard.Message- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessage.BuilderProtobuf typeblipai.deckard.Message-
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 intBREAKPOINT_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intDIAGNOSTICS_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intMETADATA_FIELD_NUMBERstatic intPAYLOAD_FIELD_NUMBERstatic intQUEUE_FIELD_NUMBERstatic intSCORE_FIELD_NUMBERstatic intSTRING_PAYLOAD_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)StringgetBreakpoint()Breakpoint is a field to be used as an auxiliar field for some specific use cases.com.google.protobuf.ByteStringgetBreakpointBytes()Breakpoint is a field to be used as an auxiliar field for some specific use cases.static MessagegetDefaultInstance()MessagegetDefaultInstanceForType()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()MessageDiagnosticsgetDiagnostics()Diagnostics is a field holding information about the message's usage.MessageDiagnosticsOrBuildergetDiagnosticsOrBuilder()Diagnostics is a field holding information about the message's usage.StringgetId()ID is an unique identifier inside a queue.com.google.protobuf.ByteStringgetIdBytes()ID is an unique identifier inside a queue.Map<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<Message>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()Full name of the queue this message belongs (including any prefixes)com.google.protobuf.ByteStringgetQueueBytes()Full name of the queue this message belongs (including any prefixes)doublegetScore()Score represents the priority score the message currently have in the queue.intgetSerializedSize()StringgetStringPayload()Message string payload.com.google.protobuf.ByteStringgetStringPayloadBytes()Message string payload.booleanhasDiagnostics()Diagnostics is a field holding information about the message's usage.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static Message.BuildernewBuilder()static Message.BuildernewBuilder(Message prototype)Message.BuildernewBuilderForType()protected Message.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static MessageparseDelimitedFrom(InputStream input)static MessageparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MessageparseFrom(byte[] data)static MessageparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MessageparseFrom(com.google.protobuf.ByteString data)static MessageparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MessageparseFrom(com.google.protobuf.CodedInputStream input)static MessageparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MessageparseFrom(InputStream input)static MessageparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static MessageparseFrom(ByteBuffer data)static MessageparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Message>parser()Message.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
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUEUE_FIELD_NUMBER
public static final int QUEUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_PAYLOAD_FIELD_NUMBER
public static final int STRING_PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BREAKPOINT_FIELD_NUMBER
public static final int BREAKPOINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DIAGNOSTICS_FIELD_NUMBER
public static final int DIAGNOSTICS_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()
ID is an unique identifier inside a queue. Any message with the same id and queue will be considered the same message.
string id = 1;- Specified by:
getIdin interfaceMessageOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
ID is an unique identifier inside a queue. Any message with the same id and queue will be considered the same message.
string id = 1;- Specified by:
getIdBytesin interfaceMessageOrBuilder- Returns:
- The bytes for id.
-
getDescription
public String getDescription()
Description of the message, this should be used as a human readable string to be used in diagnostics.
string description = 2;- Specified by:
getDescriptionin interfaceMessageOrBuilder- 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 = 2;- Specified by:
getDescriptionBytesin interfaceMessageOrBuilder- Returns:
- The bytes for description.
-
getQueue
public String getQueue()
Full name of the queue this message belongs (including any prefixes)
string queue = 3;- Specified by:
getQueuein interfaceMessageOrBuilder- Returns:
- The queue.
-
getQueueBytes
public com.google.protobuf.ByteString getQueueBytes()
Full name of the queue this message belongs (including any prefixes)
string queue = 3;- Specified by:
getQueueBytesin interfaceMessageOrBuilder- Returns:
- The bytes for queue.
-
getPayloadCount
public int getPayloadCount()
Description copied from interface:MessageOrBuilderA payload map with formatted data to be stored and used by clients.
map<string, .google.protobuf.Any> payload = 8;- Specified by:
getPayloadCountin interfaceMessageOrBuilder
-
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 = 8;- Specified by:
containsPayloadin interfaceMessageOrBuilder
-
getPayload
@Deprecated public Map<String,com.google.protobuf.Any> getPayload()
Deprecated.UsegetPayloadMap()instead.- Specified by:
getPayloadin interfaceMessageOrBuilder
-
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 = 8;- Specified by:
getPayloadMapin interfaceMessageOrBuilder
-
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 = 8;- Specified by:
getPayloadOrDefaultin interfaceMessageOrBuilder
-
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 = 8;- Specified by:
getPayloadOrThrowin interfaceMessageOrBuilder
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:MessageOrBuilderMetadata 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 = 4;- Specified by:
getMetadataCountin interfaceMessageOrBuilder
-
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 = 4;- Specified by:
containsMetadatain interfaceMessageOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceMessageOrBuilder
-
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 = 4;- Specified by:
getMetadataMapin interfaceMessageOrBuilder
-
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 = 4;- Specified by:
getMetadataOrDefaultin interfaceMessageOrBuilder
-
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 = 4;- Specified by:
getMetadataOrThrowin interfaceMessageOrBuilder
-
getStringPayload
public String getStringPayload()
Message string payload. Is responsibility of the caller to know how to encode/decode to a useful format for its purpose. This field can be used to store simple string data instead of using the payload field.
string string_payload = 5;- Specified by:
getStringPayloadin interfaceMessageOrBuilder- Returns:
- The stringPayload.
-
getStringPayloadBytes
public com.google.protobuf.ByteString getStringPayloadBytes()
Message string payload. Is responsibility of the caller to know how to encode/decode to a useful format for its purpose. This field can be used to store simple string data instead of using the payload field.
string string_payload = 5;- Specified by:
getStringPayloadBytesin interfaceMessageOrBuilder- Returns:
- The bytes for stringPayload.
-
getScore
public double getScore()
Score represents the priority score the message currently have in the queue. The lower the score, the higher the priority. The maximum score accepted by Deckard is 9007199254740992 and the minimum is 0
double score = 6;- Specified by:
getScorein interfaceMessageOrBuilder- Returns:
- The score.
-
getBreakpoint
public String getBreakpoint()
Breakpoint is a field to be used as an auxiliar field for some specific use cases. For example if you need to keep a record of the last result processing a message, or want to iteract with a pagination system. Examples: imagine a message representing a web news portal and you want to navigate through the articles. This field could be used to store the last visited article id. Or imagine a message representing a user and you want to iterate through the user's publications pages. This field could be used to store the last page number you visited.
string breakpoint = 7;- Specified by:
getBreakpointin interfaceMessageOrBuilder- Returns:
- The breakpoint.
-
getBreakpointBytes
public com.google.protobuf.ByteString getBreakpointBytes()
Breakpoint is a field to be used as an auxiliar field for some specific use cases. For example if you need to keep a record of the last result processing a message, or want to iteract with a pagination system. Examples: imagine a message representing a web news portal and you want to navigate through the articles. This field could be used to store the last visited article id. Or imagine a message representing a user and you want to iterate through the user's publications pages. This field could be used to store the last page number you visited.
string breakpoint = 7;- Specified by:
getBreakpointBytesin interfaceMessageOrBuilder- Returns:
- The bytes for breakpoint.
-
hasDiagnostics
public boolean hasDiagnostics()
Diagnostics is a field holding information about the message's usage. It is useful to track how many times a message was ACKed or NACKed.
.blipai.deckard.MessageDiagnostics diagnostics = 9;- Specified by:
hasDiagnosticsin interfaceMessageOrBuilder- Returns:
- Whether the diagnostics field is set.
-
getDiagnostics
public MessageDiagnostics getDiagnostics()
Diagnostics is a field holding information about the message's usage. It is useful to track how many times a message was ACKed or NACKed.
.blipai.deckard.MessageDiagnostics diagnostics = 9;- Specified by:
getDiagnosticsin interfaceMessageOrBuilder- Returns:
- The diagnostics.
-
getDiagnosticsOrBuilder
public MessageDiagnosticsOrBuilder getDiagnosticsOrBuilder()
Diagnostics is a field holding information about the message's usage. It is useful to track how many times a message was ACKed or NACKed.
.blipai.deckard.MessageDiagnostics diagnostics = 9;- Specified by:
getDiagnosticsOrBuilderin interfaceMessageOrBuilder
-
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 Message parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Message parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Message parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Message parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Message parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Message parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Message parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Message parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Message parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Message parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Message parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Message.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Message.Builder newBuilder()
-
newBuilder
public static Message.Builder newBuilder(Message prototype)
-
toBuilder
public Message.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Message.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Message getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Message> parser()
-
getParserForType
public com.google.protobuf.Parser<Message> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Message getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-