Class 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, java.lang.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 Detail

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

        public Resources.Entry.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder>
      • setField

        public Resources.Entry.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder>
      • clearField

        public Resources.Entry.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder>
      • clearOneof

        public Resources.Entry.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder>
      • setRepeatedField

        public Resources.Entry.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.Builder>
      • addRepeatedField

        public Resources.Entry.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Resources.Entry.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>
      • 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 java.io.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:
        java.io.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 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.
      • setName

        public Resources.Entry.Builder setName​(java.lang.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.
      • 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;
      • 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;
      • 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.
      • 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;
      • 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
      • 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​(java.lang.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;
      • 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 java.util.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.
      • 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;
      • 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>