Class Resources.Package.Builder

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

public static final class Resources.Package.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.Package.Builder> implements Resources.PackageOrBuilder
 Defines resources for an Android package.
 
Protobuf type aapt.pb.Package
  • 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.Package.Builder>
    • clear

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

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

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

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

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

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

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

      public boolean hasPackageId()
       The package ID of this package, in the range [0x00, 0xff].
       - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
       - ID 0x01 is reserved for the 'android' package (framework).
       - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
       - ID 0x7f is reserved for the application package.
       - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
       This may not be set if no ID was assigned.
       
      .aapt.pb.PackageId package_id = 1;
      Specified by:
      hasPackageId in interface Resources.PackageOrBuilder
      Returns:
      Whether the packageId field is set.
    • getPackageId

      public Resources.PackageId getPackageId()
       The package ID of this package, in the range [0x00, 0xff].
       - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
       - ID 0x01 is reserved for the 'android' package (framework).
       - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
       - ID 0x7f is reserved for the application package.
       - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
       This may not be set if no ID was assigned.
       
      .aapt.pb.PackageId package_id = 1;
      Specified by:
      getPackageId in interface Resources.PackageOrBuilder
      Returns:
      The packageId.
    • setPackageId

      public Resources.Package.Builder setPackageId(Resources.PackageId value)
       The package ID of this package, in the range [0x00, 0xff].
       - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
       - ID 0x01 is reserved for the 'android' package (framework).
       - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
       - ID 0x7f is reserved for the application package.
       - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
       This may not be set if no ID was assigned.
       
      .aapt.pb.PackageId package_id = 1;
    • setPackageId

      public Resources.Package.Builder setPackageId(Resources.PackageId.Builder builderForValue)
       The package ID of this package, in the range [0x00, 0xff].
       - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
       - ID 0x01 is reserved for the 'android' package (framework).
       - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
       - ID 0x7f is reserved for the application package.
       - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
       This may not be set if no ID was assigned.
       
      .aapt.pb.PackageId package_id = 1;
    • mergePackageId

      public Resources.Package.Builder mergePackageId(Resources.PackageId value)
       The package ID of this package, in the range [0x00, 0xff].
       - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
       - ID 0x01 is reserved for the 'android' package (framework).
       - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
       - ID 0x7f is reserved for the application package.
       - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
       This may not be set if no ID was assigned.
       
      .aapt.pb.PackageId package_id = 1;
    • clearPackageId

      public Resources.Package.Builder clearPackageId()
       The package ID of this package, in the range [0x00, 0xff].
       - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
       - ID 0x01 is reserved for the 'android' package (framework).
       - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
       - ID 0x7f is reserved for the application package.
       - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
       This may not be set if no ID was assigned.
       
      .aapt.pb.PackageId package_id = 1;
    • getPackageIdBuilder

      public Resources.PackageId.Builder getPackageIdBuilder()
       The package ID of this package, in the range [0x00, 0xff].
       - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
       - ID 0x01 is reserved for the 'android' package (framework).
       - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
       - ID 0x7f is reserved for the application package.
       - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
       This may not be set if no ID was assigned.
       
      .aapt.pb.PackageId package_id = 1;
    • getPackageIdOrBuilder

      public Resources.PackageIdOrBuilder getPackageIdOrBuilder()
       The package ID of this package, in the range [0x00, 0xff].
       - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
       - ID 0x01 is reserved for the 'android' package (framework).
       - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
       - ID 0x7f is reserved for the application package.
       - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
       This may not be set if no ID was assigned.
       
      .aapt.pb.PackageId package_id = 1;
      Specified by:
      getPackageIdOrBuilder in interface Resources.PackageOrBuilder
    • getPackageName

      public String getPackageName()
       The Java compatible Android package name of the app.
       
      string package_name = 2;
      Specified by:
      getPackageName in interface Resources.PackageOrBuilder
      Returns:
      The packageName.
    • getPackageNameBytes

      public com.google.protobuf.ByteString getPackageNameBytes()
       The Java compatible Android package name of the app.
       
      string package_name = 2;
      Specified by:
      getPackageNameBytes in interface Resources.PackageOrBuilder
      Returns:
      The bytes for packageName.
    • setPackageName

      public Resources.Package.Builder setPackageName(String value)
       The Java compatible Android package name of the app.
       
      string package_name = 2;
      Parameters:
      value - The packageName to set.
      Returns:
      This builder for chaining.
    • clearPackageName

      public Resources.Package.Builder clearPackageName()
       The Java compatible Android package name of the app.
       
      string package_name = 2;
      Returns:
      This builder for chaining.
    • setPackageNameBytes

      public Resources.Package.Builder setPackageNameBytes(com.google.protobuf.ByteString value)
       The Java compatible Android package name of the app.
       
      string package_name = 2;
      Parameters:
      value - The bytes for packageName to set.
      Returns:
      This builder for chaining.
    • getTypeList

      public List<Resources.Type> getTypeList()
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
      Specified by:
      getTypeList in interface Resources.PackageOrBuilder
    • getTypeCount

      public int getTypeCount()
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
      Specified by:
      getTypeCount in interface Resources.PackageOrBuilder
    • getType

      public Resources.Type getType(int index)
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
      Specified by:
      getType in interface Resources.PackageOrBuilder
    • setType

      public Resources.Package.Builder setType(int index, Resources.Type value)
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
    • setType

      public Resources.Package.Builder setType(int index, Resources.Type.Builder builderForValue)
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
    • addType

      public Resources.Package.Builder addType(Resources.Type value)
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
    • addType

      public Resources.Package.Builder addType(int index, Resources.Type value)
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
    • addType

      public Resources.Package.Builder addType(Resources.Type.Builder builderForValue)
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
    • addType

      public Resources.Package.Builder addType(int index, Resources.Type.Builder builderForValue)
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
    • addAllType

      public Resources.Package.Builder addAllType(Iterable<? extends Resources.Type> values)
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
    • clearType

      public Resources.Package.Builder clearType()
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
    • removeType

      public Resources.Package.Builder removeType(int index)
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
    • getTypeBuilder

      public Resources.Type.Builder getTypeBuilder(int index)
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
    • getTypeOrBuilder

      public Resources.TypeOrBuilder getTypeOrBuilder(int index)
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
      Specified by:
      getTypeOrBuilder in interface Resources.PackageOrBuilder
    • getTypeOrBuilderList

      public List<? extends Resources.TypeOrBuilder> getTypeOrBuilderList()
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
      Specified by:
      getTypeOrBuilderList in interface Resources.PackageOrBuilder
    • addTypeBuilder

      public Resources.Type.Builder addTypeBuilder()
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
    • addTypeBuilder

      public Resources.Type.Builder addTypeBuilder(int index)
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
    • getTypeBuilderList

      public List<Resources.Type.Builder> getTypeBuilderList()
       The series of types defined by the package.
       
      repeated .aapt.pb.Type type = 3;
    • setUnknownFields

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

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