Class RecordId.Builder

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

    public static final class RecordId.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RecordId.Builder>
    implements RecordIdOrBuilder
    Protobuf type hstream.server.RecordId
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RecordId.Builder>
      • clear

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

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

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

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

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

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

        public RecordId.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<RecordId.Builder>
        Throws:
        IOException
      • getShardId

        public long getShardId()
        uint64 shardId = 1;
        Specified by:
        getShardId in interface RecordIdOrBuilder
        Returns:
        The shardId.
      • setShardId

        public RecordId.Builder setShardId​(long value)
        uint64 shardId = 1;
        Parameters:
        value - The shardId to set.
        Returns:
        This builder for chaining.
      • clearShardId

        public RecordId.Builder clearShardId()
        uint64 shardId = 1;
        Returns:
        This builder for chaining.
      • getBatchId

        public long getBatchId()
         LSN of the total batch records
         
        uint64 batchId = 2;
        Specified by:
        getBatchId in interface RecordIdOrBuilder
        Returns:
        The batchId.
      • setBatchId

        public RecordId.Builder setBatchId​(long value)
         LSN of the total batch records
         
        uint64 batchId = 2;
        Parameters:
        value - The batchId to set.
        Returns:
        This builder for chaining.
      • clearBatchId

        public RecordId.Builder clearBatchId()
         LSN of the total batch records
         
        uint64 batchId = 2;
        Returns:
        This builder for chaining.
      • getBatchIndex

        public int getBatchIndex()
         Offset of each record in the batch
         
        uint32 batchIndex = 3;
        Specified by:
        getBatchIndex in interface RecordIdOrBuilder
        Returns:
        The batchIndex.
      • setBatchIndex

        public RecordId.Builder setBatchIndex​(int value)
         Offset of each record in the batch
         
        uint32 batchIndex = 3;
        Parameters:
        value - The batchIndex to set.
        Returns:
        This builder for chaining.
      • clearBatchIndex

        public RecordId.Builder clearBatchIndex()
         Offset of each record in the batch
         
        uint32 batchIndex = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final RecordId.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecordId.Builder>
      • mergeUnknownFields

        public final RecordId.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RecordId.Builder>