Class Resources.Attribute.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Resources.Attribute.Builder>
com.android.aapt.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, 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 Details

    • 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

      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
    • 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>
    • mergeFrom

    • 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 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:
      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 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

       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

       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(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;
    • getSymbolOrBuilder

      public Resources.Attribute.SymbolOrBuilder getSymbolOrBuilder(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:
      getSymbolOrBuilder in interface Resources.AttributeOrBuilder
    • getSymbolOrBuilderList

      public List<? extends Resources.Attribute.SymbolOrBuilder> getSymbolOrBuilderList()
       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:
      getSymbolOrBuilderList in interface Resources.AttributeOrBuilder
    • 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 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>