Class EventProcessorSegment.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<EventProcessorSegment.Builder>
      • clear

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

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

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

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

        public EventProcessorSegment.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<EventProcessorSegment.Builder>
        Throws:
        IOException
      • setId

        public EventProcessorSegment.Builder setId​(int value)
         the identifier of the segment 
         
        int32 id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • getOnePartOf

        public int getOnePartOf()
         the fractional unit representing the size of the segment
         
        int32 one_part_of = 2;
        Specified by:
        getOnePartOf in interface EventProcessorSegmentOrBuilder
        Returns:
        The onePartOf.
      • setOnePartOf

        public EventProcessorSegment.Builder setOnePartOf​(int value)
         the fractional unit representing the size of the segment
         
        int32 one_part_of = 2;
        Parameters:
        value - The onePartOf to set.
        Returns:
        This builder for chaining.
      • clearOnePartOf

        public EventProcessorSegment.Builder clearOnePartOf()
         the fractional unit representing the size of the segment
         
        int32 one_part_of = 2;
        Returns:
        This builder for chaining.
      • getClaimedByBytes

        public com.google.protobuf.ByteString getClaimedByBytes()
         the id of the client that claimed the segment 
         
        string claimed_by = 3;
        Specified by:
        getClaimedByBytes in interface EventProcessorSegmentOrBuilder
        Returns:
        The bytes for claimedBy.
      • setClaimedBy

        public EventProcessorSegment.Builder setClaimedBy​(String value)
         the id of the client that claimed the segment 
         
        string claimed_by = 3;
        Parameters:
        value - The claimedBy to set.
        Returns:
        This builder for chaining.
      • clearClaimedBy

        public EventProcessorSegment.Builder clearClaimedBy()
         the id of the client that claimed the segment 
         
        string claimed_by = 3;
        Returns:
        This builder for chaining.
      • setClaimedByBytes

        public EventProcessorSegment.Builder setClaimedByBytes​(com.google.protobuf.ByteString value)
         the id of the client that claimed the segment 
         
        string claimed_by = 3;
        Parameters:
        value - The bytes for claimedBy to set.
        Returns:
        This builder for chaining.
      • getIsCaughtUp

        public boolean getIsCaughtUp()
         true if the segment has ever reached the head of the stream since it was started, false otherwise 
         
        bool is_caughtUp = 4;
        Specified by:
        getIsCaughtUp in interface EventProcessorSegmentOrBuilder
        Returns:
        The isCaughtUp.
      • setIsCaughtUp

        public EventProcessorSegment.Builder setIsCaughtUp​(boolean value)
         true if the segment has ever reached the head of the stream since it was started, false otherwise 
         
        bool is_caughtUp = 4;
        Parameters:
        value - The isCaughtUp to set.
        Returns:
        This builder for chaining.
      • clearIsCaughtUp

        public EventProcessorSegment.Builder clearIsCaughtUp()
         true if the segment has ever reached the head of the stream since it was started, false otherwise 
         
        bool is_caughtUp = 4;
        Returns:
        This builder for chaining.
      • getIsReplaying

        public boolean getIsReplaying()
         true if the segment is replaying, false otherwise 
         
        bool is_replaying = 5;
        Specified by:
        getIsReplaying in interface EventProcessorSegmentOrBuilder
        Returns:
        The isReplaying.
      • setIsReplaying

        public EventProcessorSegment.Builder setIsReplaying​(boolean value)
         true if the segment is replaying, false otherwise 
         
        bool is_replaying = 5;
        Parameters:
        value - The isReplaying to set.
        Returns:
        This builder for chaining.
      • clearIsReplaying

        public EventProcessorSegment.Builder clearIsReplaying()
         true if the segment is replaying, false otherwise 
         
        bool is_replaying = 5;
        Returns:
        This builder for chaining.
      • setTokenPosition

        public EventProcessorSegment.Builder setTokenPosition​(long value)
         the approximate position of the token 
         
        int64 token_position = 6;
        Parameters:
        value - The tokenPosition to set.
        Returns:
        This builder for chaining.
      • clearTokenPosition

        public EventProcessorSegment.Builder clearTokenPosition()
         the approximate position of the token 
         
        int64 token_position = 6;
        Returns:
        This builder for chaining.
      • getIsInError

        public boolean getIsInError()
         true if the segment is in an error loop, false otherwise 
         
        bool is_in_error = 7;
        Specified by:
        getIsInError in interface EventProcessorSegmentOrBuilder
        Returns:
        The isInError.
      • setIsInError

        public EventProcessorSegment.Builder setIsInError​(boolean value)
         true if the segment is in an error loop, false otherwise 
         
        bool is_in_error = 7;
        Parameters:
        value - The isInError to set.
        Returns:
        This builder for chaining.
      • clearIsInError

        public EventProcessorSegment.Builder clearIsInError()
         true if the segment is in an error loop, false otherwise 
         
        bool is_in_error = 7;
        Returns:
        This builder for chaining.
      • getErrorBytes

        public com.google.protobuf.ByteString getErrorBytes()
         the error description, if the segment is in error 
         
        string error = 8;
        Specified by:
        getErrorBytes in interface EventProcessorSegmentOrBuilder
        Returns:
        The bytes for error.
      • setError

        public EventProcessorSegment.Builder setError​(String value)
         the error description, if the segment is in error 
         
        string error = 8;
        Parameters:
        value - The error to set.
        Returns:
        This builder for chaining.
      • clearError

        public EventProcessorSegment.Builder clearError()
         the error description, if the segment is in error 
         
        string error = 8;
        Returns:
        This builder for chaining.
      • setErrorBytes

        public EventProcessorSegment.Builder setErrorBytes​(com.google.protobuf.ByteString value)
         the error description, if the segment is in error 
         
        string error = 8;
        Parameters:
        value - The bytes for error to set.
        Returns:
        This builder for chaining.