Class Resources.Attribute.Builder

  • All Implemented Interfaces:
    Resources.AttributeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    Resources.Attribute

    public static final class Resources.Attribute.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
    implements Resources.AttributeOrBuilder
     A value that represents an XML attribute and what values it accepts.
     
    Protobuf type aapt.pb.Attribute
    • 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<Resources.Attribute.Builder>
      • clear

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

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

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

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

        public Resources.Attribute.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
      • setField

        public Resources.Attribute.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
      • clearField

        public Resources.Attribute.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
      • clearOneof

        public Resources.Attribute.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
      • setRepeatedField

        public Resources.Attribute.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            int index,
                                                            java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
      • addRepeatedField

        public Resources.Attribute.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                            java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
      • mergeFrom

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

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

        public Resources.Attribute.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.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<Resources.Attribute.Builder>
        Throws:
        java.io.IOException
      • getFormatFlags

        public int getFormatFlags()
         A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
         enum FormatFlags.
         
        uint32 format_flags = 1;
        Specified by:
        getFormatFlags in interface Resources.AttributeOrBuilder
        Returns:
        The formatFlags.
      • setFormatFlags

        public Resources.Attribute.Builder setFormatFlags​(int value)
         A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
         enum FormatFlags.
         
        uint32 format_flags = 1;
        Parameters:
        value - The formatFlags to set.
        Returns:
        This builder for chaining.
      • clearFormatFlags

        public Resources.Attribute.Builder clearFormatFlags()
         A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
         enum FormatFlags.
         
        uint32 format_flags = 1;
        Returns:
        This builder for chaining.
      • getMinInt

        public int getMinInt()
         The smallest integer allowed for this XML attribute. Only makes sense if the format includes
         FormatFlags::INTEGER.
         
        int32 min_int = 2;
        Specified by:
        getMinInt in interface Resources.AttributeOrBuilder
        Returns:
        The minInt.
      • setMinInt

        public Resources.Attribute.Builder setMinInt​(int value)
         The smallest integer allowed for this XML attribute. Only makes sense if the format includes
         FormatFlags::INTEGER.
         
        int32 min_int = 2;
        Parameters:
        value - The minInt to set.
        Returns:
        This builder for chaining.
      • clearMinInt

        public Resources.Attribute.Builder clearMinInt()
         The smallest integer allowed for this XML attribute. Only makes sense if the format includes
         FormatFlags::INTEGER.
         
        int32 min_int = 2;
        Returns:
        This builder for chaining.
      • getMaxInt

        public int getMaxInt()
         The largest integer allowed for this XML attribute. Only makes sense if the format includes
         FormatFlags::INTEGER.
         
        int32 max_int = 3;
        Specified by:
        getMaxInt in interface Resources.AttributeOrBuilder
        Returns:
        The maxInt.
      • setMaxInt

        public Resources.Attribute.Builder setMaxInt​(int value)
         The largest integer allowed for this XML attribute. Only makes sense if the format includes
         FormatFlags::INTEGER.
         
        int32 max_int = 3;
        Parameters:
        value - The maxInt to set.
        Returns:
        This builder for chaining.
      • clearMaxInt

        public Resources.Attribute.Builder clearMaxInt()
         The largest integer allowed for this XML attribute. Only makes sense if the format includes
         FormatFlags::INTEGER.
         
        int32 max_int = 3;
        Returns:
        This builder for chaining.
      • getSymbolList

        public java.util.List<Resources.Attribute.Symbol> getSymbolList()
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
        Specified by:
        getSymbolList in interface Resources.AttributeOrBuilder
      • getSymbolCount

        public int getSymbolCount()
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
        Specified by:
        getSymbolCount in interface Resources.AttributeOrBuilder
      • getSymbol

        public Resources.Attribute.Symbol getSymbol​(int index)
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
        Specified by:
        getSymbol in interface Resources.AttributeOrBuilder
      • setSymbol

        public Resources.Attribute.Builder setSymbol​(int index,
                                                     Resources.Attribute.Symbol value)
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
      • setSymbol

        public Resources.Attribute.Builder setSymbol​(int index,
                                                     Resources.Attribute.Symbol.Builder builderForValue)
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
      • addSymbol

        public Resources.Attribute.Builder addSymbol​(Resources.Attribute.Symbol value)
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
      • addSymbol

        public Resources.Attribute.Builder addSymbol​(int index,
                                                     Resources.Attribute.Symbol value)
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
      • addSymbol

        public Resources.Attribute.Builder addSymbol​(Resources.Attribute.Symbol.Builder builderForValue)
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
      • addSymbol

        public Resources.Attribute.Builder addSymbol​(int index,
                                                     Resources.Attribute.Symbol.Builder builderForValue)
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
      • addAllSymbol

        public Resources.Attribute.Builder addAllSymbol​(java.lang.Iterable<? extends Resources.Attribute.Symbol> values)
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
      • clearSymbol

        public Resources.Attribute.Builder clearSymbol()
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
      • removeSymbol

        public Resources.Attribute.Builder removeSymbol​(int index)
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
      • getSymbolBuilder

        public Resources.Attribute.Symbol.Builder getSymbolBuilder​(int index)
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
      • addSymbolBuilder

        public Resources.Attribute.Symbol.Builder addSymbolBuilder()
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
      • addSymbolBuilder

        public Resources.Attribute.Symbol.Builder addSymbolBuilder​(int index)
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
      • getSymbolBuilderList

        public java.util.List<Resources.Attribute.Symbol.Builder> getSymbolBuilderList()
         The set of enums/flags defined in this attribute. Only makes sense if the format includes
         either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
         
        repeated .aapt.pb.Attribute.Symbol symbol = 4;
      • setUnknownFields

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

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