Package com.android.aapt
Class Resources.Item
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.android.aapt.Resources.Item
- All Implemented Interfaces:
Resources.ItemOrBuilder,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.Item
extends com.google.protobuf.GeneratedMessageV3
implements Resources.ItemOrBuilder
An Item is an abstract type. It represents a value that can appear inline in many places, such as XML attribute values or on the right hand side of style attribute definitions. The concrete type is one of the types below. Only one can be set.Protobuf type
aapt.pb.Item- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn Item is an abstract type.static enumNested 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 intstatic final intstatic 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.Itemstatic final com.google.protobuf.Descriptors.DescriptorgetFile().aapt.pb.FileReference file = 5;.aapt.pb.FileReference file = 5;getId().aapt.pb.Id id = 6;.aapt.pb.Id id = 6;com.google.protobuf.Parser<Resources.Item>getPrim().aapt.pb.Primitive prim = 7;.aapt.pb.Primitive prim = 7;.aapt.pb.RawString raw_str = 3;.aapt.pb.RawString raw_str = 3;getRef().aapt.pb.Reference ref = 1;.aapt.pb.Reference ref = 1;intgetStr().aapt.pb.String str = 2;.aapt.pb.String str = 2;.aapt.pb.StyledString styled_str = 4;.aapt.pb.StyledString styled_str = 4;booleanhasFile().aapt.pb.FileReference file = 5;inthashCode()booleanhasId().aapt.pb.Id id = 6;booleanhasPrim().aapt.pb.Primitive prim = 7;boolean.aapt.pb.RawString raw_str = 3;booleanhasRef().aapt.pb.Reference ref = 1;booleanhasStr().aapt.pb.String str = 2;boolean.aapt.pb.StyledString styled_str = 4;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Resources.Item.Builderstatic Resources.Item.BuildernewBuilder(Resources.Item prototype) protected Resources.Item.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Resources.ItemparseDelimitedFrom(InputStream input) static Resources.ItemparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.ItemparseFrom(byte[] data) static Resources.ItemparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.ItemparseFrom(com.google.protobuf.ByteString data) static Resources.ItemparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.ItemparseFrom(com.google.protobuf.CodedInputStream input) static Resources.ItemparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.ItemparseFrom(InputStream input) static Resources.ItemparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.ItemparseFrom(ByteBuffer data) static Resources.ItemparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Resources.Item>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
-
REF_FIELD_NUMBER
public static final int REF_FIELD_NUMBER- See Also:
-
STR_FIELD_NUMBER
public static final int STR_FIELD_NUMBER- See Also:
-
RAW_STR_FIELD_NUMBER
public static final int RAW_STR_FIELD_NUMBER- See Also:
-
STYLED_STR_FIELD_NUMBER
public static final int STYLED_STR_FIELD_NUMBER- See Also:
-
FILE_FIELD_NUMBER
public static final int FILE_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
PRIM_FIELD_NUMBER
public static final int PRIM_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
-
getValueCase
- Specified by:
getValueCasein interfaceResources.ItemOrBuilder
-
hasRef
public boolean hasRef().aapt.pb.Reference ref = 1;- Specified by:
hasRefin interfaceResources.ItemOrBuilder- Returns:
- Whether the ref field is set.
-
getRef
.aapt.pb.Reference ref = 1;- Specified by:
getRefin interfaceResources.ItemOrBuilder- Returns:
- The ref.
-
getRefOrBuilder
.aapt.pb.Reference ref = 1;- Specified by:
getRefOrBuilderin interfaceResources.ItemOrBuilder
-
hasStr
public boolean hasStr().aapt.pb.String str = 2;- Specified by:
hasStrin interfaceResources.ItemOrBuilder- Returns:
- Whether the str field is set.
-
getStr
.aapt.pb.String str = 2;- Specified by:
getStrin interfaceResources.ItemOrBuilder- Returns:
- The str.
-
getStrOrBuilder
.aapt.pb.String str = 2;- Specified by:
getStrOrBuilderin interfaceResources.ItemOrBuilder
-
hasRawStr
public boolean hasRawStr().aapt.pb.RawString raw_str = 3;- Specified by:
hasRawStrin interfaceResources.ItemOrBuilder- Returns:
- Whether the rawStr field is set.
-
getRawStr
.aapt.pb.RawString raw_str = 3;- Specified by:
getRawStrin interfaceResources.ItemOrBuilder- Returns:
- The rawStr.
-
getRawStrOrBuilder
.aapt.pb.RawString raw_str = 3;- Specified by:
getRawStrOrBuilderin interfaceResources.ItemOrBuilder
-
hasStyledStr
public boolean hasStyledStr().aapt.pb.StyledString styled_str = 4;- Specified by:
hasStyledStrin interfaceResources.ItemOrBuilder- Returns:
- Whether the styledStr field is set.
-
getStyledStr
.aapt.pb.StyledString styled_str = 4;- Specified by:
getStyledStrin interfaceResources.ItemOrBuilder- Returns:
- The styledStr.
-
getStyledStrOrBuilder
.aapt.pb.StyledString styled_str = 4;- Specified by:
getStyledStrOrBuilderin interfaceResources.ItemOrBuilder
-
hasFile
public boolean hasFile().aapt.pb.FileReference file = 5;- Specified by:
hasFilein interfaceResources.ItemOrBuilder- Returns:
- Whether the file field is set.
-
getFile
.aapt.pb.FileReference file = 5;- Specified by:
getFilein interfaceResources.ItemOrBuilder- Returns:
- The file.
-
getFileOrBuilder
.aapt.pb.FileReference file = 5;- Specified by:
getFileOrBuilderin interfaceResources.ItemOrBuilder
-
hasId
public boolean hasId().aapt.pb.Id id = 6;- Specified by:
hasIdin interfaceResources.ItemOrBuilder- Returns:
- Whether the id field is set.
-
getId
.aapt.pb.Id id = 6;- Specified by:
getIdin interfaceResources.ItemOrBuilder- Returns:
- The id.
-
getIdOrBuilder
.aapt.pb.Id id = 6;- Specified by:
getIdOrBuilderin interfaceResources.ItemOrBuilder
-
hasPrim
public boolean hasPrim().aapt.pb.Primitive prim = 7;- Specified by:
hasPrimin interfaceResources.ItemOrBuilder- Returns:
- Whether the prim field is set.
-
getPrim
.aapt.pb.Primitive prim = 7;- Specified by:
getPrimin interfaceResources.ItemOrBuilder- Returns:
- The prim.
-
getPrimOrBuilder
.aapt.pb.Primitive prim = 7;- Specified by:
getPrimOrBuilderin interfaceResources.ItemOrBuilder
-
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.Item parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Item parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Item parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Item 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.Item parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Item 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.Item parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Resources.Item parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Resources.Item parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Resources.Item 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.Item.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
-