Package com.android.aapt
Class Resources.Type
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.android.aapt.Resources.Type
- All Implemented Interfaces:
Resources.TypeOrBuilder,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.Type
extends com.google.protobuf.GeneratedMessageV3
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA set of resources grouped under a common type.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Resources.Typestatic final com.google.protobuf.Descriptors.DescriptorgetEntry(int index) The entries defined for this type.intThe entries defined for this type.The entries defined for this type.getEntryOrBuilder(int index) The entries defined for this type.List<? extends Resources.EntryOrBuilder>The entries defined for this type.getName()The name of the type.com.google.protobuf.ByteStringThe name of the type.com.google.protobuf.Parser<Resources.Type>intThe ID of the type.The ID of the type.inthashCode()booleanThe ID of the type.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Resources.Type.Builderstatic Resources.Type.BuildernewBuilder(Resources.Type prototype) protected Resources.Type.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Resources.TypeparseDelimitedFrom(InputStream input) static Resources.TypeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.TypeparseFrom(byte[] data) static Resources.TypeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.TypeparseFrom(com.google.protobuf.ByteString data) static Resources.TypeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.TypeparseFrom(com.google.protobuf.CodedInputStream input) static Resources.TypeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.TypeparseFrom(InputStream input) static Resources.TypeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.TypeparseFrom(ByteBuffer data) static Resources.TypeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Resources.Type>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TYPE_ID_FIELD_NUMBER
public static final int TYPE_ID_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
ENTRY_FIELD_NUMBER
public static final int ENTRY_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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:
hasTypeIdin interfaceResources.TypeOrBuilder- Returns:
- Whether the typeId field is set.
-
getTypeId
The ID of the type. This may not be set if no ID was assigned.
.aapt.pb.TypeId type_id = 1;- Specified by:
getTypeIdin interfaceResources.TypeOrBuilder- Returns:
- The typeId.
-
getTypeIdOrBuilder
The ID of the type. This may not be set if no ID was assigned.
.aapt.pb.TypeId type_id = 1;- Specified by:
getTypeIdOrBuilderin interfaceResources.TypeOrBuilder
-
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:
getNamein interfaceResources.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:
getNameBytesin interfaceResources.TypeOrBuilder- Returns:
- The bytes for name.
-
getEntryList
The entries defined for this type.
repeated .aapt.pb.Entry entry = 3;- Specified by:
getEntryListin interfaceResources.TypeOrBuilder
-
getEntryOrBuilderList
The entries defined for this type.
repeated .aapt.pb.Entry entry = 3;- Specified by:
getEntryOrBuilderListin interfaceResources.TypeOrBuilder
-
getEntryCount
public int getEntryCount()The entries defined for this type.
repeated .aapt.pb.Entry entry = 3;- Specified by:
getEntryCountin interfaceResources.TypeOrBuilder
-
getEntry
The entries defined for this type.
repeated .aapt.pb.Entry entry = 3;- Specified by:
getEntryin interfaceResources.TypeOrBuilder
-
getEntryOrBuilder
The entries defined for this type.
repeated .aapt.pb.Entry entry = 3;- Specified by:
getEntryOrBuilderin interfaceResources.TypeOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Resources.Type parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Type parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Type parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Type 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.Type parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Type parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Resources.Type parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Resources.Type parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Resources.Type parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Resources.Type parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Resources.Type.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-