Class HStreamRecordHeader.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<HStreamRecordHeader.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<HStreamRecordHeader.Builder>
      • internalGetFieldAccessorTable

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

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

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

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

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

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

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

        public HStreamRecordHeader.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<HStreamRecordHeader.Builder>
        Throws:
        IOException
      • getFlagValue

        public int getFlagValue()
        .hstream.server.HStreamRecordHeader.Flag flag = 1;
        Specified by:
        getFlagValue in interface HStreamRecordHeaderOrBuilder
        Returns:
        The enum numeric value on the wire for flag.
      • setFlagValue

        public HStreamRecordHeader.Builder setFlagValue​(int value)
        .hstream.server.HStreamRecordHeader.Flag flag = 1;
        Parameters:
        value - The enum numeric value on the wire for flag to set.
        Returns:
        This builder for chaining.
      • clearFlag

        public HStreamRecordHeader.Builder clearFlag()
        .hstream.server.HStreamRecordHeader.Flag flag = 1;
        Returns:
        This builder for chaining.
      • removeAttributes

        public HStreamRecordHeader.Builder removeAttributes​(String key)
         Optional.
         Attributes attached to this record.
         
        map<string, string> attributes = 2;
      • getMutableAttributes

        @Deprecated
        public Map<String,​String> getMutableAttributes()
        Deprecated.
        Use alternate mutation accessors instead.
      • getKeyBytes

        public com.google.protobuf.ByteString getKeyBytes()
         Optional.
         key for the message.
         
        string key = 3;
        Specified by:
        getKeyBytes in interface HStreamRecordHeaderOrBuilder
        Returns:
        The bytes for key.
      • setKey

        public HStreamRecordHeader.Builder setKey​(String value)
         Optional.
         key for the message.
         
        string key = 3;
        Parameters:
        value - The key to set.
        Returns:
        This builder for chaining.
      • clearKey

        public HStreamRecordHeader.Builder clearKey()
         Optional.
         key for the message.
         
        string key = 3;
        Returns:
        This builder for chaining.
      • setKeyBytes

        public HStreamRecordHeader.Builder setKeyBytes​(com.google.protobuf.ByteString value)
         Optional.
         key for the message.
         
        string key = 3;
        Parameters:
        value - The bytes for key to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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