Class GetAggregateEventsRequest.Builder

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

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

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

        public GetAggregateEventsRequest 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<GetAggregateEventsRequest.Builder>
      • mergeFrom

        public GetAggregateEventsRequest.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<GetAggregateEventsRequest.Builder>
        Throws:
        IOException
      • getAggregateIdBytes

        public com.google.protobuf.ByteString getAggregateIdBytes()
         The identifier of the aggregate to read events for 
         
        string aggregate_id = 1;
        Specified by:
        getAggregateIdBytes in interface GetAggregateEventsRequestOrBuilder
        Returns:
        The bytes for aggregateId.
      • setAggregateId

        public GetAggregateEventsRequest.Builder setAggregateId​(String value)
         The identifier of the aggregate to read events for 
         
        string aggregate_id = 1;
        Parameters:
        value - The aggregateId to set.
        Returns:
        This builder for chaining.
      • clearAggregateId

        public GetAggregateEventsRequest.Builder clearAggregateId()
         The identifier of the aggregate to read events for 
         
        string aggregate_id = 1;
        Returns:
        This builder for chaining.
      • setAggregateIdBytes

        public GetAggregateEventsRequest.Builder setAggregateIdBytes​(com.google.protobuf.ByteString value)
         The identifier of the aggregate to read events for 
         
        string aggregate_id = 1;
        Parameters:
        value - The bytes for aggregateId to set.
        Returns:
        This builder for chaining.
      • setInitialSequence

        public GetAggregateEventsRequest.Builder setInitialSequence​(long value)
         The sequence number of the first event to receive 
         
        int64 initial_sequence = 2;
        Parameters:
        value - The initialSequence to set.
        Returns:
        This builder for chaining.
      • clearInitialSequence

        public GetAggregateEventsRequest.Builder clearInitialSequence()
         The sequence number of the first event to receive 
         
        int64 initial_sequence = 2;
        Returns:
        This builder for chaining.
      • getAllowSnapshots

        public boolean getAllowSnapshots()
         Whether a snapshot may be returned as first element in the stream 
         
        bool allow_snapshots = 3;
        Specified by:
        getAllowSnapshots in interface GetAggregateEventsRequestOrBuilder
        Returns:
        The allowSnapshots.
      • setAllowSnapshots

        public GetAggregateEventsRequest.Builder setAllowSnapshots​(boolean value)
         Whether a snapshot may be returned as first element in the stream 
         
        bool allow_snapshots = 3;
        Parameters:
        value - The allowSnapshots to set.
        Returns:
        This builder for chaining.
      • clearAllowSnapshots

        public GetAggregateEventsRequest.Builder clearAllowSnapshots()
         Whether a snapshot may be returned as first element in the stream 
         
        bool allow_snapshots = 3;
        Returns:
        This builder for chaining.
      • getMaxSequence

        public long getMaxSequence()
         The maximum sequence number (inclusive) of the events to retrieve, 0 means up to last event 
         
        int64 max_sequence = 4;
        Specified by:
        getMaxSequence in interface GetAggregateEventsRequestOrBuilder
        Returns:
        The maxSequence.
      • setMaxSequence

        public GetAggregateEventsRequest.Builder setMaxSequence​(long value)
         The maximum sequence number (inclusive) of the events to retrieve, 0 means up to last event 
         
        int64 max_sequence = 4;
        Parameters:
        value - The maxSequence to set.
        Returns:
        This builder for chaining.
      • clearMaxSequence

        public GetAggregateEventsRequest.Builder clearMaxSequence()
         The maximum sequence number (inclusive) of the events to retrieve, 0 means up to last event 
         
        int64 max_sequence = 4;
        Returns:
        This builder for chaining.
      • setMinToken

        public GetAggregateEventsRequest.Builder setMinToken​(long value)
         Hint for a minimum token to search events from 
         
        int64 min_token = 5;
        Parameters:
        value - The minToken to set.
        Returns:
        This builder for chaining.
      • clearMinToken

        public GetAggregateEventsRequest.Builder clearMinToken()
         Hint for a minimum token to search events from 
         
        int64 min_token = 5;
        Returns:
        This builder for chaining.