Class Command

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CommandOrBuilder, Serializable

    @Generated
    public final class Command
    extends com.google.protobuf.GeneratedMessage
    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
    See Also:
    Serialized Form
    • Method Detail

      • getDescriptor

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

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage
      • internalGetMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • 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.
      • 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.
      • getTimestamp

        public long getTimestamp()
         The time at which the command was dispatched 
         
        int64 timestamp = 3;
        Specified by:
        getTimestamp in interface CommandOrBuilder
        Returns:
        The timestamp.
      • 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.
      • 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
      • 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
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • 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.GeneratedMessage
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • 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 Command parseFrom​(ByteBuffer data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Command parseFrom​(ByteBuffer data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Command parseFrom​(com.google.protobuf.ByteString data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Command parseFrom​(com.google.protobuf.ByteString data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Command parseFrom​(byte[] data)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Command parseFrom​(byte[] data,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Command parseFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected Command.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getDefaultInstance

        public static Command getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<Command> parser()
      • getParserForType

        public com.google.protobuf.Parser<Command> 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.GeneratedMessage
      • getDefaultInstanceForType

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