Class Resources.Entry.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder>
com.android.aapt.Resources.Entry.Builder
All Implemented Interfaces:
Resources.EntryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Resources.Entry

public static final class Resources.Entry.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder> 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
  • 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.Entry.Builder>
    • clear

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

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

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

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

      public Resources.Entry.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.Entry.Builder>
    • mergeFrom

      public Resources.Entry.Builder mergeFrom(Resources.Entry other)
    • isInitialized

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

      public Resources.Entry.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.Entry.Builder>
      Throws:
      IOException
    • 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.
    • setEntryId

      public Resources.Entry.Builder setEntryId(Resources.EntryId value)
       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;
    • setEntryId

      public Resources.Entry.Builder setEntryId(Resources.EntryId.Builder builderForValue)
       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;
    • mergeEntryId

      public Resources.Entry.Builder mergeEntryId(Resources.EntryId value)
       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;
    • clearEntryId

      public Resources.Entry.Builder clearEntryId()
       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;
    • getEntryIdBuilder

      public Resources.EntryId.Builder getEntryIdBuilder()
       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;
    • 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.
    • setName

      public Resources.Entry.Builder setName(String value)
       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;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Resources.Entry.Builder clearName()
       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;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Resources.Entry.Builder setNameBytes(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setVisibility

      public Resources.Entry.Builder setVisibility(Resources.Visibility value)
       The visibility of this entry (public, private, undefined).
       
      .aapt.pb.Visibility visibility = 3;
    • setVisibility

      public Resources.Entry.Builder setVisibility(Resources.Visibility.Builder builderForValue)
       The visibility of this entry (public, private, undefined).
       
      .aapt.pb.Visibility visibility = 3;
    • mergeVisibility

      public Resources.Entry.Builder mergeVisibility(Resources.Visibility value)
       The visibility of this entry (public, private, undefined).
       
      .aapt.pb.Visibility visibility = 3;
    • clearVisibility

      public Resources.Entry.Builder clearVisibility()
       The visibility of this entry (public, private, undefined).
       
      .aapt.pb.Visibility visibility = 3;
    • getVisibilityBuilder

      public Resources.Visibility.Builder getVisibilityBuilder()
       The visibility of this entry (public, private, undefined).
       
      .aapt.pb.Visibility visibility = 3;
    • 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.
    • setAllowNew

      public Resources.Entry.Builder setAllowNew(Resources.AllowNew value)
       Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
       any existing resources.
       
      .aapt.pb.AllowNew allow_new = 4;
    • setAllowNew

      public Resources.Entry.Builder setAllowNew(Resources.AllowNew.Builder builderForValue)
       Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
       any existing resources.
       
      .aapt.pb.AllowNew allow_new = 4;
    • mergeAllowNew

      public Resources.Entry.Builder mergeAllowNew(Resources.AllowNew value)
       Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
       any existing resources.
       
      .aapt.pb.AllowNew allow_new = 4;
    • clearAllowNew

      public Resources.Entry.Builder clearAllowNew()
       Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
       any existing resources.
       
      .aapt.pb.AllowNew allow_new = 4;
    • getAllowNewBuilder

      public Resources.AllowNew.Builder getAllowNewBuilder()
       Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
       any existing resources.
       
      .aapt.pb.AllowNew allow_new = 4;
    • 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.
    • setOverlayableItem

      public Resources.Entry.Builder setOverlayableItem(Resources.OverlayableItem value)
       Whether this resource can be overlaid by a runtime resource overlay (RRO).
       
      .aapt.pb.OverlayableItem overlayable_item = 5;
    • setOverlayableItem

      public Resources.Entry.Builder setOverlayableItem(Resources.OverlayableItem.Builder builderForValue)
       Whether this resource can be overlaid by a runtime resource overlay (RRO).
       
      .aapt.pb.OverlayableItem overlayable_item = 5;
    • mergeOverlayableItem

      public Resources.Entry.Builder mergeOverlayableItem(Resources.OverlayableItem value)
       Whether this resource can be overlaid by a runtime resource overlay (RRO).
       
      .aapt.pb.OverlayableItem overlayable_item = 5;
    • clearOverlayableItem

      public Resources.Entry.Builder clearOverlayableItem()
       Whether this resource can be overlaid by a runtime resource overlay (RRO).
       
      .aapt.pb.OverlayableItem overlayable_item = 5;
    • getOverlayableItemBuilder

      public Resources.OverlayableItem.Builder getOverlayableItemBuilder()
       Whether this resource can be overlaid by a runtime resource overlay (RRO).
       
      .aapt.pb.OverlayableItem overlayable_item = 5;
    • 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
    • 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
    • setConfigValue

      public Resources.Entry.Builder setConfigValue(int index, Resources.ConfigValue value)
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
    • setConfigValue

      public Resources.Entry.Builder setConfigValue(int index, Resources.ConfigValue.Builder builderForValue)
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
    • addConfigValue

      public Resources.Entry.Builder addConfigValue(Resources.ConfigValue value)
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
    • addConfigValue

      public Resources.Entry.Builder addConfigValue(int index, Resources.ConfigValue value)
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
    • addConfigValue

      public Resources.Entry.Builder addConfigValue(Resources.ConfigValue.Builder builderForValue)
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
    • addConfigValue

      public Resources.Entry.Builder addConfigValue(int index, Resources.ConfigValue.Builder builderForValue)
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
    • addAllConfigValue

      public Resources.Entry.Builder addAllConfigValue(Iterable<? extends Resources.ConfigValue> values)
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
    • clearConfigValue

      public Resources.Entry.Builder clearConfigValue()
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
    • removeConfigValue

      public Resources.Entry.Builder removeConfigValue(int index)
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
    • getConfigValueBuilder

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

      public Resources.ConfigValue.Builder addConfigValueBuilder()
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
    • addConfigValueBuilder

      public Resources.ConfigValue.Builder addConfigValueBuilder(int index)
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
    • getConfigValueBuilderList

      public List<Resources.ConfigValue.Builder> getConfigValueBuilderList()
       The set of values defined for this entry, each corresponding to a different
       configuration/variant.
       
      repeated .aapt.pb.ConfigValue config_value = 6;
    • 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.
    • setStagedId

      public Resources.Entry.Builder setStagedId(Resources.StagedId value)
       The staged resource ID of this finalized resource.
       
      .aapt.pb.StagedId staged_id = 7;
    • setStagedId

      public Resources.Entry.Builder setStagedId(Resources.StagedId.Builder builderForValue)
       The staged resource ID of this finalized resource.
       
      .aapt.pb.StagedId staged_id = 7;
    • mergeStagedId

      public Resources.Entry.Builder mergeStagedId(Resources.StagedId value)
       The staged resource ID of this finalized resource.
       
      .aapt.pb.StagedId staged_id = 7;
    • clearStagedId

      public Resources.Entry.Builder clearStagedId()
       The staged resource ID of this finalized resource.
       
      .aapt.pb.StagedId staged_id = 7;
    • getStagedIdBuilder

      public Resources.StagedId.Builder getStagedIdBuilder()
       The staged resource ID of this finalized resource.
       
      .aapt.pb.StagedId staged_id = 7;
    • 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
    • setUnknownFields

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

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