Class Command.Builder

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

    public static final class Command.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Command.Builder>
    implements CommandOrBuilder
     A message representing a Command that needs to be routed to a component capable of handling it 
     
    Protobuf type io.axoniq.axonserver.grpc.command.Command
    • 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.GeneratedMessage.Builder<Command.Builder>
      • internalGetMutableMapFieldReflection

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

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

        public Command.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.GeneratedMessage.Builder<Command.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.GeneratedMessage.Builder<Command.Builder>
      • getDefaultInstanceForType

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

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

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

        public Command.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<Command.Builder>
      • isInitialized

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

        public Command.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<Command.Builder>
        Throws:
        IOException
      • getMessageIdentifier

        public String getMessageIdentifier()
         The unique identifier of the Command Message 
         
        string message_identifier = 1;
        Specified by:
        getMessageIdentifier in interface CommandOrBuilder
        Returns:
        The messageIdentifier.
      • getMessageIdentifierBytes

        public com.google.protobuf.ByteString getMessageIdentifierBytes()
         The unique identifier of the Command Message 
         
        string message_identifier = 1;
        Specified by:
        getMessageIdentifierBytes in interface CommandOrBuilder
        Returns:
        The bytes for messageIdentifier.
      • setMessageIdentifier

        public Command.Builder setMessageIdentifier​(String value)
         The unique identifier of the Command Message 
         
        string message_identifier = 1;
        Parameters:
        value - The messageIdentifier to set.
        Returns:
        This builder for chaining.
      • clearMessageIdentifier

        public Command.Builder clearMessageIdentifier()
         The unique identifier of the Command Message 
         
        string message_identifier = 1;
        Returns:
        This builder for chaining.
      • setMessageIdentifierBytes

        public Command.Builder setMessageIdentifierBytes​(com.google.protobuf.ByteString value)
         The unique identifier of the Command Message 
         
        string message_identifier = 1;
        Parameters:
        value - The bytes for messageIdentifier to set.
        Returns:
        This builder for chaining.
      • getName

        public String getName()
         The name of the command, used for routing it to a destination capable of handling it 
         
        string name = 2;
        Specified by:
        getName in interface CommandOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the command, used for routing it to a destination capable of handling it 
         
        string name = 2;
        Specified by:
        getNameBytes in interface CommandOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Command.Builder setName​(String value)
         The name of the command, used for routing it to a destination capable of handling it 
         
        string name = 2;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Command.Builder clearName()
         The name of the command, used for routing it to a destination capable of handling it 
         
        string name = 2;
        Returns:
        This builder for chaining.
      • setNameBytes

        public Command.Builder setNameBytes​(com.google.protobuf.ByteString value)
         The name of the command, used for routing it to a destination capable of handling it 
         
        string name = 2;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getTimestamp

        public long getTimestamp()
         The time at which the command was dispatched 
         
        int64 timestamp = 3;
        Specified by:
        getTimestamp in interface CommandOrBuilder
        Returns:
        The timestamp.
      • setTimestamp

        public Command.Builder setTimestamp​(long value)
         The time at which the command was dispatched 
         
        int64 timestamp = 3;
        Parameters:
        value - The timestamp to set.
        Returns:
        This builder for chaining.
      • clearTimestamp

        public Command.Builder clearTimestamp()
         The time at which the command was dispatched 
         
        int64 timestamp = 3;
        Returns:
        This builder for chaining.
      • hasPayload

        public boolean hasPayload()
         The payload of the Command, providing details on the instructions for the recipient 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
        Specified by:
        hasPayload in interface CommandOrBuilder
        Returns:
        Whether the payload field is set.
      • getPayload

        public SerializedObject getPayload()
         The payload of the Command, providing details on the instructions for the recipient 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
        Specified by:
        getPayload in interface CommandOrBuilder
        Returns:
        The payload.
      • setPayload

        public Command.Builder setPayload​(SerializedObject value)
         The payload of the Command, providing details on the instructions for the recipient 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
      • setPayload

        public Command.Builder setPayload​(SerializedObject.Builder builderForValue)
         The payload of the Command, providing details on the instructions for the recipient 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
      • mergePayload

        public Command.Builder mergePayload​(SerializedObject value)
         The payload of the Command, providing details on the instructions for the recipient 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
      • clearPayload

        public Command.Builder clearPayload()
         The payload of the Command, providing details on the instructions for the recipient 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
      • getPayloadBuilder

        public SerializedObject.Builder getPayloadBuilder()
         The payload of the Command, providing details on the instructions for the recipient 
         
        .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
      • getMetaDataCount

        public int getMetaDataCount()
        Description copied from interface: CommandOrBuilder
         Meta Data entries of the Command Message, providing contextual information to the recipient 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
        Specified by:
        getMetaDataCount in interface CommandOrBuilder
      • containsMetaData

        public boolean containsMetaData​(String key)
         Meta Data entries of the Command Message, providing contextual information to the recipient 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
        Specified by:
        containsMetaData in interface CommandOrBuilder
      • getMetaDataMap

        public Map<String,​MetaDataValue> getMetaDataMap()
         Meta Data entries of the Command Message, providing contextual information to the recipient 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
        Specified by:
        getMetaDataMap in interface CommandOrBuilder
      • getMetaDataOrThrow

        public MetaDataValue getMetaDataOrThrow​(String key)
         Meta Data entries of the Command Message, providing contextual information to the recipient 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
        Specified by:
        getMetaDataOrThrow in interface CommandOrBuilder
      • removeMetaData

        public Command.Builder removeMetaData​(String key)
         Meta Data entries of the Command Message, providing contextual information to the recipient 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
      • putMetaData

        public Command.Builder putMetaData​(String key,
                                           MetaDataValue value)
         Meta Data entries of the Command Message, providing contextual information to the recipient 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
      • putAllMetaData

        public Command.Builder putAllMetaData​(Map<String,​MetaDataValue> values)
         Meta Data entries of the Command Message, providing contextual information to the recipient 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
      • putMetaDataBuilderIfAbsent

        public MetaDataValue.Builder putMetaDataBuilderIfAbsent​(String key)
         Meta Data entries of the Command Message, providing contextual information to the recipient 
         
        map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
      • getProcessingInstructionsCount

        public int getProcessingInstructionsCount()
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
        Specified by:
        getProcessingInstructionsCount in interface CommandOrBuilder
      • getProcessingInstructions

        public ProcessingInstruction getProcessingInstructions​(int index)
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
        Specified by:
        getProcessingInstructions in interface CommandOrBuilder
      • setProcessingInstructions

        public Command.Builder setProcessingInstructions​(int index,
                                                         ProcessingInstruction value)
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • setProcessingInstructions

        public Command.Builder setProcessingInstructions​(int index,
                                                         ProcessingInstruction.Builder builderForValue)
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addProcessingInstructions

        public Command.Builder addProcessingInstructions​(ProcessingInstruction value)
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addProcessingInstructions

        public Command.Builder addProcessingInstructions​(int index,
                                                         ProcessingInstruction value)
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addProcessingInstructions

        public Command.Builder addProcessingInstructions​(ProcessingInstruction.Builder builderForValue)
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addProcessingInstructions

        public Command.Builder addProcessingInstructions​(int index,
                                                         ProcessingInstruction.Builder builderForValue)
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addAllProcessingInstructions

        public Command.Builder addAllProcessingInstructions​(Iterable<? extends ProcessingInstruction> values)
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • clearProcessingInstructions

        public Command.Builder clearProcessingInstructions()
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • removeProcessingInstructions

        public Command.Builder removeProcessingInstructions​(int index)
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • getProcessingInstructionsBuilder

        public ProcessingInstruction.Builder getProcessingInstructionsBuilder​(int index)
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addProcessingInstructionsBuilder

        public ProcessingInstruction.Builder addProcessingInstructionsBuilder()
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • addProcessingInstructionsBuilder

        public ProcessingInstruction.Builder addProcessingInstructionsBuilder​(int index)
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • getProcessingInstructionsBuilderList

        public List<ProcessingInstruction.Builder> getProcessingInstructionsBuilderList()
         Instructions for AxonServer when routing this Command Message 
         
        repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
      • getClientId

        public String getClientId()
         The unique identifier of the component dispatching this message 
         
        string client_id = 7;
        Specified by:
        getClientId in interface CommandOrBuilder
        Returns:
        The clientId.
      • getClientIdBytes

        public com.google.protobuf.ByteString getClientIdBytes()
         The unique identifier of the component dispatching this message 
         
        string client_id = 7;
        Specified by:
        getClientIdBytes in interface CommandOrBuilder
        Returns:
        The bytes for clientId.
      • setClientId

        public Command.Builder setClientId​(String value)
         The unique identifier of the component dispatching this message 
         
        string client_id = 7;
        Parameters:
        value - The clientId to set.
        Returns:
        This builder for chaining.
      • clearClientId

        public Command.Builder clearClientId()
         The unique identifier of the component dispatching this message 
         
        string client_id = 7;
        Returns:
        This builder for chaining.
      • setClientIdBytes

        public Command.Builder setClientIdBytes​(com.google.protobuf.ByteString value)
         The unique identifier of the component dispatching this message 
         
        string client_id = 7;
        Parameters:
        value - The bytes for clientId to set.
        Returns:
        This builder for chaining.
      • getComponentName

        public String getComponentName()
         The name/type of the component dispatching this message 
         
        string component_name = 8;
        Specified by:
        getComponentName in interface CommandOrBuilder
        Returns:
        The componentName.
      • getComponentNameBytes

        public com.google.protobuf.ByteString getComponentNameBytes()
         The name/type of the component dispatching this message 
         
        string component_name = 8;
        Specified by:
        getComponentNameBytes in interface CommandOrBuilder
        Returns:
        The bytes for componentName.
      • setComponentName

        public Command.Builder setComponentName​(String value)
         The name/type of the component dispatching this message 
         
        string component_name = 8;
        Parameters:
        value - The componentName to set.
        Returns:
        This builder for chaining.
      • clearComponentName

        public Command.Builder clearComponentName()
         The name/type of the component dispatching this message 
         
        string component_name = 8;
        Returns:
        This builder for chaining.
      • setComponentNameBytes

        public Command.Builder setComponentNameBytes​(com.google.protobuf.ByteString value)
         The name/type of the component dispatching this message 
         
        string component_name = 8;
        Parameters:
        value - The bytes for componentName to set.
        Returns:
        This builder for chaining.