Class NcStreamProto.Attribute.Builder

    • 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<NcStreamProto.Attribute.Builder>
      • clear

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

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

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

        public NcStreamProto.Attribute buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public NcStreamProto.Attribute.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<NcStreamProto.Attribute.Builder>
        Throws:
        IOException
      • setNameBytes

        public NcStreamProto.Attribute.Builder setNameBytes​(com.google.protobuf.ByteString value)
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • setTypeValue

        public NcStreamProto.Attribute.Builder setTypeValue​(int value)
         < 5.0
         
        .Attribute.Type type = 2;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setLen

        public NcStreamProto.Attribute.Builder setLen​(int value)
        uint32 len = 3;
        Parameters:
        value - The len to set.
        Returns:
        This builder for chaining.
      • getData

        public com.google.protobuf.ByteString getData()
         not needed if len == 0, Attribute with name but no value
         
        bytes data = 4;
        Specified by:
        getData in interface NcStreamProto.AttributeOrBuilder
        Returns:
        The data.
      • setData

        public NcStreamProto.Attribute.Builder setData​(com.google.protobuf.ByteString value)
         not needed if len == 0, Attribute with name but no value
         
        bytes data = 4;
        Parameters:
        value - The data to set.
        Returns:
        This builder for chaining.
      • clearData

        public NcStreamProto.Attribute.Builder clearData()
         not needed if len == 0, Attribute with name but no value
         
        bytes data = 4;
        Returns:
        This builder for chaining.
      • getSdataList

        public com.google.protobuf.ProtocolStringList getSdataList()
         used for string data
         
        repeated string sdata = 5;
        Specified by:
        getSdataList in interface NcStreamProto.AttributeOrBuilder
        Returns:
        A list containing the sdata.
      • getSdata

        public String getSdata​(int index)
         used for string data
         
        repeated string sdata = 5;
        Specified by:
        getSdata in interface NcStreamProto.AttributeOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The sdata at the given index.
      • getSdataBytes

        public com.google.protobuf.ByteString getSdataBytes​(int index)
         used for string data
         
        repeated string sdata = 5;
        Specified by:
        getSdataBytes in interface NcStreamProto.AttributeOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the sdata at the given index.
      • setSdata

        public NcStreamProto.Attribute.Builder setSdata​(int index,
                                                        String value)
         used for string data
         
        repeated string sdata = 5;
        Parameters:
        index - The index to set the value at.
        value - The sdata to set.
        Returns:
        This builder for chaining.
      • addSdata

        public NcStreamProto.Attribute.Builder addSdata​(String value)
         used for string data
         
        repeated string sdata = 5;
        Parameters:
        value - The sdata to add.
        Returns:
        This builder for chaining.
      • addSdataBytes

        public NcStreamProto.Attribute.Builder addSdataBytes​(com.google.protobuf.ByteString value)
         used for string data
         
        repeated string sdata = 5;
        Parameters:
        value - The bytes of the sdata to add.
        Returns:
        This builder for chaining.
      • setUnsigned

        public NcStreamProto.Attribute.Builder setUnsigned​(boolean value)
         not used
         
        bool unsigned = 6;
        Parameters:
        value - The unsigned to set.
        Returns:
        This builder for chaining.
      • getDataTypeValue

        public int getDataTypeValue()
         5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
         
        .DataType dataType = 7;
        Specified by:
        getDataTypeValue in interface NcStreamProto.AttributeOrBuilder
        Returns:
        The enum numeric value on the wire for dataType.
      • setDataTypeValue

        public NcStreamProto.Attribute.Builder setDataTypeValue​(int value)
         5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
         
        .DataType dataType = 7;
        Parameters:
        value - The enum numeric value on the wire for dataType to set.
        Returns:
        This builder for chaining.
      • setDataType

        public NcStreamProto.Attribute.Builder setDataType​(NcStreamProto.DataType value)
         5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
         
        .DataType dataType = 7;
        Parameters:
        value - The dataType to set.
        Returns:
        This builder for chaining.
      • clearDataType

        public NcStreamProto.Attribute.Builder clearDataType()
         5.0: cant use STRUCTURE or SEQUENCE or OPAQUE or ENUM; CHAR deprecated, use STRING
         
        .DataType dataType = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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