Class CommandResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- io.axoniq.axonserver.grpc.command.CommandResponse
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,CommandResponseOrBuilder,Serializable
@Generated public final class CommandResponse extends com.google.protobuf.GeneratedMessage implements CommandResponseOrBuilder
Message representing the result of Command Handler execution
Protobuf typeio.axoniq.axonserver.grpc.command.CommandResponse- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommandResponse.BuilderMessage representing the result of Command Handler execution-
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 intERROR_CODE_FIELD_NUMBERstatic intERROR_MESSAGE_FIELD_NUMBERstatic intMESSAGE_IDENTIFIER_FIELD_NUMBERstatic intMETA_DATA_FIELD_NUMBERstatic intPAYLOAD_FIELD_NUMBERstatic intPROCESSING_INSTRUCTIONS_FIELD_NUMBERstatic intREQUEST_IDENTIFIER_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsMetaData(String key)Any meta data entries providing contextual information back to the dispatcherbooleanequals(Object obj)static CommandResponsegetDefaultInstance()CommandResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetErrorCode()An error code describing the error, if anycom.google.protobuf.ByteStringgetErrorCodeBytes()An error code describing the error, if anyErrorMessagegetErrorMessage()A detailed description of the errorErrorMessageOrBuildergetErrorMessageOrBuilder()A detailed description of the errorStringgetMessageIdentifier()The unique identifier of the response messagecom.google.protobuf.ByteStringgetMessageIdentifierBytes()The unique identifier of the response messageMap<String,MetaDataValue>getMetaData()Deprecated.intgetMetaDataCount()Any meta data entries providing contextual information back to the dispatcherMap<String,MetaDataValue>getMetaDataMap()Any meta data entries providing contextual information back to the dispatcherMetaDataValuegetMetaDataOrDefault(String key, MetaDataValue defaultValue)Any meta data entries providing contextual information back to the dispatcherMetaDataValuegetMetaDataOrThrow(String key)Any meta data entries providing contextual information back to the dispatchercom.google.protobuf.Parser<CommandResponse>getParserForType()SerializedObjectgetPayload()The payload to provide as a result to the dispatcherSerializedObjectOrBuildergetPayloadOrBuilder()The payload to provide as a result to the dispatcherProcessingInstructiongetProcessingInstructions(int index)Instructions for AxonServer when routing this Command Response MessageintgetProcessingInstructionsCount()Instructions for AxonServer when routing this Command Response MessageList<ProcessingInstruction>getProcessingInstructionsList()Instructions for AxonServer when routing this Command Response MessageProcessingInstructionOrBuildergetProcessingInstructionsOrBuilder(int index)Instructions for AxonServer when routing this Command Response MessageList<? extends ProcessingInstructionOrBuilder>getProcessingInstructionsOrBuilderList()Instructions for AxonServer when routing this Command Response MessageStringgetRequestIdentifier()The unique identifier of the Command Message for which this is the responsecom.google.protobuf.ByteStringgetRequestIdentifierBytes()The unique identifier of the Command Message for which this is the responseintgetSerializedSize()booleanhasErrorMessage()A detailed description of the errorinthashCode()booleanhasPayload()The payload to provide as a result to the dispatcherprotected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)booleanisInitialized()static CommandResponse.BuildernewBuilder()static CommandResponse.BuildernewBuilder(CommandResponse prototype)CommandResponse.BuildernewBuilderForType()protected CommandResponse.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static CommandResponseparseDelimitedFrom(InputStream input)static CommandResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandResponseparseFrom(byte[] data)static CommandResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandResponseparseFrom(com.google.protobuf.ByteString data)static CommandResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandResponseparseFrom(com.google.protobuf.CodedInputStream input)static CommandResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandResponseparseFrom(InputStream input)static CommandResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CommandResponseparseFrom(ByteBuffer data)static CommandResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CommandResponse>parser()CommandResponse.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
-
ERROR_CODE_FIELD_NUMBER
public static final int ERROR_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ERROR_MESSAGE_FIELD_NUMBER
public static final int ERROR_MESSAGE_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
-
REQUEST_IDENTIFIER_FIELD_NUMBER
public static final int REQUEST_IDENTIFIER_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 response message
string message_identifier = 1;- Specified by:
getMessageIdentifierin interfaceCommandResponseOrBuilder- Returns:
- The messageIdentifier.
-
getMessageIdentifierBytes
public com.google.protobuf.ByteString getMessageIdentifierBytes()
The unique identifier of the response message
string message_identifier = 1;- Specified by:
getMessageIdentifierBytesin interfaceCommandResponseOrBuilder- Returns:
- The bytes for messageIdentifier.
-
getErrorCode
public String getErrorCode()
An error code describing the error, if any
string error_code = 2;- Specified by:
getErrorCodein interfaceCommandResponseOrBuilder- Returns:
- The errorCode.
-
getErrorCodeBytes
public com.google.protobuf.ByteString getErrorCodeBytes()
An error code describing the error, if any
string error_code = 2;- Specified by:
getErrorCodeBytesin interfaceCommandResponseOrBuilder- Returns:
- The bytes for errorCode.
-
hasErrorMessage
public boolean hasErrorMessage()
A detailed description of the error
.io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;- Specified by:
hasErrorMessagein interfaceCommandResponseOrBuilder- Returns:
- Whether the errorMessage field is set.
-
getErrorMessage
public ErrorMessage getErrorMessage()
A detailed description of the error
.io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;- Specified by:
getErrorMessagein interfaceCommandResponseOrBuilder- Returns:
- The errorMessage.
-
getErrorMessageOrBuilder
public ErrorMessageOrBuilder getErrorMessageOrBuilder()
A detailed description of the error
.io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;- Specified by:
getErrorMessageOrBuilderin interfaceCommandResponseOrBuilder
-
hasPayload
public boolean hasPayload()
The payload to provide as a result to the dispatcher
.io.axoniq.axonserver.grpc.SerializedObject payload = 4;- Specified by:
hasPayloadin interfaceCommandResponseOrBuilder- Returns:
- Whether the payload field is set.
-
getPayload
public SerializedObject getPayload()
The payload to provide as a result to the dispatcher
.io.axoniq.axonserver.grpc.SerializedObject payload = 4;- Specified by:
getPayloadin interfaceCommandResponseOrBuilder- Returns:
- The payload.
-
getPayloadOrBuilder
public SerializedObjectOrBuilder getPayloadOrBuilder()
The payload to provide as a result to the dispatcher
.io.axoniq.axonserver.grpc.SerializedObject payload = 4;- Specified by:
getPayloadOrBuilderin interfaceCommandResponseOrBuilder
-
getMetaDataCount
public int getMetaDataCount()
Description copied from interface:CommandResponseOrBuilderAny meta data entries providing contextual information back to the dispatcher
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;- Specified by:
getMetaDataCountin interfaceCommandResponseOrBuilder
-
containsMetaData
public boolean containsMetaData(String key)
Any meta data entries providing contextual information back to the dispatcher
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;- Specified by:
containsMetaDatain interfaceCommandResponseOrBuilder
-
getMetaData
@Deprecated public Map<String,MetaDataValue> getMetaData()
Deprecated.UsegetMetaDataMap()instead.- Specified by:
getMetaDatain interfaceCommandResponseOrBuilder
-
getMetaDataMap
public Map<String,MetaDataValue> getMetaDataMap()
Any meta data entries providing contextual information back to the dispatcher
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;- Specified by:
getMetaDataMapin interfaceCommandResponseOrBuilder
-
getMetaDataOrDefault
public MetaDataValue getMetaDataOrDefault(String key, MetaDataValue defaultValue)
Any meta data entries providing contextual information back to the dispatcher
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;- Specified by:
getMetaDataOrDefaultin interfaceCommandResponseOrBuilder
-
getMetaDataOrThrow
public MetaDataValue getMetaDataOrThrow(String key)
Any meta data entries providing contextual information back to the dispatcher
map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;- Specified by:
getMetaDataOrThrowin interfaceCommandResponseOrBuilder
-
getProcessingInstructionsList
public List<ProcessingInstruction> getProcessingInstructionsList()
Instructions for AxonServer when routing this Command Response Message
repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;- Specified by:
getProcessingInstructionsListin interfaceCommandResponseOrBuilder
-
getProcessingInstructionsOrBuilderList
public List<? extends ProcessingInstructionOrBuilder> getProcessingInstructionsOrBuilderList()
Instructions for AxonServer when routing this Command Response Message
repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;- Specified by:
getProcessingInstructionsOrBuilderListin interfaceCommandResponseOrBuilder
-
getProcessingInstructionsCount
public int getProcessingInstructionsCount()
Instructions for AxonServer when routing this Command Response Message
repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;- Specified by:
getProcessingInstructionsCountin interfaceCommandResponseOrBuilder
-
getProcessingInstructions
public ProcessingInstruction getProcessingInstructions(int index)
Instructions for AxonServer when routing this Command Response Message
repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;- Specified by:
getProcessingInstructionsin interfaceCommandResponseOrBuilder
-
getProcessingInstructionsOrBuilder
public ProcessingInstructionOrBuilder getProcessingInstructionsOrBuilder(int index)
Instructions for AxonServer when routing this Command Response Message
repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;- Specified by:
getProcessingInstructionsOrBuilderin interfaceCommandResponseOrBuilder
-
getRequestIdentifier
public String getRequestIdentifier()
The unique identifier of the Command Message for which this is the response
string request_identifier = 7;- Specified by:
getRequestIdentifierin interfaceCommandResponseOrBuilder- Returns:
- The requestIdentifier.
-
getRequestIdentifierBytes
public com.google.protobuf.ByteString getRequestIdentifierBytes()
The unique identifier of the Command Message for which this is the response
string request_identifier = 7;- Specified by:
getRequestIdentifierBytesin interfaceCommandResponseOrBuilder- Returns:
- The bytes for requestIdentifier.
-
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 CommandResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommandResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommandResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommandResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommandResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommandResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CommandResponse parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CommandResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CommandResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CommandResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static CommandResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CommandResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public CommandResponse.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CommandResponse.Builder newBuilder()
-
newBuilder
public static CommandResponse.Builder newBuilder(CommandResponse prototype)
-
toBuilder
public CommandResponse.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CommandResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static CommandResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CommandResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<CommandResponse> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public CommandResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-