Class InstructionResult.Builder

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

    public static final class InstructionResult.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<InstructionResult.Builder>
    implements InstructionResultOrBuilder
     Message describing the result of the execution of an instruction
     
    Protobuf type io.axoniq.axonserver.grpc.InstructionResult
    • 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<InstructionResult.Builder>
      • clear

        public InstructionResult.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<InstructionResult.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<InstructionResult.Builder>
      • getDefaultInstanceForType

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

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

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

        public InstructionResult.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<InstructionResult.Builder>
      • isInitialized

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

        public InstructionResult.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<InstructionResult.Builder>
        Throws:
        IOException
      • getInstructionIdBytes

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

        public InstructionResult.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 InstructionResult.Builder clearInstructionId()
         The identifier of the instruction 
         
        string instruction_id = 1;
        Returns:
        This builder for chaining.
      • setInstructionIdBytes

        public InstructionResult.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 processed successfully 
         
        bool success = 2;
        Specified by:
        getSuccess in interface InstructionResultOrBuilder
        Returns:
        The success.
      • setSuccess

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

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

        public boolean hasError()
         Cause of instruction handling failure. 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error = 3;
        Specified by:
        hasError in interface InstructionResultOrBuilder
        Returns:
        Whether the error field is set.
      • clearError

        public InstructionResult.Builder clearError()
         Cause of instruction handling failure. 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error = 3;
      • getErrorBuilder

        public ErrorMessage.Builder getErrorBuilder()
         Cause of instruction handling failure. 
         
        .io.axoniq.axonserver.grpc.ErrorMessage error = 3;