Class AddSnapshotRequest.Builder

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

    public static final class AddSnapshotRequest.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<AddSnapshotRequest.Builder>
    implements AddSnapshotRequestOrBuilder
     The request to add the snapshot to the snapshot store. 
     
    Protobuf type io.axoniq.axonserver.grpc.event.dcb.AddSnapshotRequest
    • 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<AddSnapshotRequest.Builder>
      • clear

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

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

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

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

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

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

        public AddSnapshotRequest.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<AddSnapshotRequest.Builder>
        Throws:
        IOException
      • getKey

        public com.google.protobuf.ByteString getKey()
         The key this snapshot is added to. 
         
        bytes key = 1;
        Specified by:
        getKey in interface AddSnapshotRequestOrBuilder
        Returns:
        The key.
      • setKey

        public AddSnapshotRequest.Builder setKey​(com.google.protobuf.ByteString value)
         The key this snapshot is added to. 
         
        bytes key = 1;
        Parameters:
        value - The key to set.
        Returns:
        This builder for chaining.
      • clearKey

        public AddSnapshotRequest.Builder clearKey()
         The key this snapshot is added to. 
         
        bytes key = 1;
        Returns:
        This builder for chaining.
      • getSequence

        public long getSequence()
         The sequence of the snapshot. Usually linked to the sequence of the event in the event store up to which
         the snapshot is taken. 
         
        int64 sequence = 2;
        Specified by:
        getSequence in interface AddSnapshotRequestOrBuilder
        Returns:
        The sequence.
      • setSequence

        public AddSnapshotRequest.Builder setSequence​(long value)
         The sequence of the snapshot. Usually linked to the sequence of the event in the event store up to which
         the snapshot is taken. 
         
        int64 sequence = 2;
        Parameters:
        value - The sequence to set.
        Returns:
        This builder for chaining.
      • clearSequence

        public AddSnapshotRequest.Builder clearSequence()
         The sequence of the snapshot. Usually linked to the sequence of the event in the event store up to which
         the snapshot is taken. 
         
        int64 sequence = 2;
        Returns:
        This builder for chaining.
      • getPrune

        public boolean getPrune()
         If set to true, older snapshots for the same key are pruned. 
         
        bool prune = 3;
        Specified by:
        getPrune in interface AddSnapshotRequestOrBuilder
        Returns:
        The prune.
      • setPrune

        public AddSnapshotRequest.Builder setPrune​(boolean value)
         If set to true, older snapshots for the same key are pruned. 
         
        bool prune = 3;
        Parameters:
        value - The prune to set.
        Returns:
        This builder for chaining.
      • clearPrune

        public AddSnapshotRequest.Builder clearPrune()
         If set to true, older snapshots for the same key are pruned. 
         
        bool prune = 3;
        Returns:
        This builder for chaining.
      • hasSnapshot

        public boolean hasSnapshot()
         The snapshot. 
         
        .io.axoniq.axonserver.grpc.event.dcb.Snapshot snapshot = 4;
        Specified by:
        hasSnapshot in interface AddSnapshotRequestOrBuilder
        Returns:
        Whether the snapshot field is set.
      • clearSnapshot

        public AddSnapshotRequest.Builder clearSnapshot()
         The snapshot. 
         
        .io.axoniq.axonserver.grpc.event.dcb.Snapshot snapshot = 4;
      • getSnapshotBuilder

        public Snapshot.Builder getSnapshotBuilder()
         The snapshot. 
         
        .io.axoniq.axonserver.grpc.event.dcb.Snapshot snapshot = 4;