Class Resources.Type.Builder

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

public static final class Resources.Type.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Resources.Type.Builder> implements Resources.TypeOrBuilder
 A set of resources grouped under a common type. Such types include string, layout, xml, dimen,
 attr, etc. This maps to the second part of a resource identifier in Java (R.type.entry).
 
Protobuf type aapt.pb.Type
  • 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.Type.Builder>
    • clear

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

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

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

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

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

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

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

      public boolean hasTypeId()
       The ID of the type. This may not be set if no ID was assigned.
       
      .aapt.pb.TypeId type_id = 1;
      Specified by:
      hasTypeId in interface Resources.TypeOrBuilder
      Returns:
      Whether the typeId field is set.
    • getTypeId

      public Resources.TypeId getTypeId()
       The ID of the type. This may not be set if no ID was assigned.
       
      .aapt.pb.TypeId type_id = 1;
      Specified by:
      getTypeId in interface Resources.TypeOrBuilder
      Returns:
      The typeId.
    • setTypeId

      public Resources.Type.Builder setTypeId(Resources.TypeId value)
       The ID of the type. This may not be set if no ID was assigned.
       
      .aapt.pb.TypeId type_id = 1;
    • setTypeId

      public Resources.Type.Builder setTypeId(Resources.TypeId.Builder builderForValue)
       The ID of the type. This may not be set if no ID was assigned.
       
      .aapt.pb.TypeId type_id = 1;
    • mergeTypeId

      public Resources.Type.Builder mergeTypeId(Resources.TypeId value)
       The ID of the type. This may not be set if no ID was assigned.
       
      .aapt.pb.TypeId type_id = 1;
    • clearTypeId

      public Resources.Type.Builder clearTypeId()
       The ID of the type. This may not be set if no ID was assigned.
       
      .aapt.pb.TypeId type_id = 1;
    • getTypeIdBuilder

      public Resources.TypeId.Builder getTypeIdBuilder()
       The ID of the type. This may not be set if no ID was assigned.
       
      .aapt.pb.TypeId type_id = 1;
    • getTypeIdOrBuilder

      public Resources.TypeIdOrBuilder getTypeIdOrBuilder()
       The ID of the type. This may not be set if no ID was assigned.
       
      .aapt.pb.TypeId type_id = 1;
      Specified by:
      getTypeIdOrBuilder in interface Resources.TypeOrBuilder
    • getName

      public String getName()
       The name of the type. This corresponds to the 'type' part of a full resource name of the form
       package:type/entry. The set of legal type names is listed in Resource.cpp.
       
      string name = 2;
      Specified by:
      getName in interface Resources.TypeOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the type. This corresponds to the 'type' part of a full resource name of the form
       package:type/entry. The set of legal type names is listed in Resource.cpp.
       
      string name = 2;
      Specified by:
      getNameBytes in interface Resources.TypeOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Resources.Type.Builder setName(String value)
       The name of the type. This corresponds to the 'type' part of a full resource name of the form
       package:type/entry. The set of legal type names is listed in Resource.cpp.
       
      string name = 2;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Resources.Type.Builder clearName()
       The name of the type. This corresponds to the 'type' part of a full resource name of the form
       package:type/entry. The set of legal type names is listed in Resource.cpp.
       
      string name = 2;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Resources.Type.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the type. This corresponds to the 'type' part of a full resource name of the form
       package:type/entry. The set of legal type names is listed in Resource.cpp.
       
      string name = 2;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getEntryList

      public List<Resources.Entry> getEntryList()
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
      Specified by:
      getEntryList in interface Resources.TypeOrBuilder
    • getEntryCount

      public int getEntryCount()
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
      Specified by:
      getEntryCount in interface Resources.TypeOrBuilder
    • getEntry

      public Resources.Entry getEntry(int index)
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
      Specified by:
      getEntry in interface Resources.TypeOrBuilder
    • setEntry

      public Resources.Type.Builder setEntry(int index, Resources.Entry value)
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
    • setEntry

      public Resources.Type.Builder setEntry(int index, Resources.Entry.Builder builderForValue)
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
    • addEntry

      public Resources.Type.Builder addEntry(Resources.Entry value)
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
    • addEntry

      public Resources.Type.Builder addEntry(int index, Resources.Entry value)
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
    • addEntry

      public Resources.Type.Builder addEntry(Resources.Entry.Builder builderForValue)
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
    • addEntry

      public Resources.Type.Builder addEntry(int index, Resources.Entry.Builder builderForValue)
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
    • addAllEntry

      public Resources.Type.Builder addAllEntry(Iterable<? extends Resources.Entry> values)
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
    • clearEntry

      public Resources.Type.Builder clearEntry()
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
    • removeEntry

      public Resources.Type.Builder removeEntry(int index)
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
    • getEntryBuilder

      public Resources.Entry.Builder getEntryBuilder(int index)
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
    • getEntryOrBuilder

      public Resources.EntryOrBuilder getEntryOrBuilder(int index)
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
      Specified by:
      getEntryOrBuilder in interface Resources.TypeOrBuilder
    • getEntryOrBuilderList

      public List<? extends Resources.EntryOrBuilder> getEntryOrBuilderList()
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
      Specified by:
      getEntryOrBuilderList in interface Resources.TypeOrBuilder
    • addEntryBuilder

      public Resources.Entry.Builder addEntryBuilder()
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
    • addEntryBuilder

      public Resources.Entry.Builder addEntryBuilder(int index)
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
    • getEntryBuilderList

      public List<Resources.Entry.Builder> getEntryBuilderList()
       The entries defined for this type.
       
      repeated .aapt.pb.Entry entry = 3;
    • setUnknownFields

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

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