Package com.android.aapt
Class Resources.Value
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.android.aapt.Resources.Value
- All Implemented Interfaces:
Resources.ValueOrBuilder,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.Value
extends com.google.protobuf.GeneratedMessageV3
implements Resources.ValueOrBuilder
The generic meta-data for every value in a resource table.Protobuf type
aapt.pb.Value- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe generic meta-data for every value in a resource table.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 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 TypeMethodDescriptionbooleanAny comment associated with the value.com.google.protobuf.ByteStringAny comment associated with the value..aapt.pb.CompoundValue compound_value = 5;.aapt.pb.CompoundValue compound_value = 5;static Resources.Valuestatic final com.google.protobuf.Descriptors.DescriptorgetItem().aapt.pb.Item item = 4;.aapt.pb.Item item = 4;com.google.protobuf.Parser<Resources.Value>intWhere the value was defined.Where the value was defined.booleangetWeak()Whether the value can be overridden.boolean.aapt.pb.CompoundValue compound_value = 5;inthashCode()booleanhasItem().aapt.pb.Item item = 4;booleanWhere the value was defined.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic Resources.Value.Builderstatic Resources.Value.BuildernewBuilder(Resources.Value prototype) protected Resources.Value.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Resources.ValueparseDelimitedFrom(InputStream input) static Resources.ValueparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.ValueparseFrom(byte[] data) static Resources.ValueparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.ValueparseFrom(com.google.protobuf.ByteString data) static Resources.ValueparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.ValueparseFrom(com.google.protobuf.CodedInputStream input) static Resources.ValueparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.ValueparseFrom(InputStream input) static Resources.ValueparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Resources.ValueparseFrom(ByteBuffer data) static Resources.ValueparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Resources.Value>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
-
SOURCE_FIELD_NUMBER
public static final int SOURCE_FIELD_NUMBER- See Also:
-
COMMENT_FIELD_NUMBER
public static final int COMMENT_FIELD_NUMBER- See Also:
-
WEAK_FIELD_NUMBER
public static final int WEAK_FIELD_NUMBER- See Also:
-
ITEM_FIELD_NUMBER
public static final int ITEM_FIELD_NUMBER- See Also:
-
COMPOUND_VALUE_FIELD_NUMBER
public static final int COMPOUND_VALUE_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.ValueOrBuilder
-
hasSource
public boolean hasSource()Where the value was defined.
.aapt.pb.Source source = 1;- Specified by:
hasSourcein interfaceResources.ValueOrBuilder- Returns:
- Whether the source field is set.
-
getSource
Where the value was defined.
.aapt.pb.Source source = 1;- Specified by:
getSourcein interfaceResources.ValueOrBuilder- Returns:
- The source.
-
getSourceOrBuilder
Where the value was defined.
.aapt.pb.Source source = 1;- Specified by:
getSourceOrBuilderin interfaceResources.ValueOrBuilder
-
getComment
Any comment associated with the value.
string comment = 2;- Specified by:
getCommentin interfaceResources.ValueOrBuilder- Returns:
- The comment.
-
getCommentBytes
public com.google.protobuf.ByteString getCommentBytes()Any comment associated with the value.
string comment = 2;- Specified by:
getCommentBytesin interfaceResources.ValueOrBuilder- Returns:
- The bytes for comment.
-
getWeak
public boolean getWeak()Whether the value can be overridden.
bool weak = 3;- Specified by:
getWeakin interfaceResources.ValueOrBuilder- Returns:
- The weak.
-
hasItem
public boolean hasItem().aapt.pb.Item item = 4;- Specified by:
hasItemin interfaceResources.ValueOrBuilder- Returns:
- Whether the item field is set.
-
getItem
.aapt.pb.Item item = 4;- Specified by:
getItemin interfaceResources.ValueOrBuilder- Returns:
- The item.
-
getItemOrBuilder
.aapt.pb.Item item = 4;- Specified by:
getItemOrBuilderin interfaceResources.ValueOrBuilder
-
hasCompoundValue
public boolean hasCompoundValue().aapt.pb.CompoundValue compound_value = 5;- Specified by:
hasCompoundValuein interfaceResources.ValueOrBuilder- Returns:
- Whether the compoundValue field is set.
-
getCompoundValue
.aapt.pb.CompoundValue compound_value = 5;- Specified by:
getCompoundValuein interfaceResources.ValueOrBuilder- Returns:
- The compoundValue.
-
getCompoundValueOrBuilder
.aapt.pb.CompoundValue compound_value = 5;- Specified by:
getCompoundValueOrBuilderin interfaceResources.ValueOrBuilder
-
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.Value parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Value parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Value parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Value 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.Value parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Resources.Value 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.Value parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Resources.Value parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Resources.Value parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Resources.Value 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.Value.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
-