- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- io.axoniq.axonserver.grpc.command.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 typeio.axoniq.axonserver.grpc.command.Command- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommand.BuilderA message representing a Command that needs to be routed to a component capable of handling it-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCLIENT_ID_FIELD_NUMBERstatic intCOMPONENT_NAME_FIELD_NUMBERstatic intMESSAGE_IDENTIFIER_FIELD_NUMBERstatic intMETA_DATA_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPAYLOAD_FIELD_NUMBERstatic intPROCESSING_INSTRUCTIONS_FIELD_NUMBERstatic intTIMESTAMP_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsMetaData(String key)Meta Data entries of the Command Message, providing contextual information to the recipientbooleanequals(Object obj)StringgetClientId()The unique identifier of the component dispatching this messagecom.google.protobuf.ByteStringgetClientIdBytes()The unique identifier of the component dispatching this messageStringgetComponentName()The name/type of the component dispatching this messagecom.google.protobuf.ByteStringgetComponentNameBytes()The name/type of the component dispatching this messagestatic CommandgetDefaultInstance()CommandgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetMessageIdentifier()The unique identifier of the Command Messagecom.google.protobuf.ByteStringgetMessageIdentifierBytes()The unique identifier of the Command MessageMap<String,MetaDataValue>getMetaData()Deprecated.intgetMetaDataCount()Meta Data entries of the Command Message, providing contextual information to the recipientMap<String,MetaDataValue>getMetaDataMap()Meta Data entries of the Command Message, providing contextual information to the recipientMetaDataValuegetMetaDataOrDefault(String key, MetaDataValue defaultValue)Meta Data entries of the Command Message, providing contextual information to the recipientMetaDataValuegetMetaDataOrThrow(String key)Meta Data entries of the Command Message, providing contextual information to the recipientStringgetName()The name of the command, used for routing it to a destination capable of handling itcom.google.protobuf.ByteStringgetNameBytes()The name of the command, used for routing it to a destination capable of handling itcom.google.protobuf.Parser<Command>getParserForType()SerializedObjectgetPayload()The payload of the Command, providing details on the instructions for the recipientSerializedObjectOrBuildergetPayloadOrBuilder()The payload of the Command, providing details on the instructions for the recipientProcessingInstructiongetProcessingInstructions(int index)Instructions for AxonServer when routing this Command MessageintgetProcessingInstructionsCount()Instructions for AxonServer when routing this Command MessageList<ProcessingInstruction>getProcessingInstructionsList()Instructions for AxonServer when routing this Command MessageProcessingInstructionOrBuildergetProcessingInstructionsOrBuilder(int index)Instructions for AxonServer when routing this Command MessageList<? extends ProcessingInstructionOrBuilder>getProcessingInstructionsOrBuilderList()Instructions for AxonServer when routing this Command MessageintgetSerializedSize()longgetTimestamp()The time at which the command was dispatchedinthashCode()booleanhasPayload()The payload of the Command, providing details on the instructions for the recipientprotected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static Command.BuildernewBuilder()static Command.BuildernewBuilder(Command prototype)Command.BuildernewBuilderForType()protected Command.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static CommandparseDelimitedFrom(InputStream input)static CommandparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandparseFrom(byte[] data)static CommandparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandparseFrom(com.google.protobuf.ByteString data)static CommandparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandparseFrom(com.google.protobuf.CodedInputStream input)static CommandparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandparseFrom(InputStream input)static CommandparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandparseFrom(ByteBuffer data)static CommandparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Command>parser()Command.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, 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, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
MESSAGE_IDENTIFIER_FIELD_NUMBER
public static final int MESSAGE_IDENTIFIER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIMESTAMP_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAYLOAD_FIELD_NUMBER
public static final int PAYLOAD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
META_DATA_FIELD_NUMBER
public static final int META_DATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROCESSING_INSTRUCTIONS_FIELD_NUMBER
public static final int PROCESSING_INSTRUCTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLIENT_ID_FIELD_NUMBER
public static final int CLIENT_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COMPONENT_NAME_FIELD_NUMBER
public static final int COMPONENT_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getMessageIdentifier
public String getMessageIdentifier()
The unique identifier of the Command Message
string message_identifier = 1;- Specified by:
getMessageIdentifierin interfaceCommandOrBuilder- Returns:
- The messageIdentifier.
-
getMessageIdentifierBytes
public com.google.protobuf.ByteString getMessageIdentifierBytes()
The unique identifier of the Command Message
string message_identifier = 1;- Specified by:
getMessageIdentifierBytesin interfaceCommandOrBuilder- 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:
getNamein interfaceCommandOrBuilder- 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:
getNameBytesin interfaceCommandOrBuilder- Returns:
- The bytes for name.
-
getTimestamp
public long getTimestamp()
The time at which the command was dispatched
int64 timestamp = 3;- Specified by:
getTimestampin interfaceCommandOrBuilder- 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:
hasPayloadin interfaceCommandOrBuilder- 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:
getPayloadin interfaceCommandOrBuilder- Returns:
- The payload.
-
getPayloadOrBuilder
public SerializedObjectOrBuilder getPayloadOrBuilder()
The payload of the Command, providing details on the instructions for the recipient
.io.axoniq.axonserver.grpc.SerializedObject payload = 4;- Specified by:
getPayloadOrBuilderin interfaceCommandOrBuilder
-
getMetaDataCount
public int getMetaDataCount()
Description copied from interface:CommandOrBuilderMeta Data entries of the Command Message, providing contextual information to the recipient
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;- Specified by:
getMetaDataCountin interfaceCommandOrBuilder
-
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:
containsMetaDatain interfaceCommandOrBuilder
-
getMetaData
@Deprecated public Map<String,MetaDataValue> getMetaData()
Deprecated.UsegetMetaDataMap()instead.- Specified by:
getMetaDatain interfaceCommandOrBuilder
-
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:
getMetaDataMapin interfaceCommandOrBuilder
-
getMetaDataOrDefault
public MetaDataValue getMetaDataOrDefault(String key, MetaDataValue defaultValue)
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:
getMetaDataOrDefaultin interfaceCommandOrBuilder
-
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:
getMetaDataOrThrowin interfaceCommandOrBuilder
-
getProcessingInstructionsList
public List<ProcessingInstruction> getProcessingInstructionsList()
Instructions for AxonServer when routing this Command Message
repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;- Specified by:
getProcessingInstructionsListin interfaceCommandOrBuilder
-
getProcessingInstructionsOrBuilderList
public List<? extends ProcessingInstructionOrBuilder> getProcessingInstructionsOrBuilderList()
Instructions for AxonServer when routing this Command Message
repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;- Specified by:
getProcessingInstructionsOrBuilderListin interfaceCommandOrBuilder
-
getProcessingInstructionsCount
public int getProcessingInstructionsCount()
Instructions for AxonServer when routing this Command Message
repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;- Specified by:
getProcessingInstructionsCountin interfaceCommandOrBuilder
-
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:
getProcessingInstructionsin interfaceCommandOrBuilder
-
getProcessingInstructionsOrBuilder
public ProcessingInstructionOrBuilder getProcessingInstructionsOrBuilder(int index)
Instructions for AxonServer when routing this Command Message
repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;- Specified by:
getProcessingInstructionsOrBuilderin interfaceCommandOrBuilder
-
getClientId
public String getClientId()
The unique identifier of the component dispatching this message
string client_id = 7;- Specified by:
getClientIdin interfaceCommandOrBuilder- 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:
getClientIdBytesin interfaceCommandOrBuilder- Returns:
- The bytes for clientId.
-
getComponentName
public String getComponentName()
The name/type of the component dispatching this message
string component_name = 8;- Specified by:
getComponentNamein interfaceCommandOrBuilder- 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:
getComponentNameBytesin interfaceCommandOrBuilder- Returns:
- The bytes for componentName.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
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 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(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Command parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Command parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Command parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Command parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Command.Builder newBuilder()
-
newBuilder
public static Command.Builder newBuilder(Command prototype)
-
toBuilder
public Command.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Command.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public Command getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-