io.axoniq.axonserver.grpc.command.CommandResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of axonserver-connector-java Show documentation
Show all versions of axonserver-connector-java Show documentation
Connector module providing infrastructure components that connect to AxonServer.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: command.proto
package io.axoniq.axonserver.grpc.command;
/**
*
* Message representing the result of Command Handler execution
*
*
* Protobuf type {@code io.axoniq.axonserver.grpc.command.CommandResponse}
*/
public final class CommandResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.axoniq.axonserver.grpc.command.CommandResponse)
CommandResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommandResponse.newBuilder() to construct.
private CommandResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommandResponse() {
messageIdentifier_ = "";
errorCode_ = "";
processingInstructions_ = java.util.Collections.emptyList();
requestIdentifier_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CommandResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
messageIdentifier_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
errorCode_ = s;
break;
}
case 26: {
io.axoniq.axonserver.grpc.ErrorMessage.Builder subBuilder = null;
if (errorMessage_ != null) {
subBuilder = errorMessage_.toBuilder();
}
errorMessage_ = input.readMessage(io.axoniq.axonserver.grpc.ErrorMessage.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(errorMessage_);
errorMessage_ = subBuilder.buildPartial();
}
break;
}
case 34: {
io.axoniq.axonserver.grpc.SerializedObject.Builder subBuilder = null;
if (payload_ != null) {
subBuilder = payload_.toBuilder();
}
payload_ = input.readMessage(io.axoniq.axonserver.grpc.SerializedObject.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(payload_);
payload_ = subBuilder.buildPartial();
}
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
metaData_ = com.google.protobuf.MapField.newMapField(
MetaDataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000010;
}
com.google.protobuf.MapEntry
metaData__ = input.readMessage(
MetaDataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
metaData_.getMutableMap().put(
metaData__.getKey(), metaData__.getValue());
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
processingInstructions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
processingInstructions_.add(
input.readMessage(io.axoniq.axonserver.grpc.ProcessingInstruction.parser(), extensionRegistry));
break;
}
case 58: {
java.lang.String s = input.readStringRequireUtf8();
requestIdentifier_ = s;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
processingInstructions_ = java.util.Collections.unmodifiableList(processingInstructions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.axoniq.axonserver.grpc.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandResponse_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetMetaData();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.axoniq.axonserver.grpc.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.axonserver.grpc.command.CommandResponse.class, io.axoniq.axonserver.grpc.command.CommandResponse.Builder.class);
}
private int bitField0_;
public static final int MESSAGE_IDENTIFIER_FIELD_NUMBER = 1;
private volatile java.lang.Object messageIdentifier_;
/**
*
* The unique identifier of the response message
*
*
* string message_identifier = 1;
*/
public java.lang.String getMessageIdentifier() {
java.lang.Object ref = messageIdentifier_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
messageIdentifier_ = s;
return s;
}
}
/**
*
* The unique identifier of the response message
*
*
* string message_identifier = 1;
*/
public com.google.protobuf.ByteString
getMessageIdentifierBytes() {
java.lang.Object ref = messageIdentifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
messageIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERROR_CODE_FIELD_NUMBER = 2;
private volatile java.lang.Object errorCode_;
/**
*
* An error code describing the error, if any
*
*
* string error_code = 2;
*/
public java.lang.String getErrorCode() {
java.lang.Object ref = errorCode_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorCode_ = s;
return s;
}
}
/**
*
* An error code describing the error, if any
*
*
* string error_code = 2;
*/
public com.google.protobuf.ByteString
getErrorCodeBytes() {
java.lang.Object ref = errorCode_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERROR_MESSAGE_FIELD_NUMBER = 3;
private io.axoniq.axonserver.grpc.ErrorMessage errorMessage_;
/**
*
* A detailed description of the error
*
*
* .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
*/
public boolean hasErrorMessage() {
return errorMessage_ != null;
}
/**
*
* A detailed description of the error
*
*
* .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
*/
public io.axoniq.axonserver.grpc.ErrorMessage getErrorMessage() {
return errorMessage_ == null ? io.axoniq.axonserver.grpc.ErrorMessage.getDefaultInstance() : errorMessage_;
}
/**
*
* A detailed description of the error
*
*
* .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
*/
public io.axoniq.axonserver.grpc.ErrorMessageOrBuilder getErrorMessageOrBuilder() {
return getErrorMessage();
}
public static final int PAYLOAD_FIELD_NUMBER = 4;
private io.axoniq.axonserver.grpc.SerializedObject payload_;
/**
*
* The payload to provide as a result to the dispatcher
*
*
* .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
*/
public boolean hasPayload() {
return payload_ != null;
}
/**
*
* The payload to provide as a result to the dispatcher
*
*
* .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
*/
public io.axoniq.axonserver.grpc.SerializedObject getPayload() {
return payload_ == null ? io.axoniq.axonserver.grpc.SerializedObject.getDefaultInstance() : payload_;
}
/**
*
* The payload to provide as a result to the dispatcher
*
*
* .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
*/
public io.axoniq.axonserver.grpc.SerializedObjectOrBuilder getPayloadOrBuilder() {
return getPayload();
}
public static final int META_DATA_FIELD_NUMBER = 5;
private static final class MetaDataDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, io.axoniq.axonserver.grpc.MetaDataValue> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
io.axoniq.axonserver.grpc.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandResponse_MetaDataEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
io.axoniq.axonserver.grpc.MetaDataValue.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, io.axoniq.axonserver.grpc.MetaDataValue> metaData_;
private com.google.protobuf.MapField
internalGetMetaData() {
if (metaData_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetaDataDefaultEntryHolder.defaultEntry);
}
return metaData_;
}
public int getMetaDataCount() {
return internalGetMetaData().getMap().size();
}
/**
*
* Any meta data entries providing contextual information back to the dispatcher
*
*
* map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
*/
public boolean containsMetaData(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMetaData().getMap().containsKey(key);
}
/**
* Use {@link #getMetaDataMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMetaData() {
return getMetaDataMap();
}
/**
*
* Any meta data entries providing contextual information back to the dispatcher
*
*
* map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
*/
public java.util.Map getMetaDataMap() {
return internalGetMetaData().getMap();
}
/**
*
* Any meta data entries providing contextual information back to the dispatcher
*
*
* map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
*/
public io.axoniq.axonserver.grpc.MetaDataValue getMetaDataOrDefault(
java.lang.String key,
io.axoniq.axonserver.grpc.MetaDataValue defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMetaData().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Any meta data entries providing contextual information back to the dispatcher
*
*
* map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
*/
public io.axoniq.axonserver.grpc.MetaDataValue getMetaDataOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMetaData().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int PROCESSING_INSTRUCTIONS_FIELD_NUMBER = 6;
private java.util.List processingInstructions_;
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public java.util.List getProcessingInstructionsList() {
return processingInstructions_;
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public java.util.List extends io.axoniq.axonserver.grpc.ProcessingInstructionOrBuilder>
getProcessingInstructionsOrBuilderList() {
return processingInstructions_;
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public int getProcessingInstructionsCount() {
return processingInstructions_.size();
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public io.axoniq.axonserver.grpc.ProcessingInstruction getProcessingInstructions(int index) {
return processingInstructions_.get(index);
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public io.axoniq.axonserver.grpc.ProcessingInstructionOrBuilder getProcessingInstructionsOrBuilder(
int index) {
return processingInstructions_.get(index);
}
public static final int REQUEST_IDENTIFIER_FIELD_NUMBER = 7;
private volatile java.lang.Object requestIdentifier_;
/**
*
* The unique identifier of the Command Message for which this is the response
*
*
* string request_identifier = 7;
*/
public java.lang.String getRequestIdentifier() {
java.lang.Object ref = requestIdentifier_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
requestIdentifier_ = s;
return s;
}
}
/**
*
* The unique identifier of the Command Message for which this is the response
*
*
* string request_identifier = 7;
*/
public com.google.protobuf.ByteString
getRequestIdentifierBytes() {
java.lang.Object ref = requestIdentifier_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
requestIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getMessageIdentifierBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, messageIdentifier_);
}
if (!getErrorCodeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorCode_);
}
if (errorMessage_ != null) {
output.writeMessage(3, getErrorMessage());
}
if (payload_ != null) {
output.writeMessage(4, getPayload());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetaData(),
MetaDataDefaultEntryHolder.defaultEntry,
5);
for (int i = 0; i < processingInstructions_.size(); i++) {
output.writeMessage(6, processingInstructions_.get(i));
}
if (!getRequestIdentifierBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, requestIdentifier_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getMessageIdentifierBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, messageIdentifier_);
}
if (!getErrorCodeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorCode_);
}
if (errorMessage_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getErrorMessage());
}
if (payload_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getPayload());
}
for (java.util.Map.Entry entry
: internalGetMetaData().getMap().entrySet()) {
com.google.protobuf.MapEntry
metaData__ = MetaDataDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, metaData__);
}
for (int i = 0; i < processingInstructions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, processingInstructions_.get(i));
}
if (!getRequestIdentifierBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, requestIdentifier_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.axoniq.axonserver.grpc.command.CommandResponse)) {
return super.equals(obj);
}
io.axoniq.axonserver.grpc.command.CommandResponse other = (io.axoniq.axonserver.grpc.command.CommandResponse) obj;
boolean result = true;
result = result && getMessageIdentifier()
.equals(other.getMessageIdentifier());
result = result && getErrorCode()
.equals(other.getErrorCode());
result = result && (hasErrorMessage() == other.hasErrorMessage());
if (hasErrorMessage()) {
result = result && getErrorMessage()
.equals(other.getErrorMessage());
}
result = result && (hasPayload() == other.hasPayload());
if (hasPayload()) {
result = result && getPayload()
.equals(other.getPayload());
}
result = result && internalGetMetaData().equals(
other.internalGetMetaData());
result = result && getProcessingInstructionsList()
.equals(other.getProcessingInstructionsList());
result = result && getRequestIdentifier()
.equals(other.getRequestIdentifier());
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + MESSAGE_IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getMessageIdentifier().hashCode();
hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER;
hash = (53 * hash) + getErrorCode().hashCode();
if (hasErrorMessage()) {
hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
}
if (hasPayload()) {
hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
hash = (53 * hash) + getPayload().hashCode();
}
if (!internalGetMetaData().getMap().isEmpty()) {
hash = (37 * hash) + META_DATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetMetaData().hashCode();
}
if (getProcessingInstructionsCount() > 0) {
hash = (37 * hash) + PROCESSING_INSTRUCTIONS_FIELD_NUMBER;
hash = (53 * hash) + getProcessingInstructionsList().hashCode();
}
hash = (37 * hash) + REQUEST_IDENTIFIER_FIELD_NUMBER;
hash = (53 * hash) + getRequestIdentifier().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.axoniq.axonserver.grpc.command.CommandResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.command.CommandResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.command.CommandResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.command.CommandResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.command.CommandResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.command.CommandResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.command.CommandResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.command.CommandResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.command.CommandResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.command.CommandResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.command.CommandResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.command.CommandResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.axoniq.axonserver.grpc.command.CommandResponse prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Message representing the result of Command Handler execution
*
*
* Protobuf type {@code io.axoniq.axonserver.grpc.command.CommandResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.axoniq.axonserver.grpc.command.CommandResponse)
io.axoniq.axonserver.grpc.command.CommandResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.axoniq.axonserver.grpc.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandResponse_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetMetaData();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
return internalGetMutableMetaData();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.axoniq.axonserver.grpc.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.axonserver.grpc.command.CommandResponse.class, io.axoniq.axonserver.grpc.command.CommandResponse.Builder.class);
}
// Construct using io.axoniq.axonserver.grpc.command.CommandResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getProcessingInstructionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
messageIdentifier_ = "";
errorCode_ = "";
if (errorMessageBuilder_ == null) {
errorMessage_ = null;
} else {
errorMessage_ = null;
errorMessageBuilder_ = null;
}
if (payloadBuilder_ == null) {
payload_ = null;
} else {
payload_ = null;
payloadBuilder_ = null;
}
internalGetMutableMetaData().clear();
if (processingInstructionsBuilder_ == null) {
processingInstructions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
processingInstructionsBuilder_.clear();
}
requestIdentifier_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.axoniq.axonserver.grpc.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandResponse_descriptor;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.command.CommandResponse getDefaultInstanceForType() {
return io.axoniq.axonserver.grpc.command.CommandResponse.getDefaultInstance();
}
@java.lang.Override
public io.axoniq.axonserver.grpc.command.CommandResponse build() {
io.axoniq.axonserver.grpc.command.CommandResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.command.CommandResponse buildPartial() {
io.axoniq.axonserver.grpc.command.CommandResponse result = new io.axoniq.axonserver.grpc.command.CommandResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.messageIdentifier_ = messageIdentifier_;
result.errorCode_ = errorCode_;
if (errorMessageBuilder_ == null) {
result.errorMessage_ = errorMessage_;
} else {
result.errorMessage_ = errorMessageBuilder_.build();
}
if (payloadBuilder_ == null) {
result.payload_ = payload_;
} else {
result.payload_ = payloadBuilder_.build();
}
result.metaData_ = internalGetMetaData();
result.metaData_.makeImmutable();
if (processingInstructionsBuilder_ == null) {
if (((bitField0_ & 0x00000020) == 0x00000020)) {
processingInstructions_ = java.util.Collections.unmodifiableList(processingInstructions_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.processingInstructions_ = processingInstructions_;
} else {
result.processingInstructions_ = processingInstructionsBuilder_.build();
}
result.requestIdentifier_ = requestIdentifier_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.axoniq.axonserver.grpc.command.CommandResponse) {
return mergeFrom((io.axoniq.axonserver.grpc.command.CommandResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.axoniq.axonserver.grpc.command.CommandResponse other) {
if (other == io.axoniq.axonserver.grpc.command.CommandResponse.getDefaultInstance()) return this;
if (!other.getMessageIdentifier().isEmpty()) {
messageIdentifier_ = other.messageIdentifier_;
onChanged();
}
if (!other.getErrorCode().isEmpty()) {
errorCode_ = other.errorCode_;
onChanged();
}
if (other.hasErrorMessage()) {
mergeErrorMessage(other.getErrorMessage());
}
if (other.hasPayload()) {
mergePayload(other.getPayload());
}
internalGetMutableMetaData().mergeFrom(
other.internalGetMetaData());
if (processingInstructionsBuilder_ == null) {
if (!other.processingInstructions_.isEmpty()) {
if (processingInstructions_.isEmpty()) {
processingInstructions_ = other.processingInstructions_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureProcessingInstructionsIsMutable();
processingInstructions_.addAll(other.processingInstructions_);
}
onChanged();
}
} else {
if (!other.processingInstructions_.isEmpty()) {
if (processingInstructionsBuilder_.isEmpty()) {
processingInstructionsBuilder_.dispose();
processingInstructionsBuilder_ = null;
processingInstructions_ = other.processingInstructions_;
bitField0_ = (bitField0_ & ~0x00000020);
processingInstructionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getProcessingInstructionsFieldBuilder() : null;
} else {
processingInstructionsBuilder_.addAllMessages(other.processingInstructions_);
}
}
}
if (!other.getRequestIdentifier().isEmpty()) {
requestIdentifier_ = other.requestIdentifier_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.axoniq.axonserver.grpc.command.CommandResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.axoniq.axonserver.grpc.command.CommandResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object messageIdentifier_ = "";
/**
*
* The unique identifier of the response message
*
*
* string message_identifier = 1;
*/
public java.lang.String getMessageIdentifier() {
java.lang.Object ref = messageIdentifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
messageIdentifier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The unique identifier of the response message
*
*
* string message_identifier = 1;
*/
public com.google.protobuf.ByteString
getMessageIdentifierBytes() {
java.lang.Object ref = messageIdentifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
messageIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The unique identifier of the response message
*
*
* string message_identifier = 1;
*/
public Builder setMessageIdentifier(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
messageIdentifier_ = value;
onChanged();
return this;
}
/**
*
* The unique identifier of the response message
*
*
* string message_identifier = 1;
*/
public Builder clearMessageIdentifier() {
messageIdentifier_ = getDefaultInstance().getMessageIdentifier();
onChanged();
return this;
}
/**
*
* The unique identifier of the response message
*
*
* string message_identifier = 1;
*/
public Builder setMessageIdentifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
messageIdentifier_ = value;
onChanged();
return this;
}
private java.lang.Object errorCode_ = "";
/**
*
* An error code describing the error, if any
*
*
* string error_code = 2;
*/
public java.lang.String getErrorCode() {
java.lang.Object ref = errorCode_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorCode_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* An error code describing the error, if any
*
*
* string error_code = 2;
*/
public com.google.protobuf.ByteString
getErrorCodeBytes() {
java.lang.Object ref = errorCode_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorCode_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* An error code describing the error, if any
*
*
* string error_code = 2;
*/
public Builder setErrorCode(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorCode_ = value;
onChanged();
return this;
}
/**
*
* An error code describing the error, if any
*
*
* string error_code = 2;
*/
public Builder clearErrorCode() {
errorCode_ = getDefaultInstance().getErrorCode();
onChanged();
return this;
}
/**
*
* An error code describing the error, if any
*
*
* string error_code = 2;
*/
public Builder setErrorCodeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorCode_ = value;
onChanged();
return this;
}
private io.axoniq.axonserver.grpc.ErrorMessage errorMessage_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.ErrorMessage, io.axoniq.axonserver.grpc.ErrorMessage.Builder, io.axoniq.axonserver.grpc.ErrorMessageOrBuilder> errorMessageBuilder_;
/**
*
* A detailed description of the error
*
*
* .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
*/
public boolean hasErrorMessage() {
return errorMessageBuilder_ != null || errorMessage_ != null;
}
/**
*
* A detailed description of the error
*
*
* .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
*/
public io.axoniq.axonserver.grpc.ErrorMessage getErrorMessage() {
if (errorMessageBuilder_ == null) {
return errorMessage_ == null ? io.axoniq.axonserver.grpc.ErrorMessage.getDefaultInstance() : errorMessage_;
} else {
return errorMessageBuilder_.getMessage();
}
}
/**
*
* A detailed description of the error
*
*
* .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
*/
public Builder setErrorMessage(io.axoniq.axonserver.grpc.ErrorMessage value) {
if (errorMessageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
} else {
errorMessageBuilder_.setMessage(value);
}
return this;
}
/**
*
* A detailed description of the error
*
*
* .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
*/
public Builder setErrorMessage(
io.axoniq.axonserver.grpc.ErrorMessage.Builder builderForValue) {
if (errorMessageBuilder_ == null) {
errorMessage_ = builderForValue.build();
onChanged();
} else {
errorMessageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* A detailed description of the error
*
*
* .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
*/
public Builder mergeErrorMessage(io.axoniq.axonserver.grpc.ErrorMessage value) {
if (errorMessageBuilder_ == null) {
if (errorMessage_ != null) {
errorMessage_ =
io.axoniq.axonserver.grpc.ErrorMessage.newBuilder(errorMessage_).mergeFrom(value).buildPartial();
} else {
errorMessage_ = value;
}
onChanged();
} else {
errorMessageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* A detailed description of the error
*
*
* .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
*/
public Builder clearErrorMessage() {
if (errorMessageBuilder_ == null) {
errorMessage_ = null;
onChanged();
} else {
errorMessage_ = null;
errorMessageBuilder_ = null;
}
return this;
}
/**
*
* A detailed description of the error
*
*
* .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
*/
public io.axoniq.axonserver.grpc.ErrorMessage.Builder getErrorMessageBuilder() {
onChanged();
return getErrorMessageFieldBuilder().getBuilder();
}
/**
*
* A detailed description of the error
*
*
* .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
*/
public io.axoniq.axonserver.grpc.ErrorMessageOrBuilder getErrorMessageOrBuilder() {
if (errorMessageBuilder_ != null) {
return errorMessageBuilder_.getMessageOrBuilder();
} else {
return errorMessage_ == null ?
io.axoniq.axonserver.grpc.ErrorMessage.getDefaultInstance() : errorMessage_;
}
}
/**
*
* A detailed description of the error
*
*
* .io.axoniq.axonserver.grpc.ErrorMessage error_message = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.ErrorMessage, io.axoniq.axonserver.grpc.ErrorMessage.Builder, io.axoniq.axonserver.grpc.ErrorMessageOrBuilder>
getErrorMessageFieldBuilder() {
if (errorMessageBuilder_ == null) {
errorMessageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.ErrorMessage, io.axoniq.axonserver.grpc.ErrorMessage.Builder, io.axoniq.axonserver.grpc.ErrorMessageOrBuilder>(
getErrorMessage(),
getParentForChildren(),
isClean());
errorMessage_ = null;
}
return errorMessageBuilder_;
}
private io.axoniq.axonserver.grpc.SerializedObject payload_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.SerializedObject, io.axoniq.axonserver.grpc.SerializedObject.Builder, io.axoniq.axonserver.grpc.SerializedObjectOrBuilder> payloadBuilder_;
/**
*
* The payload to provide as a result to the dispatcher
*
*
* .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
*/
public boolean hasPayload() {
return payloadBuilder_ != null || payload_ != null;
}
/**
*
* The payload to provide as a result to the dispatcher
*
*
* .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
*/
public io.axoniq.axonserver.grpc.SerializedObject getPayload() {
if (payloadBuilder_ == null) {
return payload_ == null ? io.axoniq.axonserver.grpc.SerializedObject.getDefaultInstance() : payload_;
} else {
return payloadBuilder_.getMessage();
}
}
/**
*
* The payload to provide as a result to the dispatcher
*
*
* .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
*/
public Builder setPayload(io.axoniq.axonserver.grpc.SerializedObject value) {
if (payloadBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
payload_ = value;
onChanged();
} else {
payloadBuilder_.setMessage(value);
}
return this;
}
/**
*
* The payload to provide as a result to the dispatcher
*
*
* .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
*/
public Builder setPayload(
io.axoniq.axonserver.grpc.SerializedObject.Builder builderForValue) {
if (payloadBuilder_ == null) {
payload_ = builderForValue.build();
onChanged();
} else {
payloadBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The payload to provide as a result to the dispatcher
*
*
* .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
*/
public Builder mergePayload(io.axoniq.axonserver.grpc.SerializedObject value) {
if (payloadBuilder_ == null) {
if (payload_ != null) {
payload_ =
io.axoniq.axonserver.grpc.SerializedObject.newBuilder(payload_).mergeFrom(value).buildPartial();
} else {
payload_ = value;
}
onChanged();
} else {
payloadBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The payload to provide as a result to the dispatcher
*
*
* .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
*/
public Builder clearPayload() {
if (payloadBuilder_ == null) {
payload_ = null;
onChanged();
} else {
payload_ = null;
payloadBuilder_ = null;
}
return this;
}
/**
*
* The payload to provide as a result to the dispatcher
*
*
* .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
*/
public io.axoniq.axonserver.grpc.SerializedObject.Builder getPayloadBuilder() {
onChanged();
return getPayloadFieldBuilder().getBuilder();
}
/**
*
* The payload to provide as a result to the dispatcher
*
*
* .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
*/
public io.axoniq.axonserver.grpc.SerializedObjectOrBuilder getPayloadOrBuilder() {
if (payloadBuilder_ != null) {
return payloadBuilder_.getMessageOrBuilder();
} else {
return payload_ == null ?
io.axoniq.axonserver.grpc.SerializedObject.getDefaultInstance() : payload_;
}
}
/**
*
* The payload to provide as a result to the dispatcher
*
*
* .io.axoniq.axonserver.grpc.SerializedObject payload = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.SerializedObject, io.axoniq.axonserver.grpc.SerializedObject.Builder, io.axoniq.axonserver.grpc.SerializedObjectOrBuilder>
getPayloadFieldBuilder() {
if (payloadBuilder_ == null) {
payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.SerializedObject, io.axoniq.axonserver.grpc.SerializedObject.Builder, io.axoniq.axonserver.grpc.SerializedObjectOrBuilder>(
getPayload(),
getParentForChildren(),
isClean());
payload_ = null;
}
return payloadBuilder_;
}
private com.google.protobuf.MapField<
java.lang.String, io.axoniq.axonserver.grpc.MetaDataValue> metaData_;
private com.google.protobuf.MapField
internalGetMetaData() {
if (metaData_ == null) {
return com.google.protobuf.MapField.emptyMapField(
MetaDataDefaultEntryHolder.defaultEntry);
}
return metaData_;
}
private com.google.protobuf.MapField
internalGetMutableMetaData() {
onChanged();;
if (metaData_ == null) {
metaData_ = com.google.protobuf.MapField.newMapField(
MetaDataDefaultEntryHolder.defaultEntry);
}
if (!metaData_.isMutable()) {
metaData_ = metaData_.copy();
}
return metaData_;
}
public int getMetaDataCount() {
return internalGetMetaData().getMap().size();
}
/**
*
* Any meta data entries providing contextual information back to the dispatcher
*
*
* map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
*/
public boolean containsMetaData(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
return internalGetMetaData().getMap().containsKey(key);
}
/**
* Use {@link #getMetaDataMap()} instead.
*/
@java.lang.Deprecated
public java.util.Map getMetaData() {
return getMetaDataMap();
}
/**
*
* Any meta data entries providing contextual information back to the dispatcher
*
*
* map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
*/
public java.util.Map getMetaDataMap() {
return internalGetMetaData().getMap();
}
/**
*
* Any meta data entries providing contextual information back to the dispatcher
*
*
* map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
*/
public io.axoniq.axonserver.grpc.MetaDataValue getMetaDataOrDefault(
java.lang.String key,
io.axoniq.axonserver.grpc.MetaDataValue defaultValue) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMetaData().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Any meta data entries providing contextual information back to the dispatcher
*
*
* map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
*/
public io.axoniq.axonserver.grpc.MetaDataValue getMetaDataOrThrow(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
java.util.Map map =
internalGetMetaData().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearMetaData() {
internalGetMutableMetaData().getMutableMap()
.clear();
return this;
}
/**
*
* Any meta data entries providing contextual information back to the dispatcher
*
*
* map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
*/
public Builder removeMetaData(
java.lang.String key) {
if (key == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMetaData().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableMetaData() {
return internalGetMutableMetaData().getMutableMap();
}
/**
*
* Any meta data entries providing contextual information back to the dispatcher
*
*
* map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
*/
public Builder putMetaData(
java.lang.String key,
io.axoniq.axonserver.grpc.MetaDataValue value) {
if (key == null) { throw new java.lang.NullPointerException(); }
if (value == null) { throw new java.lang.NullPointerException(); }
internalGetMutableMetaData().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Any meta data entries providing contextual information back to the dispatcher
*
*
* map<string, .io.axoniq.axonserver.grpc.MetaDataValue> meta_data = 5;
*/
public Builder putAllMetaData(
java.util.Map values) {
internalGetMutableMetaData().getMutableMap()
.putAll(values);
return this;
}
private java.util.List processingInstructions_ =
java.util.Collections.emptyList();
private void ensureProcessingInstructionsIsMutable() {
if (!((bitField0_ & 0x00000020) == 0x00000020)) {
processingInstructions_ = new java.util.ArrayList(processingInstructions_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.axoniq.axonserver.grpc.ProcessingInstruction, io.axoniq.axonserver.grpc.ProcessingInstruction.Builder, io.axoniq.axonserver.grpc.ProcessingInstructionOrBuilder> processingInstructionsBuilder_;
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public java.util.List getProcessingInstructionsList() {
if (processingInstructionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(processingInstructions_);
} else {
return processingInstructionsBuilder_.getMessageList();
}
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public int getProcessingInstructionsCount() {
if (processingInstructionsBuilder_ == null) {
return processingInstructions_.size();
} else {
return processingInstructionsBuilder_.getCount();
}
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public io.axoniq.axonserver.grpc.ProcessingInstruction getProcessingInstructions(int index) {
if (processingInstructionsBuilder_ == null) {
return processingInstructions_.get(index);
} else {
return processingInstructionsBuilder_.getMessage(index);
}
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public Builder setProcessingInstructions(
int index, io.axoniq.axonserver.grpc.ProcessingInstruction value) {
if (processingInstructionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProcessingInstructionsIsMutable();
processingInstructions_.set(index, value);
onChanged();
} else {
processingInstructionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public Builder setProcessingInstructions(
int index, io.axoniq.axonserver.grpc.ProcessingInstruction.Builder builderForValue) {
if (processingInstructionsBuilder_ == null) {
ensureProcessingInstructionsIsMutable();
processingInstructions_.set(index, builderForValue.build());
onChanged();
} else {
processingInstructionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public Builder addProcessingInstructions(io.axoniq.axonserver.grpc.ProcessingInstruction value) {
if (processingInstructionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProcessingInstructionsIsMutable();
processingInstructions_.add(value);
onChanged();
} else {
processingInstructionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public Builder addProcessingInstructions(
int index, io.axoniq.axonserver.grpc.ProcessingInstruction value) {
if (processingInstructionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProcessingInstructionsIsMutable();
processingInstructions_.add(index, value);
onChanged();
} else {
processingInstructionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public Builder addProcessingInstructions(
io.axoniq.axonserver.grpc.ProcessingInstruction.Builder builderForValue) {
if (processingInstructionsBuilder_ == null) {
ensureProcessingInstructionsIsMutable();
processingInstructions_.add(builderForValue.build());
onChanged();
} else {
processingInstructionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public Builder addProcessingInstructions(
int index, io.axoniq.axonserver.grpc.ProcessingInstruction.Builder builderForValue) {
if (processingInstructionsBuilder_ == null) {
ensureProcessingInstructionsIsMutable();
processingInstructions_.add(index, builderForValue.build());
onChanged();
} else {
processingInstructionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public Builder addAllProcessingInstructions(
java.lang.Iterable extends io.axoniq.axonserver.grpc.ProcessingInstruction> values) {
if (processingInstructionsBuilder_ == null) {
ensureProcessingInstructionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, processingInstructions_);
onChanged();
} else {
processingInstructionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public Builder clearProcessingInstructions() {
if (processingInstructionsBuilder_ == null) {
processingInstructions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
processingInstructionsBuilder_.clear();
}
return this;
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public Builder removeProcessingInstructions(int index) {
if (processingInstructionsBuilder_ == null) {
ensureProcessingInstructionsIsMutable();
processingInstructions_.remove(index);
onChanged();
} else {
processingInstructionsBuilder_.remove(index);
}
return this;
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public io.axoniq.axonserver.grpc.ProcessingInstruction.Builder getProcessingInstructionsBuilder(
int index) {
return getProcessingInstructionsFieldBuilder().getBuilder(index);
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public io.axoniq.axonserver.grpc.ProcessingInstructionOrBuilder getProcessingInstructionsOrBuilder(
int index) {
if (processingInstructionsBuilder_ == null) {
return processingInstructions_.get(index); } else {
return processingInstructionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public java.util.List extends io.axoniq.axonserver.grpc.ProcessingInstructionOrBuilder>
getProcessingInstructionsOrBuilderList() {
if (processingInstructionsBuilder_ != null) {
return processingInstructionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(processingInstructions_);
}
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public io.axoniq.axonserver.grpc.ProcessingInstruction.Builder addProcessingInstructionsBuilder() {
return getProcessingInstructionsFieldBuilder().addBuilder(
io.axoniq.axonserver.grpc.ProcessingInstruction.getDefaultInstance());
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public io.axoniq.axonserver.grpc.ProcessingInstruction.Builder addProcessingInstructionsBuilder(
int index) {
return getProcessingInstructionsFieldBuilder().addBuilder(
index, io.axoniq.axonserver.grpc.ProcessingInstruction.getDefaultInstance());
}
/**
*
* Instructions for AxonServer when routing this Command Response Message
*
*
* repeated .io.axoniq.axonserver.grpc.ProcessingInstruction processing_instructions = 6;
*/
public java.util.List
getProcessingInstructionsBuilderList() {
return getProcessingInstructionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.axoniq.axonserver.grpc.ProcessingInstruction, io.axoniq.axonserver.grpc.ProcessingInstruction.Builder, io.axoniq.axonserver.grpc.ProcessingInstructionOrBuilder>
getProcessingInstructionsFieldBuilder() {
if (processingInstructionsBuilder_ == null) {
processingInstructionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.axoniq.axonserver.grpc.ProcessingInstruction, io.axoniq.axonserver.grpc.ProcessingInstruction.Builder, io.axoniq.axonserver.grpc.ProcessingInstructionOrBuilder>(
processingInstructions_,
((bitField0_ & 0x00000020) == 0x00000020),
getParentForChildren(),
isClean());
processingInstructions_ = null;
}
return processingInstructionsBuilder_;
}
private java.lang.Object requestIdentifier_ = "";
/**
*
* The unique identifier of the Command Message for which this is the response
*
*
* string request_identifier = 7;
*/
public java.lang.String getRequestIdentifier() {
java.lang.Object ref = requestIdentifier_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
requestIdentifier_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The unique identifier of the Command Message for which this is the response
*
*
* string request_identifier = 7;
*/
public com.google.protobuf.ByteString
getRequestIdentifierBytes() {
java.lang.Object ref = requestIdentifier_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
requestIdentifier_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The unique identifier of the Command Message for which this is the response
*
*
* string request_identifier = 7;
*/
public Builder setRequestIdentifier(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
requestIdentifier_ = value;
onChanged();
return this;
}
/**
*
* The unique identifier of the Command Message for which this is the response
*
*
* string request_identifier = 7;
*/
public Builder clearRequestIdentifier() {
requestIdentifier_ = getDefaultInstance().getRequestIdentifier();
onChanged();
return this;
}
/**
*
* The unique identifier of the Command Message for which this is the response
*
*
* string request_identifier = 7;
*/
public Builder setRequestIdentifierBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
requestIdentifier_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.axoniq.axonserver.grpc.command.CommandResponse)
}
// @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.command.CommandResponse)
private static final io.axoniq.axonserver.grpc.command.CommandResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.axoniq.axonserver.grpc.command.CommandResponse();
}
public static io.axoniq.axonserver.grpc.command.CommandResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommandResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CommandResponse(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.command.CommandResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy