Class InstructionAck.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, InstructionAckOrBuilder, Cloneable
    Enclosing class:
    InstructionAck

    public static final class InstructionAck.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<InstructionAck.Builder>
    implements InstructionAckOrBuilder
     Message describing instruction acknowledgement 
     
    Protobuf type io.axoniq.axonserver.grpc.InstructionAck
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<InstructionAck.Builder>
      • clear

        public InstructionAck.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<InstructionAck.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<InstructionAck.Builder>
      • getDefaultInstanceForType

        public InstructionAck getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public InstructionAck build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public InstructionAck buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public InstructionAck.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstructionAck.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<InstructionAck.Builder>
      • mergeFrom

        public InstructionAck.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<InstructionAck.Builder>
        Throws:
        IOException
      • getInstructionIdBytes

        public com.google.protobuf.ByteString getInstructionIdBytes()
         The identifier of the instruction 
         
        string instruction_id = 1;
        Specified by:
        getInstructionIdBytes in interface InstructionAckOrBuilder
        Returns:
        The bytes for instructionId.
      • setInstructionId

        public InstructionAck.Builder setInstructionId​(String value)
         The identifier of the instruction 
         
        string instruction_id = 1;
        Parameters:
        value - The instructionId to set.
        Returns:
        This builder for chaining.
      • clearInstructionId

        public InstructionAck.Builder clearInstructionId()
         The identifier of the instruction 
         
        string instruction_id = 1;
        Returns:
        This builder for chaining.
      • setInstructionIdBytes

        public InstructionAck.Builder setInstructionIdBytes​(com.google.protobuf.ByteString value)
         The identifier of the instruction 
         
        string instruction_id = 1;
        Parameters:
        value - The bytes for instructionId to set.
        Returns:
        This builder for chaining.
      • getSuccess

        public boolean getSuccess()
         Indicator whether the instruction was acknowledged successfully 
         
        bool success = 2;
        Specified by:
        getSuccess in interface InstructionAckOrBuilder
        Returns:
        The success.
      • setSuccess

        public InstructionAck.Builder setSuccess​(boolean value)
         Indicator whether the instruction was acknowledged successfully 
         
        bool success = 2;
        Parameters:
        value - The success to set.
        Returns:
        This builder for chaining.
      • clearSuccess

        public InstructionAck.Builder clearSuccess()
         Indicator whether the instruction was acknowledged successfully 
         
        bool success = 2;
        Returns:
        This builder for chaining.
      • hasError

        public boolean hasError()
         Set if instruction acknowledgement failed. 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error = 3;
        Specified by:
        hasError in interface InstructionAckOrBuilder
        Returns:
        Whether the error field is set.
      • getError

        public ErrorMessage getError()
         Set if instruction acknowledgement failed. 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error = 3;
        Specified by:
        getError in interface InstructionAckOrBuilder
        Returns:
        The error.
      • mergeError

        public InstructionAck.Builder mergeError​(ErrorMessage value)
         Set if instruction acknowledgement failed. 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error = 3;
      • clearError

        public InstructionAck.Builder clearError()
         Set if instruction acknowledgement failed. 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error = 3;
      • getErrorBuilder

        public ErrorMessage.Builder getErrorBuilder()
         Set if instruction acknowledgement failed. 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error = 3;