Class EventProcessorInfo.SegmentStatus.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<EventProcessorInfo.SegmentStatus.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<EventProcessorInfo.SegmentStatus.Builder>
      • getDefaultInstanceForType

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

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

        public EventProcessorInfo.SegmentStatus 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<EventProcessorInfo.SegmentStatus.Builder>
      • setSegmentId

        public EventProcessorInfo.SegmentStatus.Builder setSegmentId​(int value)
         The ID of the Segment for which the status is reported 
         
        int32 segment_id = 1;
        Parameters:
        value - The segmentId to set.
        Returns:
        This builder for chaining.
      • setCaughtUp

        public EventProcessorInfo.SegmentStatus.Builder setCaughtUp​(boolean value)
         Indicates whether the Segment has "Caught Up" with the Head of the Event Stream 
         
        bool caught_up = 2;
        Parameters:
        value - The caughtUp to set.
        Returns:
        This builder for chaining.
      • clearCaughtUp

        public EventProcessorInfo.SegmentStatus.Builder clearCaughtUp()
         Indicates whether the Segment has "Caught Up" with the Head of the Event Stream 
         
        bool caught_up = 2;
        Returns:
        This builder for chaining.
      • setReplaying

        public EventProcessorInfo.SegmentStatus.Builder setReplaying​(boolean value)
         Indicates whether the Segment is "Replaying" historic events after a Reset. 
         
        bool replaying = 3;
        Parameters:
        value - The replaying to set.
        Returns:
        This builder for chaining.
      • clearReplaying

        public EventProcessorInfo.SegmentStatus.Builder clearReplaying()
         Indicates whether the Segment is "Replaying" historic events after a Reset. 
         
        bool replaying = 3;
        Returns:
        This builder for chaining.
      • setOnePartOf

        public EventProcessorInfo.SegmentStatus.Builder setOnePartOf​(int value)
         The fraction this segment processes. A fraction of 2 means 1/2, 4 means 1/4, etc.
         
        int32 one_part_of = 4;
        Parameters:
        value - The onePartOf to set.
        Returns:
        This builder for chaining.
      • clearOnePartOf

        public EventProcessorInfo.SegmentStatus.Builder clearOnePartOf()
         The fraction this segment processes. A fraction of 2 means 1/2, 4 means 1/4, etc.
         
        int32 one_part_of = 4;
        Returns:
        This builder for chaining.
      • setTokenPosition

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

        public EventProcessorInfo.SegmentStatus.Builder clearTokenPosition()
         The approximate position of the token in the stream. 
         
        int64 token_position = 5;
        Returns:
        This builder for chaining.
      • getErrorStateBytes

        public com.google.protobuf.ByteString getErrorStateBytes()
         Information about the error state of the Segment, if applicable. 
         
        string error_state = 6;
        Specified by:
        getErrorStateBytes in interface EventProcessorInfo.SegmentStatusOrBuilder
        Returns:
        The bytes for errorState.
      • setErrorState

        public EventProcessorInfo.SegmentStatus.Builder setErrorState​(String value)
         Information about the error state of the Segment, if applicable. 
         
        string error_state = 6;
        Parameters:
        value - The errorState to set.
        Returns:
        This builder for chaining.
      • clearErrorState

        public EventProcessorInfo.SegmentStatus.Builder clearErrorState()
         Information about the error state of the Segment, if applicable. 
         
        string error_state = 6;
        Returns:
        This builder for chaining.
      • setErrorStateBytes

        public EventProcessorInfo.SegmentStatus.Builder setErrorStateBytes​(com.google.protobuf.ByteString value)
         Information about the error state of the Segment, if applicable. 
         
        string error_state = 6;
        Parameters:
        value - The bytes for errorState to set.
        Returns:
        This builder for chaining.