Class AddMessage.Builder

  • All Implemented Interfaces:
    AddMessageOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    AddMessage

    public static final class AddMessage.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
    implements AddMessageOrBuilder
    Protobuf type blipai.deckard.AddMessage
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
      • clear

        public AddMessage.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
      • getDefaultInstanceForType

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

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

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

        public AddMessage.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
      • setField

        public AddMessage.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
      • clearField

        public AddMessage.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
      • clearOneof

        public AddMessage.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
      • setRepeatedField

        public AddMessage.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
      • addRepeatedField

        public AddMessage.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
      • mergeFrom

        public AddMessage.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AddMessage.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
      • mergeFrom

        public AddMessage.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AddMessage.Builder>
        Throws:
        IOException
      • 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.
      • setId

        public AddMessage.Builder setId​(String value)
         Unique id of this message
         
        string id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public AddMessage.Builder clearId()
         Unique id of this message
         
        string id = 1;
        Returns:
        This builder for chaining.
      • setIdBytes

        public AddMessage.Builder setIdBytes​(com.google.protobuf.ByteString value)
         Unique id of this message
         
        string id = 1;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • 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
      • removePayload

        public AddMessage.Builder removePayload​(String key)
         A payload map with formatted data to be stored and used by clients.
         
        map<string, .google.protobuf.Any> payload = 10;
      • getMutablePayload

        @Deprecated
        public Map<String,​com.google.protobuf.Any> getMutablePayload()
        Deprecated.
        Use alternate mutation accessors instead.
      • putPayload

        public AddMessage.Builder putPayload​(String key,
                                             com.google.protobuf.Any value)
         A payload map with formatted data to be stored and used by clients.
         
        map<string, .google.protobuf.Any> payload = 10;
      • putAllPayload

        public AddMessage.Builder putAllPayload​(Map<String,​com.google.protobuf.Any> values)
         A payload map with formatted data to be stored and used by clients.
         
        map<string, .google.protobuf.Any> payload = 10;
      • putPayloadBuilderIfAbsent

        public com.google.protobuf.Any.Builder putPayloadBuilderIfAbsent​(String key)
         A payload map with formatted data to be stored and used by clients.
         
        map<string, .google.protobuf.Any> payload = 10;
      • 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.
      • setStringPayload

        public AddMessage.Builder setStringPayload​(String value)
         Non-formatted string payload.
         This field can be used to store simple string data instead of using the payload field.
         
        string string_payload = 3;
        Parameters:
        value - The stringPayload to set.
        Returns:
        This builder for chaining.
      • clearStringPayload

        public AddMessage.Builder clearStringPayload()
         Non-formatted string payload.
         This field can be used to store simple string data instead of using the payload field.
         
        string string_payload = 3;
        Returns:
        This builder for chaining.
      • setStringPayloadBytes

        public AddMessage.Builder setStringPayloadBytes​(com.google.protobuf.ByteString value)
         Non-formatted string payload.
         This field can be used to store simple string data instead of using the payload field.
         
        string string_payload = 3;
        Parameters:
        value - The bytes for stringPayload to set.
        Returns:
        This builder for chaining.
      • 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
      • removeMetadata

        public AddMessage.Builder removeMetadata​(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;
      • getMutableMetadata

        @Deprecated
        public Map<String,​String> getMutableMetadata()
        Deprecated.
        Use alternate mutation accessors instead.
      • putMetadata

        public AddMessage.Builder putMetadata​(String key,
                                              String value)
         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;
      • putAllMetadata

        public AddMessage.Builder putAllMetadata​(Map<String,​String> values)
         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;
      • 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.
      • setQueue

        public AddMessage.Builder setQueue​(String value)
        
        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;
        Parameters:
        value - The queue to set.
        Returns:
        This builder for chaining.
      • clearQueue

        public AddMessage.Builder clearQueue()
        
        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;
        Returns:
        This builder for chaining.
      • setQueueBytes

        public AddMessage.Builder setQueueBytes​(com.google.protobuf.ByteString value)
        
        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;
        Parameters:
        value - The bytes for queue to set.
        Returns:
        This builder for chaining.
      • 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.
      • setTimeless

        public AddMessage.Builder setTimeless​(boolean value)
         Indicate this message will never expire and will only be deleted from the queue if explicitly removed.
         
        bool timeless = 6;
        Parameters:
        value - The timeless to set.
        Returns:
        This builder for chaining.
      • clearTimeless

        public AddMessage.Builder clearTimeless()
         Indicate this message will never expire and will only be deleted from the queue if explicitly removed.
         
        bool timeless = 6;
        Returns:
        This builder for chaining.
      • 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.
      • setTtlMinutes

        public AddMessage.Builder setTtlMinutes​(long value)
         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;
        Parameters:
        value - The ttlMinutes to set.
        Returns:
        This builder for chaining.
      • clearTtlMinutes

        public AddMessage.Builder clearTtlMinutes()
         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;
        Returns:
        This builder for chaining.
      • 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.
      • setDescription

        public AddMessage.Builder setDescription​(String value)
         Description of the message, this should be used as a human readable string to be used in diagnostics.
         
        string description = 8;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public AddMessage.Builder clearDescription()
         Description of the message, this should be used as a human readable string to be used in diagnostics.
         
        string description = 8;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public AddMessage.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Description of the message, this should be used as a human readable string to be used in diagnostics.
         
        string description = 8;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • 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.
      • setScore

        public AddMessage.Builder setScore​(double value)
         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;
        Parameters:
        value - The score to set.
        Returns:
        This builder for chaining.
      • clearScore

        public AddMessage.Builder clearScore()
         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;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final AddMessage.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>
      • mergeUnknownFields

        public final AddMessage.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AddMessage.Builder>