Class DeleteSnapshotsRequest.Builder

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

    public static final class DeleteSnapshotsRequest.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<DeleteSnapshotsRequest.Builder>
    implements DeleteSnapshotsRequestOrBuilder
    
     The request to delete the snapshot from the snapshot store.
     Deletes from a sequence of `0` to the specified `to_sequence`
     
    Protobuf type io.axoniq.axonserver.grpc.event.dcb.DeleteSnapshotsRequest
    • 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<DeleteSnapshotsRequest.Builder>
      • clear

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

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

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

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

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

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

        public com.google.protobuf.ByteString getKey()
         The key the snapshot is identified by. 
         
        bytes key = 1;
        Specified by:
        getKey in interface DeleteSnapshotsRequestOrBuilder
        Returns:
        The key.
      • setKey

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

        public DeleteSnapshotsRequest.Builder clearKey()
         The key the snapshot is identified by. 
         
        bytes key = 1;
        Returns:
        This builder for chaining.
      • getToSequence

        public long getToSequence()
         The exclusive upper bound sequence of the snapshot to end the deletion. 
         
        int64 to_sequence = 3;
        Specified by:
        getToSequence in interface DeleteSnapshotsRequestOrBuilder
        Returns:
        The toSequence.
      • setToSequence

        public DeleteSnapshotsRequest.Builder setToSequence​(long value)
         The exclusive upper bound sequence of the snapshot to end the deletion. 
         
        int64 to_sequence = 3;
        Parameters:
        value - The toSequence to set.
        Returns:
        This builder for chaining.
      • clearToSequence

        public DeleteSnapshotsRequest.Builder clearToSequence()
         The exclusive upper bound sequence of the snapshot to end the deletion. 
         
        int64 to_sequence = 3;
        Returns:
        This builder for chaining.