Class Resources.Entry

  • All Implemented Interfaces:
    Resources.EntryOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.io.Serializable
    Enclosing class:
    Resources

    public static final class Resources.Entry
    extends com.google.protobuf.GeneratedMessageV3
    implements Resources.EntryOrBuilder
     An entry declaration. An entry has a full resource ID that is the combination of package ID,
     type ID, and its own entry ID. An entry on its own has no value, but values are defined for
     various configurations/variants.
     
    Protobuf type aapt.pb.Entry
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected java.lang.Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getUnknownFields

        public final com.google.protobuf.UnknownFieldSet getUnknownFields()
        Specified by:
        getUnknownFields in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getUnknownFields 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
      • hasEntryId

        public boolean hasEntryId()
         The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
         of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
         ID.
         This may not be set if no ID was assigned.
         
        .aapt.pb.EntryId entry_id = 1;
        Specified by:
        hasEntryId in interface Resources.EntryOrBuilder
        Returns:
        Whether the entryId field is set.
      • getEntryId

        public Resources.EntryId getEntryId()
         The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
         of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
         ID.
         This may not be set if no ID was assigned.
         
        .aapt.pb.EntryId entry_id = 1;
        Specified by:
        getEntryId in interface Resources.EntryOrBuilder
        Returns:
        The entryId.
      • getEntryIdOrBuilder

        public Resources.EntryIdOrBuilder getEntryIdOrBuilder()
         The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
         of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
         ID.
         This may not be set if no ID was assigned.
         
        .aapt.pb.EntryId entry_id = 1;
        Specified by:
        getEntryIdOrBuilder in interface Resources.EntryOrBuilder
      • getName

        public java.lang.String getName()
         The name of this entry. This corresponds to the 'entry' part of a full resource name of the
         form package:type/entry.
         
        string name = 2;
        Specified by:
        getName in interface Resources.EntryOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of this entry. This corresponds to the 'entry' part of a full resource name of the
         form package:type/entry.
         
        string name = 2;
        Specified by:
        getNameBytes in interface Resources.EntryOrBuilder
        Returns:
        The bytes for name.
      • hasVisibility

        public boolean hasVisibility()
         The visibility of this entry (public, private, undefined).
         
        .aapt.pb.Visibility visibility = 3;
        Specified by:
        hasVisibility in interface Resources.EntryOrBuilder
        Returns:
        Whether the visibility field is set.
      • hasAllowNew

        public boolean hasAllowNew()
         Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
         any existing resources.
         
        .aapt.pb.AllowNew allow_new = 4;
        Specified by:
        hasAllowNew in interface Resources.EntryOrBuilder
        Returns:
        Whether the allowNew field is set.
      • getAllowNew

        public Resources.AllowNew getAllowNew()
         Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
         any existing resources.
         
        .aapt.pb.AllowNew allow_new = 4;
        Specified by:
        getAllowNew in interface Resources.EntryOrBuilder
        Returns:
        The allowNew.
      • hasOverlayableItem

        public boolean hasOverlayableItem()
         Whether this resource can be overlaid by a runtime resource overlay (RRO).
         
        .aapt.pb.OverlayableItem overlayable_item = 5;
        Specified by:
        hasOverlayableItem in interface Resources.EntryOrBuilder
        Returns:
        Whether the overlayableItem field is set.
      • getConfigValueCount

        public int getConfigValueCount()
         The set of values defined for this entry, each corresponding to a different
         configuration/variant.
         
        repeated .aapt.pb.ConfigValue config_value = 6;
        Specified by:
        getConfigValueCount in interface Resources.EntryOrBuilder
      • hasStagedId

        public boolean hasStagedId()
         The staged resource ID of this finalized resource.
         
        .aapt.pb.StagedId staged_id = 7;
        Specified by:
        hasStagedId in interface Resources.EntryOrBuilder
        Returns:
        Whether the stagedId field is set.
      • 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 java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        java.io.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​(java.lang.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.Entry parseFrom​(java.nio.ByteBuffer data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

        public static Resources.Entry 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.Entry parseFrom​(byte[] data)
                                         throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

        public static Resources.Entry parseFrom​(java.io.InputStream input)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

        public static Resources.Entry parseDelimitedFrom​(java.io.InputStream input)
                                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

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

        public static Resources.Entry parseFrom​(com.google.protobuf.CodedInputStream input)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

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

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

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

        protected Resources.Entry.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • parser

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

        public com.google.protobuf.Parser<Resources.Entry> 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.Entry getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder