Class Shard.Builder

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

    public static final class Shard.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Shard.Builder>
    implements ShardOrBuilder
    Protobuf type hstream.server.Shard
    • 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<Shard.Builder>
      • clear

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

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

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

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

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

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

        public Shard.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<Shard.Builder>
        Throws:
        IOException
      • getStreamNameBytes

        public com.google.protobuf.ByteString getStreamNameBytes()
        string streamName = 1;
        Specified by:
        getStreamNameBytes in interface ShardOrBuilder
        Returns:
        The bytes for streamName.
      • setStreamName

        public Shard.Builder setStreamName​(String value)
        string streamName = 1;
        Parameters:
        value - The streamName to set.
        Returns:
        This builder for chaining.
      • clearStreamName

        public Shard.Builder clearStreamName()
        string streamName = 1;
        Returns:
        This builder for chaining.
      • setStreamNameBytes

        public Shard.Builder setStreamNameBytes​(com.google.protobuf.ByteString value)
        string streamName = 1;
        Parameters:
        value - The bytes for streamName to set.
        Returns:
        This builder for chaining.
      • getShardId

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

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

        public Shard.Builder clearShardId()
        uint64 shardId = 2;
        Returns:
        This builder for chaining.
      • getStartHashRangeKeyBytes

        public com.google.protobuf.ByteString getStartHashRangeKeyBytes()
        string startHashRangeKey = 3;
        Specified by:
        getStartHashRangeKeyBytes in interface ShardOrBuilder
        Returns:
        The bytes for startHashRangeKey.
      • setStartHashRangeKey

        public Shard.Builder setStartHashRangeKey​(String value)
        string startHashRangeKey = 3;
        Parameters:
        value - The startHashRangeKey to set.
        Returns:
        This builder for chaining.
      • clearStartHashRangeKey

        public Shard.Builder clearStartHashRangeKey()
        string startHashRangeKey = 3;
        Returns:
        This builder for chaining.
      • setStartHashRangeKeyBytes

        public Shard.Builder setStartHashRangeKeyBytes​(com.google.protobuf.ByteString value)
        string startHashRangeKey = 3;
        Parameters:
        value - The bytes for startHashRangeKey to set.
        Returns:
        This builder for chaining.
      • getEndHashRangeKeyBytes

        public com.google.protobuf.ByteString getEndHashRangeKeyBytes()
        string endHashRangeKey = 4;
        Specified by:
        getEndHashRangeKeyBytes in interface ShardOrBuilder
        Returns:
        The bytes for endHashRangeKey.
      • setEndHashRangeKey

        public Shard.Builder setEndHashRangeKey​(String value)
        string endHashRangeKey = 4;
        Parameters:
        value - The endHashRangeKey to set.
        Returns:
        This builder for chaining.
      • clearEndHashRangeKey

        public Shard.Builder clearEndHashRangeKey()
        string endHashRangeKey = 4;
        Returns:
        This builder for chaining.
      • setEndHashRangeKeyBytes

        public Shard.Builder setEndHashRangeKeyBytes​(com.google.protobuf.ByteString value)
        string endHashRangeKey = 4;
        Parameters:
        value - The bytes for endHashRangeKey to set.
        Returns:
        This builder for chaining.
      • getEpoch

        public long getEpoch()
        uint64 epoch = 5;
        Specified by:
        getEpoch in interface ShardOrBuilder
        Returns:
        The epoch.
      • setEpoch

        public Shard.Builder setEpoch​(long value)
        uint64 epoch = 5;
        Parameters:
        value - The epoch to set.
        Returns:
        This builder for chaining.
      • clearEpoch

        public Shard.Builder clearEpoch()
        uint64 epoch = 5;
        Returns:
        This builder for chaining.
      • getIsActive

        public boolean getIsActive()
        bool isActive = 6;
        Specified by:
        getIsActive in interface ShardOrBuilder
        Returns:
        The isActive.
      • setIsActive

        public Shard.Builder setIsActive​(boolean value)
        bool isActive = 6;
        Parameters:
        value - The isActive to set.
        Returns:
        This builder for chaining.
      • clearIsActive

        public Shard.Builder clearIsActive()
        bool isActive = 6;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Shard.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<Shard.Builder>
      • mergeUnknownFields

        public final Shard.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<Shard.Builder>