Class Stream.Builder

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

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

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

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

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

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

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

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

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

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

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

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

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

        public int getReplicationFactor()
        uint32 replicationFactor = 2;
        Specified by:
        getReplicationFactor in interface StreamOrBuilder
        Returns:
        The replicationFactor.
      • setReplicationFactor

        public Stream.Builder setReplicationFactor​(int value)
        uint32 replicationFactor = 2;
        Parameters:
        value - The replicationFactor to set.
        Returns:
        This builder for chaining.
      • clearReplicationFactor

        public Stream.Builder clearReplicationFactor()
        uint32 replicationFactor = 2;
        Returns:
        This builder for chaining.
      • getBacklogDuration

        public int getBacklogDuration()
        uint32 backlogDuration = 3;
        Specified by:
        getBacklogDuration in interface StreamOrBuilder
        Returns:
        The backlogDuration.
      • setBacklogDuration

        public Stream.Builder setBacklogDuration​(int value)
        uint32 backlogDuration = 3;
        Parameters:
        value - The backlogDuration to set.
        Returns:
        This builder for chaining.
      • clearBacklogDuration

        public Stream.Builder clearBacklogDuration()
        uint32 backlogDuration = 3;
        Returns:
        This builder for chaining.
      • getShardCount

        public int getShardCount()
        uint32 shardCount = 4;
        Specified by:
        getShardCount in interface StreamOrBuilder
        Returns:
        The shardCount.
      • setShardCount

        public Stream.Builder setShardCount​(int value)
        uint32 shardCount = 4;
        Parameters:
        value - The shardCount to set.
        Returns:
        This builder for chaining.
      • clearShardCount

        public Stream.Builder clearShardCount()
        uint32 shardCount = 4;
        Returns:
        This builder for chaining.
      • hasCreationTime

        public boolean hasCreationTime()
        .google.protobuf.Timestamp creationTime = 5;
        Specified by:
        hasCreationTime in interface StreamOrBuilder
        Returns:
        Whether the creationTime field is set.
      • getCreationTime

        public com.google.protobuf.Timestamp getCreationTime()
        .google.protobuf.Timestamp creationTime = 5;
        Specified by:
        getCreationTime in interface StreamOrBuilder
        Returns:
        The creationTime.
      • setCreationTime

        public Stream.Builder setCreationTime​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp creationTime = 5;
      • setCreationTime

        public Stream.Builder setCreationTime​(com.google.protobuf.Timestamp.Builder builderForValue)
        .google.protobuf.Timestamp creationTime = 5;
      • mergeCreationTime

        public Stream.Builder mergeCreationTime​(com.google.protobuf.Timestamp value)
        .google.protobuf.Timestamp creationTime = 5;
      • clearCreationTime

        public Stream.Builder clearCreationTime()
        .google.protobuf.Timestamp creationTime = 5;
      • getCreationTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder()
        .google.protobuf.Timestamp creationTime = 5;
      • getCreationTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder()
        .google.protobuf.Timestamp creationTime = 5;
        Specified by:
        getCreationTimeOrBuilder in interface StreamOrBuilder
      • setUnknownFields

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

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