Class Subscription.Builder

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

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

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

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

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

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

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

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

        public Subscription.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<Subscription.Builder>
        Throws:
        IOException
      • getSubscriptionIdBytes

        public com.google.protobuf.ByteString getSubscriptionIdBytes()
        string subscriptionId = 1;
        Specified by:
        getSubscriptionIdBytes in interface SubscriptionOrBuilder
        Returns:
        The bytes for subscriptionId.
      • setSubscriptionId

        public Subscription.Builder setSubscriptionId​(String value)
        string subscriptionId = 1;
        Parameters:
        value - The subscriptionId to set.
        Returns:
        This builder for chaining.
      • clearSubscriptionId

        public Subscription.Builder clearSubscriptionId()
        string subscriptionId = 1;
        Returns:
        This builder for chaining.
      • setSubscriptionIdBytes

        public Subscription.Builder setSubscriptionIdBytes​(com.google.protobuf.ByteString value)
        string subscriptionId = 1;
        Parameters:
        value - The bytes for subscriptionId to set.
        Returns:
        This builder for chaining.
      • getStreamNameBytes

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

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

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

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

        public Subscription.Builder setAckTimeoutSeconds​(int value)
        int32 ackTimeoutSeconds = 3;
        Parameters:
        value - The ackTimeoutSeconds to set.
        Returns:
        This builder for chaining.
      • clearAckTimeoutSeconds

        public Subscription.Builder clearAckTimeoutSeconds()
        int32 ackTimeoutSeconds = 3;
        Returns:
        This builder for chaining.
      • setMaxUnackedRecords

        public Subscription.Builder setMaxUnackedRecords​(int value)
        int32 maxUnackedRecords = 4;
        Parameters:
        value - The maxUnackedRecords to set.
        Returns:
        This builder for chaining.
      • clearMaxUnackedRecords

        public Subscription.Builder clearMaxUnackedRecords()
        int32 maxUnackedRecords = 4;
        Returns:
        This builder for chaining.
      • getOffsetValue

        public int getOffsetValue()
        .hstream.server.SpecialOffset offset = 5;
        Specified by:
        getOffsetValue in interface SubscriptionOrBuilder
        Returns:
        The enum numeric value on the wire for offset.
      • setOffsetValue

        public Subscription.Builder setOffsetValue​(int value)
        .hstream.server.SpecialOffset offset = 5;
        Parameters:
        value - The enum numeric value on the wire for offset to set.
        Returns:
        This builder for chaining.
      • setOffset

        public Subscription.Builder setOffset​(SpecialOffset value)
        .hstream.server.SpecialOffset offset = 5;
        Parameters:
        value - The offset to set.
        Returns:
        This builder for chaining.
      • clearOffset

        public Subscription.Builder clearOffset()
        .hstream.server.SpecialOffset offset = 5;
        Returns:
        This builder for chaining.
      • hasCreationTime

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

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

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

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

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

        public Subscription.Builder clearCreationTime()
        .google.protobuf.Timestamp creationTime = 6;
      • getCreationTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder()
        .google.protobuf.Timestamp creationTime = 6;
      • setUnknownFields

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

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