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,java.io.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 typeaapt.pb.Item- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResources.Item.BuilderAn Item is an abstract type.static classResources.Item.ValueCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intFILE_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intPRIM_FIELD_NUMBERstatic intRAW_STR_FIELD_NUMBERstatic intREF_FIELD_NUMBERstatic intSTR_FIELD_NUMBERstatic intSTYLED_STR_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static Resources.ItemgetDefaultInstance()Resources.ItemgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Resources.FileReferencegetFile().aapt.pb.FileReference file = 5;Resources.FileReferenceOrBuildergetFileOrBuilder().aapt.pb.FileReference file = 5;Resources.IdgetId().aapt.pb.Id id = 6;Resources.IdOrBuildergetIdOrBuilder().aapt.pb.Id id = 6;com.google.protobuf.Parser<Resources.Item>getParserForType()Resources.PrimitivegetPrim().aapt.pb.Primitive prim = 7;Resources.PrimitiveOrBuildergetPrimOrBuilder().aapt.pb.Primitive prim = 7;Resources.RawStringgetRawStr().aapt.pb.RawString raw_str = 3;Resources.RawStringOrBuildergetRawStrOrBuilder().aapt.pb.RawString raw_str = 3;Resources.ReferencegetRef().aapt.pb.Reference ref = 1;Resources.ReferenceOrBuildergetRefOrBuilder().aapt.pb.Reference ref = 1;intgetSerializedSize()Resources.StringgetStr().aapt.pb.String str = 2;Resources.StringOrBuildergetStrOrBuilder().aapt.pb.String str = 2;Resources.StyledStringgetStyledStr().aapt.pb.StyledString styled_str = 4;Resources.StyledStringOrBuildergetStyledStrOrBuilder().aapt.pb.StyledString styled_str = 4;com.google.protobuf.UnknownFieldSetgetUnknownFields()Resources.Item.ValueCasegetValueCase()booleanhasFile().aapt.pb.FileReference file = 5;inthashCode()booleanhasId().aapt.pb.Id id = 6;booleanhasPrim().aapt.pb.Primitive prim = 7;booleanhasRawStr().aapt.pb.RawString raw_str = 3;booleanhasRef().aapt.pb.Reference ref = 1;booleanhasStr().aapt.pb.String str = 2;booleanhasStyledStr().aapt.pb.StyledString styled_str = 4;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Resources.Item.BuildernewBuilder()static Resources.Item.BuildernewBuilder(Resources.Item prototype)Resources.Item.BuildernewBuilderForType()protected Resources.Item.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Resources.ItemparseDelimitedFrom(java.io.InputStream input)static Resources.ItemparseDelimitedFrom(java.io.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(java.io.InputStream input)static Resources.ItemparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Resources.ItemparseFrom(java.nio.ByteBuffer data)static Resources.ItemparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Resources.Item>parser()Resources.Item.BuildertoBuilder()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, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
REF_FIELD_NUMBER
public static final int REF_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STR_FIELD_NUMBER
public static final int STR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RAW_STR_FIELD_NUMBER
public static final int RAW_STR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STYLED_STR_FIELD_NUMBER
public static final int STYLED_STR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILE_FIELD_NUMBER
public static final int FILE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRIM_FIELD_NUMBER
public static final int PRIM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
public Resources.Item.ValueCase 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
public Resources.Reference getRef()
.aapt.pb.Reference ref = 1;- Specified by:
getRefin interfaceResources.ItemOrBuilder- Returns:
- The ref.
-
getRefOrBuilder
public Resources.ReferenceOrBuilder 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
public Resources.String getStr()
.aapt.pb.String str = 2;- Specified by:
getStrin interfaceResources.ItemOrBuilder- Returns:
- The str.
-
getStrOrBuilder
public Resources.StringOrBuilder 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
public Resources.RawString getRawStr()
.aapt.pb.RawString raw_str = 3;- Specified by:
getRawStrin interfaceResources.ItemOrBuilder- Returns:
- The rawStr.
-
getRawStrOrBuilder
public Resources.RawStringOrBuilder 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
public Resources.StyledString getStyledStr()
.aapt.pb.StyledString styled_str = 4;- Specified by:
getStyledStrin interfaceResources.ItemOrBuilder- Returns:
- The styledStr.
-
getStyledStrOrBuilder
public Resources.StyledStringOrBuilder 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
public Resources.FileReference getFile()
.aapt.pb.FileReference file = 5;- Specified by:
getFilein interfaceResources.ItemOrBuilder- Returns:
- The file.
-
getFileOrBuilder
public Resources.FileReferenceOrBuilder 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
public Resources.Id getId()
.aapt.pb.Id id = 6;- Specified by:
getIdin interfaceResources.ItemOrBuilder- Returns:
- The id.
-
getIdOrBuilder
public Resources.IdOrBuilder 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
public Resources.Primitive getPrim()
.aapt.pb.Primitive prim = 7;- Specified by:
getPrimin interfaceResources.ItemOrBuilder- Returns:
- The prim.
-
getPrimOrBuilder
public Resources.PrimitiveOrBuilder 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
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- 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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Item parseFrom(java.nio.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
public static Resources.Item parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Resources.Item parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Resources.Item parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Resources.Item parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Resources.Item parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Resources.Item parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Resources.Item.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Resources.Item.Builder newBuilder()
-
newBuilder
public static Resources.Item.Builder newBuilder(Resources.Item prototype)
-
toBuilder
public Resources.Item.Builder 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
public static Resources.Item getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Resources.Item> parser()
-
getParserForType
public com.google.protobuf.Parser<Resources.Item> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Resources.Item getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-