Class Resources.XmlElement

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.android.aapt.Resources.XmlElement
All Implemented Interfaces:
Resources.XmlElementOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Resources

public static final class Resources.XmlElement extends com.google.protobuf.GeneratedMessageV3 implements Resources.XmlElementOrBuilder
 An <element> in an XML document.
 
Protobuf type aapt.pb.XmlElement
See Also:
  • Field Details

    • NAMESPACE_DECLARATION_FIELD_NUMBER

      public static final int NAMESPACE_DECLARATION_FIELD_NUMBER
      See Also:
    • NAMESPACE_URI_FIELD_NUMBER

      public static final int NAMESPACE_URI_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • ATTRIBUTE_FIELD_NUMBER

      public static final int ATTRIBUTE_FIELD_NUMBER
      See Also:
    • CHILD_FIELD_NUMBER

      public static final int CHILD_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • getNamespaceDeclarationList

      public List<Resources.XmlNamespace> getNamespaceDeclarationList()
       Namespaces defined on this element.
       
      repeated .aapt.pb.XmlNamespace namespace_declaration = 1;
      Specified by:
      getNamespaceDeclarationList in interface Resources.XmlElementOrBuilder
    • getNamespaceDeclarationOrBuilderList

      public List<? extends Resources.XmlNamespaceOrBuilder> getNamespaceDeclarationOrBuilderList()
       Namespaces defined on this element.
       
      repeated .aapt.pb.XmlNamespace namespace_declaration = 1;
      Specified by:
      getNamespaceDeclarationOrBuilderList in interface Resources.XmlElementOrBuilder
    • getNamespaceDeclarationCount

      public int getNamespaceDeclarationCount()
       Namespaces defined on this element.
       
      repeated .aapt.pb.XmlNamespace namespace_declaration = 1;
      Specified by:
      getNamespaceDeclarationCount in interface Resources.XmlElementOrBuilder
    • getNamespaceDeclaration

      public Resources.XmlNamespace getNamespaceDeclaration(int index)
       Namespaces defined on this element.
       
      repeated .aapt.pb.XmlNamespace namespace_declaration = 1;
      Specified by:
      getNamespaceDeclaration in interface Resources.XmlElementOrBuilder
    • getNamespaceDeclarationOrBuilder

      public Resources.XmlNamespaceOrBuilder getNamespaceDeclarationOrBuilder(int index)
       Namespaces defined on this element.
       
      repeated .aapt.pb.XmlNamespace namespace_declaration = 1;
      Specified by:
      getNamespaceDeclarationOrBuilder in interface Resources.XmlElementOrBuilder
    • getNamespaceUri

      public String getNamespaceUri()
       The namespace URI of this element.
       
      string namespace_uri = 2;
      Specified by:
      getNamespaceUri in interface Resources.XmlElementOrBuilder
      Returns:
      The namespaceUri.
    • getNamespaceUriBytes

      public com.google.protobuf.ByteString getNamespaceUriBytes()
       The namespace URI of this element.
       
      string namespace_uri = 2;
      Specified by:
      getNamespaceUriBytes in interface Resources.XmlElementOrBuilder
      Returns:
      The bytes for namespaceUri.
    • getName

      public String getName()
       The name of this element.
       
      string name = 3;
      Specified by:
      getName in interface Resources.XmlElementOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of this element.
       
      string name = 3;
      Specified by:
      getNameBytes in interface Resources.XmlElementOrBuilder
      Returns:
      The bytes for name.
    • getAttributeList

      public List<Resources.XmlAttribute> getAttributeList()
       The attributes of this element.
       
      repeated .aapt.pb.XmlAttribute attribute = 4;
      Specified by:
      getAttributeList in interface Resources.XmlElementOrBuilder
    • getAttributeOrBuilderList

      public List<? extends Resources.XmlAttributeOrBuilder> getAttributeOrBuilderList()
       The attributes of this element.
       
      repeated .aapt.pb.XmlAttribute attribute = 4;
      Specified by:
      getAttributeOrBuilderList in interface Resources.XmlElementOrBuilder
    • getAttributeCount

      public int getAttributeCount()
       The attributes of this element.
       
      repeated .aapt.pb.XmlAttribute attribute = 4;
      Specified by:
      getAttributeCount in interface Resources.XmlElementOrBuilder
    • getAttribute

      public Resources.XmlAttribute getAttribute(int index)
       The attributes of this element.
       
      repeated .aapt.pb.XmlAttribute attribute = 4;
      Specified by:
      getAttribute in interface Resources.XmlElementOrBuilder
    • getAttributeOrBuilder

      public Resources.XmlAttributeOrBuilder getAttributeOrBuilder(int index)
       The attributes of this element.
       
      repeated .aapt.pb.XmlAttribute attribute = 4;
      Specified by:
      getAttributeOrBuilder in interface Resources.XmlElementOrBuilder
    • getChildList

      public List<Resources.XmlNode> getChildList()
       The children of this element.
       
      repeated .aapt.pb.XmlNode child = 5;
      Specified by:
      getChildList in interface Resources.XmlElementOrBuilder
    • getChildOrBuilderList

      public List<? extends Resources.XmlNodeOrBuilder> getChildOrBuilderList()
       The children of this element.
       
      repeated .aapt.pb.XmlNode child = 5;
      Specified by:
      getChildOrBuilderList in interface Resources.XmlElementOrBuilder
    • getChildCount

      public int getChildCount()
       The children of this element.
       
      repeated .aapt.pb.XmlNode child = 5;
      Specified by:
      getChildCount in interface Resources.XmlElementOrBuilder
    • getChild

      public Resources.XmlNode getChild(int index)
       The children of this element.
       
      repeated .aapt.pb.XmlNode child = 5;
      Specified by:
      getChild in interface Resources.XmlElementOrBuilder
    • getChildOrBuilder

      public Resources.XmlNodeOrBuilder getChildOrBuilder(int index)
       The children of this element.
       
      repeated .aapt.pb.XmlNode child = 5;
      Specified by:
      getChildOrBuilder in interface Resources.XmlElementOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Resources.XmlElement parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resources.XmlElement parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resources.XmlElement parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resources.XmlElement parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resources.XmlElement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resources.XmlElement parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resources.XmlElement parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Resources.XmlElement parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Resources.XmlElement parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Resources.XmlElement parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Resources.XmlElement parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Resources.XmlElement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Resources.XmlElement.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Resources.XmlElement.Builder newBuilder()
    • newBuilder

      public static Resources.XmlElement.Builder newBuilder(Resources.XmlElement prototype)
    • toBuilder

      public Resources.XmlElement.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Resources.XmlElement.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Resources.XmlElement getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Resources.XmlElement> parser()
    • getParserForType

      public com.google.protobuf.Parser<Resources.XmlElement> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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