All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.axoniq.axonserver.grpc.command.CommandProviderInbound Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: command.proto

package io.axoniq.axonserver.grpc.command;

/**
 * 
 * An instruction or confirmation from AxonServer towards the component that provides the Command Handler 
 * 
* * Protobuf type {@code io.axoniq.axonserver.grpc.command.CommandProviderInbound} */ public final class CommandProviderInbound extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:io.axoniq.axonserver.grpc.command.CommandProviderInbound) CommandProviderInboundOrBuilder { private static final long serialVersionUID = 0L; // Use CommandProviderInbound.newBuilder() to construct. private CommandProviderInbound(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommandProviderInbound() { instructionId_ = ""; } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommandProviderInbound( 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: { io.axoniq.axonserver.grpc.InstructionAck.Builder subBuilder = null; if (requestCase_ == 1) { subBuilder = ((io.axoniq.axonserver.grpc.InstructionAck) request_).toBuilder(); } request_ = input.readMessage(io.axoniq.axonserver.grpc.InstructionAck.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.axoniq.axonserver.grpc.InstructionAck) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 1; break; } case 18: { io.axoniq.axonserver.grpc.command.Command.Builder subBuilder = null; if (requestCase_ == 2) { subBuilder = ((io.axoniq.axonserver.grpc.command.Command) request_).toBuilder(); } request_ = input.readMessage(io.axoniq.axonserver.grpc.command.Command.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.axoniq.axonserver.grpc.command.Command) request_); request_ = subBuilder.buildPartial(); } requestCase_ = 2; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); instructionId_ = 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 { 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_CommandProviderInbound_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.axoniq.axonserver.grpc.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandProviderInbound_fieldAccessorTable .ensureFieldAccessorsInitialized( io.axoniq.axonserver.grpc.command.CommandProviderInbound.class, io.axoniq.axonserver.grpc.command.CommandProviderInbound.Builder.class); } private int requestCase_ = 0; private java.lang.Object request_; public enum RequestCase implements com.google.protobuf.Internal.EnumLite { ACK(1), COMMAND(2), REQUEST_NOT_SET(0); private final int value; private RequestCase(int value) { this.value = value; } /** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RequestCase valueOf(int value) { return forNumber(value); } public static RequestCase forNumber(int value) { switch (value) { case 1: return ACK; case 2: return COMMAND; case 0: return REQUEST_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public static final int ACK_FIELD_NUMBER = 1; /** *
   * Acknowledgement of previously sent instruction via outbound stream 
   * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public boolean hasAck() { return requestCase_ == 1; } /** *
   * Acknowledgement of previously sent instruction via outbound stream 
   * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public io.axoniq.axonserver.grpc.InstructionAck getAck() { if (requestCase_ == 1) { return (io.axoniq.axonserver.grpc.InstructionAck) request_; } return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance(); } /** *
   * Acknowledgement of previously sent instruction via outbound stream 
   * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public io.axoniq.axonserver.grpc.InstructionAckOrBuilder getAckOrBuilder() { if (requestCase_ == 1) { return (io.axoniq.axonserver.grpc.InstructionAck) request_; } return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance(); } public static final int COMMAND_FIELD_NUMBER = 2; /** *
   * A command for this component to process 
   * 
* * .io.axoniq.axonserver.grpc.command.Command command = 2; */ public boolean hasCommand() { return requestCase_ == 2; } /** *
   * A command for this component to process 
   * 
* * .io.axoniq.axonserver.grpc.command.Command command = 2; */ public io.axoniq.axonserver.grpc.command.Command getCommand() { if (requestCase_ == 2) { return (io.axoniq.axonserver.grpc.command.Command) request_; } return io.axoniq.axonserver.grpc.command.Command.getDefaultInstance(); } /** *
   * A command for this component to process 
   * 
* * .io.axoniq.axonserver.grpc.command.Command command = 2; */ public io.axoniq.axonserver.grpc.command.CommandOrBuilder getCommandOrBuilder() { if (requestCase_ == 2) { return (io.axoniq.axonserver.grpc.command.Command) request_; } return io.axoniq.axonserver.grpc.command.Command.getDefaultInstance(); } public static final int INSTRUCTION_ID_FIELD_NUMBER = 3; private volatile java.lang.Object instructionId_; /** *
   * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
   * 
* * string instruction_id = 3; */ public java.lang.String getInstructionId() { java.lang.Object ref = instructionId_; 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(); instructionId_ = s; return s; } } /** *
   * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
   * 
* * string instruction_id = 3; */ public com.google.protobuf.ByteString getInstructionIdBytes() { java.lang.Object ref = instructionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instructionId_ = 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 (requestCase_ == 1) { output.writeMessage(1, (io.axoniq.axonserver.grpc.InstructionAck) request_); } if (requestCase_ == 2) { output.writeMessage(2, (io.axoniq.axonserver.grpc.command.Command) request_); } if (!getInstructionIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instructionId_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requestCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.axoniq.axonserver.grpc.InstructionAck) request_); } if (requestCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.axoniq.axonserver.grpc.command.Command) request_); } if (!getInstructionIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instructionId_); } 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.CommandProviderInbound)) { return super.equals(obj); } io.axoniq.axonserver.grpc.command.CommandProviderInbound other = (io.axoniq.axonserver.grpc.command.CommandProviderInbound) obj; boolean result = true; result = result && getInstructionId() .equals(other.getInstructionId()); result = result && getRequestCase().equals( other.getRequestCase()); if (!result) return false; switch (requestCase_) { case 1: result = result && getAck() .equals(other.getAck()); break; case 2: result = result && getCommand() .equals(other.getCommand()); break; case 0: default: } 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) + INSTRUCTION_ID_FIELD_NUMBER; hash = (53 * hash) + getInstructionId().hashCode(); switch (requestCase_) { case 1: hash = (37 * hash) + ACK_FIELD_NUMBER; hash = (53 * hash) + getAck().hashCode(); break; case 2: hash = (37 * hash) + COMMAND_FIELD_NUMBER; hash = (53 * hash) + getCommand().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.axoniq.axonserver.grpc.command.CommandProviderInbound parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.axoniq.axonserver.grpc.command.CommandProviderInbound 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.CommandProviderInbound parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.axoniq.axonserver.grpc.command.CommandProviderInbound 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.CommandProviderInbound parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.axoniq.axonserver.grpc.command.CommandProviderInbound 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.CommandProviderInbound parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.axoniq.axonserver.grpc.command.CommandProviderInbound 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.CommandProviderInbound parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.axoniq.axonserver.grpc.command.CommandProviderInbound 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.CommandProviderInbound 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.CommandProviderInbound 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.CommandProviderInbound 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; } /** *
   * An instruction or confirmation from AxonServer towards the component that provides the Command Handler 
   * 
* * Protobuf type {@code io.axoniq.axonserver.grpc.command.CommandProviderInbound} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:io.axoniq.axonserver.grpc.command.CommandProviderInbound) io.axoniq.axonserver.grpc.command.CommandProviderInboundOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.axoniq.axonserver.grpc.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandProviderInbound_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.axoniq.axonserver.grpc.command.CommandOuterClass.internal_static_io_axoniq_axonserver_grpc_command_CommandProviderInbound_fieldAccessorTable .ensureFieldAccessorsInitialized( io.axoniq.axonserver.grpc.command.CommandProviderInbound.class, io.axoniq.axonserver.grpc.command.CommandProviderInbound.Builder.class); } // Construct using io.axoniq.axonserver.grpc.command.CommandProviderInbound.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); instructionId_ = ""; requestCase_ = 0; request_ = null; 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_CommandProviderInbound_descriptor; } @java.lang.Override public io.axoniq.axonserver.grpc.command.CommandProviderInbound getDefaultInstanceForType() { return io.axoniq.axonserver.grpc.command.CommandProviderInbound.getDefaultInstance(); } @java.lang.Override public io.axoniq.axonserver.grpc.command.CommandProviderInbound build() { io.axoniq.axonserver.grpc.command.CommandProviderInbound result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.axoniq.axonserver.grpc.command.CommandProviderInbound buildPartial() { io.axoniq.axonserver.grpc.command.CommandProviderInbound result = new io.axoniq.axonserver.grpc.command.CommandProviderInbound(this); if (requestCase_ == 1) { if (ackBuilder_ == null) { result.request_ = request_; } else { result.request_ = ackBuilder_.build(); } } if (requestCase_ == 2) { if (commandBuilder_ == null) { result.request_ = request_; } else { result.request_ = commandBuilder_.build(); } } result.instructionId_ = instructionId_; result.requestCase_ = requestCase_; 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.CommandProviderInbound) { return mergeFrom((io.axoniq.axonserver.grpc.command.CommandProviderInbound)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.axoniq.axonserver.grpc.command.CommandProviderInbound other) { if (other == io.axoniq.axonserver.grpc.command.CommandProviderInbound.getDefaultInstance()) return this; if (!other.getInstructionId().isEmpty()) { instructionId_ = other.instructionId_; onChanged(); } switch (other.getRequestCase()) { case ACK: { mergeAck(other.getAck()); break; } case COMMAND: { mergeCommand(other.getCommand()); break; } case REQUEST_NOT_SET: { break; } } 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.CommandProviderInbound parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.axoniq.axonserver.grpc.command.CommandProviderInbound) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int requestCase_ = 0; private java.lang.Object request_; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public Builder clearRequest() { requestCase_ = 0; request_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.InstructionAck, io.axoniq.axonserver.grpc.InstructionAck.Builder, io.axoniq.axonserver.grpc.InstructionAckOrBuilder> ackBuilder_; /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public boolean hasAck() { return requestCase_ == 1; } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public io.axoniq.axonserver.grpc.InstructionAck getAck() { if (ackBuilder_ == null) { if (requestCase_ == 1) { return (io.axoniq.axonserver.grpc.InstructionAck) request_; } return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance(); } else { if (requestCase_ == 1) { return ackBuilder_.getMessage(); } return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance(); } } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public Builder setAck(io.axoniq.axonserver.grpc.InstructionAck value) { if (ackBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { ackBuilder_.setMessage(value); } requestCase_ = 1; return this; } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public Builder setAck( io.axoniq.axonserver.grpc.InstructionAck.Builder builderForValue) { if (ackBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { ackBuilder_.setMessage(builderForValue.build()); } requestCase_ = 1; return this; } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public Builder mergeAck(io.axoniq.axonserver.grpc.InstructionAck value) { if (ackBuilder_ == null) { if (requestCase_ == 1 && request_ != io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance()) { request_ = io.axoniq.axonserver.grpc.InstructionAck.newBuilder((io.axoniq.axonserver.grpc.InstructionAck) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 1) { ackBuilder_.mergeFrom(value); } ackBuilder_.setMessage(value); } requestCase_ = 1; return this; } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public Builder clearAck() { if (ackBuilder_ == null) { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; } ackBuilder_.clear(); } return this; } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public io.axoniq.axonserver.grpc.InstructionAck.Builder getAckBuilder() { return getAckFieldBuilder().getBuilder(); } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ public io.axoniq.axonserver.grpc.InstructionAckOrBuilder getAckOrBuilder() { if ((requestCase_ == 1) && (ackBuilder_ != null)) { return ackBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 1) { return (io.axoniq.axonserver.grpc.InstructionAck) request_; } return io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance(); } } /** *
     * Acknowledgement of previously sent instruction via outbound stream 
     * 
* * .io.axoniq.axonserver.grpc.InstructionAck ack = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.InstructionAck, io.axoniq.axonserver.grpc.InstructionAck.Builder, io.axoniq.axonserver.grpc.InstructionAckOrBuilder> getAckFieldBuilder() { if (ackBuilder_ == null) { if (!(requestCase_ == 1)) { request_ = io.axoniq.axonserver.grpc.InstructionAck.getDefaultInstance(); } ackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.InstructionAck, io.axoniq.axonserver.grpc.InstructionAck.Builder, io.axoniq.axonserver.grpc.InstructionAckOrBuilder>( (io.axoniq.axonserver.grpc.InstructionAck) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 1; onChanged();; return ackBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.command.Command, io.axoniq.axonserver.grpc.command.Command.Builder, io.axoniq.axonserver.grpc.command.CommandOrBuilder> commandBuilder_; /** *
     * A command for this component to process 
     * 
* * .io.axoniq.axonserver.grpc.command.Command command = 2; */ public boolean hasCommand() { return requestCase_ == 2; } /** *
     * A command for this component to process 
     * 
* * .io.axoniq.axonserver.grpc.command.Command command = 2; */ public io.axoniq.axonserver.grpc.command.Command getCommand() { if (commandBuilder_ == null) { if (requestCase_ == 2) { return (io.axoniq.axonserver.grpc.command.Command) request_; } return io.axoniq.axonserver.grpc.command.Command.getDefaultInstance(); } else { if (requestCase_ == 2) { return commandBuilder_.getMessage(); } return io.axoniq.axonserver.grpc.command.Command.getDefaultInstance(); } } /** *
     * A command for this component to process 
     * 
* * .io.axoniq.axonserver.grpc.command.Command command = 2; */ public Builder setCommand(io.axoniq.axonserver.grpc.command.Command value) { if (commandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { commandBuilder_.setMessage(value); } requestCase_ = 2; return this; } /** *
     * A command for this component to process 
     * 
* * .io.axoniq.axonserver.grpc.command.Command command = 2; */ public Builder setCommand( io.axoniq.axonserver.grpc.command.Command.Builder builderForValue) { if (commandBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { commandBuilder_.setMessage(builderForValue.build()); } requestCase_ = 2; return this; } /** *
     * A command for this component to process 
     * 
* * .io.axoniq.axonserver.grpc.command.Command command = 2; */ public Builder mergeCommand(io.axoniq.axonserver.grpc.command.Command value) { if (commandBuilder_ == null) { if (requestCase_ == 2 && request_ != io.axoniq.axonserver.grpc.command.Command.getDefaultInstance()) { request_ = io.axoniq.axonserver.grpc.command.Command.newBuilder((io.axoniq.axonserver.grpc.command.Command) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 2) { commandBuilder_.mergeFrom(value); } commandBuilder_.setMessage(value); } requestCase_ = 2; return this; } /** *
     * A command for this component to process 
     * 
* * .io.axoniq.axonserver.grpc.command.Command command = 2; */ public Builder clearCommand() { if (commandBuilder_ == null) { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; } commandBuilder_.clear(); } return this; } /** *
     * A command for this component to process 
     * 
* * .io.axoniq.axonserver.grpc.command.Command command = 2; */ public io.axoniq.axonserver.grpc.command.Command.Builder getCommandBuilder() { return getCommandFieldBuilder().getBuilder(); } /** *
     * A command for this component to process 
     * 
* * .io.axoniq.axonserver.grpc.command.Command command = 2; */ public io.axoniq.axonserver.grpc.command.CommandOrBuilder getCommandOrBuilder() { if ((requestCase_ == 2) && (commandBuilder_ != null)) { return commandBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 2) { return (io.axoniq.axonserver.grpc.command.Command) request_; } return io.axoniq.axonserver.grpc.command.Command.getDefaultInstance(); } } /** *
     * A command for this component to process 
     * 
* * .io.axoniq.axonserver.grpc.command.Command command = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.command.Command, io.axoniq.axonserver.grpc.command.Command.Builder, io.axoniq.axonserver.grpc.command.CommandOrBuilder> getCommandFieldBuilder() { if (commandBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = io.axoniq.axonserver.grpc.command.Command.getDefaultInstance(); } commandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.axoniq.axonserver.grpc.command.Command, io.axoniq.axonserver.grpc.command.Command.Builder, io.axoniq.axonserver.grpc.command.CommandOrBuilder>( (io.axoniq.axonserver.grpc.command.Command) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 2; onChanged();; return commandBuilder_; } private java.lang.Object instructionId_ = ""; /** *
     * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
     * 
* * string instruction_id = 3; */ public java.lang.String getInstructionId() { java.lang.Object ref = instructionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
     * 
* * string instruction_id = 3; */ public com.google.protobuf.ByteString getInstructionIdBytes() { java.lang.Object ref = instructionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instructionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
     * 
* * string instruction_id = 3; */ public Builder setInstructionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } instructionId_ = value; onChanged(); return this; } /** *
     * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
     * 
* * string instruction_id = 3; */ public Builder clearInstructionId() { instructionId_ = getDefaultInstance().getInstructionId(); onChanged(); return this; } /** *
     * Instruction identifier. If this identifier is set, this instruction will be acknowledged via outbound stream 
     * 
* * string instruction_id = 3; */ public Builder setInstructionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instructionId_ = 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.CommandProviderInbound) } // @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.command.CommandProviderInbound) private static final io.axoniq.axonserver.grpc.command.CommandProviderInbound DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.axoniq.axonserver.grpc.command.CommandProviderInbound(); } public static io.axoniq.axonserver.grpc.command.CommandProviderInbound getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommandProviderInbound parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommandProviderInbound(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.CommandProviderInbound getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy