Class 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 type blipai.deckard.AddMessage
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AddMessage.Builder
      Protobuf type blipai.deckard.AddMessage
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,​BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,​BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         Unique id of this message
         
        string id = 1;
        Specified by:
        getIdBytes in interface AddMessageOrBuilder
        Returns:
        The bytes for id.
      • getPayloadCount

        public int getPayloadCount()
        Description copied from interface: AddMessageOrBuilder
         A payload map with formatted data to be stored and used by clients.
         
        map<string, .google.protobuf.Any> payload = 10;
        Specified by:
        getPayloadCount in interface AddMessageOrBuilder
      • 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:
        containsPayload in interface AddMessageOrBuilder
      • 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:
        getPayloadMap in interface AddMessageOrBuilder
      • 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:
        getPayloadOrDefault in interface AddMessageOrBuilder
      • 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:
        getPayloadOrThrow in interface AddMessageOrBuilder
      • 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:
        getStringPayload in interface AddMessageOrBuilder
        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:
        getStringPayloadBytes in interface AddMessageOrBuilder
        Returns:
        The bytes for stringPayload.
      • getMetadataCount

        public int getMetadataCount()
        Description copied from interface: AddMessageOrBuilder
         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:
        getMetadataCount in interface AddMessageOrBuilder
      • 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:
        containsMetadata in interface AddMessageOrBuilder
      • 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:
        getMetadataMap in interface AddMessageOrBuilder
      • 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:
        getMetadataOrDefault in interface AddMessageOrBuilder
      • 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:
        getMetadataOrThrow in interface AddMessageOrBuilder
      • 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:
        getQueue in interface AddMessageOrBuilder
        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:
        getQueueBytes in interface AddMessageOrBuilder
        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:
        getTimeless in interface AddMessageOrBuilder
        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:
        getTtlMinutes in interface AddMessageOrBuilder
        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:
        getDescription in interface AddMessageOrBuilder
        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:
        getDescriptionBytes in interface AddMessageOrBuilder
        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:
        getScore in interface AddMessageOrBuilder
        Returns:
        The score.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Throws:
        IOException
      • newBuilderForType

        public AddMessage.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public AddMessage.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected AddMessage.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public AddMessage getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder