Class Resources.Entry

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.android.aapt.Resources.Entry
All Implemented Interfaces:
Resources.EntryOrBuilder, 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.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:
  • Field Details

    • ENTRY_ID_FIELD_NUMBER

      public static final int ENTRY_ID_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • VISIBILITY_FIELD_NUMBER

      public static final int VISIBILITY_FIELD_NUMBER
      See Also:
    • ALLOW_NEW_FIELD_NUMBER

      public static final int ALLOW_NEW_FIELD_NUMBER
      See Also:
    • OVERLAYABLE_ITEM_FIELD_NUMBER

      public static final int OVERLAYABLE_ITEM_FIELD_NUMBER
      See Also:
    • CONFIG_VALUE_FIELD_NUMBER

      public static final int CONFIG_VALUE_FIELD_NUMBER
      See Also:
    • STAGED_ID_FIELD_NUMBER

      public static final int STAGED_ID_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
    • 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 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.
    • getVisibility

      public Resources.Visibility getVisibility()
       The visibility of this entry (public, private, undefined).
       
      .aapt.pb.Visibility visibility = 3;
      Specified by:
      getVisibility in interface Resources.EntryOrBuilder
      Returns:
      The visibility.
    • getVisibilityOrBuilder

      public Resources.VisibilityOrBuilder getVisibilityOrBuilder()
       The visibility of this entry (public, private, undefined).
       
      .aapt.pb.Visibility visibility = 3;
      Specified by:
      getVisibilityOrBuilder in interface Resources.EntryOrBuilder
    • 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.
    • getAllowNewOrBuilder

      public Resources.AllowNewOrBuilder getAllowNewOrBuilder()
       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:
      getAllowNewOrBuilder in interface Resources.EntryOrBuilder
    • 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.
    • getOverlayableItem

      public Resources.OverlayableItem getOverlayableItem()
       Whether this resource can be overlaid by a runtime resource overlay (RRO).
       
      .aapt.pb.OverlayableItem overlayable_item = 5;
      Specified by:
      getOverlayableItem in interface Resources.EntryOrBuilder
      Returns:
      The overlayableItem.
    • getOverlayableItemOrBuilder

      public Resources.OverlayableItemOrBuilder getOverlayableItemOrBuilder()
       Whether this resource can be overlaid by a runtime resource overlay (RRO).
       
      .aapt.pb.OverlayableItem overlayable_item = 5;
      Specified by:
      getOverlayableItemOrBuilder in interface Resources.EntryOrBuilder
    • getConfigValueList

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

      public List<? extends Resources.ConfigValueOrBuilder> getConfigValueOrBuilderList()
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
      Specified by:
      getConfigValueOrBuilderList in interface Resources.EntryOrBuilder
    • 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
    • getConfigValue

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

      public Resources.ConfigValueOrBuilder getConfigValueOrBuilder(int index)
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
      Specified by:
      getConfigValueOrBuilder 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.
    • getStagedId

      public Resources.StagedId getStagedId()
       The staged resource ID of this finalized resource.
       
      .aapt.pb.StagedId staged_id = 7;
      Specified by:
      getStagedId in interface Resources.EntryOrBuilder
      Returns:
      The stagedId.
    • getStagedIdOrBuilder

      public Resources.StagedIdOrBuilder getStagedIdOrBuilder()
       The staged resource ID of this finalized resource.
       
      .aapt.pb.StagedId staged_id = 7;
      Specified by:
      getStagedIdOrBuilder in interface Resources.EntryOrBuilder
    • 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.Entry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Resources.Entry parseFrom(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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

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

      public static Resources.Entry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      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
    • newBuilder

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

      public static Resources.Entry.Builder newBuilder(Resources.Entry prototype)
    • 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
    • getDefaultInstance

      public static Resources.Entry getDefaultInstance()
    • 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