Class SegmentPosition.Builder

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

    public static final class SegmentPosition.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<SegmentPosition.Builder>
    implements SegmentPositionOrBuilder
     Contains the position per segment 
     
    Protobuf type io.axoniq.axonserver.grpc.streams.SegmentPosition
    • 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<SegmentPosition.Builder>
      • clear

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

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

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

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

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

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

        public SegmentPosition.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<SegmentPosition.Builder>
        Throws:
        IOException
      • setSegment

        public SegmentPosition.Builder setSegment​(int value)
         the segment number 
         
        int32 segment = 1;
        Parameters:
        value - The segment to set.
        Returns:
        This builder for chaining.
      • clearSegment

        public SegmentPosition.Builder clearSegment()
         the segment number 
         
        int32 segment = 1;
        Returns:
        This builder for chaining.
      • getPosition

        public long getPosition()
         the last confirmed position 
         
        int64 position = 2;
        Specified by:
        getPosition in interface SegmentPositionOrBuilder
        Returns:
        The position.
      • setPosition

        public SegmentPosition.Builder setPosition​(long value)
         the last confirmed position 
         
        int64 position = 2;
        Parameters:
        value - The position to set.
        Returns:
        This builder for chaining.
      • clearPosition

        public SegmentPosition.Builder clearPosition()
         the last confirmed position 
         
        int64 position = 2;
        Returns:
        This builder for chaining.
      • getClientId

        public String getClientId()
         the connected client, empty if there is no client connected to this segment 
         
        string client_id = 3;
        Specified by:
        getClientId in interface SegmentPositionOrBuilder
        Returns:
        The clientId.
      • getClientIdBytes

        public com.google.protobuf.ByteString getClientIdBytes()
         the connected client, empty if there is no client connected to this segment 
         
        string client_id = 3;
        Specified by:
        getClientIdBytes in interface SegmentPositionOrBuilder
        Returns:
        The bytes for clientId.
      • setClientId

        public SegmentPosition.Builder setClientId​(String value)
         the connected client, empty if there is no client connected to this segment 
         
        string client_id = 3;
        Parameters:
        value - The clientId to set.
        Returns:
        This builder for chaining.
      • clearClientId

        public SegmentPosition.Builder clearClientId()
         the connected client, empty if there is no client connected to this segment 
         
        string client_id = 3;
        Returns:
        This builder for chaining.
      • setClientIdBytes

        public SegmentPosition.Builder setClientIdBytes​(com.google.protobuf.ByteString value)
         the connected client, empty if there is no client connected to this segment 
         
        string client_id = 3;
        Parameters:
        value - The bytes for clientId to set.
        Returns:
        This builder for chaining.
      • getError

        public String getError()
         optional error reported by the client for this segment 
         
        string error = 4;
        Specified by:
        getError in interface SegmentPositionOrBuilder
        Returns:
        The error.
      • getErrorBytes

        public com.google.protobuf.ByteString getErrorBytes()
         optional error reported by the client for this segment 
         
        string error = 4;
        Specified by:
        getErrorBytes in interface SegmentPositionOrBuilder
        Returns:
        The bytes for error.
      • setError

        public SegmentPosition.Builder setError​(String value)
         optional error reported by the client for this segment 
         
        string error = 4;
        Parameters:
        value - The error to set.
        Returns:
        This builder for chaining.
      • clearError

        public SegmentPosition.Builder clearError()
         optional error reported by the client for this segment 
         
        string error = 4;
        Returns:
        This builder for chaining.
      • setErrorBytes

        public SegmentPosition.Builder setErrorBytes​(com.google.protobuf.ByteString value)
         optional error reported by the client for this segment 
         
        string error = 4;
        Parameters:
        value - The bytes for error to set.
        Returns:
        This builder for chaining.