Class Transformation.Builder

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

    public static final class Transformation.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<Transformation.Builder>
    implements TransformationOrBuilder
     The transformation data. 
     
    Protobuf type io.axoniq.axonserver.grpc.event.Transformation
    • 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<Transformation.Builder>
      • clear

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

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

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

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

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

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

        public Transformation.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<Transformation.Builder>
        Throws:
        IOException
      • hasTransformationId

        public boolean hasTransformationId()
         The identifier of the transformation.
         
        .io.axoniq.axonserver.grpc.event.TransformationId transformationId = 1;
        Specified by:
        hasTransformationId in interface TransformationOrBuilder
        Returns:
        Whether the transformationId field is set.
      • setTransformationId

        public Transformation.Builder setTransformationId​(TransformationId value)
         The identifier of the transformation.
         
        .io.axoniq.axonserver.grpc.event.TransformationId transformationId = 1;
      • mergeTransformationId

        public Transformation.Builder mergeTransformationId​(TransformationId value)
         The identifier of the transformation.
         
        .io.axoniq.axonserver.grpc.event.TransformationId transformationId = 1;
      • clearTransformationId

        public Transformation.Builder clearTransformationId()
         The identifier of the transformation.
         
        .io.axoniq.axonserver.grpc.event.TransformationId transformationId = 1;
      • getTransformationIdBuilder

        public TransformationId.Builder getTransformationIdBuilder()
         The identifier of the transformation.
         
        .io.axoniq.axonserver.grpc.event.TransformationId transformationId = 1;
      • getStateValue

        public int getStateValue()
         The state of the transformation
         
        .io.axoniq.axonserver.grpc.event.TransformationState state = 2;
        Specified by:
        getStateValue in interface TransformationOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Transformation.Builder setStateValue​(int value)
         The state of the transformation
         
        .io.axoniq.axonserver.grpc.event.TransformationState state = 2;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
        Throws:
        IllegalArgumentException - if UNRECOGNIZED is provided.
      • setState

        public Transformation.Builder setState​(TransformationState value)
         The state of the transformation
         
        .io.axoniq.axonserver.grpc.event.TransformationState state = 2;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Transformation.Builder clearState()
         The state of the transformation
         
        .io.axoniq.axonserver.grpc.event.TransformationState state = 2;
        Returns:
        This builder for chaining.
      • getSequence

        public long getSequence()
         The sequence of the last transformation action stored. Needed for checking sequential consistency of requests.
         
        int64 sequence = 3;
        Specified by:
        getSequence in interface TransformationOrBuilder
        Returns:
        The sequence.
      • setSequence

        public Transformation.Builder setSequence​(long value)
         The sequence of the last transformation action stored. Needed for checking sequential consistency of requests.
         
        int64 sequence = 3;
        Parameters:
        value - The sequence to set.
        Returns:
        This builder for chaining.
      • clearSequence

        public Transformation.Builder clearSequence()
         The sequence of the last transformation action stored. Needed for checking sequential consistency of requests.
         
        int64 sequence = 3;
        Returns:
        This builder for chaining.
      • getContext

        public String getContext()
         The bounded context in which this transformation is being executed.
         
        string context = 4;
        Specified by:
        getContext in interface TransformationOrBuilder
        Returns:
        The context.
      • getContextBytes

        public com.google.protobuf.ByteString getContextBytes()
         The bounded context in which this transformation is being executed.
         
        string context = 4;
        Specified by:
        getContextBytes in interface TransformationOrBuilder
        Returns:
        The bytes for context.
      • setContext

        public Transformation.Builder setContext​(String value)
         The bounded context in which this transformation is being executed.
         
        string context = 4;
        Parameters:
        value - The context to set.
        Returns:
        This builder for chaining.
      • clearContext

        public Transformation.Builder clearContext()
         The bounded context in which this transformation is being executed.
         
        string context = 4;
        Returns:
        This builder for chaining.
      • setContextBytes

        public Transformation.Builder setContextBytes​(com.google.protobuf.ByteString value)
         The bounded context in which this transformation is being executed.
         
        string context = 4;
        Parameters:
        value - The bytes for context to set.
        Returns:
        This builder for chaining.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         The description of the transformation.
         
        string description = 5;
        Specified by:
        getDescriptionBytes in interface TransformationOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Transformation.Builder setDescription​(String value)
         The description of the transformation.
         
        string description = 5;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Transformation.Builder clearDescription()
         The description of the transformation.
         
        string description = 5;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Transformation.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         The description of the transformation.
         
        string description = 5;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getAppliedAt

        public long getAppliedAt()
         The timestamp at which the transformation was applied. Set to -1 if the transformation was not applied.
         
        int64 applied_at = 6;
        Specified by:
        getAppliedAt in interface TransformationOrBuilder
        Returns:
        The appliedAt.
      • setAppliedAt

        public Transformation.Builder setAppliedAt​(long value)
         The timestamp at which the transformation was applied. Set to -1 if the transformation was not applied.
         
        int64 applied_at = 6;
        Parameters:
        value - The appliedAt to set.
        Returns:
        This builder for chaining.
      • clearAppliedAt

        public Transformation.Builder clearAppliedAt()
         The timestamp at which the transformation was applied. Set to -1 if the transformation was not applied.
         
        int64 applied_at = 6;
        Returns:
        This builder for chaining.
      • getApplyRequester

        public String getApplyRequester()
         The username of user who requested the transformation to be applied. Empty if the transformation was not applied.
         
        string apply_requester = 7;
        Specified by:
        getApplyRequester in interface TransformationOrBuilder
        Returns:
        The applyRequester.
      • getApplyRequesterBytes

        public com.google.protobuf.ByteString getApplyRequesterBytes()
         The username of user who requested the transformation to be applied. Empty if the transformation was not applied.
         
        string apply_requester = 7;
        Specified by:
        getApplyRequesterBytes in interface TransformationOrBuilder
        Returns:
        The bytes for applyRequester.
      • setApplyRequester

        public Transformation.Builder setApplyRequester​(String value)
         The username of user who requested the transformation to be applied. Empty if the transformation was not applied.
         
        string apply_requester = 7;
        Parameters:
        value - The applyRequester to set.
        Returns:
        This builder for chaining.
      • clearApplyRequester

        public Transformation.Builder clearApplyRequester()
         The username of user who requested the transformation to be applied. Empty if the transformation was not applied.
         
        string apply_requester = 7;
        Returns:
        This builder for chaining.
      • setApplyRequesterBytes

        public Transformation.Builder setApplyRequesterBytes​(com.google.protobuf.ByteString value)
         The username of user who requested the transformation to be applied. Empty if the transformation was not applied.
         
        string apply_requester = 7;
        Parameters:
        value - The bytes for applyRequester to set.
        Returns:
        This builder for chaining.
      • getVersion

        public int getVersion()
         The version of the transformation. The sequence
         
        int32 version = 8;
        Specified by:
        getVersion in interface TransformationOrBuilder
        Returns:
        The version.
      • setVersion

        public Transformation.Builder setVersion​(int value)
         The version of the transformation. The sequence
         
        int32 version = 8;
        Parameters:
        value - The version to set.
        Returns:
        This builder for chaining.
      • clearVersion

        public Transformation.Builder clearVersion()
         The version of the transformation. The sequence
         
        int32 version = 8;
        Returns:
        This builder for chaining.